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]

V850: Define IRA_COVER_CLASSES


Hi Guys,

  I am checking in the patch below to define IRA_COVER_CLASSES for the
  V850 target.  Whilst checking this patch I found that the new
  register allocator exposed a problem with the return instruction
  pattern, so the patch also includes a fix for this.

Cheers
  Nick

gcc/ChangeLog
2008-08-28  Nick Clifton  <nickc@redhat.com>

	* config/v850/v850.h (IRA_COVER_CLASSES): Define.
	* config/v850/v850.md (return): Remove frame size restriction.	

Index: gcc/config/v850/v850.h
===================================================================
--- gcc/config/v850/v850.h	(revision 139716)
+++ gcc/config/v850/v850.h	(working copy)
@@ -318,6 +318,11 @@
 
 #define N_REG_CLASSES (int) LIM_REG_CLASSES
 
+#define IRA_COVER_CLASSES		\
+{					\
+  GENERAL_REGS, LIM_REG_CLASSES		\
+}
+
 /* Give names of register classes as strings for dump file.  */
 
 #define REG_CLASS_NAMES \
Index: gcc/config/v850/v850.md
===================================================================
--- gcc/config/v850/v850.md	(revision 139716)
+++ gcc/config/v850/v850.md	(working copy)
@@ -1563,7 +1563,7 @@
 
 (define_insn "return"
   [(return)]
-  "reload_completed && compute_frame_size (get_frame_size (), (long *)0) == 0"
+  "reload_completed"
   "jmp [r31]"
   [(set_attr "length" "2")
    (set_attr "cc" "none")])


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