This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, 4.7] PR 48192, Make conditional macros not defined for #ifdef
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, gcc-patches at gcc dot gnu dot org, dje dot gcc at gmail dot com, uweigand at de dot ibm dot com, jakub at redhat dot com, tromey at redhat dot com, rth at redhat dot com, jason at redhat dot com, nathan at codesourcery dot com
- Date: Sun, 20 Mar 2011 23:36:47 +0000 (UTC)
- Subject: Re: [PATCH, 4.7] PR 48192, Make conditional macros not defined for #ifdef
- References: <20110318232657.GA11627@hungry-tiger.westford.ibm.com> <4D8615B9.9070102@codesourcery.com>
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