From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C18AE38515F6; Thu, 5 May 2022 13:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C18AE38515F6 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105409] ICE in simplify_subreg, at simplify-rtx.cc:7351 Date: Thu, 05 May 2022 13:59:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE 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 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: Thu, 05 May 2022 13:59:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105409 --- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE --- > It seems gm2 omits CC1_SPEC from the cc1/cc1plus invocation in > gcc/m2/m2-link-support.h. Indeed: the following trivial patch works wonders indeed: diff --git a/gcc/m2/m2-link-support.h b/gcc/m2/m2-link-support.h --- a/gcc/m2/m2-link-support.h +++ b/gcc/m2/m2-link-support.h @@ -52,7 +52,7 @@ along with GCC; see the file COPYING3.=20=20 compiler. */ #define GM2CC(INPUT,OUTPUT) \ - "%{!fno-exceptions:cc1plus;:cc1} " GM2CC_OPTIONS " " INPUT " \ + "%{!fno-exceptions:cc1plus;:cc1} %1 " GM2CC_OPTIONS " " INPUT " \ -o %d" SCAFFOLDNAME ".s \n\ " AS(SCAFFOLDNAME ".s",OUTPUT) " " With it, I get the following test results on sparcv9-sun-solaris2.11: =3D=3D=3D gm2 Summary for unix =3D=3D=3D # of expected passes 11721 # of unexpected failures 7 # of unresolved testcases 1 =3D=3D=3D gm2 Summary for unix/-m32 =3D=3D=3D # of expected passes 11706 # of unexpected failures 22 # of unresolved testcases 1 =3D=3D=3D gm2 Summary =3D=3D=3D # of expected passes 23427 # of unexpected failures 29 # of unresolved testcases 2=