https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123888
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
g++ -fstack-protector-strong -fstrict-flex-arrays=1 -fno-rtti
-fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections
-fno-math-errno -fno-exceptions -fPIC -O2 -g1 -fstack-protector-strong -m64
-march=x86-64 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -mtls-dialect=gnu2
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpermissive -O3
-fomit-frame-pointer -funwind-tables -r -flinker-output=nolto-rel -o libxul.o
-flto=32 -flifetime-dse=1 Unified_cpp_netwerk_base{3,4}.o
unfortunately ICEs given the above input (at least with r16-7159):
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.cc:248
0x29c1fff internal_error(char const*, ...)
../../gcc/diagnostic-global-context.cc:787
0xb0075d fancy_abort(char const*, int, char const*)
../../gcc/diagnostics/context.cc:1812
0x405584 add_symbol_to_partition_1
../../gcc/lto/lto-partition.cc:248
0xb4d567 add_references_to_partition
../../gcc/lto/lto-partition.cc:144
0xb4d6b3 add_symbol_to_partition_1
../../gcc/lto/lto-partition.cc:221
0xb4d567 add_references_to_partition
../../gcc/lto/lto-partition.cc:144
0xb4d6b3 add_symbol_to_partition_1
../../gcc/lto/lto-partition.cc:221
0xb4d7f1 add_symbol_to_partition_1
../../gcc/lto/lto-partition.cc:211
0xb4d7f1 add_symbol_to_partition_1
../../gcc/lto/lto-partition.cc:211
0xb508ca lto_balanced_map(int, int)
../../gcc/lto/lto-partition.cc:1288
0xb40b0a do_whole_program_analysis
../../gcc/lto/lto.cc:560
0xb40b0a lto_main()
../../gcc/lto/lto.cc:675