https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105012
Bug ID: 105012 Summary: [12 Regression] wrf from SPECCPU2017 ICEs during LTO linking Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: tnfchris at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Target: aarch64-* wrf when linking with -mcpu=native -Ofast -fomit-frame-pointer -flto=auto --param ipa-cp-eval-threshold=1 --param ipa-cp-unit-growth=80 (have not reduced flags yet) fails during final link with: during GIMPLE pass: ifcvt module_cam_mp_ndrop.fppized.f90: In function 'dropmixnuc': module_cam_mp_ndrop.fppized.f90:33:27: internal compiler error: Segmentation fault 33 | subroutine dropmixnuc(lchnk, ncol, ncldwtr,tendnd, temp,omega, & | ^ 0xb9bee3 crash_signal /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/toplev.cc:322 0xc93978 first_imm_use_stmt /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/ssa-iterators.h:932 0xc93978 dse_classify_store(ao_ref*, gimple*, bool, simple_bitmap_def*, bool*, tree_node*) /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/tree-ssa-dse.cc:954 0xbf9263 ifcvt_local_dce /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/tree-if-conv.cc:3154 0xbfe1b7 tree_if_conversion(loop*, vec<gimple*, va_heap, vl_ptr>*) /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/tree-if-conv.cc:3383 0xc000af execute /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/tree-if-conv.cc:3461 0xc000af execute /data/tamar/ci/work/5c94c4ced6ebfcd0/gcc/tree-if-conv.cc:3449 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[1]: *** [/opt/buildAgent/temp/buildTmp/ccGjHi3g.ltrans8.ltrans.o] Error 1 This has started somewhere between g:79e210f0c8e1fad875333e93b5ae2fe9b4879b7a and g:9fc8f278ebebc57537dc0cb9d33e36d932be0bc3 Sorry for the lack of a small reproducer, still need to learn how to reduce LTO cases properly.. Note that this range does contain a fix for the threader failure for wrf in PR102943 but not sure if related.