From aaacff326fe0d059d183d8b1a427ce72c2b9bfa5 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 19 Jan 2007 13:49:06 +0000 Subject: [PATCH] m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32 for ColdFire targets. gcc/ * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32 for ColdFire targets. From-SVN: r120965 --- gcc/ChangeLog | 5 +++++ gcc/config/m68k/m68k.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e35464099ef..82646875ace 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-01-19 Richard Sandiford + + * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32 + for ColdFire targets. + 2007-01-19 Nathan Sidwell Richard Sandiford diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index c0a3f9e3b04..4f42a5eaac6 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -284,6 +284,8 @@ Boston, MA 02110-1301, USA. */ #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