gcc-4.6-20101009 snapshot. I think it was working in previous snapshot (there were other errors, but this no). With only -O2 build is ok. So inlineing is a problem? root@tytus:/scratch/obiekty# export FLAGS="-O2 -finline-functions" root@tytus:/scratch/obiekty# export CFLAGS=$FLAGS root@tytus:/scratch/obiekty# export CXXFLAGS=$FLAGS root@tytus:/scratch/obiekty# /scratch/gcc-4.6-20101009/configure \ --enable-languages=c,c++,java \ --enable-checking=yes \ CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" root@tytus:/scratch/obiekty# make "BOOT_CFLAGS=$CFLAGS" bootstrap ... /scratch/obiekty/./prev-gcc/xgcc -B/scratch/obiekty/./prev-gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -c -DIN_GCC_FRONTEND -O2 -finline-functions -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I/scratch/gcc-4.6-20101009/gcc -I/scratch/gcc-4.6-20101009/gcc/. -I/scratch/gcc-4.6-20101009/gcc/../include -I/scratch/gcc-4.6-20101009/gcc/../libcpp/include -I/scratch/gcc-4.6-20101009/gcc/../libdecnumber -I/scratch/gcc-4.6-20101009/gcc/../libdecnumber/bid -I../libdecnumber -DCLOOG_PPL_BACKEND -I/usr/include/libelf /scratch/gcc-4.6-20101009/gcc/c-parser.c -o c-parser.o /scratch/gcc-4.6-20101009/gcc/c-parser.c: In function ‘c_parser_statement_after_labels’: /scratch/gcc-4.6-20101009/gcc/c-parser.c:4672:19: error: ‘incr’ may be used uninitialized in this function [-Werror=uninitialized] /scratch/gcc-4.6-20101009/gcc/c-parser.c:4525:21: note: ‘incr’ was declared here cc1: all warnings being treated as errors make[3]: *** [c-parser.o] Błąd 1 make[3]: Opuszczenie katalogu `/scratch/obiekty/gcc' make[2]: *** [all-stage2-gcc] Błąd 2 make[2]: Opuszczenie katalogu `/scratch/obiekty' make[1]: *** [stage2-bubble] Błąd 2 make[1]: Opuszczenie katalogu `/scratch/obiekty' make: *** [bootstrap] Błąd 2 root@tytus:/scratch/obiekty# Thanks.
Created attachment 22063 [details] move some initializations Does attached patch fix the failure for you?
Not exactly your patch. In true-branch of if, there is no assigment to incr (so error is correct). But moving else assigments, before if, resolves problem. Modified patch agains snapshot 20101009 attached. If you have been genereting against SVN trunk, that it is possible that it is already fixed there (as comment in your patch indicates also).
Created attachment 22069 [details] Move initializations patch of incr and cond (against gcc-4.6-20101009)
(In reply to comment #2) > Not exactly your patch. In true-branch of if, there is no assigment to incr (so > error is correct). > > But moving else assigments, before if, resolves problem. Modified patch agains > snapshot 20101009 attached. > > If you have been genereting against SVN trunk, that it is possible that it is > already fixed there (as comment in your patch indicates also). Yeah, my patch was against latest SVN trunk. But anyway, an assignment in both arms on an if can surely be CSE'd out of the "if" entirely. So, fixed in latest SVN.