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