Prohibit C++ reference types in OpenACC regions
commitee20456534e0fd80333e50bab0821a0e20f065e5
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 20:56:31 +0000 (13 20:56 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 20:56:31 +0000 (13 20:56 +0000)
treef1eedd0c87504ae3c1fa034af786b33a0a41cb89
parent631438a29e8d275570ba2e881ffcdea2dfe7b5e1
Prohibit C++ reference types in OpenACC regions

gcc/
* langhooks-def.h (lhd_omp_mappable_type): Add bool argument.
* langhooks.c (lhd_omp_mappable_type): Likewise, for the
parameter.
* langhooks.h (struct lang_hooks_for_types): Add bool oacc
argument.
* gimplify.c (omp_notice_variable): Use it when calling the
omp_mappable_type langhook.
gcc/c/
* c-decl.c (c_decl_attributes): Update call to omp_mappable_type.
* c-typeck.c (c_finish_omp_clauses): Likewise.
gcc/cp/
* cp-tree.h (cp_omp_mappable_type): Add bool parameter.
* decl2.c (cp_check_const_attributes): Likewise. Use it.
(cp_omp_mappable_type): Update call to cp_omp_mappable_type.
(cplus_decl_attributes): Likewise.
* semantics.c (finish_omp_clauses): Likewise.
gcc/testsuite/
* g++.dg/goacc/reference.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@223179 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog.gomp
gcc/c/ChangeLog.gomp
gcc/c/c-decl.c
gcc/c/c-typeck.c
gcc/cp/ChangeLog.gomp
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/semantics.c
gcc/gimplify.c
gcc/langhooks-def.h
gcc/langhooks.c
gcc/langhooks.h
gcc/testsuite/ChangeLog.gomp
gcc/testsuite/g++.dg/goacc/reference.C [new file with mode: 0644]