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

            Bug ID: 60405
           Summary: ICE in lto1 on x86_64-linux-gnu
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The current gcc trunk produces an ICE in lto1 when attempting to link an object
file generated by 4.8.2. 

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 4.9.0 20140303 (experimental) [trunk revision 208268] (GCC) 
$   
$ gcc-4.8.2 -flto -O0 -c foo.c
$ 
$ gcc-trunk -flto -O0 foo.o
lto1: internal compiler error: Segmentation fault
0x89919f crash_signal
        ../../gcc-trunk/gcc/toplev.c:337
0xa57442 streamer_read_tree_bitfields(lto_input_block*, data_in*, tree_node*)
        ../../gcc-trunk/gcc/tree-streamer-in.c:547
0x79fe21 lto_read_tree_1
        ../../gcc-trunk/gcc/lto-streamer-in.c:1136
0x7a035c lto_read_tree
        ../../gcc-trunk/gcc/lto-streamer-in.c:1173
0x7a035c lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
        ../../gcc-trunk/gcc/lto-streamer-in.c:1294
0x4f9ac1 lto_read_decls
        ../../gcc-trunk/gcc/lto/lto.c:1961
0x4fbb83 lto_file_finalize
        ../../gcc-trunk/gcc/lto/lto.c:2214
0x4fbb83 lto_create_files_from_ids
        ../../gcc-trunk/gcc/lto/lto.c:2224
0x4fbb83 lto_file_read
        ../../gcc-trunk/gcc/lto/lto.c:2264
0x4fbb83 read_cgraph_and_symbols
        ../../gcc-trunk/gcc/lto/lto.c:2969
0x4fbb83 lto_main()
        ../../gcc-trunk/gcc/lto/lto.c:3406
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: gcc-trunk returned 1 exit status
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
$ 
$ 
$ cat foo.c
int 
main () 
{
  return 0;
}

Reply via email to