[PATCH, 4.7] PR 48192, Make conditional macros not defined for #ifdef
Joseph S. Myers
joseph@codesourcery.com
Sun Mar 20 23:36:00 GMT 2011
On Sun, 20 Mar 2011, Mark Mitchell wrote:
> On 3/18/2011 4:26 PM, Michael Meissner wrote:
>
> > This patch makes conditional macros that are used in the PowerPC and SPU ports
> > not be 'defined' for the #ifdef, #ifndef, and #if defined(...) tests.
>
> I think that's a desirable change, from a language semantics point of
> view, but I would defer to Joseph on this issue; he has a much more
> comprehensive understanding of the C preprocessing rules than I do.
The argument for the change makes sense to me (in terms of what code is
likely to do when testing for a macro being defined); this is outside the
scope of the standard in any case.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list