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.
It is caused by revision 168420: http://gcc.gnu.org/ml/gcc-cvs/2011-01/msg00036.html
I can reproduce the failure, let me try to fix it.
The easiest way to reproduce is to configure gcc with --enable-languages=c --with-build-config=bootstrap-lto
Restoring the bug status and priority which I believe were inadvertently modified with the previous comment.
Proposed fix posted to the mailing list: http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00161.html
Author: hjl Date: Wed Jan 5 14:55:27 2011 New Revision: 168515 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168515 Log: Fix PR lto/47162. 2011-01-05 Martin Jambor <mjambor@suse.cz> PR lto/47162 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk deltas on streamed outgoing edges. (output_node_opt_summary): Output info for outgoing edges only when the node is in new parameter set. (output_cgraph_opt_summary): New parameter set, passed to the two aforementioned functions. Update its forward declaration and its callee too. Modified: trunk/gcc/ChangeLog trunk/gcc/lto-cgraph.c
Fixed.