From: Alan Modra Date: Fri, 7 May 2004 02:01:13 +0000 (+0000) Subject: rs6000.h (STACK_BOUNDARY): Use 128 bit for either TARGET_ALTIVEC or TARGET_ALTIVEC_ABI. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19fb36e3238d30da0e1c982e848ade71c378ed76;p=gcc.git rs6000.h (STACK_BOUNDARY): Use 128 bit for either TARGET_ALTIVEC or TARGET_ALTIVEC_ABI. * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either TARGET_ALTIVEC or TARGET_ALTIVEC_ABI. * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise. (STACK_BOUNDARY): Delete. From-SVN: r81597 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e2acc7faf7..b152eda55f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,14 @@ +2004-05-07 Alan Modra + + * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either + TARGET_ALTIVEC or TARGET_ALTIVEC_ABI. + * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise. + (STACK_BOUNDARY): Delete. + 2004-05-06 Stuart Hastings * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421, mistakenly clobbered by 1.423. - + 2004-05-06 Richard Sandiford * doc/invoke.texi: Document -mvr4130-align. diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index dc574279304..2f256bebd6b 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -718,7 +718,8 @@ extern const char *rs6000_warn_altivec_long_switch; #define PARM_BOUNDARY (TARGET_32BIT ? 32 : 64) /* Boundary (in *bits*) on which stack pointer should be aligned. */ -#define STACK_BOUNDARY ((TARGET_32BIT && !TARGET_ALTIVEC_ABI) ? 64 : 128) +#define STACK_BOUNDARY \ + ((TARGET_32BIT && !TARGET_ALTIVEC && !TARGET_ALTIVEC_ABI) ? 64 : 128) /* Allocation boundary (in *bits*) for the code of a function. */ #define FUNCTION_BOUNDARY 32 diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 1e0ac3707f6..ea149f01a32 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -385,12 +385,6 @@ do { \ #undef STRICT_ALIGNMENT #define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN) -/* Alignment in bits of the stack boundary. Note, in order to allow building - one set of libraries with -mno-eabi instead of eabi libraries and non-eabi - versions, just use 64 as the stack boundary. */ -#undef STACK_BOUNDARY -#define STACK_BOUNDARY (TARGET_ALTIVEC_ABI ? 128 : 64) - /* Define this macro if you wish to preserve a certain alignment for the stack pointer, greater than what the hardware enforces. The definition is a C expression for the desired alignment (measured @@ -407,7 +401,8 @@ do { \ #define PREFERRED_STACK_BOUNDARY 128 /* Real stack boundary as mandated by the appropriate ABI. */ -#define ABI_STACK_BOUNDARY ((TARGET_EABI && !TARGET_ALTIVEC_ABI) ? 64 : 128) +#define ABI_STACK_BOUNDARY \ + ((TARGET_EABI && !TARGET_ALTIVEC && !TARGET_ALTIVEC_ABI) ? 64 : 128) /* An expression for the alignment of a structure field FIELD if the alignment computed in the usual way is COMPUTED. */