From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D59A7385842B; Thu, 30 Sep 2021 20:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D59A7385842B From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c Date: Thu, 30 Sep 2021 20:53:48 +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: dcb314 at hotmail dot com 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: 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, 30 Sep 2021 20:53:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102285 --- Comment #11 from David Binderman --- (In reply to qinzhao from comment #10) > 2734 /* The heuristic of fold_builtin_alloca_with_align differs git blame says: 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2732) = /* 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) = if (gimple_call_builtin_p (stmt, BUILT_IN_ALLOCA_WITH_ALIGN) 9e878cf1bae7 (Eric Botcazou 2017-10-19 15:58:05 +0000 2736) = || 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=20=20 { 13e49da934e9 (Tom de Vries 2011-10-07 12:49:49 +0000 2738)=20=20= =20=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=20=20=20 if (new_rhs) 5d882cc1dafe (Richard Guenther 2011-09-02 11:53:55 +0000 2740) = { 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) = } 1fed1006552c (Tom de Vries 2011-08-31 07:04:25 +0000 2746)=20=20= =20=20=20=20=20=20=20=20 } so at least Tom, Eric and Richard have been in there.=