aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-10-22 13:42:19 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-10-22 13:42:19 +0000
commit51bdc4d3b802e57f5711d8a1a6f81749ce99a245 (patch)
tree7148e6c7b34ccd3a6271142458a2f677600f4008
parent94b4b17a338e83a18c8d734faf51de25619604ca (diff)
downloadgcc-51bdc4d3b802e57f5711d8a1a6f81749ce99a245.zip
gcc-51bdc4d3b802e57f5711d8a1a6f81749ce99a245.tar.gz
gcc-51bdc4d3b802e57f5711d8a1a6f81749ce99a245.tar.bz2
Do not define STACK_DYNAMIC_OFFSET
From-SVN: r2557
-rw-r--r--gcc/config/mips/mips.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index ab17ed8..48ea1c0 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1511,15 +1511,21 @@ extern enum reg_class mips_char_to_class[];
length of the outgoing arguments. The default is correct for most
machines. See `function.c' for details.
- The MIPS 3.0 linker does not like functions that dynamically
- allocate the stack and have 0 for STACK_DYNAMIC_OFFSET, since it
- looks like we are trying to create a second frame pointer to the
- function, so allocate some stack space to make it happy. */
+ The MIPS ABI states that functions which dynamically allocate the
+ stack must not have 0 for STACK_DYNAMIC_OFFSET, since it looks like
+ we are trying to create a second frame pointer to the function, so
+ allocate some stack space to make it happy.
+ However, the linker currently complains about linking any code that
+ dynamically allocates stack space, and there seems to be a bug in
+ STACK_DYNAMIC_OFFSET, so don't define this right now. */
+
+#if 0
#define STACK_DYNAMIC_OFFSET(FUNDECL) \
((current_function_outgoing_args_size == 0 && current_function_calls_alloca) \
? 4*UNITS_PER_WORD \
: current_function_outgoing_args_size)
+#endif
/* Structure to be filled in by compute_frame_size with register
save masks, and offsets for the current function. */