aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/omp-low.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8f92fec..919a621 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,8 +1,8 @@
2015-06-17 Jakub Jelinek <jakub@redhat.com>
PR middle-end/66429
- * omp-low.c (expand_omp_taskreg): Use child_cfun instead of
- DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
+ * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
+ instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
and has_force_vectorize_loops flags from cfun into
child_cfun.
(expand_omp_simd): For broken loop, set cfun->has_simduid_loops
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 6325b82..415a2c8 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -8960,7 +8960,9 @@ expand_omp_target (struct omp_region *region)
vec_safe_truncate (child_cfun->local_decls, dstidx);
/* Inform the callgraph about the new function. */
- DECL_STRUCT_FUNCTION (child_fn)->curr_properties = cfun->curr_properties;
+ child_cfun->curr_properties = cfun->curr_properties;
+ child_cfun->has_simduid_loops |= cfun->has_simduid_loops;
+ child_cfun->has_force_vectorize_loops |= cfun->has_force_vectorize_loops;
cgraph_node *node = cgraph_node::get_create (child_fn);
node->parallelized_function = 1;
cgraph_node::add_new_function (child_fn, true);