diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 20:54:44 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 20:54:44 +0000 |
commit | 6d866f03ce390aa6f6be2c215b8a4cd5f9cdb0e8 (patch) | |
tree | f2d3118471d29556bb961862c3ae6d62df08e484 /gcc/integrate.c | |
parent | 45b51429826bb7a81ef960b120d00b526d15215b (diff) | |
download | gcc-6d866f03ce390aa6f6be2c215b8a4cd5f9cdb0e8.tar.gz |
* basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
* except.c (finish_eh_generation): Update call of cleanup_cfg;
do rebuild_jump_labels instead of jump_optimize
* sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
* toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
* flow.c (try_optimize_cfg): Remove unneeded code_labels.
* flow.c: Include timevar.h
(find_basic_block): Push/pop timevar;
(cleanup_cfg): Likewise.
* timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
* Makefile: Add dependencies on timevar.h
* integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
(copy_insn_list): Avoid killing of BASIC_BLOCK notes.
* rtl.h (delete_trivially_dead_insns): Add new parameter.
* toplev.c (rest_of_compilation): Update calls.
* cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
(delete_trivially_dead_insns): ... here; accept new argument
preserve_basic_blocks; preserve basic blocks if set.
* reg-stack.c (stack_regs_mentioned): Return 0 if
stack_regs_mentioned_data is not initialized.
(reg_to_stack): Make stack_regs_mentioned survive after the
reg-stack is completted; do not call cleanup_cfg.
* toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
make cleanup_cfg after bb-reorder to output to debug file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index bcb65e826a3..a642dcc1e08 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -427,6 +427,13 @@ save_for_inline (fndecl) argvec = initialize_for_inline (fndecl); + /* Delete basic block notes created by early run of find_basic_block. + The notes would be later used by find_basic_blocks to reuse the memory + for basic_block structures on already freed obstack. */ + for (insn = get_insns (); insn ; insn = NEXT_INSN (insn)) + if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) == NOTE_INSN_BASIC_BLOCK) + delete_insn (insn); + /* If there are insns that copy parms from the stack into pseudo registers, those insns are not copied. `expand_inline_function' must emit the correct code to handle such things. */ @@ -1552,17 +1559,11 @@ copy_insn_list (insns, map, static_chain_value) discarded because it is important to have only one of each in the current function. - NOTE_INSN_DELETED notes aren't useful. - - NOTE_INSN_BASIC_BLOCK is discarded because the saved bb - pointer (which will soon be dangling) confuses flow's - attempts to preserve bb structures during the compilation - of a function. */ + NOTE_INSN_DELETED notes aren't useful. */ if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END && NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_BEG - && NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED - && NOTE_LINE_NUMBER (insn) != NOTE_INSN_BASIC_BLOCK) + && NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED) { copy = emit_note (NOTE_SOURCE_FILE (insn), NOTE_LINE_NUMBER (insn)); |