[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end
From: |
Steven Bosscher |
Subject: |
[Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end |
Date: |
08 Feb 2003 00:12:24 +0100 |
Op vr 07-02-2003, om 23:18 schreef Neil Booth:
> Steven Bosscher wrote:-
>
> > GCC right now only has pragmas that do not put restrictions on the
> > language elements surrounding the pragmas. AFAICT most pragmas have
> > their effect over the whole translation unit.
>
> Right. Really, for things like expressions (possibly functions,
> depending on your IR) that are affected by C99 pragmas, there really
> needs to be bits on their representation that gives the state of said
> pragmas at that time in the soure file. It isn't hard to do I think.
>
> > ----------
> > /* ERROR - The flush directive cannot be the immediate
> > * substatement of an if statement. */
> > if (x!=0)
> > #pragma omp flush (x)
>
> Surely not. I think this is a *really really* bad idea; I wouldn't
> support it going into GCC. It's simply not the way C and C++ work.
>
> > if (x!=0)
> > {
> > #pragma omp flush (x)
> > }
>
> Ugh. Which @#$&*( thought of this?
>
Ehhr... This was copied verbatim from the OpenMP 2.0 specs for C/C++ :-)
Greetz
Steevn
- [Gomp-discuss] Implementing OpenMP pragmas for the C front end, Steven Bosscher, 2003/02/07
- [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Neil Booth, 2003/02/07
- [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Steven Bosscher, 2003/02/07
- [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Pop Sébastian, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Scott Robert Ladd, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Steven Bosscher, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for the Cfront end, Scott Robert Ladd, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for the Cfront end, Steven Bosscher, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for theCfront end, Scott Robert Ladd, 2003/02/08
- RE: [Gomp-discuss] Re: Implementing OpenMP pragmas for the C front end, Steven Bosscher, 2003/02/08