diff options
author | Bernd Schmidt <bernds@cygnus.co.uk> | 1999-12-20 13:18:17 +0000 |
---|---|---|
committer | Bernd Schmidt <crux@gcc.gnu.org> | 1999-12-20 13:18:17 +0000 |
commit | 01d939e8fb624ea88487fd41ce93c238a5eb870a (patch) | |
tree | ef38c36222ccc381ac63f61190043f19cbf2124f /gcc/config | |
parent | 239a0f5ba54e5a19c4445835429ce113a68bebde (diff) | |
download | gcc-01d939e8fb624ea88487fd41ce93c238a5eb870a.zip gcc-01d939e8fb624ea88487fd41ce93c238a5eb870a.tar.gz gcc-01d939e8fb624ea88487fd41ce93c238a5eb870a.tar.bz2 |
current_function -> cfun
From-SVN: r31033
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 8 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.md | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 3 |
4 files changed, 7 insertions, 8 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 9dc2f73..282ffe9 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2739,13 +2739,13 @@ alpha_return_addr (count, frame) if (count != 0) return const0_rtx; - reg = current_function->machine->ra_rtx; + reg = cfun->machine->ra_rtx; if (reg == NULL) { /* No rtx yet. Invent one, and initialize it from $26 in the prologue. */ reg = gen_reg_rtx (Pmode); - current_function->machine->ra_rtx = reg; + cfun->machine->ra_rtx = reg; init = gen_rtx_SET (VOIDmode, reg, gen_rtx_REG (Pmode, REG_RA)); /* Emit the insn to the prologue with the other argument copies. */ @@ -2766,7 +2766,7 @@ alpha_ra_ever_killed () if (current_function_is_thunk) return 0; #endif - if (!current_function->machine->ra_rtx) + if (!cfun->machine->ra_rtx) return regs_ever_live[REG_RA]; push_topmost_sequence (); @@ -4090,7 +4090,7 @@ alpha_expand_epilogue () fp_is_frame_pointer = ((TARGET_OPEN_VMS && vms_is_stack_procedure) || (!TARGET_OPEN_VMS && frame_pointer_needed)); - eh_ofs = current_function->machine->eh_epilogue_sp_ofs; + eh_ofs = cfun->machine->eh_epilogue_sp_ofs; if (sa_size) { /* If we have a frame pointer, restore SP from it. */ diff --git a/gcc/config/alpha/alpha.md b/gcc/config/alpha/alpha.md index 5d5b8d2..31c3555 100644 --- a/gcc/config/alpha/alpha.md +++ b/gcc/config/alpha/alpha.md @@ -5153,7 +5153,7 @@ "! TARGET_OPEN_VMS" " { - current_function->machine->eh_epilogue_sp_ofs = operands[1]; + cfun->machine->eh_epilogue_sp_ofs = operands[1]; if (GET_CODE (operands[2]) != REG || REGNO (operands[2]) != 26) { rtx ra = gen_rtx_REG (Pmode, 26); diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 74d67c2..18124b4 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -245,7 +245,7 @@ struct machine_function rtx stack_locals[(int) MAX_MACHINE_MODE][MAX_386_STACK_LOCALS]; }; -#define ix86_stack_locals (current_function->machine->stack_locals) +#define ix86_stack_locals (cfun->machine->stack_locals) /* which cpu are we scheduling for */ enum processor_type ix86_cpu; diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index ee2c974..5af17e2 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -2763,8 +2763,7 @@ mem_min_alignment (mem, desired) /* Check if the compiler has recorded some information about the alignment of the base REG. If reload has completed, we already matched with proper alignments. */ - if (((current_function != 0 - && REGNO_POINTER_ALIGN (regno) >= desired) + if (((cfun != 0 && REGNO_POINTER_ALIGN (regno) >= desired) || reload_completed) && ((INTVAL (offset) & (desired - 1)) == 0)) return 1; |