mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor registers used to pass vectors.
authorDJ Delorie <dj@redhat.com>
Fri, 10 Jul 2009 01:31:45 +0000 (21:31 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 10 Jul 2009 01:31:45 +0000 (21:31 -0400)
* config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
registers used to pass vectors.

From-SVN: r149455

gcc/ChangeLog
gcc/config/mep/mep.h

index 230aab6..6ec87f3 100644 (file)
@@ -1,5 +1,8 @@
 2009-07-09  DJ Delorie  <dj@redhat.com>
 
+       * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
+       registers used to pass vectors.
+
        * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
 
 2009-07-09  Tom Tromey  <tromey@redhat.com>
index 7c69a5d..4f58f70 100644 (file)
@@ -534,7 +534,9 @@ typedef struct
 #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)           \
        mep_arg_advance (& (CUM), MODE, TYPE, NAMED)
 
-#define FUNCTION_ARG_REGNO_P(REGNO) ((REGNO) >= 1 && (REGNO) <= 4)
+#define FUNCTION_ARG_REGNO_P(REGNO) \
+       (((REGNO) >= 1 && (REGNO) <= 4) \
+        || ((REGNO) >= FIRST_CR_REGNO + 1 && (REGNO) <= FIRST_CR_REGNO + 4))
 
 #define RETURN_VALUE_REGNUM     0