Fix -mflat bug reported by Yamamoto Hirotaka.
authorJim Wilson <wilson@cygnus.com>
Mon, 11 May 1998 17:44:31 +0000 (17:44 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 11 May 1998 17:44:31 +0000 (10:44 -0700)
* sparc.h (SPARC_INCOMING_INT_ARG_FIRST): Support TARGET_FLAT.

From-SVN: r19675

gcc/ChangeLog
gcc/config/sparc/sparc.h

index 0eab09abcf360abdb8121a982f43e2f8ff29e3b9..dd7c9f616dd10fc2a06bb9de4ba8327e278ddb60 100644 (file)
@@ -1,3 +1,7 @@
+Mon May 11 17:43:03 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * sparc.h (SPARC_INCOMING_INT_ARG_FIRST): Support TARGET_FLAT.
+
 Mon May 11 17:24:27 1998  Richard Henderson  <rth@cygnus.com>
 
        * sparc.md (ffsdi2): Disable.  Simplify the expression as well.
index c64240f8188cbc1109b31d5a1275b097b6812b04..01f9d98a62c9c62da7901886a116ddf719069c54 100644 (file)
@@ -833,7 +833,7 @@ if (TARGET_ARCH64                           \
 
 /* Argument passing regs.  */
 #define SPARC_OUTGOING_INT_ARG_FIRST 8
-#define SPARC_INCOMING_INT_ARG_FIRST 24
+#define SPARC_INCOMING_INT_ARG_FIRST (TARGET_FLAT ? 8 : 24)
 #define SPARC_FP_ARG_FIRST           32
 
 /* 1 for registers that have pervasive standard uses