From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5B963858D35; Fri, 3 Sep 2021 01:31:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5B963858D35 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98908] [11 Regression] arithmetic involving struct members into operating on the entire struct fails at -O3 Date: Fri, 03 Sep 2021 01:31:33 +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: 11.0 X-Bugzilla-Keywords: missed-optimization 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: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc target_milestone bug_status resolution 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2021 01:31:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98908 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Failure to optimize |[11 Regression] arithmetic |arithmetic involving struct |involving struct members |members into operating on |into operating on the |the entire struct |entire struct fails at -O3 Target Milestone|9.0 |11.3 Status|RESOLVED |NEW Resolution|FIXED |--- --- Comment #10 from Andrew Pinski --- (In reply to Gabriel Ravier from comment #9) > PS: I had missed at the time that the bug wasn't present in GCC 10/9/8 > though, so perhaps it should be considered as having been a GCC 11 > regression that got fixed in trunk ? Oh -O2 is correct but -O3 is not. I just assumed -O2 because you never said what option you used. It is fixed again on the trunk. So this is still a regression in GCC 11 series.=