aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mep/mep.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7acb781..9ef3dc2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/mep/mep.h b/gcc/config/mep/mep.h
index 58a6886..cb09c30 100644
--- a/gcc/config/mep/mep.h
+++ b/gcc/config/mep/mep.h
@@ -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