From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C4203858C30; Tue, 7 Mar 2023 17:29:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4203858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678210174; bh=7jPk//gtknHO5vNlPih40mrqowDa3wiptjwBPdcfdY0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yDwKhYC4HkvyBjbiyb3WQgosrgC+kqZNcmkqASmDUhCdHclZPZKcv9uXWhLNDJEdy hTFVfqhht74ezuDY0h+UPeL+ZYTnrikulPu4lZi21AdkFDAw4M9bLCaaq9sYQHjEQT BXsQjnrW41M7eTQOjlJMPZ4oJq1kM7LCqj5P3neg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109057] Does GCC interpret assembly when deciding to optimize away a variable? Date: Tue, 07 Mar 2023 17:29:34 +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: unknown X-Bugzilla-Keywords: inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109057 --- Comment #5 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #2) > No it is not. you just don't notice it there because goldbolt is hiding > things because it thinks it is unused. This actually isn't godbolt hiding anything (which it does sometimes), but because nothing is printed in the asm nothing needs to be printed into the assembly output. It still acts as a black box to the compiler.=