From: DJ Delorie Date: Tue, 1 Sep 2009 02:03:15 +0000 (-0400) Subject: mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor registers if no coprocessor is... X-Git-Tag: releases/gcc-4.5.0~3757 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=453503d6e6df0d85757837080f0ea2c72369e974;p=thirdparty%2Fgcc.git mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor registers if no coprocessor is enabled. * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor registers if no coprocessor is enabled. From-SVN: r151257 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7acb781f7dbb..9ef3dc2c5492 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-31 DJ Delorie + + * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor + registers if no coprocessor is enabled. + 2009-08-31 Dodji Seketeli PR debug/30161 diff --git a/gcc/config/mep/mep.h b/gcc/config/mep/mep.h index 58a688614cc7..cb09c308d500 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