annotate gcc/testsuite/gcc.c-torture/compile/20090107-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1 /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2
111
kono
parents:
diff changeset
3 /* Verify that we don't ICE by forming invalid addresses for unaligned
kono
parents:
diff changeset
4 doubleword loads (originally for PPC64). */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct a
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 unsigned int x;
kono
parents:
diff changeset
9 unsigned short y;
kono
parents:
diff changeset
10 } __attribute__((packed));
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 struct b {
kono
parents:
diff changeset
13 struct a rep;
kono
parents:
diff changeset
14 unsigned long long seq;
kono
parents:
diff changeset
15 } __attribute__((packed));
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 struct c {
kono
parents:
diff changeset
18 int x;
kono
parents:
diff changeset
19 struct a a[5460];
kono
parents:
diff changeset
20 struct b b;
kono
parents:
diff changeset
21 };
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 extern void use_ull(unsigned long long);
kono
parents:
diff changeset
24 extern void f(struct c *i) {
kono
parents:
diff changeset
25 use_ull(i->b.seq);
kono
parents:
diff changeset
26 return;
kono
parents:
diff changeset
27 }