This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[m32c] don't mark epilogue insns as frame related


Prevents an ICE in dwarf2out.c when compiling interrupt functions.
Applied.

2005-10-17  DJ Delorie  <dj@redhat.com>

	* config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
	as frame related.

Index: config/m32c/m32c.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32c/m32c.c,v
retrieving revision 1.5
diff -p -U3 -r1.5  config/m32c/m32c.c
--- config/m32c/m32c.c	2 Sep 2005 02:09:01 -0000	1.5
+++ config/m32c/m32c.c	17 Oct 2005 17:48:46 -0000
@@ -1322,17 +1322,14 @@ m32c_pushm_popm (Push_Pop_Type ppt)
     }
   if (ppt == PP_popm && byte_count)
     {
-      rtx insn;
-
       if (cfun->machine->is_interrupt)
 	for (i = MEM7_REGNO; i >= MEM0_REGNO; i--)
 	  if (cfun->machine->intr_pushmem[i - MEM0_REGNO])
 	    {
 	      if (TARGET_A16)
-		insn = emit_insn (gen_pophi_16 (gen_rtx_REG (HImode, i)));
+		emit_insn (gen_pophi_16 (gen_rtx_REG (HImode, i)));
 	      else
-		insn = emit_insn (gen_pophi_24 (gen_rtx_REG (HImode, i)));
-	      F (insn);
+		emit_insn (gen_pophi_24 (gen_rtx_REG (HImode, i)));
 	    }
       if (reg_mask)
 	emit_insn (gen_popm (GEN_INT (reg_mask)));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]