diff options
Diffstat (limited to 'gcc/expr.cc')
-rw-r--r-- | gcc/expr.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.cc b/gcc/expr.cc index 3815c56..944081a 100644 --- a/gcc/expr.cc +++ b/gcc/expr.cc @@ -11413,7 +11413,8 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, /* Allow accel compiler to handle variables that require special treatment, e.g. if they have been modified in some way earlier in compilation by the adjust_private_decl OpenACC hook. */ - if (flag_openacc && targetm.goacc.expand_var_decl) + if ((flag_openacc || flag_openmp_target == OMP_TARGET_MODE_OMPACC) + && targetm.goacc.expand_var_decl) { temp = targetm.goacc.expand_var_decl (exp); if (temp) |