aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-switch-conversion.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-switch-conversion.cc')
-rw-r--r--gcc/tree-switch-conversion.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc
index d088287..62eddcd 100644
--- a/gcc/tree-switch-conversion.cc
+++ b/gcc/tree-switch-conversion.cc
@@ -1030,9 +1030,10 @@ switch_conversion::build_one_array (int num, tree arr_index_type,
TREE_CONSTANT (decl) = 1;
TREE_READONLY (decl) = 1;
DECL_IGNORED_P (decl) = 1;
- /* The decl is mergable since we don't take the address ever and
+ /* The decl is mergeable since we don't take the address ever and
just reading from it. */
DECL_MERGEABLE (decl) = 1;
+
if (offloading_function_p (cfun->decl))
DECL_ATTRIBUTES (decl)
= tree_cons (get_identifier ("omp declare target"), NULL_TREE,