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]

Re: [h8300] misc patches


> If libgcc doesn't compile without them and you have the patches
> tested or can do the testing today and Jeff is ok with them, I think
> they can be applied now to 4.3 branch.

Yup, it won't build without them, and passes about 99% of the C
testsuite with them.  Committed as follows, to the 4.3 branch and trunk:

2008-02-20  DJ Delorie  <dj@redhat.com>

	* config/h8300/h8300.md (insv): Force source operand to be a register.

	* config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
	as a jump, not as a plain insn.
	
Index: config/h8300/h8300.c
===================================================================
--- config/h8300/h8300.c	(revision 132496)
+++ config/h8300/h8300.c	(working copy)
@@ -930,7 +930,7 @@
     }
 
   if (!returned_p)
-    emit_insn (gen_rtx_RETURN (VOIDmode));
+    emit_jump_insn (gen_rtx_RETURN (VOIDmode));
 }
 
 /* Return nonzero if the current function is an interrupt
Index: config/h8300/h8300.md
===================================================================
--- config/h8300/h8300.md	(revision 132496)
+++ config/h8300/h8300.md	(working copy)
@@ -3282,6 +3282,9 @@
   if (GET_CODE (operands[0]) == MEM
       || GET_CODE (operands[3]) == MEM)
     FAIL;
+
+  if (GET_CODE (operands[3]) != REG)
+    operands[3] = force_reg (HImode, operands[3]);
 }")
 
 (define_insn ""


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