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] New pragma handling mechanism


Dmitry Kurochkin <dmitry.kurochkin@gmail.com> writes:

>> However, there should still be no need for c_register_pragma to do
>> anything differently.
> To do this (if I've understand you correctly) a global option is
> needed, like defer_pragmas.

No, it isn't.

> I think this is not good, because in this case we can't have some
> pragmas to be handled by cpplib on the fly, and other pragmas to be
> tokenized.

Sure you can.  It's just that none of the pragmas registered through
c_register_pragma will ever fall into the former category.  The only
pragmas that get handled on the fly are the pragmas that are handled
internally to cpplib.  All translation-phase-7 pragmas, C and C++,
are to be tokenized and processed during parsing.

zw


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