From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80357385E459; Tue, 22 Mar 2022 10:37:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80357385E459 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/105012] [12 Regression] wrf from SPECCPU2017 ICEs during LTO linking Date: Tue, 22 Mar 2022 10:37:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2022 10:37:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105012 --- Comment #3 from Martin Li=C5=A1ka --- Created attachment 52661 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52661&action=3Dedit ltrans object file I have a small LTRANS reproducer: $ ./lto1 -fltrans /home/marxin/Programming/testcases/wrf_r.ltrans.o Reading object files: /home/marxin/Programming/testcases/wrf_r.ltrans.o {GC 2365k} {heap 1168k} Reading the symbol table: Merging declarations: {GC 2414k} {heap 1168k} Reading summaries: {GC 2414k} {heap 1168k} {GC 2414k} {heap 1168k} {GC 24= 14k} {heap 1168k} {GC 2414k} {heap 1168k} {GC 2422k} {heap 1168k} {GC 24= 22k} {heap 1168k} {GC 2422k} {heap 1168k} {GC 2422k} {heap 1168k} {GC 2422k}= =20 {heap 1168k} {GC 2426k} {heap 1168k} {GC 2426k} {heap 1168k} {GC 2426k} {heap 1168k} {GC 2426k} {heap 1168k} {GC 2426k}=20 {heap 1168k} {GC 2426k} in:q.4.lto_priv.0 in:p.5.lto_priv.0 in:d.6.lto_pri= v.0 in:c.7.lto_priv.0 in:b.8.lto_priv.0 in:a.9.lto_priv.0 in:supersat.2.lto_priv.0Reading function bodies: Performing interprocedural optimizations Assembling functions: {heap 1168k} dropmixnuc.constprop in:__ndrop_MOD_dropmixnuc in:__error_function_MOD_calerf_r8 in:__error_function_MOD_derf in:__module_cam_support_MOD_endrun in:wrf_message_ in:wrf_error_fatal_ in:__module_cam_support_MOD_endrun.part.0 in:__ndrop_MOD_loadaer in:__ndrop_MOD_ccncalc in:__module_cam_support_MOD_outfld {GC madv_dontneed 264k} {GC 6209k -> 3650k} {GC madv_dontneed 652k} {GC 5337k -> 3807k}during GIMPLE pass: ifcvt ../../../../home/marxin/Programming/cpu2017/benchspec/CPU/521.wrf_r/build/b= uild_peak_gcc-m64.0001/module_cam_mp_ndrop.fppized.f90: In function =E2=80=98dropmixnuc.constprop=E2=80=99: ../../../../home/marxin/Programming/cpu2017/benchspec/CPU/521.wrf_r/build/b= uild_peak_gcc-m64.0001/module_cam_mp_ndrop.fppized.f90:33:27: internal compiler error: Segmentation fault 0x135c4fb crash_signal /home/marxin/Programming/gcc/gcc/toplev.cc:322 0x7ffff78b93cf ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.35-2.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_= 64/libc_sigaction.c:0 0xb02a60 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/marxin/Programming/gcc/gcc/tree.h:3450 0x15369e3 first_imm_use_stmt /home/marxin/Programming/gcc/gcc/ssa-iterators.h:931 0x15390e6 dse_classify_store(ao_ref*, gimple*, bool, simple_bitmap_def*, bo= ol*, tree_node*) /home/marxin/Programming/gcc/gcc/tree-ssa-dse.cc:954 0x141afe1 ifcvt_local_dce /home/marxin/Programming/gcc/gcc/tree-if-conv.cc:3154 0x141b89f tree_if_conversion(loop*, vec*) /home/marxin/Programming/gcc/gcc/tree-if-conv.cc:3383 0x141bb02 execute /home/marxin/Programming/gcc/gcc/tree-if-conv.cc:3461 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Richi: Can you please debug this?=