gcc/libgomp/testsuite
Tobias Burnus a2c26c5031 Fortran] Support absent optional args with use_device_{ptr,addr}
2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
            Kwok Cheung Yeung  <kcy@codesourcery.com>

        gcc/
        * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
        Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
        (LANG_HOOKS_DECLS): Rename also here.
        * langhooks.h (lang_hooks_for_decls): Rename
        omp_is_optional_argument to omp_check_optional_argument; take
        additional bool argument.
        * omp-general.h (omp_check_optional_argument): Likewise.
        * omp-general.h (omp_check_optional_argument): Likewise.
        * omp-low.c (lower_omp_target): Update calls; handle absent
        Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.

        gcc/fortran/
        * trans-expr.c (gfc_conv_expr_present): Check for DECL_ARTIFICIAL
        for the VALUE hidden argument avoiding -fallow-underscore issues.
        * trans-decl.c (create_function_arglist): Also set
        GFC_DECL_OPTIONAL_ARGUMENT for per-value arguments.
        * f95-lang.c (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
        Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; point
        to gfc_omp_check_optional_argument.
        * trans.h (gfc_omp_check_optional_argument): Subsitutes
        gfc_omp_is_optional_argument declaration.
        * trans-openmp.c (gfc_omp_is_optional_argument): Make static.
        (gfc_omp_check_optional_argument): New function.

        libgomp/
        * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
        * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.


Co-Authored-By: Kwok Cheung Yeung <kcy@codesourcery.com>

From-SVN: r278046
2019-11-11 10:19:29 +01:00
..
config Update copyright years. 2019-01-01 13:31:55 +01:00
lib [libgomp] In OpenACC testing, by default only build for the offload target that we're actually going to test 2019-02-22 11:51:35 +01:00
libgomp.c re PR libgomp/91530 (Several libgomp.*/scan-* tests FAIL without avx_runtime) 2019-08-28 12:13:21 +02:00
libgomp.c-c++-common tree.def (OMP_LOOP): New tree code. 2019-07-20 13:21:42 +02:00
libgomp.c++ re PR libgomp/91530 (Several libgomp.*/scan-* tests FAIL without avx_runtime) 2019-08-27 12:45:55 +02:00
libgomp.fortran Fortran] Support absent optional args with use_device_{ptr,addr} 2019-11-11 10:19:29 +01:00
libgomp.graphite re PR testsuite/89064 (libgomp.graphite/force-parallel-5.c fails starting with r268257) 2019-01-28 09:07:30 +00:00
libgomp.hsa.c
libgomp.oacc-c [libgomp] In OpenACC testing, by default only build for the offload target that we're actually going to test 2019-02-22 11:51:35 +01:00
libgomp.oacc-c-c++-common Warn about inconsistent OpenACC nested reduction clauses 2019-11-06 10:43:52 +00:00
libgomp.oacc-c++ Test cases to verify OpenACC 'firstprivate' mappings 2019-06-19 00:15:03 +02:00
libgomp.oacc-fortran libgomp/testsuite - use unique numbers with Fortran's 'stop' 2019-11-04 11:01:22 +01:00
libgomp-test-support.exp.in [libgomp] In OpenACC testing, cycle though all offload targets 2019-02-22 11:51:20 +01:00
Makefile.am Generalize getconf _NPROCESSORS_ONLN 2019-05-30 09:06:48 +00:00
Makefile.in Generalize getconf _NPROCESSORS_ONLN 2019-05-30 09:06:48 +00:00