From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 281813858D1E; Mon, 26 Jun 2023 23:53:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 281813858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687823595; bh=GG0NtH59nIFkCAl+iIvFPgurgFQo6C30Ta1ZcfEzssw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EKwSSrKk/yZ8TqoKJa0q/y1SPxg7kROO5Be5WkYviO0Qa2Sz9olRMEadDqqawKbIs hs2UuA7Iefnnj43w8Y1MmOPUsmTRzxAk5+prDEU3YiU6zjpvJdAFypURrOLVnSPSjz UocES6uwm+jN+6dV3/jU09V4I/E61RV2rVYYjUJg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103979] asm goto is not considered volatile with output operands Date: Mon, 26 Jun 2023 23:53:14 +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: 11.2.0 X-Bugzilla-Keywords: ice-on-valid-code, inline-asm, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103979 --- Comment #6 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #3) > struct S { char a[64]; }; >=20 > int > foo (void) > { > struct S s, t; > asm goto ("" : "=3Dg" (s) : : : l); > t =3D s; > asm goto ("" : "=3Dg" (s) : : : l); > return s.a[0] + t.a[63]; > l: > return -1; > } >=20 That is going to be turned into a different issue ...=