ignoring #pragma push_macro

Ian Lance Taylor iant@google.com
Wed Sep 30 14:31:00 GMT 2009


GANGRADE AMIT MADANLAL	  <h2008027@bits-pilani.ac.in> writes:

> I am getting warning about pragma being ignored,
> even though I am defining another macro HANDLE_PRAGMA_PUSH_POP_MACRO
> as described at "http://gcc.gnu.org/onlinedocs/gccint/Misc.html"
>
>
> I am using following code snippet:
> ---------
> #define X 1
> #pragma push_macro("X")
> --------
> #pragma pop_macro("X")
> -------
>
> using gcc 1.1.2 20061115 on debian.

There is no gcc version 1.1.2.

Support for #pragma push_macro was first added in gcc 4.3.

Ian



More information about the Gcc-help mailing list