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 advice needed: macro expansion for #pragmas


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


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