aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.h
diff options
context:
space:
mode:
authorDavid Edelsohn <dje@gcc.gnu.org>1998-07-02 07:53:24 -0400
committerDavid Edelsohn <dje@gcc.gnu.org>1998-07-02 07:53:24 -0400
commit39403d8233deb862fc951f95cd11280440c90880 (patch)
treef6d56239789abb75a54e7c041d4876cd372838ec /gcc/expr.h
parent848205e6edc05cb41e877c5835244ce3bd133fda (diff)
downloadgcc-39403d8233deb862fc951f95cd11280440c90880.zip
gcc-39403d8233deb862fc951f95cd11280440c90880.tar.gz
gcc-39403d8233deb862fc951f95cd11280440c90880.tar.bz2
expr.h (STACK_SIZE_MODE): New macro.
* expr.h (STACK_SIZE_MODE): New macro. * explow.c (allocate_dynamic_stack_space): Use it for mode of allocate_stack pattern increment operand. * tm.texi (STACK_SAVEAREA_MODE, STACK_SIZE_MODE): Document. * md.texi (stack_save_block, ...): Reflect use of macro. * rs6000.h (PROMOTE_MODE): Always promote to word_mode. (PROMOTE_FUNCTION_ARGS): Define. (PROMOTE_FUNCTION_RETURN): Define. (FUNCTION_VALUE): Promote to word_mode if smaller. Convert to gen_rtx_FOO. * rs6000.md (call_indirect): Store doubleword in 64-bit mode. Convert to gen_rtx_FOO. From-SVN: r20893
Diffstat (limited to 'gcc/expr.h')
-rw-r--r--gcc/expr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/expr.h b/gcc/expr.h
index 11f4673..02d75bb 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -252,6 +252,13 @@ enum direction {none, upward, downward}; /* Value has this type. */
#define STACK_SAVEAREA_MODE(LEVEL) Pmode
#endif
+/* Supply a default definition of STACK_SIZE_MODE for
+ allocate_dynamic_stack_space. Normally PLUS/MINUS, so word_mode. */
+
+#ifndef STACK_SIZE_MODE
+#define STACK_SIZE_MODE word_mode
+#endif
+
/* Provide default values for the macros controlling stack checking. */
#ifndef STACK_CHECK_BUILTIN