This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ColdFire 54/63] Define PREFERRED_STACK_BOUNDARY


Hi,

On Wed, 10 Jan 2007, Richard Sandiford wrote:

> 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

Actually this could be done unconditionally. I did this also for Debian, 
as I got tired of all the broken software...
An alternative might be to redefine unconditionally it just for Linux.

bye, Roman


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]