diff options
author | Jan Hubicka <jh@suse.cz> | 2006-12-30 12:58:01 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2006-12-30 11:58:01 +0000 |
commit | f45e0ad1c79faefabb17a699052140687ee3bca2 (patch) | |
tree | 4ee7560469c1e50ca7f51f6e50bca995ec5871a0 /gcc/passes.c | |
parent | e288c21aea32c7a9424cc4b89fc4a7c75b9e5fb2 (diff) | |
download | gcc-f45e0ad1c79faefabb17a699052140687ee3bca2.zip gcc-f45e0ad1c79faefabb17a699052140687ee3bca2.tar.gz gcc-f45e0ad1c79faefabb17a699052140687ee3bca2.tar.bz2 |
cgraph.c (cgraph_exapnd_queue): Rename to...
* cgraph.c (cgraph_exapnd_queue): Rename to...
(cgraph_new_nodes): ... this one.
(cgraph_state): New global variable.
(cgraph_add_new_function): Work in more cases.
* cgraph.h (cgraph_expand_queue): Rename to ...
(cgraph_new_nodes): ... this one.
(cgraph_state): New enum and static variable.
(cgraph_add_new_function): Update prototype.
(cgraph_process_new_functions): New.
* omp-low.c (expand_omp_parallel): Update.
* cgraphunit.c (initialize_inline_failed): Declare early.
(cgraph_process_new_functions): New function.
(cgraph_assemble_pending_functions): Use it.
(cgraph_expand_all_functions): Use it.
(cgraph_optimize): Use it; set cgraph_state.
* passes.c (execute_one_pass, execute_ipa_pass_list): Process new
functions
From-SVN: r120282
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 38c95cd..4588421 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -947,6 +947,9 @@ execute_one_pass (struct tree_opt_pass *pass) /* Run post-pass cleanup and verification. */ execute_todo (todo_after | pass->todo_flags_finish); + if (!current_function_decl) + cgraph_process_new_functions (); + /* Flush and close dump file. */ if (dump_file_name) { @@ -986,6 +989,8 @@ execute_ipa_pass_list (struct tree_opt_pass *pass) gcc_assert (!cfun); if (execute_one_pass (pass) && pass->sub) do_per_function ((void (*)(void *))execute_pass_list, pass->sub); + if (!current_function_decl) + cgraph_process_new_functions (); pass = pass->next; } while (pass); |