On Thu, Aug 17, 2017 at 6:52 AM, Joseph Myers wrote: > On Sat, 8 Jul 2017, H.J. Lu wrote: > >> +@item -Wpacked-not-aligned @r{(C, C++, Objective-C and Objective-C++ only)} >> +@opindex Wpacked-not-aligned >> +@opindex Wno-packed-not-aligned >> +Warn if a structure field with explicitly specified alignment in a >> +packed struct or union is misaligned. For example, a warning will >> +be issued on @code{struct S}, like, @code{warning: alignment 1 of >> +'struct S' is less than 8}, in this code: > > Use @samp for warnings quoted in the manual, as previously discussed. > > OK with that change, in the absence of C++ maintainer objections within 48 > hours. > Here is the updated patch. I moved c++ changes to merge_decls, where alignment is merged, and check_bitfield_type_and_width, where bit-fields are checked. Tested on x86-64 and i686. -- H.J.