Implementing OpenMP pragmas for the C front end

Neil Booth neil@daikokuya.co.uk
Fri Feb 7 22:39:00 GMT 2003


Steven Bosscher wrote:-

> But I don't like all the callbacks much.  It may clutter the code for
> people who don't care about OpenMP, and it is more prone to errors than
> I would like (it's so easy to overlook something in the parser...). 

>From your post it appears that the pragmas all share a namespace.  That
namespace need only be registered when the relevant command-line flag
is given.  All those pragmas could be implemented in a separate file,
say c-omp.c.  I don't see why it should clutter or slow down the rest
of the compiler if done like that.

Neil.



More information about the Gcc mailing list