aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorIlya Verbin <ilya.verbin@intel.com>2014-11-19 13:52:12 +0000
committerIlya Verbin <iverbin@gcc.gnu.org>2014-11-19 13:52:12 +0000
commit844b0125ef70e9741eab58229ce19e59c252c54c (patch)
tree7425286d248e3efa9597683c1a1ba65ee1f7eb96 /gcc/cgraph.c
parent0096508a2590c3130e23f8c81f443065abcf545e (diff)
downloadgcc-844b0125ef70e9741eab58229ce19e59c252c54c.zip
gcc-844b0125ef70e9741eab58229ce19e59c252c54c.tar.gz
gcc-844b0125ef70e9741eab58229ce19e59c252c54c.tar.bz2
re PR regression/63868 (Multiple failures in the libgomp test suite between r217458 and r217501.)
PR regression/63868 * cgraph.c (cgraph_node::create): Guard g->have_offload with ifdef ENABLE_OFFLOADING. * omp-low.c (create_omp_child_function): Likewise. (expand_omp_target): Guard node->mark_force_output and offload_funcs with ifdef ENABLE_OFFLOADING. * varpool.c (varpool_node::get_create): Guard g->have_offload and offload_vars with ifdef ENABLE_OFFLOADING. From-SVN: r217773
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index cc04744..18ae6a8 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -500,7 +500,9 @@ cgraph_node::create (tree decl)
&& lookup_attribute ("omp declare target", DECL_ATTRIBUTES (decl)))
{
node->offloadable = 1;
+#ifdef ENABLE_OFFLOADING
g->have_offload = true;
+#endif
}
node->register_symbol ();