From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 125BB3857C7A; Wed, 31 Mar 2021 21:11:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 125BB3857C7A From: "m.frohiky at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99847] Optimization breaks alignment on CPU32 Date: Wed, 31 Mar 2021 21:11:50 +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: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: m.frohiky at gmail dot com 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 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: Wed, 31 Mar 2021 21:11:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99847 --- Comment #4 from =E2=8E=93 --- Hmm... I was hoping to get away with the readily available compiler, and I thought that it's actually used for CPU32. Ok, I'll try then with a specific one tomorrow. But still, ABI can't request that all bytes in a uint8_t array are aligned.= I mean, you can never expect uint8_t pointer to be aligned, regardless of the used ABI. On the other hand, according to Wiki: > The 68020 had no alignment restrictions on data access. So that could explain it. If it really is the wrong compiler kind, then I've gotta admit, this is the second time something like that happened to me because of my laziness to bu= ild a compiler. Shouldn't the old and new m68k be separated or something, so a problem like this can't happen? Maybe another issue for that?=