From e6d6ec9e06d6512732941c86464d8c5852928432 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 14 Jan 2016 20:01:39 +0000 Subject: Mark symbols in offload tables with force_output in read_offload_tables 2016-01-14 Tom de Vries PR tree-optimization/68773 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't set force_output. * parser.c (cp_parser_oacc_declare, cp_parser_omp_declare_target): Don't set force_output. * omp-low.c (expand_omp_target): Don't set force_output. * varpool.c (varpool_node::get_create): Same. * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and offload_funcs with force_output. From-SVN: r232384 --- gcc/omp-low.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gcc/omp-low.c') diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 9dda946..6df01a4 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -12771,11 +12771,6 @@ expand_omp_target (struct omp_region *region) assign_assembler_name_if_neeeded (child_fn); cgraph_edge::rebuild_edges (); - /* Prevent IPA from removing child_fn as unreachable, since there are no - refs from the parent function to child_fn in offload LTO mode. */ - 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 new child, these dead EH edges might cause problems. -- cgit v1.1