diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 19:40:17 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 19:40:17 +0000 |
commit | fe64d4b431d61b695e126b284d059e8048559e76 (patch) | |
tree | 750c0b89ccefa88cd24110d67422e7f731df162e /gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c | |
parent | 508469fee36069e92dc4b01adf6f0db001a71612 (diff) | |
download | gcc-fe64d4b431d61b695e126b284d059e8048559e76.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c')
-rw-r--r-- | gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c b/gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c new file mode 100644 index 00000000000..0ea70e51006 --- /dev/null +++ b/gcc/testsuite/consistency.vlad/layout/s-longlong-a-float.c @@ -0,0 +1,21 @@ +#include <stdio.h> + +static struct sss{ + long long f; + float a[10]; +} sss; + +#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) + +int main (void) { + printf ("++++Array of float in struct starting with longlong:\n"); + printf ("size=%d,align=%d\n", + sizeof (sss), __alignof__ (sss)); + printf ("offset-longlong=%d,offset-arrayof-float=%d,\nalign-longlong=%d,align-arrayof-float=%d\n", + _offsetof (struct sss, f), _offsetof (struct sss, a), + __alignof__ (sss.f), __alignof__ (sss.a)); + printf ("offset-float-a[5]=%d,align-float-a[5]=%d\n", + _offsetof (struct sss, a[5]), + __alignof__ (sss.a[5])); + return 0; +} |