diff options
author | Tom de Vries <tom@codesourcery.com> | 2016-01-14 20:01:39 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2016-01-14 20:01:39 +0000 |
commit | e6d6ec9e06d6512732941c86464d8c5852928432 (patch) | |
tree | d7d7471f673a927626b21db4007d16bcf4e89625 /gcc/omp-low.c | |
parent | c3f6914aa4a8e592957c1e518c31fe27c1b208ac (diff) | |
download | gcc-e6d6ec9e06d6512732941c86464d8c5852928432.zip gcc-e6d6ec9e06d6512732941c86464d8c5852928432.tar.gz gcc-e6d6ec9e06d6512732941c86464d8c5852928432.tar.bz2 |
Mark symbols in offload tables with force_output in read_offload_tables
2016-01-14 Tom de Vries <tom@codesourcery.com>
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
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 5 |
1 files changed, 0 insertions, 5 deletions
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. |