public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/65254] New: libiberty produces using extended field designator is an extension warnings in clang
@ 2015-02-28 21:39 howarth at bromo dot med.uc.edu
0 siblings, 0 replies; only message in thread
From: howarth at bromo dot med.uc.edu @ 2015-02-28 21:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65254
Bug ID: 65254
Summary: libiberty produces using extended field designator is
an extension warnings in clang
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: howarth at bromo dot med.uc.edu
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-28 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-28 21:39 [Bug other/65254] New: libiberty produces using extended field designator is an extension warnings in clang howarth at bromo dot med.uc.edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).