From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF3A23858C98; Tue, 27 Feb 2024 19:14:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF3A23858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709061248; bh=mFcE+5TZIgv1lWvTGPMPNTeX1NUl0Y0+wa0FsBfADy4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E9kEc90cwpYCNgT49Ue91S+uhSZChHHkzNGa4FR0iUbtwIYUvNHrSC9fofvNJ+iE+ OxuBhEvu5kTvARruvtZ53GkkEVSXFGVnBp7gOJvUGiia/vEru0xglN9KZB0gCBCA3K 0/3ieLoqWHgPk0KDWjrjuz0axXzRkWbuzED82ZLI= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114137] ICE when building lua-5.4.6 with -fharden-control-flow-redundancy on x86 (error: invalid rtl sharing found in the insn) Date: Tue, 27 Feb 2024 19:14:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114137 --- Comment #4 from Sam James --- I have another testcase where it works with -save-temps or the GC params. bibtexu-3.71_p20210325: ``` # i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DUNIX -DKPATHSEA -DU_DISABLE_RENAMING=3D1 -I/usr/include -DUTF_8 -Wimplicit -Wreturn-type = -O3 -pipe -march=3Di686 -fdiagnostics-color=3Dalways -mfpmath=3Dsse -msse -msse2 -fno-vect-cost-model -fharden-control-flow-redundancy -fpermissive -c -o bibtexu-bibtex-4.o bibtex-4.c -fharden-control-flow-redundancy during RTL pass: rtl pre In file included from bibtex-4.c:130: bibtex-4.c: In function =E2=80=98x_format_name=E2=80=99: sysdep.h:210:37: internal compiler error: Segmentation fault 210 | #define END } | ^ bibtex-4.c:1303:1: note: in expansion of macro =E2=80=98END=E2=80=99 1303 | END | ^~~ 0x579d3dc9 crash_signal /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/toplev.cc:= 319 0x586e7ff0 mark_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3364 0x586e6638 mark_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3416 0x586e6638 mark_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3411 0x586e6638 mark_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3411 0x586e6638 reset_used_flags(rtx_def*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3428 0x586e6638 reset_insn_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3094 0x586e6638 reset_all_used_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3111 0x586e4737 verify_rtl_sharing() =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3147 0x5832756c execute_function_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:= 2109 0x5832756c do_per_function /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:= 1687 0x5832756c execute_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:= 2142 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. ``` For both test cases, -fno-harden-control-flow-redundancy also suppresses the ICE.=