diff options
author | Jan Hubicka <jh@suse.cz> | 2008-04-08 01:52:32 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-04-07 23:52:32 +0000 |
commit | 3e0297630411f86aeb2d559cd4b379fec46a4654 (patch) | |
tree | 4160eb6c77f2042142a19b7b0d431545c848a42b /gcc/emit-rtl.c | |
parent | 47583040f760ccfa6948622033a4835c8b747c5a (diff) | |
download | gcc-3e0297630411f86aeb2d559cd4b379fec46a4654.zip gcc-3e0297630411f86aeb2d559cd4b379fec46a4654.tar.gz gcc-3e0297630411f86aeb2d559cd4b379fec46a4654.tar.bz2 |
function.h (rtl): Rename to x_rtl.
* function.h (rtl): Rename to x_rtl.
(crtl): New define.
(return_label, naked_return_label, stack_slot_list, parm_birth_insn,
frame_offset, stack_check_probe_note, arg_pointer_save_area,
used_temp_slots avail_temp_slots, temp_slot_level,
nonlocal_goto_handler_labels): Update accesstors.
(rtl): New global variable.
(struct function): Move some fileds to rtl_data.
(get_arg_pointer_save_area): Update prototype.
* builtins.c (expand_builtin_setjmp_receiver): Update call of
get_arg_pointer_save_area.
* expr.c (init_expr): Update
* function.c (get_frame_size): Update
(assign_stack_local): Update
(expand_function_end): Update.
(get_art_pointer_save_area): Update
* function.h
* emit-rtl.c (rtl): Declare.
(regno_reg_rtx): Declare.
(first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
Update.
(gen_reg_rtx): Update.
* varasm.c (n_deferred_constatns): Update accestor.
(init_varasm_status): Do not allocate varasm_status.
(force_const_mem, get_pool_size, output_constant_pool): Update.
* stmt.c (force_label_rtx): Do not use x_ prefixes.
(expand_nl_goto_receiver): Update get_arg_pointer_save_area.
* m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
* sparc/sparc.h (INIT_EXPANDERS): Update.
* ia64/ia64.h (INIT_EXPANDERS): Update.
From-SVN: r133994
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2fe9116..aa9e965 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -68,7 +68,7 @@ enum machine_mode ptr_mode; /* Mode whose width is POINTER_SIZE. */ /* Datastructures maintained for currently processed function in RTL form. */ -struct rtl_data rtl; +struct rtl_data x_rtl; /* Indexed by pseudo register number, gives the rtx for that pseudo. Allocated in parallel with regno_pointer_align. @@ -172,11 +172,11 @@ static GTY ((if_marked ("ggc_marked_p"), param_is (struct rtx_def))) static GTY ((if_marked ("ggc_marked_p"), param_is (struct rtx_def))) htab_t const_fixed_htab; -#define first_insn (rtl.emit.x_first_insn) -#define last_insn (rtl.emit.x_last_insn) -#define cur_insn_uid (rtl.emit.x_cur_insn_uid) -#define last_location (rtl.emit.x_last_location) -#define first_label_num (rtl.emit.x_first_label_num) +#define first_insn (crtl->emit.x_first_insn) +#define last_insn (crtl->emit.x_last_insn) +#define cur_insn_uid (crtl->emit.x_cur_insn_uid) +#define last_location (crtl->emit.x_last_location) +#define first_label_num (crtl->emit.x_first_label_num) static rtx make_call_insn_raw (rtx); static rtx change_address_1 (rtx, enum machine_mode, rtx, int); @@ -887,22 +887,22 @@ gen_reg_rtx (enum machine_mode mode) /* Make sure regno_pointer_align, and regno_reg_rtx are large enough to have an element for this pseudo reg number. */ - if (reg_rtx_no == rtl.emit.regno_pointer_align_length) + if (reg_rtx_no == crtl->emit.regno_pointer_align_length) { - int old_size = rtl.emit.regno_pointer_align_length; + int old_size = crtl->emit.regno_pointer_align_length; char *new; rtx *new1; - new = xrealloc (rtl.emit.regno_pointer_align, old_size * 2); + new = xrealloc (crtl->emit.regno_pointer_align, old_size * 2); memset (new + old_size, 0, old_size); - rtl.emit.regno_pointer_align = (unsigned char *) new; + crtl->emit.regno_pointer_align = (unsigned char *) new; new1 = ggc_realloc (regno_reg_rtx, old_size * 2 * sizeof (rtx)); memset (new1 + old_size, 0, old_size * sizeof (rtx)); regno_reg_rtx = new1; - rtl.emit.regno_pointer_align_length = old_size * 2; + crtl->emit.regno_pointer_align_length = old_size * 2; } val = gen_raw_REG (mode, reg_rtx_no); @@ -5009,14 +5009,14 @@ init_emit (void) /* Init the tables that describe all the pseudo regs. */ - rtl.emit.regno_pointer_align_length = LAST_VIRTUAL_REGISTER + 101; + crtl->emit.regno_pointer_align_length = LAST_VIRTUAL_REGISTER + 101; - rtl.emit.regno_pointer_align - = xcalloc (rtl.emit.regno_pointer_align_length + crtl->emit.regno_pointer_align + = xcalloc (crtl->emit.regno_pointer_align_length * sizeof (unsigned char), 1); regno_reg_rtx - = ggc_alloc (rtl.emit.regno_pointer_align_length * sizeof (rtx)); + = ggc_alloc (crtl->emit.regno_pointer_align_length * sizeof (rtx)); /* Put copies of all the hard registers into regno_reg_rtx. */ memcpy (regno_reg_rtx, |