From: Tom de Vries Date: Wed, 10 Jun 2015 08:20:50 +0000 (+0000) Subject: Fix build for ENABLE_OFFLOADING in expand_omp_target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=687061126697ab07e5a76937d51f5413f0f1c206;p=gcc.git Fix build for ENABLE_OFFLOADING in expand_omp_target 2015-06-10 Tom de Vries * omp-low.c (expand_omp_target): Remove duplicate declaration of node. From-SVN: r224316 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3d97a8d08c3..14d7c71e546 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-10 Tom de Vries + + * omp-low.c (expand_omp_target): Remove duplicate declaration of node. + 2015-06-10 Martin Liska PR bootstrap/66471 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 77716bf6c20..72c431e3e9f 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