[Bug c/91285] _Pragma does not work in a useful fashion

2020-01-28 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/91285] _Pragma does not work in a useful fashion

2019-08-07 Thread joseph at codesourcery dot com
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

[Bug c/91285] _Pragma does not work in a useful fashion

2019-08-04 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91285 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug c/91285] _Pragma does not work in a useful fashion

2019-07-29 Thread konrad.schwarz at siemens dot com
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

[Bug c/91285] _Pragma does not work in a useful fashion

2019-07-29 Thread pinskia at gcc dot gnu.org
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?