https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285
--- Comment #4 from joseph at codesourcery dot com ---
Note that all the standard C pragmas are even more restricted than GCC's
statement-like pragmas - the standard pragmas (which aren't implemented in
GCC) are defined by the C standard to be
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285
--- Comment #2 from Konrad Schwarz ---
Thank you for your suggestion -- it does indeed work.
However, this is a workaround for this specific problem --
other pragmas cannot be handled in this way --
consider # pragma GCC optimize ... or # pragma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285
--- Comment #1 from Andrew Pinski ---
Isn't it better to do:
# defineENCLOSING_OBJECT(TYPE, MEMBER, OBJECT)\
((void)sizeof (&((TYPE *) 0)->MEMBER - OBJECT),\
(TYPE *) ((char *) OBJECT - offsetof (TYPE, MEMBER)))
Instead?