[OpenMP, gimplifier] 'inform' after 'error' diagnostic
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 30 Apr 2020 07:07:06 +0000 (09:07 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 17 Jun 2020 22:15:24 +0000 (00:15 +0200)
commit4f2ab6b89e170f1343f935761481c3745fe603b1
treea10eb0cdb7e8f9de602cf50a56ddb25734552f8f
parent5864930754f63e2dcef9606f2514ae20e80f436e
[OpenMP, gimplifier] 'inform' after 'error' diagnostic

This is not a thorough review of the code, just a few cases I noticed while
scanning 'gcc/gimplify.c' for "enclosing".

gcc/
* gimplify.c (omp_notice_threadprivate_variable)
(omp_default_clause, omp_notice_variable): 'inform' after 'error'
diagnostic.  Adjust all users.
gcc/testsuite/
* c-c++-common/gomp/default-1.c: Update.
* c-c++-common/gomp/defaultmap-3.c: Likewise.
* c-c++-common/gomp/order-4.c: Likewise.
* g++.dg/gomp/parallel-2.C: Likewise.
* g++.dg/gomp/predetermined-1.C: Likewise.
* g++.dg/gomp/sharing-1.C: Likewise.
* gcc.dg/gomp/appendix-a/a.24.1.c: Likewise.
* gcc.dg/gomp/parallel-2.c: Likewise.
* gcc.dg/gomp/pr44085.c: Likewise.
* gcc.dg/gomp/sharing-1.c: Likewise.
* gcc.dg/gomp/vla-1.c: Likewise.
* gfortran.dg/gomp/appendix-a/a.24.1.f90: Likewise.
* gfortran.dg/gomp/crayptr3.f90: Likewise.
* gfortran.dg/gomp/pr33439.f90: Likewise.
* gfortran.dg/gomp/pr44036-1.f90: Likewise.
* gfortran.dg/gomp/pr44085.f90: Likewise.
* gfortran.dg/gomp/pr44536.f90: Likewise.
* gfortran.dg/gomp/pr94672.f90: Likewise.
* gfortran.dg/gomp/sharing-1.f90: Likewise.
* gfortran.dg/gomp/sharing-2.f90: Likewise.
* gfortran.dg/gomp/sharing-3.f90: Likewise.
22 files changed:
gcc/gimplify.c
gcc/testsuite/c-c++-common/gomp/default-1.c
gcc/testsuite/c-c++-common/gomp/defaultmap-3.c
gcc/testsuite/c-c++-common/gomp/order-4.c
gcc/testsuite/g++.dg/gomp/parallel-2.C
gcc/testsuite/g++.dg/gomp/predetermined-1.C
gcc/testsuite/g++.dg/gomp/sharing-1.C
gcc/testsuite/gcc.dg/gomp/appendix-a/a.24.1.c
gcc/testsuite/gcc.dg/gomp/parallel-2.c
gcc/testsuite/gcc.dg/gomp/pr44085.c
gcc/testsuite/gcc.dg/gomp/sharing-1.c
gcc/testsuite/gcc.dg/gomp/vla-1.c
gcc/testsuite/gfortran.dg/gomp/appendix-a/a.24.1.f90
gcc/testsuite/gfortran.dg/gomp/crayptr3.f90
gcc/testsuite/gfortran.dg/gomp/pr33439.f90
gcc/testsuite/gfortran.dg/gomp/pr44036-1.f90
gcc/testsuite/gfortran.dg/gomp/pr44085.f90
gcc/testsuite/gfortran.dg/gomp/pr44536.f90
gcc/testsuite/gfortran.dg/gomp/pr94672.f90
gcc/testsuite/gfortran.dg/gomp/sharing-1.f90
gcc/testsuite/gfortran.dg/gomp/sharing-2.f90
gcc/testsuite/gfortran.dg/gomp/sharing-3.f90