From ec24c3a3c9ff0c79ee840f39abab63bc11aec115 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 1 Apr 2008 10:41:14 +0200 Subject: re PR middle-end/35781 (Revision 133759 breaks ia64) PR middle-end/35781 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use rtl.emit instead cfun->emit. * sparc/sparc.h (INIT_EXPANDERS): Likewise. * ia64/ia64.h (INIT_EXPANDERS): Likewise. Co-Authored-By: Andreas Tobler Co-Authored-By: James E Wilson From-SVN: r133786 --- gcc/config/m32c/m32c.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gcc/config/m32c/m32c.c') diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index 2b3bab5..37caaf9 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -3889,20 +3889,20 @@ m32c_leaf_function_p (void) struct sequence_stack *seq; int rv; - saved_first = cfun->emit->x_first_insn; - saved_last = cfun->emit->x_last_insn; - for (seq = cfun->emit->sequence_stack; seq && seq->next; seq = seq->next) + saved_first = rtl.emit.x_first_insn; + saved_last = rtl.emit.x_last_insn; + for (seq = rtl.emit.sequence_stack; seq && seq->next; seq = seq->next) ; if (seq) { - cfun->emit->x_first_insn = seq->first; - cfun->emit->x_last_insn = seq->last; + rtl.emit.x_first_insn = seq->first; + rtl.emit.x_last_insn = seq->last; } rv = leaf_function_p (); - cfun->emit->x_first_insn = saved_first; - cfun->emit->x_last_insn = saved_last; + rtl.emit.x_first_insn = saved_first; + rtl.emit.x_last_insn = saved_last; return rv; } @@ -3918,7 +3918,7 @@ m32c_function_needs_enter (void) rtx fb = gen_rtx_REG (Pmode, FB_REGNO); insn = get_insns (); - for (seq = cfun->emit->sequence_stack; + for (seq = rtl.emit.sequence_stack; seq; insn = seq->first, seq = seq->next); -- cgit v1.1