This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Implementing OpenMP pragmas for the C front end
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, gcc at gcc dot gnu dot org,OpenMP for GCC project <gomp-discuss at nongnu dot org>
- Date: Fri, 7 Feb 2003 22:37:17 +0000
- Subject: Re: Implementing OpenMP pragmas for the C front end
- References: <20030207221847.GD17153@daikokuya.co.uk> <200302072227.RAA06540@makai.watson.ibm.com>
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.