Re: [PATCH] Fix _Pragma GCC diagnostic in macro expansions

2018-07-18 Thread David Malcolm
On Wed, 2018-07-04 at 10:53 +, Bernd Edlinger wrote: Sorry for the delay in reviewing this. > Hi, > > currently _Pragma("GCC diagnostic ...") does not properly > work in macro expansions. > > Consider the following code: > > #define B _Pragma("GCC diagnostic push") \ > _Pragma("GCC

[PING] [PATCH] Fix _Pragma GCC diagnostic in macro expansions

2018-07-12 Thread Bernd Edlinger
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-07/msg00197.html On 07/04/18 12:53, Bernd Edlinger wrote: > Hi, > > currently _Pragma("GCC diagnostic ...") does not properly > work in macro expansions. > > Consider the following code: > > #define B _Pragma("GCC diagnostic push") \ > _Prag

[PATCH] Fix _Pragma GCC diagnostic in macro expansions

2018-07-04 Thread Bernd Edlinger
Hi, currently _Pragma("GCC diagnostic ...") does not properly work in macro expansions. Consider the following code: #define B _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wattributes\"") #define E _Pragma("GCC diagnostic pop") #define X() B int __attribute((unk