]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only available for TARGET_FPRS.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 15 Oct 2004 18:50:55 +0000 (18:50 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 15 Oct 2004 18:50:55 +0000 (18:50 +0000)
* config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
available for TARGET_FPRS.
(FUNCTION_VALUE_REGNO_P): Same.

From-SVN: r89112

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index a62934b7a369d02ec3beba192bcfa5fe4df57593..a78f9bb5ea25f52bd16a383ea6f077d9354d8966 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
+       available for TARGET_FPRS.
+       (FUNCTION_VALUE_REGNO_P): Same.
+
 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
 
        * doc/invoke.texi (RS/6000 and PowerPC Options): Document
index 848b79d38b2c43826d143e9d299e9c284a05b068..28932aa661ec8e448c4c036320c9b79685f74045 100644 (file)
@@ -1622,7 +1622,7 @@ extern enum rs6000_abi rs6000_current_abi;        /* available for use by subtarget */
    On RS/6000, this is r3, fp1, and v2 (for AltiVec).  */
 #define FUNCTION_VALUE_REGNO_P(N)                                      \
   ((N) == GP_ARG_RETURN                                                        \
-   || ((N) == FP_ARG_RETURN && TARGET_HARD_FLOAT)                      \
+   || ((N) == FP_ARG_RETURN && TARGET_HARD_FLOAT && TARGET_FPRS)       \
    || ((N) == ALTIVEC_ARG_RETURN && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI))
 
 /* 1 if N is a possible register number for function argument passing.
@@ -1633,7 +1633,7 @@ extern enum rs6000_abi rs6000_current_abi;        /* available for use by subtarget */
    || ((unsigned) (N) - ALTIVEC_ARG_MIN_REG < ALTIVEC_ARG_NUM_REG      \
        && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI)                                \
    || ((unsigned) (N) - FP_ARG_MIN_REG < FP_ARG_NUM_REG                        \
-       && TARGET_HARD_FLOAT))
+       && TARGET_HARD_FLOAT && TARGET_FPRS))
 \f
 /* A C structure for machine-specific, per-function data.
    This is added to the cfun structure.  */