This is the mail archive of the gcc@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: Implementing OpenMP pragmas for the C front end


Steven Bosscher wrote:-

> 1) How can we make sure that the OpenMP pragmas that require so are
> always immediately followed by a compound statement?  The current plan
> is to hook {push/pop}level and see if a COMPOUND_STMT is the first thing
> following the #pragma.

This kind of thing is a dog with the current C parser.  With a recursive
descent parser like Mark's or mine, it would simply be a matter of
calling (umm, let's think of a name 8-)) c_parser_compound_statement
after accepting the CPP_EOF indicating the end of the pragma.

It's probably worth waiting for the new parser; I don't think we'll be
using bison in 18 months time.

Neil.


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