mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-13 15:07:27 +08:00
* config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define. In gcc/testsuite/: * gcc.dg/ppc-ldstruct.c: New test. From-SVN: r50503
20 lines
395 B
C
20 lines
395 B
C
/* { 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);
|
|
}
|