From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72CEF3858D37; Sun, 19 Nov 2023 01:48:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72CEF3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700358499; bh=R9DWR3/kAxkfKA44oZSaX1UEpI5VI3Vj3raEBTtmyCc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wXWQv09MkH0THSswbYYJ9QpCNvNiGbY65Q3ErMIuaqQVsA29cCov5iQeEtVqPzUUQ C6V/MLj/O+GVi5BEEYGeJZFAm9UqdWra5VGkCI7+eTvrHznHboKNa9E/k5c8Sw0C6r mr/wcr2tyfISiiOB6wHNdx0Z54cVh+fyNW0AZHR8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112615] gcc incorrectly assumes char *x[2]={"str1", "str2"} has 16-byte minimum alignment and generates SSE instructions (e.g. movaps) when accessing this data Date: Sun, 19 Nov 2023 01:48:17 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: bug_status resolution 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=3D112615 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- Well the x86_64 SYSV ABI says: An array uses the same alignment as its elements, except that a local o= r=20 global array variable that requires at least 16 bytes, or a C99 local o= r=20 global variable-length array variable, always has alignment of at least= 16=20 bytes.[4] So I think this is not a bug in GCC or glibc but rather `Oracle 21c`. Notice how it says global array variable.=