diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-06-10 08:20:50 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-06-10 08:20:50 +0000 |
commit | 687061126697ab07e5a76937d51f5413f0f1c206 (patch) | |
tree | c29a9d0baa10b53db172a2b8b828e7d239dd8a43 | |
parent | 643e0a30873598350e984f7391a2cbabb9f24706 (diff) | |
download | gcc-687061126697ab07e5a76937d51f5413f0f1c206.zip gcc-687061126697ab07e5a76937d51f5413f0f1c206.tar.gz gcc-687061126697ab07e5a76937d51f5413f0f1c206.tar.bz2 |
Fix build for ENABLE_OFFLOADING in expand_omp_target
2015-06-10 Tom de Vries <tom@codesourcery.com>
* omp-low.c (expand_omp_target): Remove duplicate declaration of node.
From-SVN: r224316
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/omp-low.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3d97a8d..14d7c71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-10 Tom de Vries <tom@codesourcery.com> + + * omp-low.c (expand_omp_target): Remove duplicate declaration of node. + 2015-06-10 Martin Liska <mliska@suse.cz> PR bootstrap/66471 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 77716bf..72c431e 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8976,8 +8976,7 @@ expand_omp_target (struct omp_region *region) #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. */ - struct cgraph_node *node = cgraph_node::get (child_fn); - node->mark_force_output (); + cgraph_node::get (child_fn)->mark_force_output (); #endif /* Some EH regions might become dead, see PR34608. If |