diff options
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r-- | gcc/varpool.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c index 478f365..36f19a6 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -153,12 +153,13 @@ varpool_node::get_create (tree decl) && lookup_attribute ("omp declare target", DECL_ATTRIBUTES (decl))) { node->offloadable = 1; -#ifdef ENABLE_OFFLOADING - g->have_offload = true; - if (!in_lto_p) - vec_safe_push (offload_vars, decl); - node->force_output = 1; -#endif + if (ENABLE_OFFLOADING) + { + g->have_offload = true; + if (!in_lto_p) + vec_safe_push (offload_vars, decl); + node->force_output = 1; + } } node->register_symbol (); |