annotate gcc/testsuite/gcc.target/i386/pr94417-3.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 /* { dg-do compile } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-options "-O2 -fcf-protection -mforce-indirect-call" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 extern void ext (void);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 __attribute((noclone, noinline))
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 static
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 foo (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 ext ();
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 bar (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 foo ();
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19 }