http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47162
Summary: [4.6 Regression] LTO is broken Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: hjl.to...@gmail.com On Linux/x86-64, revision168439 gave: /export/gnu/import/svn/gcc-test/bld/./prev-gcc/xgcc -B/export/gnu/import/svn/gcc-test/bld/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -flto=jobserver -fuse-linker-plugin -frandom-seed=1 -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 -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genconstants \ build/genconstants.o build/read-md.o build/errors.o .././libiberty/libiberty.a lto1: internal compiler error: bytecode stream: trying to read 0 bytes after the end of the input buffer Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[7]: *** [/tmp/cc7rbITJ.ltrans0.ltrans.o] Error 1 lto-wrapper: make returned 2 exit status /usr/local/x86_64-unknown-linux-gnu/bin/ld: lto-wrapper failed collect2: ld returned 1 exit status make[6]: *** [build/genconstants] Error 1 make[6]: *** Waiting for unfinished jobs.... lto1: internal compiler error: bytecode stream: expected tag tree_list instead of LTO_UNKNOWN Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[7]: *** [/tmp/cc2SG2hC.ltrans2.ltrans.o] Error 1 make[7]: *** Waiting for unfinished jobs.... lto-wrapper: make returned 2 exit status /usr/local/x86_64-unknown-linux-gnu/bin/ld: lto-wrapper failed collect2: ld returned 1 exit status make[6]: *** [build/genenums] Error 1 rm gcj-dbtool.pod jcf-dump.pod jv-convert.pod grmic.pod gcj.pod gc-analyze.pod cpp.pod gfdl.pod gij.pod gcc.pod gcov.pod gfortran.pod fsf-funding.pod make[6]: Leaving directory `/export/gnu/import/svn/gcc-test/bld/gcc' make[5]: *** [all-stage2-gcc] Error 2 make[5]: Leaving directory `/export/gnu/import/svn/gcc-test/bld' make[4]: *** [stage2-bubble] Error 2 make[4]: Leaving directory `/export/gnu/import/svn/gcc-test/bld' make[3]: *** [bootstrap] Error 2 make[3]: Leaving directory `/export/gnu/import/svn/gcc-test/bld' and benchspec/CINT2000/176.gcc/run/00000001/make.err: lto1: internal compiler error: bytecode stream: trying to read 0 bytes after the end of the input buffer Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [/tmp/ccWt9u22.ltrans4.ltrans.o] Error 1 lto-wrapper: make returned 2 exit status /usr/local/bin/ld: lto-wrapper failed collect2: ld returned 1 exit status Revision 168415 is OK.