https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81351
Bug ID: 81351 Summary: [8 regression] Many LTO testcases FAIL Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Target: i386-pc-solaris2.12, sparc-sun-solaris2.12 Between 20170705 (r250005) and 20170706 (r250037), many LTO testcases started to FAIL on Solaris/SPARC and x86: +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O0 -flto +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O0 -flto -flto-partition=1to1 +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O0 -flto -flto-partition=none +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O2 -flto +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O2 -flto -flto-partition=1to1 +FAIL: g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o execute -O2 -flto -flto-partition=none +FAIL: g++.dg/torture/pr49115.C -O2 -flto execution test +FAIL: g++.dg/torture/pr49115.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/pr60750.C -O2 -flto execution test +FAIL: g++.dg/torture/pr60750.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/pr68184.C -O2 -flto execution test +FAIL: g++.dg/torture/pr68184.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-alloca-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-alloca-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-alloca-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-alloca-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-fastcall-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-fastcall-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-fastcall-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-fastcall-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-global-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-global-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-global-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-global-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-inline-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-inline-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-inline-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-inline-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-inline-2.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-inline-2.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-inline-2.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-inline-2.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-thiscall-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-thiscall-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-thiscall-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-thiscall-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-2.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-2.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-2.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/eh-vararg-2.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/throw-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/throw-1.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-1.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-2.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/throw-2.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/throw-2.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-2.C -O2 -flto -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-3.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/throw-3.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/throw-3.C -O2 -flto -flto-partition=none -fpic execution test +FAIL: g++.dg/torture/stackalign/throw-3.C -O2 -flto -fpic execution test 32 and 64-bit sparc, 32-bit x86 only e.g. g++.dg/torture/pr49115.C: terminate called after throwing an instance of 'MyException' Abort +FAIL: gnat.dg/lto8.adb execution test 32 and 64-bit sparc, 32-bit x86 only +FAIL: g++.dg/torture/stackalign/unwind-0.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-0.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-1.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-1.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-2.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-2.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-3.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-3.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-4.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-4.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-5.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-5.C -O2 -flto -flto-partition=none execution test +FAIL: g++.dg/torture/stackalign/unwind-6.C -O2 -flto execution test +FAIL: g++.dg/torture/stackalign/unwind-6.C -O2 -flto -flto-partition=none execution test 32-bit x86 only I'll start a reghunt to identify the culprit, but the most likely candidates are changeset: 39310:fb513600eb4c user: hubicka@138bc75d-0d04-0410-961f-82ee72b054a4 date: Thu Jul 06 16:46:47 2017 +0000 files: gcc/ChangeLog gcc/cgraphunit.c gcc/lto/ChangeLog gcc/lto/lto-partit ion.c description: * cgraphunit.c (cgraph_node::finalize_function): When !flag_toplevel_reorde set no_reorder flag. (varpool_node::finalize_decl): Likewise. (symbol_table::compile): Drop no toplevel reorder path. * lto-partition.c (lto_balanced_map): Do not check flag_toplevel_reorder. changeset: 39311:a2df04e7a94b user: hubicka@138bc75d-0d04-0410-961f-82ee72b054a4 date: Thu Jul 06 16:47:20 2017 +0000 files: gcc/ChangeLog gcc/lto-wrapper.c description: * lto-wrapper.c (merge_and_complain): Do not merge fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno, fsigned_zeros, ftrapping_math, fwrapv. (append_compiler_options): Do not track these options. (append_linker_options): Likewie Rainer