From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B001C3858C2C; Fri, 1 Oct 2021 09:45:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B001C3858C2C From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c Date: Fri, 01 Oct 2021 09:45:53 +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: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also 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: Fri, 01 Oct 2021 09:45:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102285 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg, | |egallager at gcc dot gnu.o= rg, | |rguenth at gcc dot gnu.org, | |vries at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D82421 --- Comment #14 from Eric Gallager --- (In reply to David Binderman from comment #11) > (In reply to qinzhao from comment #10) >=20 > > 2734 /* The heuristic of fold_builtin_alloca_with_align differs >=20 > git blame says: >=20 >=20 > 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2732)=20= =20=20=20=20=20=20=20 > /* The heuristic of fold_builtin_alloca_with_align differs before and > 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2733)=20= =20=20=20=20=20 > after inlining, so we don't require the arg to be changed into a > 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2734)=20= =20=20=20=20=20 > constant for folding, but just to be constant. */ > 9e878cf1bae7 (Eric Botcazou 2017-10-19 15:58:05 +0000 2735)=20= =20=20=20=20=20=20=20 > if (gimple_call_builtin_p (stmt, BUILT_IN_ALLOCA_WITH_ALIGN) > 9e878cf1bae7 (Eric Botcazou 2017-10-19 15:58:05 +0000 2736)=20= =20=20=20=20=20=20 > || gimple_call_builtin_p (stmt, BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX)) > 1fed1006552c (Tom de Vries 2011-08-31 07:04:25 +0000 2737)=20= =20=20=20=20=20=20=20 > { > 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2738)=20= =20=20=20=20=20=20=20 > tree new_rhs =3D fold_builtin_alloca_with_align (stmt); > 5d882cc1dafe (Richard Guenther 2011-09-02 11:53:55 +0000 2739)=20= =20=20=20=20=20=20=20 > if (new_rhs) > 5d882cc1dafe (Richard Guenther 2011-09-02 11:53:55 +0000 2740)=20= =20=20=20=20=20=20=20 > { > 52a5515ed661 (Richard Biener 2021-04-14 13:40:58 +0200 2741)=20= =20=20=20=20=20=20 > gimplify_and_update_call_from_tree (gsi, new_rhs); > 2f31f742a693 (Tom de Vries 2011-12-17 11:39:43 +0000 2742)=20= =20=20=20=20=20=20 > tree var =3D TREE_OPERAND (TREE_OPERAND (new_rhs, 0),0); > 2f31f742a693 (Tom de Vries 2011-12-17 11:39:43 +0000 2743)=20= =20=20=20=20=20=20 > insert_clobbers_for_var (*gsi, var); > 5d882cc1dafe (Richard Guenther 2011-09-02 11:53:55 +0000 2744)=20= =20=20=20=20=20=20 > return true; > 5d882cc1dafe (Richard Guenther 2011-09-02 11:53:55 +0000 2745)=20= =20=20=20=20=20=20=20 > } > 1fed1006552c (Tom de Vries 2011-08-31 07:04:25 +0000 2746)=20= =20=20=20=20=20=20=20 > } >=20 > so at least Tom, Eric and Richard have been in there. cc-ing them=