aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-07-21 08:20:18 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-07-21 23:57:57 +0200
commit6099b9cc8ce70d2ec7f2fc9f71da95fbb66d335f (patch)
tree8b94fdad6546e2095578a363854b2a2f448f6e68
parente0a7a6752dad7848eb4b29b826a551c0992256ec (diff)
downloadgcc-6099b9cc8ce70d2ec7f2fc9f71da95fbb66d335f.zip
gcc-6099b9cc8ce70d2ec7f2fc9f71da95fbb66d335f.tar.gz
gcc-6099b9cc8ce70d2ec7f2fc9f71da95fbb66d335f.tar.bz2
[OpenACC] Fix '#pragma atomic update' typo in 'g++.dg/goacc/template.C'
[...]/g++.dg/goacc/template.C:58: warning: ignoring ‘#pragma atomic update’ [-Wunknown-pragmas] 58 | #pragma atomic update | Small fix-up for r229832 (commit 7a5e4956cc026cba54159d5c764486ac4151db85) "[openacc] tile, independent, default, private and firstprivate support in c/++". gcc/testsuite/ * g++.dg/goacc/template.C: Fix '#pragma atomic update' typo.
-rw-r--r--gcc/testsuite/g++.dg/goacc/template.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/goacc/template.C b/gcc/testsuite/g++.dg/goacc/template.C
index 8bcd2a1..51a3f54 100644
--- a/gcc/testsuite/g++.dg/goacc/template.C
+++ b/gcc/testsuite/g++.dg/goacc/template.C
@@ -55,7 +55,7 @@ oacc_parallel_copy (T a)
#pragma acc atomic capture
c = b++;
-#pragma atomic update
+#pragma acc atomic update
c++;
#pragma acc atomic read