initialize incr in c-parser.c:c_parser_for_statement

Alexandre Oliva aoliva@redhat.com
Wed Oct 13 06:49:00 GMT 2010


Bootstrap fails with bootstrap-O3 because GCC gets the impression that
incr is used without being initialized.  AFAICT the impression is wrong,
and incr is initialized in every path that leads to the use, but it's
not too much of a problem to initialize it with the value that is stored
in it in most other paths anyway.

I'm checking this in as obviously correct.  Regstrapped on
x86_64-linux-gnu and i686-pc-linux-gnu.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: c-parser-uninit-incr.patch
Type: text/x-diff
Size: 738 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101013/6f584ea3/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


More information about the Gcc-patches mailing list