From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 037553858426; Thu, 19 Oct 2023 11:12:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 037553858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697713969; bh=7QAEvRkiWcLvlH6BoQXtnKCnBXe7tEcz4qv0lua9/A8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NdTTgMnmvXA0VJJXE29U8MknSAIvN+zfe+rVUwkVVVEiqM5j0wnYt37pr3jD1t33P eBe0U8TJH9z60OUpDQrmrtWMPZMR7yEsYEi5BTVGTWQqe7h8GtDmWRIYTjyL+MEsSu 76hUEkLdX6HKQoM1ovJ+1Q6FvEpsVESSnq0XLBAQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3 Date: Thu, 19 Oct 2023 11:12:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw 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=3D111591 --- Comment #23 from Richard Biener --- A less strict patch would remember whether all accesses to the decls coales= ced have accesses compatible with a common effective type (just checking whether all decls have the same type isn't enough, even when they are not addressable!), so it's going to be a bit awkward to check - an IL walk noting per decl whether all accesses conform to its declared type might be a good first ste= p, but with C++ abstraction we will likely end up with not many cases that can be easily identifyable as doing so.=