diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2001-02-12 19:40:17 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2001-02-12 19:40:17 +0000 |
commit | c36ae96c0c4883dc8e36e1b58336ae89a8dcc2ad (patch) | |
tree | 750c0b89ccefa88cd24110d67422e7f731df162e /gcc/testsuite/consistency.vlad/layout/s-longlong-double.c | |
parent | f43b27955c8481056c36a99ea05f7d5523169e49 (diff) | |
download | gcc-c36ae96c0c4883dc8e36e1b58336ae89a8dcc2ad.tar.gz |
In gcc/:
* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
-mcall-i960.
(ASM_SPEC): Likewise.
(CC1_ENDIAN_LITTLE_SPEC): Likewise.
(CC1_SPEC): Likewise.
(LINK_TARGET_SPEC): Likewise.
(CPP_ENDIAN_SPEC): Likewise.
* Makefile.in (check-consistency): New target.
In gcc/testsuite/:
* consistency.vlad: New directory, 1665 files.
From-SVN: r39609
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/s-longlong-double.c')
-rw-r--r-- | gcc/testsuite/consistency.vlad/layout/s-longlong-double.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/s-longlong-double.c b/gcc/testsuite/consistency.vlad/layout/s-longlong-double.c new file mode 100644 index 00000000000..59c4d1ebae6 --- /dev/null +++ b/gcc/testsuite/consistency.vlad/layout/s-longlong-double.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +static struct sss{ + long long f; + double snd; +} sss; + +#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) + +int main (void) { + printf ("+++Struct longlong-double:\n"); + printf ("size=%d,align=%d,offset-longlong=%d,offset-double=%d,\nalign-longlong=%d,align-double=%d\n", + sizeof (sss), __alignof__ (sss), + _offsetof (struct sss, f), _offsetof (struct sss, snd), + __alignof__ (sss.f), __alignof__ (sss.snd)); + return 0; +} |