From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A8209385802E; Wed, 31 Mar 2021 11:41:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8209385802E From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98601] [8/9/10/11 Regression] aarch64: ICE in rtx_addr_can_trap_p_1, at rtlanal.c:467 Date: Wed, 31 Mar 2021 11:41:45 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component 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 11:41:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98601 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |target --- Comment #2 from Richard Biener --- Note for 'm' constraints (*b) might be preferred over (*(non-void *)b), esp. if used in address context. The generic code rejects it on x86_64 here: #1 0x0000000000a8c37c in build_asm_expr (loc=3D262658, string=3D,=20 outputs=3D, inputs=3D, clobbers=3D<= tree 0x0>, labels=3D,=20 simple=3Dfalse, is_inline=3Dfalse) at /home/rguenther/src/gcc3/gcc/c/c-typeck.c:10669 10669 error_at (loc, "invalid use of void expression"); (gdb) l 10664 output =3D error_mark_node; 10665 if (!(!allows_reg && allows_mem) 10666 && output !=3D error_mark_node 10667 && VOID_TYPE_P (TREE_TYPE (output))) 10668 { 10669 error_at (loc, "invalid use of void expression"); 10670 output =3D error_mark_node; but it looks like Q is a memory constraint on arm? If so then I don't see why it should be invalid.=