http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56705
Bug #: 56705 Summary: 4.8-20130319 misdiagnoses initialized var (regression from 4.7.2) Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: egg...@gnu.org Created attachment 29711 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29711 test program, abstracted from Emacs source code This is GCC 4.8-20130319, x86-64, compiled on Fedora 17. I ran into this problem when building a test version of Emacs. Compiling the attached program with: gcc -std=gnu99 -S -Wall -Werror -O3 t.i yields the following diagnostic. t.i: In function 'egetenv': t.i:195:9: error: 'value' may be used uninitialized in this function [-Werror=maybe-uninitialized] char *value; ^ The diagnostic appears to be incorrect, as there's no path through egetenv where 'value' may be unused. The diagnostic is not generated by GCC 4.7.2. Removing the seemingly-unrelated function Fgetenv_internal makes the diagnostic go away.