Improve OpenMP map diagnostics.
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 4 Jul 2019 11:43:47 +0000 (11:43 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Thu, 4 Jul 2019 11:43:47 +0000 (11:43 +0000)
commit8862ed139a6ac3d28dc75ccbaa1dd36f47c8f9dd
treed197ed5096e7ecf36db67f3d48ccf35b0e7595dd
parent70980ea225624d49591ae24262c55f2328517b62
Improve OpenMP map diagnostics.

2019-07-04  Andrew Stubbs  <ams@codesourcery.com>

gcc/cp/
* cp-tree.h (cp_omp_emit_unmappable_type_notes): New prototype.
* decl.c (cp_finish_decl): Call cp_omp_emit_unmappable_type_notes.
* decl2.c (cp_omp_mappable_type): Move contents to ...
(cp_omp_mappable_type_1):  ... here and add note output.
(cp_omp_emit_unmappable_type_notes): New function.
* semantics.c (finish_omp_clauses): Call
cp_omp_emit_unmappable_type_notes in four places.

gcc/testsuite/
* g++.dg/gomp/unmappable-1.C: New file.

From-SVN: r273078
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/unmappable-1.C [new file with mode: 0644]