Re: [gomp4, committed] Fix if-clause handling for kernels

2015-07-17 Thread Jakub Jelinek
On Fri, Jul 17, 2015 at 08:36:42PM +0200, Tom de Vries wrote: > diff --git a/gcc/omp-low.c b/gcc/omp-low.c > index 0419dcd..9b062e6 100644 > --- a/gcc/omp-low.c > +++ b/gcc/omp-low.c > @@ -9643,7 +9643,8 @@ expand_omp_target (struct omp_region *region) >tree tmp_var; > >tmp_var =

[gomp4, committed] Fix if-clause handling for kernels

2015-07-17 Thread Tom de Vries
Hi, this patch fixes a problem with if-clauses on kernels, reported by Jim. It makes sure the condition testing code is generated after the definition of the condition variable. Bootstrapped on x86_64, committed to gomp-4_0-branch. Thanks, - Tom Fix if-clause handling for kernels 2015-07-17