From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DE6C3858401; Tue, 1 Nov 2022 17:08:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DE6C3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667322537; bh=q3murE1bRKNnAYUbejQs5cy3kNjy8SuPOkMKZ+7eoxk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C3ZO4ukmdw/VztTwAH5SutLRf6xogHJahnBsgUh1lqfq6QuTwCMuJ/wY8bcX3PcPK jzO/utLIWol7Rrn/OMzojdv2BZ0QbSi1cU5gtTHSEBhtqzLHh8WvHRY7JRnJo1Pegi lRKcyRwIbxxJccVcyqZonsEdRPESfEf0nT/Uarts= 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 17:08:57 +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: UNCONFIRMED 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 #3 from John Paul Adrian Glaubitz --- Created attachment 53814 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53814&action=3Dedit Pre-processed source of mdb.c (gzip-compressed) Source code file in OpenLDAP git tree is =C2=BBlibraries/liblmdb/mdb.c=C2= =AB and was compiled with: $ /bin/sh ../../../libtool --tag=3Ddisable-shared --mode=3Dcompile cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -I./../../../libraries/liblmdb -c ./../../../libraries/liblmdb/mdb.c from the sub-directory =C2=BBservers/slapd/back-mdb=C2=AB. Attaching the preprocessed source.=