aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 3f7debf..7c11b50 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -1120,7 +1120,8 @@ maybe_lookup_field (tree var, omp_context *ctx)
static bool
use_pointer_for_field (tree decl, omp_context *shared_ctx)
{
- if (AGGREGATE_TYPE_P (TREE_TYPE (decl)))
+ if (AGGREGATE_TYPE_P (TREE_TYPE (decl))
+ || TYPE_ATOMIC (TREE_TYPE (decl)))
return true;
/* We can only use copy-in/copy-out semantics for shared variables