Implementing OpenMP pragmas for the C front end
Neil Booth
neil@daikokuya.co.uk
Fri Feb 7 22:37:00 GMT 2003
David Edelsohn wrote:-
> Unfortunately, this is a public standard. Somehow we need to be
> compatible.
>
> What we really want is some way of converting
>
> #pragma omp flush (x)
>
> to
>
> __builtin_omp_flush (x);
>
> which is a more natural way of implementing this and would allow semantic
> error checking.
On second thoughts it's possibly not as bad as I thought. I had in mind
that the #pragma callbacks would be conditional on parser state; of
course that needn't be the implementation. The callbacks should happen
regardless, and the front end should ignore/reject appropriately.
Neil.
More information about the Gcc
mailing list