aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-11-15 00:18:08 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-11-15 00:18:08 +0000
commit1d899da29704ced8c3a947763a963e82e9044015 (patch)
treefe7f3471ed76026bcad310f09c41225d048f1074 /gcc/omp-low.c
parentdd4fb6097ad6c16af5ba806c56513e5d756ab852 (diff)
downloadgcc-1d899da29704ced8c3a947763a963e82e9044015.zip
gcc-1d899da29704ced8c3a947763a963e82e9044015.tar.gz
gcc-1d899da29704ced8c3a947763a963e82e9044015.tar.bz2
always define ENABLE_OFFLOADING
gcc/cp/ChangeLog: 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * parser.c (cp_parser_omp_declare_target): Adjust. gcc/ChangeLog: 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * configure: Regenerate. * configure.ac: Always define ENABLE_OFFLOADING. * cgraph.c (cgraph_node::create): Adjust. * gcc.c (process_command): Likewise. * omp-low.c (create_omp_child_function): Likewise. (expand_omp_target): Likewise. * varpool.c (varpool_node::get_create): Likewise. gcc/c/ChangeLog: 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * c-parser.c (c_parser_omp_declare_target): Adjust. From-SVN: r230393
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 987bc3e..58248d9 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -2424,9 +2424,9 @@ create_omp_child_function (omp_context *ctx, bool task_copy)
if (is_gimple_omp_offloaded (octx->stmt))
{
cgraph_node::get_create (decl)->offloadable = 1;
-#ifdef ENABLE_OFFLOADING
- g->have_offload = true;
-#endif
+ if (ENABLE_OFFLOADING)
+ g->have_offload = true;
+
break;
}
}
@@ -12613,10 +12613,9 @@ expand_omp_target (struct omp_region *region)
node->parallelized_function = 1;
cgraph_node::add_new_function (child_fn, true);
-#ifdef ENABLE_OFFLOADING
/* Add the new function to the offload table. */
- vec_safe_push (offload_funcs, child_fn);
-#endif
+ if (ENABLE_OFFLOADING)
+ vec_safe_push (offload_funcs, child_fn);
bool need_asm = DECL_ASSEMBLER_NAME_SET_P (current_function_decl)
&& !DECL_ASSEMBLER_NAME_SET_P (child_fn);
@@ -12628,11 +12627,10 @@ expand_omp_target (struct omp_region *region)
assign_assembler_name_if_neeeded (child_fn);
cgraph_edge::rebuild_edges ();
-#ifdef ENABLE_OFFLOADING
/* Prevent IPA from removing child_fn as unreachable, since there are no
refs from the parent function to child_fn in offload LTO mode. */
- cgraph_node::get (child_fn)->mark_force_output ();
-#endif
+ if (ENABLE_OFFLOADING)
+ cgraph_node::get (child_fn)->mark_force_output ();
/* Some EH regions might become dead, see PR34608. If
pass_cleanup_cfg isn't the first pass to happen with the