[Bug c/88583] New: -Wpacked-not-aligned shouldn't be in -Wall

andi-gcc at firstfloor dot org gcc-bugzilla@gcc.gnu.org
Sun Dec 23 19:15:00 GMT 2018


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

            Bug ID: 88583
           Summary: -Wpacked-not-aligned shouldn't be in -Wall
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org
  Target Milestone: ---

gcc 9 added -Wpacked-not-aligned to Wall. In Linux kernel builds this warning
is very noisy. There's a Linux kernel patch now to disable it. But I suspect
other software using packed will be affected too.

It's especially pointless on x86 where unaligned only matters in some special
cases (with vectors)

When the programmer specified packed they should know what they are doing.


More information about the Gcc-bugs mailing list