mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor registers if no coprocessor is...
authorDJ Delorie <dj@redhat.com>
Tue, 1 Sep 2009 02:03:15 +0000 (22:03 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 1 Sep 2009 02:03:15 +0000 (22:03 -0400)
* config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
registers if no coprocessor is enabled.

From-SVN: r151257

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

index 7acb781..9ef3dc2 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-31  DJ Delorie  <dj@redhat.com>
+
+       * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
+       registers if no coprocessor is enabled.
+
 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
 
        PR debug/30161
index 58a6886..cb09c30 100644 (file)
@@ -531,7 +531,9 @@ typedef struct
 
 #define FUNCTION_ARG_REGNO_P(REGNO) \
        (((REGNO) >= 1 && (REGNO) <= 4) \
-        || ((REGNO) >= FIRST_CR_REGNO + 1 && (REGNO) <= FIRST_CR_REGNO + 4))
+        || ((REGNO) >= FIRST_CR_REGNO + 1 \
+            && (REGNO) <= FIRST_CR_REGNO + 4 \
+            && TARGET_COP))
 
 #define RETURN_VALUE_REGNUM     0