+2002-03-09 Geoffrey Keating <geoffk@redhat.com>
+
+ * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
+
2002-03-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/5877
/* Real stack boundary as mandated by the appropriate ABI. */
#define ABI_STACK_BOUNDARY ((TARGET_EABI && !TARGET_ALTIVEC_ABI) ? 64 : 128)
-/* No data type wants to be aligned rounder than this. */
-/* FIXME: This should be keyed off of TARGET_ALTIVEC_ABI instead but
- TARGET_ALTIVEC_ABI uses rs6000_altivec_abi which is only defined in
- rs6000.c. Consequently, genconstants will fail to link because it
- uses rtl.c which uses BIGGEST_ALIGNMENT. */
-#undef BIGGEST_ALIGNMENT
-#define BIGGEST_ALIGNMENT ((TARGET_EABI && !TARGET_ALTIVEC) ? 64 : 128)
-
/* An expression for the alignment of a structure field FIELD if the
alignment computed in the usual way is COMPUTED. */
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
+2002-03-09 Geoffrey Keating <geoffk@redhat.com>
+
+ * gcc.dg/ppc-ldstruct.c: New test.
+
2002-03-09 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/va-arg-22.c: New test.
--- /dev/null
+/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */
+/* { dg-options "-O -mlong-double-128" } */
+
+/* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit
+ boundary in structures. */
+
+struct {
+ int x;
+ long double d;
+} s;
+
+int main(void)
+{
+ if (sizeof (s) != 32)
+ abort ();
+ if ((char *)&s.d - (char *)&s != 16)
+ abort ();
+ exit (0);
+}