From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 413BD3858D1E; Wed, 9 Nov 2022 15:48:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 413BD3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668008895; bh=+BvAGj+lfKHqK/7B0txyAMPlpWVw9wu2unBvFI/3WwM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wUbqEJSGlYyScH76c+MsR/X6hMNr7SAMnoc79XpFnDzM3u1pmgIdoZtYFMhjv70aL ctnqF/1l37hgHE1rG54+a2unsMzZaHgvNWHeAebBs3T5FAItAgNTQIY84sxReoQ2gb NTcv7K2t3qhZjqPLQTYXs7XIrv9mB7jSLIj1Ws4U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107590] __atomic_test_and_set broken on PowerPC Date: Wed, 09 Nov 2022 15:48:15 +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: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D107590 --- Comment #2 from Andrew Pinski --- >Reason: 259 at address: 0x00003109 Yes that does seem like an alignment disagreement. I suspect the code is broken for allocation and it is allocating unaligned structs. Also inside gdb can you do the following: disassemble $pc-0x10 $pc+0x10 info registers=