Re: [gomp4] declare directive [3/5]

2015-10-30 Thread Thomas Schwinge
Hi! On Mon, 8 Jun 2015 10:04:11 -0500, James Norris wrote: > --- a/gcc/fortran/gfortran.h > +++ b/gcc/fortran/gfortran.h > @@ -1174,6 +1183,7 @@ enum >OMP_LIST_FROM, >OMP_LIST_REDUCTION, >OMP_LIST_DEVICE_RESIDENT, > + OMP_LIST_LINK, >OMP_LIST_USE_DEVICE, >OMP_LIST_CACHE, >

Re: [gomp4] declare directive

2015-09-02 Thread Tom de Vries
On 12-08-15 20:31, James Norris wrote: diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index bc54067..eee5340 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -5864,8 +5864,7 @@ void finish_oacc_declare (gfc_namespace *ns, enum sym_flavor flavor) {

Re: [gomp4] declare directive

2015-09-01 Thread Tom de Vries
On 12/08/15 20:31, James Norris wrote: diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 056b2c1..8ace93c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -13907,6 +13907,7 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl, integral_constant_expression_p) tree

[gomp4] declare directive

2015-08-12 Thread James Norris
Hi, The attached patch is a revision of the functionality required to handle the declare directive. The motivation for the change was that the original code was deemed to fragile and difficult to maintain. The new code is now smaller, in terms of line count, and hopefully, easier to understand.

Re: [gomp4] declare directive [5/5]

2015-07-13 Thread Thomas Schwinge
Hi Jim! On Mon, 8 Jun 2015 10:06:21 -0500, James Norris wrote: > --- /dev/null > +++ b/libgomp/testsuite/libgomp.oacc-c++/declare-1.C > @@ -0,0 +1,24 @@ > + > +template > +T foo() > +{ > + T a; > + #pragma acc declare create (a) > + > + #pragma acc parallel > + { > +a = 5; > + } > + > +

Re: [gomp4] declare directive [3/5]

2015-06-18 Thread James Norris
Hi Thomas! On 06/17/2015 04:59 AM, Thomas Schwinge wrote: Hi Jim! I had mentioned that the Fortran front end changes cause regressions in a few libgomp execution tests, if configured for Intel MIC (emulation) offloading. I have now located *where* this is coming from, but would you please work

Re: [gomp4] declare directive [3/5]

2015-06-17 Thread Thomas Schwinge
Hi Jim! I had mentioned that the Fortran front end changes cause regressions in a few libgomp execution tests, if configured for Intel MIC (emulation) offloading. I have now located *where* this is coming from, but would you please work on figuring out *why*? Fortunately, you'll be able to work

[gomp4] declare directive [5/5]

2015-06-08 Thread James Norris
diff --git a/libgomp/libgomp.map b/libgomp/libgomp.map index fe38dc6..663c27c 100644 --- a/libgomp/libgomp.map +++ b/libgomp/libgomp.map @@ -318,6 +318,7 @@ GOACC_2.0 { global: GOACC_data_end; GOACC_data_start; + GOACC_declare; GOACC_enter_exit_data; GOACC_parallel; GOACC_update; @@

[gomp4] declare directive [4/5]

2015-06-08 Thread James Norris
diff --git a/gcc/builtin-types.def b/gcc/builtin-types.def index 7c3273f..0774da5 100644 --- a/gcc/builtin-types.def +++ b/gcc/builtin-types.def @@ -451,6 +451,7 @@ DEF_FUNCTION_TYPE_3 (BT_FN_BOOL_ULONG_ULONG_ULONGPTR, BT_BOOL, BT_ULONG, DEF_FUNCTION_TYPE_3 (BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGL

[gomp4] declare directive [3/5]

2015-06-08 Thread James Norris
diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c index 5003581..a889342 100644 --- a/gcc/fortran/f95-lang.c +++ b/gcc/fortran/f95-lang.c @@ -119,6 +119,8 @@ static const struct attribute_spec gfc_attribute_table[] = affects_type_identity } */ { "omp declare target", 0, 0, t

Re: [gomp4] declare directive [2/5]

2015-06-08 Thread James Norris
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 261a12d..15da51e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -78,6 +78,7 @@ along with GCC; see the file COPYING3. If not see #include "cilk.h" #include "wide-int.h" #include "builtins.h" +#include "gomp-constants.h" /* Possible cases

[gomp4] declare directive [1/5]

2015-06-08 Thread James Norris
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index f508b91..83c1432 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -82,6 +82,7 @@ along with GCC; see the file COPYING3. If not see #include "omp-low.h" #include "builtins.h" #include "gomp-constants.h" +#include "tree-iterator.h"

[gomp4] declare directive [0/5]

2015-06-08 Thread James Norris
Hi! This patch series completes the implementation of the OpenACC declare directive. Patches applied to gomp-4_0-branch Thanks! Jim = gcc/ChangeLog.gomp * builtin-types.def (BT_FN_VOID_PTR_INT_UINT): New type. * gimple-pretty-print.c (dump_gimple_omp_target): Handl