From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3EA4384C002; Wed, 31 Mar 2021 12:51:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3EA4384C002 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/98601] [8/9/10/11 Regression] aarch64: ICE in rtx_addr_can_trap_p_1, at rtlanal.c:467 Date: Wed, 31 Mar 2021 12:51:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed cf_reconfirmed_on keywords 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: Wed, 31 Mar 2021 12:51:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98601 Alex Coplan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-03-31 Keywords| |ice-on-valid-code --- Comment #4 from Alex Coplan --- richi: thanks for the pointers. I agree it looks like this should be valid. E.g. the very reasonable: void foo(void *p) { asm volatile ("str xzr, %0" : "=3DQ"(*p)); } gives: foo: str xzr, [x0] ret at -O2 on AArch64. (Dropping the volatile in this case reproduce the ICE.) I bisected the ICE to r8-7484-g532c7a45847f3401e26fa2f07e52613891c80718: commit 532c7a45847f3401e26fa2f07e52613891c80718 Author: Jakub Jelinek Date: Fri Mar 23 20:55:40 2018 re PR inline-asm/85022 (internal compiler error: in write_dependence_p,= at alias.c:3003) PR inline-asm/85022 * emit-rtl.c (init_emit_regs): Indicate that VOIDmode MEMs don't have known size by default.=