From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 131BB3858D35; Thu, 16 Dec 2021 19:29:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 131BB3858D35 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/103751] FAIL: gcc.dg/Warray-bounds-48.c (test for excess errors) Date: Thu, 16 Dec 2021 19:29:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: blocked keywords target_milestone everconfirmed cf_reconfirmed_on bug_status component assigned_to 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: Thu, 16 Dec 2021 19:29:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103751 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|56456 | Keywords| |diagnostic Target Milestone|--- |12.0 Ever confirmed|0 |1 Last reconfirmed| |2021-12-16 Status|UNCONFIRMED |ASSIGNED Component|middle-end |testsuite Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org --- Comment #2 from Martin Sebor --- The reason for the unexpected warnings is that the test assumes that a stru= ct with just two members, a 32-bit int followed by a 16-bit int, is padded to 64-bits. That a valid assumption on many but not all targets. The m68k-*-* target aligns 32-bit integers on a 16-bit boundary and so it doesn't add any tail padding to such a struct, so the warnings are valid. Let me fix the t= est. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56456 [Bug 56456] [meta-bug] bogus/missing -Warray-bounds=