LWN.net Logo

GCC 4.6.0 released

GCC 4.6.0 released

Posted Mar 26, 2011 18:19 UTC (Sat) by quotemstr (subscriber, #45331)
Parent article: GCC 4.6.0 released

Why is this feature listed under the Windows architecture section?

> Support of push/pop-macro pragma as preprocessor command. With #pragma push_macro("macro-name") the current definition of macro-name is saved and can be restored with #pragma pop_macro("macro-name") to its saved definition.

That's something that can come in handy on any platform.


(Log in to post comments)

GCC 4.6.0 released

Posted Mar 26, 2011 18:46 UTC (Sat) by cesarb (subscriber, #6266) [Link]

> Why is this feature listed under the Windows architecture section?

Probably because it was introduced for compatibility with Windows compilers:

http://msdn.microsoft.com/en-us/library/2bs04eza%28v=vs.7...

GCC 4.6.0 released

Posted Mar 27, 2011 1:45 UTC (Sun) by foom (subscriber, #14868) [Link]

GCC somtimes has implemented nonstandard features required to compile against platform headers, but only enabled the feature for that one platform (so as to not encourage use of the nonstandard features). I assume that's what happened here.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds