[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Remove last_parm_insn
From: Richard Henderson <rth () redhat ! com>
Date: 2004-06-30 23:58:48
Message-ID: 20040630235848.GA29573 () redhat ! com
[Download RAW message or body]
This variable is write-only.
r~
* function.h (struct function): Remove x_last_parm_insn,
inl_last_parm_insn.
(last_parm_insn): Remove.
* function.c (free_after_compilation): Don't clear them.
(fixup_var_refs_insn, assign_parms): Don't set them.
Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.532
diff -c -p -d -r1.532 function.c
*** function.c 30 Jun 2004 22:30:29 -0000 1.532
--- function.c 30 Jun 2004 23:56:12 -0000
*************** free_after_compilation (struct function
*** 446,457 ****
f->x_tail_recursion_reentry = NULL;
f->x_arg_pointer_save_area = NULL;
f->x_parm_birth_insn = NULL;
- f->x_last_parm_insn = NULL;
f->x_parm_reg_stack_loc = NULL;
f->fixup_var_refs_queue = NULL;
f->original_arg_vector = NULL;
f->original_decl_initial = NULL;
- f->inl_last_parm_insn = NULL;
f->epilogue_delay_list = NULL;
}
--- 446,455 ----
*************** fixup_var_refs_insn (rtx insn, rtx var,
*** 1824,1835 ****
fixup_var_refs_1 (var, promoted_mode, &PATTERN (insn), insn,
&replacements, no_share);
- /* If this is last_parm_insn, and any instructions were output
- after it to fix it up, then we must set last_parm_insn to
- the last such instruction emitted. */
- if (insn == last_parm_insn)
- last_parm_insn = PREV_INSN (next_insn);
-
while (replacements)
{
struct fixup_replacement *next;
--- 1822,1827 ----
*************** assign_parms (tree fndecl)
*** 5292,5299 ****
SET_DECL_RTL (result, x);
}
- last_parm_insn = get_last_insn ();
-
/* We have aligned all the args, so add space for the pretend args. */
stack_args_size.constant += extra_pretend_bytes;
current_function_args_size = stack_args_size.constant;
--- 5284,5289 ----
Index: function.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.h,v
retrieving revision 1.119
diff -c -p -d -r1.119 function.h
*** function.h 19 Jun 2004 18:52:04 -0000 1.119
--- function.h 30 Jun 2004 23:56:12 -0000
*************** struct function GTY(())
*** 296,305 ****
/* Insn after which register parms and SAVE_EXPRs are born, if nonopt. */
rtx x_parm_birth_insn;
- /* Last insn of those whose job was to put parms into their nominal
- homes. */
- rtx x_last_parm_insn;
-
/* 1 + last pseudo register number possibly used for loading a copy
of a parameter of this function. */
unsigned int x_max_parm_reg;
--- 296,301 ----
*************** struct function GTY(())
*** 337,345 ****
int no_debugging_symbols;
rtvec original_arg_vector;
tree original_decl_initial;
- /* Last insn of those whose job was to put parms into their nominal
- homes. */
- rtx inl_last_parm_insn;
/* Highest label number in current function. */
int inl_max_label_num;
--- 333,338 ----
*************** extern int trampolines_created;
*** 550,556 ****
#define tail_recursion_reentry (cfun->x_tail_recursion_reentry)
#define arg_pointer_save_area (cfun->x_arg_pointer_save_area)
#define rtl_expr_chain (cfun->x_rtl_expr_chain)
- #define last_parm_insn (cfun->x_last_parm_insn)
#define function_call_count (cfun->x_function_call_count)
#define used_temp_slots (cfun->x_used_temp_slots)
#define avail_temp_slots (cfun->x_avail_temp_slots)
--- 543,548 ----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic