* [Bug lto/41565] using -m32 with LTO causes an ICE when the object files were compiled with 64bit
[not found] <bug-41565-4@http.gcc.gnu.org/bugzilla/>
2021-02-14 9:50 ` [Bug lto/41565] using -m32 with LTO causes an ICE when the object files were compiled with 64bit egallager at gcc dot gnu.org
@ 2021-12-26 2:59 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-26 2:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41565
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2017-08-07 00:00:00 |2021-12-25
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Still ICEs today on x86_64:
apinski@xeond:~/src$ ~/upstream-gcc/bin/gcc -m64 -c -flto t55.c
apinski@xeond:~/src$ ~/upstream-gcc/bin/gcc -m32 -flto t55.o
lto1: internal compiler error: in operator[], at vec.h:889
0x70f75e vec<edge_def*, va_gc, vl_embed>::operator[](unsigned int)
/home/apinski/src/upstream-gcc-git/gcc/gcc/vec.h:889
0x70f8a4 vec<tree_node*, va_heap, vl_embed>::operator[](unsigned int)
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1832
0x70f8a4 vec<tree_node*, va_heap, vl_ptr>::operator[](unsigned int)
/home/apinski/src/upstream-gcc-git/gcc/gcc/vec.h:1495
0x70f8a4 streamer_tree_cache_get_tree
/home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer.h:96
0x70f8a4 stream_read_tree_ref(lto_input_block*, data_in*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1819
0xff6c2d lto_input_ts_decl_minimal_tree_pointers
/home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer-in.c:710
0xff6c2d streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer-in.c:1061
0xc38a79 lto_read_tree_1
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1700
0xc39437 lto_read_tree
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1741
0xc39437 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1882
0x8ad04e lto_read_decls
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:1957
0x8adfef lto_file_finalize
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2269
0x8adfef lto_create_files_from_ids
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2279
0x8adfef lto_file_read
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2334
0x8adfef read_cgraph_and_symbols(unsigned int, char const**)
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2785
0x8961f2 lto_main()
/home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto.c:625
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: /home/apinski/upstream-gcc/bin/gcc returned 1 exit
status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
^ permalink raw reply [flat|nested] 2+ messages in thread