Commit 20e8b68f by Nathan Sidwell Committed by Nathan Sidwell

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
parent 77f9c814
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
......@@ -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);
......
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
......
......@@ -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" } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment