aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-05-11 17:44:31 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-05-11 10:44:31 -0700
commita9e95099427a80b6c4e106fa8da90b6e85e50457 (patch)
treefdb5042bc984a94619f8dd7a3989fc28a707d9d7 /gcc
parent0f177d7c37e9cd7bc5c585c74b6ccd7471520568 (diff)
downloadgcc-a9e95099427a80b6c4e106fa8da90b6e85e50457.zip
gcc-a9e95099427a80b6c4e106fa8da90b6e85e50457.tar.gz
gcc-a9e95099427a80b6c4e106fa8da90b6e85e50457.tar.bz2
Fix -mflat bug reported by Yamamoto Hirotaka.
* sparc.h (SPARC_INCOMING_INT_ARG_FIRST): Support TARGET_FLAT. From-SVN: r19675
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/sparc/sparc.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0eab09a..dd7c9f6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index c64240f..01f9d98 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -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