[Bug bootstrap/53757] New: [llto bootstrap] fails due to various -Werror=maybe-uninitialized

vincenzo.innocente at cern dot ch gcc-bugzilla@gcc.gnu.org
Sat Jun 23 14:35:00 GMT 2012


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

             Bug #: 53757
           Summary: [llto bootstrap]  fails due to various
                    -Werror=maybe-uninitialized
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@cern.ch


on fedora 17
/home/innocent/gccDir/buildLTO/./prev-gcc/g++ -v
Using built-in specs.
COLLECT_GCC=/home/innocent/gccDir/buildLTO/./prev-gcc/g++
Target: x86_64-unknown-linux-gnu
Configured with: ../trunk/configure --prefix=/home/innocent/gccDir
--enable-languages=c,c++,lto -enable-gold=yes --enable-lto -enable-libitm
-disable-multilib --with-ppl --with-cloog --with-build-config=bootstrap-lto
Thread model: posix
gcc version 4.8.0 20120623 (experimental) [trunk revision 188906] (GCC) 


/home/innocent/gccDir/buildLTO/./prev-gcc/g++
-B/home/innocent/gccDir/buildLTO/./prev-gcc/
-B/home/innocent/gccDir/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/innocent/gccDir/trunk/libstdc++-v3/libsupc++
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
  -g -O2 -flto=jobserver -frandom-seed=1 -DIN_GCC   -fno-exceptions -fno-rtti
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1 c-lang.o
c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o
default-c.o \
  cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a
libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
-lcloog -lppl_c -lppl  -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
/home/innocent/gccDir/buildLTO/./prev-gcc/g++
-B/home/innocent/gccDir/buildLTO/./prev-gcc/
-B/home/innocent/gccDir/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/innocent/gccDir/trunk/libstdc++-v3/libsupc++
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
  -g -O2 -flto=jobserver -frandom-seed=1 -DIN_GCC   -fno-exceptions -fno-rtti
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o
cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o
cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o
cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o
cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o
cp/cp-gimplify.o tree-mudflap.o attribs.o incpath.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o
default-c.o cc1plus-checksum.o libbackend.a main.o tree-browser.o
libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -lcloog -lppl_c -lppl 
-lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
/home/innocent/gccDir/buildLTO/./prev-gcc/g++
-B/home/innocent/gccDir/buildLTO/./prev-gcc/
-B/home/innocent/gccDir/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/innocent/gccDir/trunk/libstdc++-v3/libsupc++
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/innocent/gccDir/buildLTO/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
  -g -O2 -flto=jobserver -frandom-seed=1 -DIN_GCC   -fno-exceptions -fno-rtti
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o lto1 \
    lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o
libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lcloog -lppl_c -lppl 
-lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz libcommon.a
../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
In file included from ../../trunk/gcc/sel-sched-ir.c:2669:0,
                 from ../../trunk/gcc/sel-sched-ir.h:930,
                 from :5607:
../../trunk/gcc/expmed.c: In function 'expand_mult':
../../trunk/gcc/expmed.c:3215:7: error: 'is_neg' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (is_neg && mode_bitsize > HOST_BITS_PER_WIDE_INT)
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2656:0,
                 from ../../trunk/gcc/sel-sched-ir.h:930,
                 from :5607:
../../trunk/gcc/expmed.c:3142:12: note: 'is_neg' was declared here
       bool is_neg;
            ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2673:0,
                 from ../../trunk/gcc/sel-sched-ir.h:930,
                 from :5607:
../../trunk/gcc/expmed.c:3236:7: error: 'coeff' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (choose_mult_variant (mode, coeff, &algorithm, &variant, max_cost))
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2656:0,
                 from ../../trunk/gcc/sel-sched-ir.h:930,
                 from :5607:
../../trunk/gcc/expmed.c:3141:21: note: 'coeff' was declared here
       HOST_WIDE_INT coeff;
                     ^
lto1: all warnings being treated as errors
make[4]: *** [/tmp/cczxSblr.ltrans1.ltrans.o] Error 1
make[4]: Target `all' not remade because of errors.
lto-wrapper: make returned 2 exit status
/home/innocent/gccDir/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [lto1] Error 1
In file included from ../../trunk/gcc/sel-sched-ir.c:4838:0,
                 from ../../trunk/gcc/dwarf2out.c:10910,
                 from :5665:
../../trunk/gcc/expmed.c: In function 'expand_mult':
../../trunk/gcc/expmed.c:3215:7: error: 'is_neg' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (is_neg && mode_bitsize > HOST_BITS_PER_WIDE_INT)
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:4825:0,
                 from ../../trunk/gcc/dwarf2out.c:10910,
                 from :5665:
../../trunk/gcc/expmed.c:3142:12: note: 'is_neg' was declared here
       bool is_neg;
            ^
In file included from ../../trunk/gcc/sel-sched-ir.c:4842:0,
                 from ../../trunk/gcc/dwarf2out.c:10910,
                 from :5665:
../../trunk/gcc/expmed.c:3236:7: error: 'coeff' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (choose_mult_variant (mode, coeff, &algorithm, &variant, max_cost))
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:4825:0,
                 from ../../trunk/gcc/dwarf2out.c:10910,
                 from :5665:
../../trunk/gcc/expmed.c:3141:21: note: 'coeff' was declared here
       HOST_WIDE_INT coeff;
                     ^
lto1: all warnings being treated as errors
make[4]: *** [/tmp/ccm2Zd0r.ltrans10.ltrans.o] Error 1
make[4]: Target `all' not remade because of errors.
lto-wrapper: make returned 2 exit status
/home/innocent/gccDir/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [cc1plus] Error 1
In file included from ../../trunk/gcc/sel-sched-ir.c:2485:0,
                 from ../../trunk/gcc/recog.h:190,
                 from :5675:
../../trunk/gcc/expmed.c: In function 'expand_mult':
../../trunk/gcc/expmed.c:3215:7: error: 'is_neg' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (is_neg && mode_bitsize > HOST_BITS_PER_WIDE_INT)
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2472:0,
                 from ../../trunk/gcc/recog.h:190,
                 from :5675:
../../trunk/gcc/expmed.c:3142:12: note: 'is_neg' was declared here
       bool is_neg;
            ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2489:0,
                 from ../../trunk/gcc/recog.h:190,
                 from :5675:
../../trunk/gcc/expmed.c:3236:7: error: 'coeff' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       if (choose_mult_variant (mode, coeff, &algorithm, &variant, max_cost))
       ^
In file included from ../../trunk/gcc/sel-sched-ir.c:2472:0,
                 from ../../trunk/gcc/recog.h:190,
                 from :5675:
../../trunk/gcc/expmed.c:3141:21: note: 'coeff' was declared here
       HOST_WIDE_INT coeff;
                     ^
lto1: all warnings being treated as errors
make[4]: *** [/tmp/cc288oPr.ltrans4.ltrans.o] Error 1
make[4]: Target `all' not remade because of errors.
lto-wrapper: make returned 2 exit status
/home/innocent/gccDir/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[3]: Target `all' not remade because of errors.
make[3]: Leaving directory `/home/innocent/gccDir/buildLTO/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Target `all-stage2' not remade because of errors.
make[2]: Leaving directory `/home/innocent/gccDir/buildLTO'
make[1]: *** [stage2-bubble] Error 2
make[1]: Target `stage3-bubble' not remade because of errors.
make[1]: Leaving directory `/home/innocent/gccDir/buildLTO'
make: *** [all] Error 2



More information about the Gcc-bugs mailing list