From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 303DD386075C; Sun, 18 Feb 2024 03:01:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 303DD386075C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708225261; bh=1t4/mzy6ekiEERjVzCnxFeb4b1bTSddJ2Cl2DFTMvmU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tihPFr1jmMJOMGuWcUvFPbtv4uQPO+7GQZJkEpcH6rf/lDkMMB07wf081T6ekbN7G 3xXwzQxRf/RbEiPHbTAaadydfxWFnFmPgfMvsj5hUmYAV6tmfrlqQtMa4LH41yXa1F NlXVE0LC+J2GJ3upOgzMaEKqazpRV2Wb44R5saXA= From: "pinskia at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug compile/31397] arrays with structs with arrays gets the wrong alignment Date: Sun, 18 Feb 2024 03:01:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: compile X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31397 --- Comment #2 from Andrew Pinski --- This was originally reported on the gcc side (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113977) but the debug info = seems correct. Since the default alignment is specified, it seems like gcc_convert_symbol is adding the wrong alignment for the struct which causes gcc to reject the array definition. The alignment of s7, s8, and s9 are all= 1 since it has an array of char's. --=20 You are receiving this mail because: You are on the CC list for the bug.=