diff options
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 77 |
1 files changed, 3 insertions, 74 deletions
diff --git a/gcc/function.c b/gcc/function.c index 26334f1..62f7a70 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -40,6 +40,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "config.h" #include "system.h" +#include "coretypes.h" +#include "tm.h" #include "rtl.h" #include "tree.h" #include "flags.h" @@ -1252,46 +1254,6 @@ push_temp_slots () temp_slot_level++; } -/* Likewise, but save the new level as the place to allocate variables - for blocks. */ - -#if 0 -void -push_temp_slots_for_block () -{ - push_temp_slots (); - - var_temp_slot_level = temp_slot_level; -} - -/* Likewise, but save the new level as the place to allocate temporaries - for TARGET_EXPRs. */ - -void -push_temp_slots_for_target () -{ - push_temp_slots (); - - target_temp_slot_level = temp_slot_level; -} - -/* Set and get the value of target_temp_slot_level. The only - permitted use of these functions is to save and restore this value. */ - -int -get_target_temp_slot_level () -{ - return target_temp_slot_level; -} - -void -set_target_temp_slot_level (level) - int level; -{ - target_temp_slot_level = level; -} -#endif - /* Pop a temporary nesting level. All slots in use in the current level are freed. */ @@ -4181,12 +4143,6 @@ delete_handlers () } } -int -max_parm_reg_num () -{ - return max_parm_reg; -} - /* Return the first insn following those generated by `assign_parms'. */ rtx @@ -4197,24 +4153,6 @@ get_first_nonparm_insn () return get_insns (); } -/* Return the first NOTE_INSN_BLOCK_BEG note in the function. - Crash if there is none. */ - -rtx -get_first_block_beg () -{ - rtx searcher; - rtx insn = get_first_nonparm_insn (); - - for (searcher = insn; searcher; searcher = NEXT_INSN (searcher)) - if (GET_CODE (searcher) == NOTE - && NOTE_LINE_NUMBER (searcher) == NOTE_INSN_BLOCK_BEG) - return searcher; - - abort (); /* Invalid call to this function. (See comments above.) */ - return NULL_RTX; -} - /* Return 1 if EXP is an aggregate type (or a value with aggregate type). This means a type for which function calls must pass an address to the function or get an address back from the function. @@ -6292,8 +6230,6 @@ prepare_function_start () cfun->arc_profile = profile_arc_flag || flag_test_coverage; - cfun->arc_profile = profile_arc_flag || flag_test_coverage; - cfun->function_frequency = FUNCTION_FREQUENCY_NORMAL; cfun->max_jumptable_ents = 0; @@ -7206,10 +7142,7 @@ emit_return_into_block (bb, line_note) basic_block bb; rtx line_note; { - rtx p, end; - - p = NEXT_INSN (bb->end); - end = emit_jump_insn_after (gen_return (), bb->end); + emit_jump_insn_after (gen_return (), bb->end); if (line_note) emit_line_note_after (NOTE_SOURCE_FILE (line_note), NOTE_LINE_NUMBER (line_note), PREV_INSN (bb->end)); @@ -7865,8 +7798,6 @@ reposition_prologue_and_epilogue_notes (f) if (last) { - rtx next; - /* Find the prologue-end note if we haven't already, and move it to just after the last prologue insn. */ if (note == 0) @@ -7877,8 +7808,6 @@ reposition_prologue_and_epilogue_notes (f) break; } - next = NEXT_INSN (note); - /* Avoid placing note between CODE_LABEL and BASIC_BLOCK note. */ if (GET_CODE (last) == CODE_LABEL) last = NEXT_INSN (last); |