2015-11-12 James Norris <jnorris@codesourcery.com> Joseph Myers <joseph@codesourcery.com> gcc/c-family/ * c-pragma.c (oacc_pragmas): Add entry for declare directive. * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and PRAGMA_OACC_CLAUSE_LINK. gcc/c/ * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. (c_parser_omp_clause_name): Handle 'device_resident' clause. (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and PRAGMA_OMP_CLAUSE_LINK. (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and PRAGMA_OACC_CLAUSE_LINK. (OACC_DECLARE_CLAUSE_MASK): New definition. (c_parser_oacc_declare): New function. gcc/cp/ * parser.c (cp_parser_omp_clause_name): Handle 'device_resident' clause. (cp_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and PRAGMA_OMP_CLAUSE_LINK. (cp_paser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and PRAGMA_OMP_CLAUSE_LINK. (OACC_DECLARE_CLAUSE_MASK): New definition. (cp_parser_oacc_declare): New function. (cp_parser_pragma): Handle PRAGMA_OACC_DECLARE. * pt.c (tsubst_expr): Handle OACC_DECLARE. gcc/ * gimple-pretty-print.c (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE. * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE. (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE. * gimplify.c (oacc_declare_returns): New. (gimplify_bind_expr): Prepend 'exit' stmt to cleanup. (device_resident_p): New function. (oacc_default_clause): Handle device_resident clause. (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions. (gimplify_expr): Handle OACC_DECLARE. * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin. * omp-low.c (expand_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE. (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE. (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE, GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK. (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE. * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and GOMP_MAP_DEVICE_RESIDENT. gcc/testsuite * c-c++-common/goacc/declare-1.c: New test. * c-c++-common/goacc/declare-2.c: Likewise. include/ * gomp-constants.h (enum gomp_map_kind): Add GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK. libgomp/ * libgomp.map (GOACC_2.0.1): Export GOACC_declare. * oacc-parallel.c (GOACC_declare): New function. * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test. * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise. * testsuite/libgomp.oacc-c++/declare-1.C: Likewise. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> From-SVN: r230275
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
asan | Loading commit data... | |
cilk-plus | Loading commit data... | |
cpp | Loading commit data... | |
dfp | Loading commit data... | |
dwarf2 | Loading commit data... | |
goacc | Loading commit data... | |
goacc-gomp | Loading commit data... | |
gomp | Loading commit data... | |
guality | Loading commit data... | |
simulate-thread | Loading commit data... | |
tm | Loading commit data... | |
torture | Loading commit data... | |
tsan | Loading commit data... | |
ubsan | Loading commit data... | |
Wbool-compare-1.c | Loading commit data... | |
Wbool-compare-2.c | Loading commit data... | |
Wbool-compare-3.c | Loading commit data... | |
Wcast-qual-1.c | Loading commit data... | |
Wconversion-real.c | Loading commit data... | |
Wduplicated-cond-1.c | Loading commit data... | |
Wduplicated-cond-2.c | Loading commit data... | |
Wduplicated-cond-3.c | Loading commit data... | |
Wduplicated-cond-4.c | Loading commit data... | |
Wfloat-conversion.c | Loading commit data... | |
Wint-to-pointer-cast-1.c | Loading commit data... | |
Wint-to-pointer-cast-2.c | Loading commit data... | |
Wint-to-pointer-cast-3.c | Loading commit data... | |
Wlogical-op-1.c | Loading commit data... | |
Wlogical-op-3.c | Loading commit data... | |
Wmemset-transposed-args1.c | Loading commit data... | |
Wmemset-transposed-args2.c | Loading commit data... | |
Wmisleading-indentation-2.c | Loading commit data... | |
Wmisleading-indentation-2.md | Loading commit data... | |
Wmisleading-indentation.c | Loading commit data... | |
Wpointer-arith-1.c | Loading commit data... | |
Wsequence-point-1.c | Loading commit data... | |
Wshift-count-negative-1.c | Loading commit data... | |
Wshift-count-negative-2.c | Loading commit data... | |
Wshift-count-overflow-1.c | Loading commit data... | |
Wshift-count-overflow-2.c | Loading commit data... | |
Wshift-negative-value-1.c | Loading commit data... | |
Wshift-negative-value-2.c | Loading commit data... | |
Wshift-negative-value-3.c | Loading commit data... | |
Wshift-negative-value-4.c | Loading commit data... | |
Wshift-negative-value-5.c | Loading commit data... | |
Wshift-negative-value-6.c | Loading commit data... | |
Wshift-overflow-1.c | Loading commit data... | |
Wshift-overflow-2.c | Loading commit data... | |
Wshift-overflow-3.c | Loading commit data... | |
Wshift-overflow-4.c | Loading commit data... | |
Wshift-overflow-5.c | Loading commit data... | |
Wshift-overflow-6.c | Loading commit data... | |
Wshift-overflow-7.c | Loading commit data... | |
Wsizeof-pointer-memaccess1.c | Loading commit data... | |
Wsizeof-pointer-memaccess2.c | Loading commit data... | |
Wtautological-compare-1.c | Loading commit data... | |
Wtautological-compare-2.c | Loading commit data... | |
Wtautological-compare-3.c | Loading commit data... | |
Wtautological-compare-4.c | Loading commit data... | |
Wunused-function-1.c | Loading commit data... | |
Wunused-local-typedefs.c | Loading commit data... | |
Wunused-var-1.c | Loading commit data... | |
Wunused-var-10.c | Loading commit data... | |
Wunused-var-11.c | Loading commit data... | |
Wunused-var-12.c | Loading commit data... | |
Wunused-var-13.c | Loading commit data... | |
Wunused-var-14.c | Loading commit data... | |
Wunused-var-2.c | Loading commit data... | |
Wunused-var-3.c | Loading commit data... | |
Wunused-var-4.c | Loading commit data... | |
Wunused-var-5.c | Loading commit data... | |
Wunused-var-6.c | Loading commit data... | |
Wunused-var-7.c | Loading commit data... | |
Wunused-var-8.c | Loading commit data... | |
Wunused-var-9.c | Loading commit data... | |
Wvarargs-2.c | Loading commit data... | |
Wvarargs.c | Loading commit data... | |
addrtmp.c | Loading commit data... | |
array-lit.c | Loading commit data... | |
asmgoto-1.c | Loading commit data... | |
asmgoto-2.c | Loading commit data... | |
asmgoto-3.c | Loading commit data... | |
asmgoto-4.c | Loading commit data... | |
attr-aligned-1.c | Loading commit data... | |
attr-used-2.c | Loading commit data... | |
attr-used.c | Loading commit data... | |
attributes-1.c | Loading commit data... | |
attributes-2.c | Loading commit data... | |
attributes-enum-1.c | Loading commit data... | |
attributes-enum-2.c | Loading commit data... | |
builtin-arith-overflow-1.c | Loading commit data... | |
builtin-offsetof-2.c | Loading commit data... | |
builtin-offsetof.c | Loading commit data... | |
convert-vec-1.c | Loading commit data... | |
cxxbitfields-3.c | Loading commit data... | |
cxxbitfields-6.c | Loading commit data... | |
fmax-errors.c | Loading commit data... | |
fold-bitand-4.c | Loading commit data... | |
fold-divmul-1.c | Loading commit data... | |
init-vec-1.c | Loading commit data... | |
int128-1.c | Loading commit data... | |
int128-2.c | Loading commit data... | |
int128-types-1.c | Loading commit data... | |
nonnull-1.c | Loading commit data... | |
opaque-vector.c | Loading commit data... | |
pr19807-1.c | Loading commit data... | |
pr20000.c | Loading commit data... | |
pr20318.c | Loading commit data... | |
pr28656.c | Loading commit data... | |
pr30020.c | Loading commit data... | |
pr33193.c | Loading commit data... | |
pr33763.c | Loading commit data... | |
pr36282-1.c | Loading commit data... | |
pr36282-2.c | Loading commit data... | |
pr36282-3.c | Loading commit data... | |
pr36282-4.c | Loading commit data... | |
pr36513-2.c | Loading commit data... | |
pr36513.c | Loading commit data... | |
pr37743.c | Loading commit data... | |
pr41779.c | Loading commit data... | |
pr41935.c | Loading commit data... | |
pr42674.c | Loading commit data... | |
pr43395.c | Loading commit data... | |
pr43690.c | Loading commit data... | |
pr43772.c | Loading commit data... | |
pr43942.c | Loading commit data... | |
pr44832.c | Loading commit data... | |
pr46562-2.c | Loading commit data... | |
pr46562.c | Loading commit data... | |
pr48418.c | Loading commit data... | |
pr49706-2.c | Loading commit data... | |
pr49706.c | Loading commit data... | |
pr50459-2.c | Loading commit data... | |
pr50459.c | Loading commit data... | |
pr51294.c | Loading commit data... | |
pr51712.c | Loading commit data... | |
pr51768.c | Loading commit data... | |
pr52177.c | Loading commit data... | |
pr52181.c | Loading commit data... | |
pr53633.c | Loading commit data... | |
pr53874.c | Loading commit data... | |
pr54486.c | Loading commit data... | |
pr54988.c | Loading commit data... | |
pr55619.c | Loading commit data... | |
pr55771.c | Loading commit data... | |
pr56302.c | Loading commit data... | |
pr56493.c | Loading commit data... | |
pr56566.c | Loading commit data... | |
pr56607.c | Loading commit data... | |
pr57653-2.c | Loading commit data... | |
pr57653-2.h | Loading commit data... | |
pr57653.c | Loading commit data... | |
pr57653.h | Loading commit data... | |
pr57793.c | Loading commit data... | |
pr58346-1.c | Loading commit data... | |
pr58346-2.c | Loading commit data... | |
pr58346-3.c | Loading commit data... | |
pr59032.c | Loading commit data... | |
pr59037.c | Loading commit data... | |
pr59223.c | Loading commit data... | |
pr59280.c | Loading commit data... | |
pr60101.c | Loading commit data... | |
pr60156.c | Loading commit data... | |
pr60226.c | Loading commit data... | |
pr60439.c | Loading commit data... | |
pr60689.c | Loading commit data... | |
pr61405.c | Loading commit data... | |
pr61534-1.c | Loading commit data... | |
pr61553.c | Loading commit data... | |
pr62199-2.c | Loading commit data... | |
pr62199.c | Loading commit data... | |
pr63764-1.c | Loading commit data... | |
pr63764-2.c | Loading commit data... | |
pr65040.c | Loading commit data... | |
pr65120.c | Loading commit data... | |
pr65556.c | Loading commit data... | |
pr65830.c | Loading commit data... | |
pr66322.c | Loading commit data... | |
pr68107.c | Loading commit data... | |
raw-string-1.c | Loading commit data... | |
raw-string-10.c | Loading commit data... | |
raw-string-11.c | Loading commit data... | |
raw-string-12.c | Loading commit data... | |
raw-string-13.c | Loading commit data... | |
raw-string-14.c | Loading commit data... | |
raw-string-15.c | Loading commit data... | |
raw-string-16.c | Loading commit data... | |
raw-string-17.c | Loading commit data... | |
raw-string-18.c | Loading commit data... | |
raw-string-19.c | Loading commit data... | |
raw-string-2.c | Loading commit data... | |
raw-string-3.c | Loading commit data... | |
raw-string-4.c | Loading commit data... | |
raw-string-5.c | Loading commit data... | |
raw-string-6.c | Loading commit data... | |
raw-string-7.c | Loading commit data... | |
raw-string-8.c | Loading commit data... | |
raw-string-9.c | Loading commit data... | |
restrict-1.c | Loading commit data... | |
restrict-2.c | Loading commit data... | |
restrict-4.c | Loading commit data... | |
rotate-1.c | Loading commit data... | |
rotate-1a.c | Loading commit data... | |
rotate-2.c | Loading commit data... | |
rotate-2a.c | Loading commit data... | |
rotate-3.c | Loading commit data... | |
rotate-3a.c | Loading commit data... | |
rotate-4.c | Loading commit data... | |
rotate-4a.c | Loading commit data... | |
rotate-5.c | Loading commit data... | |
scal-to-vec1.c | Loading commit data... | |
scal-to-vec2.c | Loading commit data... | |
sizeof-array-argument.c | Loading commit data... | |
taskloop-1.c | Loading commit data... | |
transparent-union-1.c | Loading commit data... | |
uninit-17.c | Loading commit data... | |
uninit-D-O0.c | Loading commit data... | |
uninit-D.c | Loading commit data... | |
uninit-E-O0.c | Loading commit data... | |
uninit-E.c | Loading commit data... | |
uninit-F-O0.c | Loading commit data... | |
uninit-F.c | Loading commit data... | |
uninit-G-O0.c | Loading commit data... | |
uninit-G.c | Loading commit data... | |
uninit-pr51010.c | Loading commit data... | |
vector-1.c | Loading commit data... | |
vector-2.c | Loading commit data... | |
vector-3.c | Loading commit data... | |
vector-4.c | Loading commit data... | |
vector-compare-1.c | Loading commit data... | |
vector-compare-2.c | Loading commit data... | |
vector-compare-3.c | Loading commit data... | |
vector-init-1.c | Loading commit data... | |
vector-init-2.c | Loading commit data... | |
vector-scalar-2.c | Loading commit data... | |
vector-scalar.c | Loading commit data... | |
vector-shift.c | Loading commit data... | |
vector-shift1.c | Loading commit data... | |
vector-shift3.c | Loading commit data... | |
vector-subscript-1.c | Loading commit data... | |
vector-subscript-2.c | Loading commit data... | |
vector-subscript-3.c | Loading commit data... | |
vla-1.c | Loading commit data... | |
warn-ommitted-condop.c | Loading commit data... | |
wdate-time.c | Loading commit data... |