gcc/libgomp/testsuite
Kwok Cheung Yeung 451bb58660 openmp, fortran: Add Fortran support for indirect clause on the declare target directive
2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>

	gcc/fortran/
	* dump-parse-tree.cc (show_attr): Handle omp_declare_target_indirect
	attribute.
	* f95-lang.cc (gfc_gnu_attributes): Add entry for 'omp declare
	target indirect'.
	* gfortran.h (symbol_attribute): Add omp_declare_target_indirect
	field.
	(struct gfc_omp_clauses): Add indirect field.
	* openmp.cc (omp_mask2): Add OMP_CLAUSE_INDIRECT.
	(gfc_match_omp_clauses): Match indirect clause.
	(OMP_DECLARE_TARGET_CLAUSES): Add OMP_CLAUSE_INDIRECT.
	(gfc_match_omp_declare_target): Check omp_device_type and apply
	omp_declare_target_indirect attribute to symbol if indirect clause
	active.  Show warning if there are only device_type and/or indirect
	clauses on the directive.
	* trans-decl.cc (add_attributes_to_decl): Add 'omp declare target
	indirect' attribute if symbol has indirect attribute set.

	gcc/testsuite/
	* gfortran.dg/gomp/declare-target-4.f90 (f1): Update expected warning.
	* gfortran.dg/gomp/declare-target-indirect-1.f90: New.
	* gfortran.dg/gomp/declare-target-indirect-2.f90: New.

	libgomp/
	* testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
	* testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
	* testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
2024-02-15 21:04:53 +00:00
..
config Update copyright years. 2024-01-03 12:19:35 +01:00
lib
libgomp.c libgomp: testsuite: Don't XPASS libgomp.c/alloc-pinned-1.c etc. on non-Linux targets [PR113448] 2024-02-12 14:44:17 +01:00
libgomp.c++ Set num_threads to 50 on 32-bit hppa in two libgomp loop tests 2024-02-01 19:09:53 +00:00
libgomp.c-c++-common OpenMP: lvalue parsing for map/to/from clauses (C) 2024-01-11 23:42:30 +00:00
libgomp.fortran openmp, fortran: Add Fortran support for indirect clause on the declare target directive 2024-02-15 21:04:53 +00:00
libgomp.graphite Update copyright years. 2024-01-03 12:19:35 +01:00
libgomp.oacc-c
libgomp.oacc-c++
libgomp.oacc-c-c++-common
libgomp.oacc-fortran
flock
libgomp-site-extra.exp.in
libgomp-test-support.exp.in
Makefile.am
Makefile.in