https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65254
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |87403
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> (In reply to Jack Howarth from comment #0)
> > The simple-object-xcoff.c file in libiberty produces a number of warnings of
> > the form...
> >
> > ./../../gcc-5-20150228/libiberty/simple-object-xcoff.c:330:12: warning:
> > using extended field designator is an extension [-Wextended-offsetof]
> > + offsetof (struct external_filehdr,
> > ^
> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.
> > xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:87:24: note: expanded
> > from macro
> > 'offsetof'
> > #define offsetof(t, d) __builtin_offsetof(t, d)
> > ^
> >
> > under the clang compiler as "offsetof(T, field,subfield)" and "offsetof(T,
> > arr[3])" are C/C++ extensions and only "offsetof(T, field)" is standard.
> > Shouldn't these be recoded to use the standard form?
>
> Furthermore, it'd be a good idea if gcc supported the -Wextended-offsetof
> flag, too, like clang does.
Since at least part of this bug is adding the -Wextended-offsetof flag, making
this block the meta-bug for adding new warnings.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403
[Bug 87403] [Meta-bug] Issues that suggest a new warning