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: David Edelsohn <dje at watson dot ibm dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- 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, 07 Feb 2003 17:27:05 -0500
- Subject: Re: Implementing OpenMP pragmas for the C front end
>>>>> Neil Booth writes:
>> ----------
>> /* ERROR - The flush directive cannot be the immediate
>> * substatement of an if statement. */
>> if (x!=0)
>> #pragma omp flush (x)
Neil> Surely not. I think this is a *really really* bad idea; I wouldn't
Neil> support it going into GCC. It's simply not the way C and C++ work.
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.
David