This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3 PATCH] Fix bootstrap failure on powerpc-apple-darwin7.9.0
>>>>> "Paolo" == Paolo Carlini <paolo.carlini@oracle.com> writes:
Tom> You could use #pragma push_macro and #pragma pop_macro. Offhand
Tom> it seems to me that this would let you get rid of uglification
Tom> (or a lot of it). On the minus side, you'd have to maintain a list of
Tom> identifiers you use; but maybe it wouldn't be hard to modify
Tom> g++ to print a list of these.
Paolo> Oh! Essentially you are telling me that, undocumented, we have
Paolo> already something like the attached? I had *no* idea, shame on
Paolo> me!
It is documented; see gcc/doc/extend.texi.
It isn't as nice as #scope. You must manage scopes manually.
That PDF describes #import as a proprietary MS extension -- but it
also has a longstanding meaning in GCC. This should be reason enough
to change the name, IMO.
Tom