annotate gcc/testsuite/c-c++-common/asan/red-align-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* This tests aligment propagation to structure elem and
kono
parents:
diff changeset
2 abcense of redundant & 7. */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* { dg-options "-fdump-tree-sanopt" } */
kono
parents:
diff changeset
5 /* { dg-do compile } */
kono
parents:
diff changeset
6 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 struct st {
kono
parents:
diff changeset
9 int a;
kono
parents:
diff changeset
10 int b;
kono
parents:
diff changeset
11 int c;
kono
parents:
diff changeset
12 } __attribute__((aligned(16)));
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 int foo (struct st * s_p)
kono
parents:
diff changeset
15 {
kono
parents:
diff changeset
16 return s_p->b;
kono
parents:
diff changeset
17 }
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 /* { dg-final { scan-tree-dump-times "& 7" 1 "sanopt" } } */