From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9F603858C53; Thu, 22 Sep 2022 02:32:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9F603858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663813932; bh=yaUqAZ5iRRA7J1RDDSpniqUORRTKa7asD5EjiXijuGs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Vzmfpi6qKtTNu0lIusxkPYokXD/QkpZmuL5DeWV1Kq+tLhvHhpvhGkWlkVsNXu3U6 aBoW9xvSYQWko66MYvT4Mm2+KM2OkO4iemrXPD3AltSaafaEiV+Lql+/K8kCbfFva7 BIDd/vuXzW3qtckt1lEZRPMvby3UzDKS9w/GYFU8= From: "hpa at zytor dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/107006] Missing optimization: common idiom for external data Date: Thu, 22 Sep 2022 02:32:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hpa at zytor dot com 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: --- 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=3D107006 --- Comment #9 from H. Peter Anvin --- To clarify: the C test case produces the same output regardless if it is compiled as C or C++. Only the C++ wrapped class definition detects the additional case of a 32-bit bigendian load.=