From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F7E53858422; Sat, 6 May 2023 18:14:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F7E53858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683396890; bh=g+btNMBdaJvYpOJREy6XbqRlWmw3s5DcuVkGVbbIkEY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bGwwwhey8wBIrw9g0svcDQiJ+ySWef1GLBXFa5s95mqD0zLSo52ltaQ2aAcoahf38 rOVg4Oxy4qHTxDw4+rNKsjyDLptX99wlppBYgTULq7sQvOXOtvrORBY9FrOWjV0gKd Ntt+UbgAqT8/GqGIE1ZmKXbba3B6imI7PXx7FYnY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45221] missed optimization with multiple bases and casting Date: Sat, 06 May 2023 18:14:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone resolution cf_known_to_work bug_status 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=3D45221 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0 Resolution|--- |FIXED Known to work| |8.1.0, 9.1.0 Status|NEW |RESOLVED --- Comment #12 from Andrew Pinski --- foo1 is fixed in GCC 8.=20 foo2 (and foo1 before GCC 8) produces a trap instruction since GCC 4.9.0. That is foo2 produces: testq %rdi, %rdi je .L4 movl 4(%rdi), %eax ret .L4: movl 8, %eax ud2 So I think I can close this as fixed.=