diff mbox series

[i386] : Define STACK_SIZE_MODE

Message ID CAFULd4ZP2f4+nXNsbjtrQ56eeNLox9anASOY-h4ePvfvSQh3Gg@mail.gmail.com
State New
Headers show
Series [i386] : Define STACK_SIZE_MODE | expand

Commit Message

Uros Bizjak May 27, 2019, 2:43 p.m. UTC
STACK_SIZE_MODE should be defined together with "allocate_stack" named pattern.

2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.h (STACK_SIZE_MODE): Define.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.
diff mbox series

Patch

Index: config/i386/i386.h
===================================================================
--- config/i386/i386.h	(revision 271662)
+++ config/i386/i386.h	(revision 271663)
@@ -1947,6 +1947,10 @@ 
 #define STACK_SAVEAREA_MODE(LEVEL)			\
   ((LEVEL) == SAVE_NONLOCAL ? (TARGET_64BIT ? TImode : DImode) : Pmode)
 
+/* Specify the machine_mode of the size increment
+   operand of an 'allocate_stack' named pattern.  */
+#define STACK_SIZE_MODE Pmode
+
 /* A C expression whose value is zero if pointers that need to be extended
    from being `POINTER_SIZE' bits wide to `Pmode' are sign-extended and
    greater then zero if they are zero-extended and less then zero if the