From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74BEB385517A; Sun, 4 Dec 2022 05:55:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74BEB385517A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670133349; bh=wRPX5rEtaMJzTkVVR8L+tOOgVHrruxwb85oOIfwbOtg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f3sB6BnpVD7Jsok/x3x2aZvGt7ZQo6EVlNwVgCY+jRaPhGP8mx5Fb7NiUpSO/F7Zv pJm0WqZa1RZj2kQF2qIb70qKWm8FnYlGNw9tqNGj7gfjkhqcN+oO0RVR7V2SZcr7ES sNN62HikdQjgeyJd0v74az6bL/Sg3n2nBuiLTR00= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71383] Misoptimized branch with inline assembly code. Date: Sun, 04 Dec 2022 05:55:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: documentation, 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=3D71383 --- Comment #3 from Andrew Pinski --- If you marked the variable as used the branch comes back. This definitely should be referenced too. https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Common-Variable-Attributes.ht= ml#index-used-variable-attribute=