https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
I have one more test-case that started to ICE since the same revision:

$ cat 3.i
int write_to_fftw_input_buffers_frames;
void write_to_fftw_input_buffers();

void write_to_fftw_input_buffers(short buf[write_to_fftw_input_buffers_frames *
2]) {
}

$ gcc -flto -O2 3.i -shared -fPIC
lto1: internal compiler error: Segmentation fault
0xc9f3df crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:330
0x7ffff7889d1f ???
       
/usr/src/debug/glibc-2.32-2.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xb40091 stream_read_tree_ref(lto_input_block*, data_in*)
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1832
0xec7319 lto_input_ts_exp_tree_pointers
        /home/marxin/Programming/gcc/gcc/tree-streamer-in.c:905
0xec7319 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
        /home/marxin/Programming/gcc/gcc/tree-streamer-in.c:1087
0xb3fa59 lto_read_tree_1
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1702
0xb4013d lto_read_tree
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1743
0xb4013d lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1884
0xb403d7 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned
int*, bool)
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1772
0xb40451 lto_input_tree(lto_input_block*, data_in*)
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1899
0xb424cb streamer_read_chain
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1334
0xb424cb input_function
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1364
0xb424cb lto_read_body_or_constructor
        /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1623
0x86eeed cgraph_node::get_untransformed_body()
        /home/marxin/Programming/gcc/gcc/cgraph.c:3936
0x87ad2d cgraph_node::expand()
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:1800
0x87c32f expand_all_functions
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:1997
0x87c32f symbol_table::compile()
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:2361
0x7d1d25 lto_main()
        /home/marxin/Programming/gcc/gcc/lto/lto.c:653
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Reply via email to