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: User-namespace pre#defines - new approach


Zack Weinberg wrote:-

> No, it'd piggyback on NODE_DIAGNOSTIC, so it wouldn't impact the fast
> path at all.

Yes, that's probably better.  It wouldn't work for funlike macros, but
we're only talking about object-like I think.  There are a few cases
where you'd warn when the macro wouldn't be expanded, such as #error,
but even those can be headed off by checking
state.prevent_expansion == 0 before issuing the diagnostic I think.
 
Sounds OK.

Neil.


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