diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2015-11-13 13:47:50 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-11-13 13:47:50 +0000 |
commit | 20e8b68f101fe3439f5af27a0ac9a7abb805f5c4 (patch) | |
tree | 71d2f4bb3863a08b8f97390f124ec914a5257d26 | |
parent | 77f9c814ec10a88fe694c37fbfa168f28bf2f57a (diff) | |
download | gcc-20e8b68f101fe3439f5af27a0ac9a7abb805f5c4.zip gcc-20e8b68f101fe3439f5af27a0ac9a7abb805f5c4.tar.gz gcc-20e8b68f101fe3439f5af27a0ac9a7abb805f5c4.tar.bz2 |
gimplify.c (oacc_default_clause): Use inform for enclosing scope.
gcc/
* gimplify.c (oacc_default_clause): Use inform for enclosing scope.
gcc/testsuite/
* c-c++-common/goacc/data-default-1.c: Correct expected
From-SVN: r230321
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gimplify.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/data-default-1.c | 4 |
4 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d616203..399eca9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-13 Nathan Sidwell <nathan@codesourcery.com> + + * gimplify.c (oacc_default_clause): Use inform for enclosing scope. + 2015-11-13 Tom de Vries <tom@codesourcery.com> * gen-pass-instances.awk (handle_line): Rename prefix_len var to diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 3c8f8a2..a3ed378 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -6007,7 +6007,7 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, tree decl, unsigned flags) { error ("%qE not specified in enclosing OpenACC %qs construct", DECL_NAME (lang_hooks.decls.omp_report_decl (decl)), rkind); - error_at (ctx->location, "enclosing OpenACC %qs construct", rkind); + inform (ctx->location, "enclosing OpenACC %qs construct", rkind); } else gcc_checking_assert (ctx->default_kind == OMP_CLAUSE_DEFAULT_SHARED); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0bce7f..539b580 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-13 Nathan Sidwell <nathan@codesourcery.com> + + * c-c++-common/goacc/data-default-1.c: Correct expected + diagnostic. + 2015-11-13 Richard Biener <rguenther@suse.de> PR tree-optimization/68306 diff --git a/gcc/testsuite/c-c++-common/goacc/data-default-1.c b/gcc/testsuite/c-c++-common/goacc/data-default-1.c index 0741abc..631032e 100644 --- a/gcc/testsuite/c-c++-common/goacc/data-default-1.c +++ b/gcc/testsuite/c-c++-common/goacc/data-default-1.c @@ -6,13 +6,13 @@ int main () int n = 2; int ary[2]; -#pragma acc parallel default (none) /* { dg-message "parallel construct" 2 } */ +#pragma acc parallel default (none) /* { dg-message "'parallel' construct" 2 } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ } -#pragma acc kernels default (none) /* { dg-message "kernels construct" 2 } */ +#pragma acc kernels default (none) /* { dg-message "'kernels' construct" 2 } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ |