]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-inline.c
* Makefile.in (omp-low.o): Depend on $(TARGET_H).
[thirdparty/gcc.git] / gcc / tree-inline.c
index 55e527014f1148de4842e4391a2a27f477e65a1f..af26c85150d2984e1172e9a760d6927c77faf8a1 100644 (file)
@@ -1298,7 +1298,8 @@ remap_gimple_stmt (gimple stmt, copy_body_data *id)
        case GIMPLE_OMP_FOR:
          s1 = remap_gimple_seq (gimple_omp_body (stmt), id);
          s2 = remap_gimple_seq (gimple_omp_for_pre_body (stmt), id);
-         copy = gimple_build_omp_for (s1, gimple_omp_for_clauses (stmt),
+         copy = gimple_build_omp_for (s1, gimple_omp_for_kind (stmt),
+                                      gimple_omp_for_clauses (stmt),
                                       gimple_omp_for_collapse (stmt), s2);
          {
            size_t i;
@@ -2399,6 +2400,8 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency_scale,
                  get_loop (src_cfun, 0));
       /* Defer to cfgcleanup to update loop-father fields of basic-blocks.  */
       loops_state_set (LOOPS_NEED_FIXUP);
+      cfun->has_force_vect_loops |= src_cfun->has_force_vect_loops;
+      cfun->has_simduid_loops |= src_cfun->has_simduid_loops;
     }
 
   /* If the loop tree in the source function needed fixup, mark the