diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2014-11-19 13:52:12 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2014-11-19 13:52:12 +0000 |
commit | 844b0125ef70e9741eab58229ce19e59c252c54c (patch) | |
tree | 7425286d248e3efa9597683c1a1ba65ee1f7eb96 /gcc/cgraph.c | |
parent | 0096508a2590c3130e23f8c81f443065abcf545e (diff) | |
download | gcc-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.c | 2 |
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 (); |