This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch advice needed: macro expansion for #pragmas
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Zack Weinberg <zackw at panix dot com>
- Cc: Paul Rubin <phr-2006 at nightsong dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Feb 2006 14:23:56 -0800
- Subject: Re: patch advice needed: macro expansion for #pragmas
- References: <20060212225506.7822.qmail@brouhaha.com> <20060213212045.GB18127@panix.com>
Zack Weinberg wrote:
> The trouble I see is that it's a silent behavior change for
> (hypothetical) code where the first identifier in a #pragma names a
> pragma namespace that doesn't suppress expansion, and is also a macro.
Right. I like Zack's more conservative solution too, if we consider the
option to expand the identifier important. (I'm not sure that it is,
for most of the GCC userbase, given C99's _Pragma, despite your client's
experience.) I'd be OK with a command-line option for the "expand
unless pragma marked unexpandable" solution, too, though.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713