From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A15E13858D20; Tue, 1 Nov 2022 21:55:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A15E13858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667339746; bh=FRe6SOoIdlJfO/mhMbP6GkaqUFEb0c21upWOqhDP4vs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gH6YywY+Ue3t1l69es3ZBTY8hr/2SOAO2bQKdBTs0w4F6/sZkcrsUcovfvdmYZEs1 rlahTjHJ2z+1asXgGJiF6jcl3NDH0XH5wyV/Ej89Lj8VZ43J/hbFCEvdH3ZpHyuhtz YiylwCBHccMhBEG6+ZLWFSlS4tl1Y45tAtIxDlcg= From: "glaubitz at physik dot fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107498] Wrong optimization leads to unaligned access when compiling OpenLDAP Date: Tue, 01 Nov 2022 21:55:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de 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: attachments.created 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=3D107498 --- Comment #7 from John Paul Adrian Glaubitz --- Created attachment 53818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53818&action=3Dedit Pre-processed source of unmodified mdb.c (gzip-compressed) Here's the preprocessed source for mdb.c without marking the variables as volatile.=