From a5093353f1d469f42be7672f4e857bc36d09936d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 16 Dec 2006 19:10:08 +0100 Subject: 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 --- gcc/ipa-cp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ipa-cp.c') diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 305b1a5..0451667 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -453,6 +453,8 @@ constant_val_insert (tree fn, tree parm1, tree val) if (ENTRY_BLOCK_PTR_FOR_FUNCTION (func)->succs) FOR_EACH_EDGE (e_step, ei, ENTRY_BLOCK_PTR_FOR_FUNCTION (func)->succs) bsi_insert_on_edge_immediate (e_step, init_stmt); + current_function_decl = NULL; + cfun = NULL; } /* build INTEGER_CST tree with type TREE_TYPE and -- cgit v1.1