This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[ColdFire 54/63] Define PREFERRED_STACK_BOUNDARY
The m68k ABI does not guarantee that the stack is aligned to 4 bytes,
but for efficiency reasons, the ColdFire targets strongly prefer it to be.
This patch defines PREFERRED_STACK_BOUNDARY accordingly.
Richard
gcc/
* config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
for ColdFire targets.
Index: gcc/config/m68k/m68k.h
===================================================================
--- gcc/config/m68k/m68k.h 2007-01-09 15:02:24.000000000 +0000
+++ gcc/config/m68k/m68k.h 2007-01-09 15:02:25.000000000 +0000
@@ -284,6 +284,8 @@ #define PARM_BOUNDARY (TARGET_SHORT ? 16
#define STACK_BOUNDARY 16
#define FUNCTION_BOUNDARY 16
#define EMPTY_FIELD_BOUNDARY 16
+/* ColdFire strongly prefers a 32-bit aligned stack. */
+#define PREFERRED_STACK_BOUNDARY (TARGET_COLDFIRE ? 32 : 16)
/* No data type wants to be aligned rounder than this.
Most published ABIs say that ints should be aligned on 16 bit