From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BA7E83858C30; Tue, 7 Mar 2023 17:28:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA7E83858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678210115; bh=q5Y+wdRJtJf1YNVKRYJ5l4+Q0TbHXLUt1IgmufoFBek=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e1WuZkwFp17KdfLAU3fhwm/q3ILhaCq0D81lGx2KYD3v/dYMWxeW9jl9U0rQ+wDaU wCHfQZgKFTLzv44oCeTXc+dbnfrbKAfo5UQViFfCzyJTOwZDG2f1cqfO3fG9osgOIH VWp7jbFOPwKniK42t+89Agb7rJmopuZHGSKnbW08= From: "hbucher at gmail dot com" 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:28:35 +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: hbucher at gmail dot com 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 #4 from Henry --- Yes it is optimized away. Note that even in this case the entire static array is optimized away from = the object file.=