This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, 4.7] PR 48192, Make conditional macros not defined for #ifdef


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]