https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103751

Martin Sebor <msebor at gcc dot gnu.org> 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 
gnu.org

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The reason for the unexpected warnings is that the test assumes that a struct
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 test.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
[Bug 56456] [meta-bug] bogus/missing -Warray-bounds

Reply via email to