http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47595

--- Comment #1 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-02-03 
01:33:24 UTC ---
This seems to be specific to the bootstrap with -fgraphite-identity at -O2. The
warnings appear as...

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../g++
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c
-nostdinc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/i386/libstdc++-v3/include/x86_64-apple-darwin10.7.0
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/i386/libstdc++-v3/include
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/libsupc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/include/backward
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/testsuite/util
-fmessage-length=0 -O2 -Wuninitialized -fno-ivopts -S -m32 -fgraphite-identity
-o uninit-17.s
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c:
In function ‘void foobar(int, int*)’:
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c:21:6:
warning: ‘b’ is used uninitialized in this function [-Wuninitialized]

when -fgraphite-identity is passed but also as...

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../g++
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c
-nostdinc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/i386/libstdc++-v3/include/x86_64-apple-darwin10.7.0
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/i386/libstdc++-v3/include
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/libsupc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/include/backward
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/libstdc++-v3/testsuite/util
-fmessage-length=0 -O2 -Wuninitialized -fno-ivopts -S -m32
-fno-graphite-identity -o uninit-17.s
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c:
In function ‘void foobar(int, int*)’:
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c:16:11:
warning: ‘b’ may be used uninitialized in this function [-Wuninitialized]
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/c-c++-common/uninit-17.c:12:9:
note: ‘b’ was declared here

when -fno-graphite-identity is passed.

Reply via email to