aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2006-12-16 19:10:08 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2006-12-16 18:10:08 +0000
commita5093353f1d469f42be7672f4e857bc36d09936d (patch)
treedd7896f1a2b9c68948381b4e79fb25400240afa0 /gcc/omp-low.c
parente5c0ebd921c534e1b56fab49a589884e2ffeb334 (diff)
downloadgcc-a5093353f1d469f42be7672f4e857bc36d09936d.zip
gcc-a5093353f1d469f42be7672f4e857bc36d09936d.tar.gz
gcc-a5093353f1d469f42be7672f4e857bc36d09936d.tar.bz2
omp-low.c (expand_omp_parallel): Set function properties.
* omp-low.c (expand_omp_parallel): Set function properties. * function.h (struct function): Add curr_properties and last_verified. * passes.c (register_dump_files): Do not set TODO_set_props for the first pass (init_optimization_passes): Set it here; reorder initialization so the dump files appear in more logical order. (last_verified, curr_properties): Kill. (do_per_function): New function. (execute_function_todo): Break out from ... (execute_todo): ... here; handle per-function flags. (clear_last_verified, verify_curr_properties, update_properties_after_pass): New functions. (execute_one_pass): Handle per-function properties. (execute_ipa_pass_list): Use do_per_function; sanity check that cfun and current_function_decls are cleared out. * ipa-cp.c (constant_val_insert): Clear cfun/current_function_decl after use. From-SVN: r119966
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index ca6aa3a..e744a24 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -2531,6 +2531,8 @@ expand_omp_parallel (struct omp_region *region)
new_bb = move_sese_region_to_fn (child_cfun, entry_bb, exit_bb);
if (exit_bb)
single_succ_edge (new_bb)->flags = EDGE_FALLTHRU;
+ DECL_STRUCT_FUNCTION (child_fn)->curr_properties
+ = cfun->curr_properties;
cgraph_add_new_function (child_fn);
/* Convert OMP_RETURN into a RETURN_EXPR. */