aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-09-23 15:25:23 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-09-23 15:25:23 +0000
commit305aa9e2b1256fb8c170e9ff4832ed728f30a029 (patch)
tree91c698fb4dc9310eeb1184b1fcf57258fe3e0f02
parent65a6dd9a32d596927c11fef4b265b3e11d0461cc (diff)
downloadgcc-305aa9e2b1256fb8c170e9ff4832ed728f30a029.zip
gcc-305aa9e2b1256fb8c170e9ff4832ed728f30a029.tar.gz
gcc-305aa9e2b1256fb8c170e9ff4832ed728f30a029.tar.bz2
Undo most of 9/22 changes
From-SVN: r2212
-rw-r--r--gcc/config/mips/mips.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 800721b..09d85a4 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1632,8 +1632,10 @@ extern struct mips_frame_info current_frame_info;
On the MIPS, we must skip the first argument position if we are
returning a structure or a union, to account for it's address being
- passed in $4. */
+ passed in $4. However, at the current time, this produces a compiler
+ that can't bootstrap, so comment it out for now. */
+#if 0
#define FIRST_PARM_OFFSET(FNDECL) \
(FNDECL != 0 \
&& TREE_TYPE (FNDECL) != 0 \
@@ -1642,6 +1644,9 @@ extern struct mips_frame_info current_frame_info;
|| TREE_CODE (TREE_TYPE (TREE_TYPE (FNDECL))) == UNION_TYPE) \
? UNITS_PER_WORD \
: 0)
+#else
+#define FIRST_PARM_OFFSET(FNDECL) 0
+#endif
/* When a parameter is passed in a register, stack space is still
allocated for it. For the MIPS, stack space must be allocated, cf
@@ -1651,7 +1656,7 @@ extern struct mips_frame_info current_frame_info;
in register. In case an argument list is of form GF used registers
are a0 (a2,a3), but we should push over a1... */
-#define REG_PARM_STACK_SPACE(FNDECL) (4*UNITS_PER_WORD) - FIRST_PARM_OFFSET(FNDECL)
+#define REG_PARM_STACK_SPACE(FNDECL) ((4*UNITS_PER_WORD) - FIRST_PARM_OFFSET (FNDECL))
/* Define this if it is the responsibility of the caller to
allocate the area reserved for arguments passed in registers.