annotate gcc/testsuite/c-c++-common/patchable_function_entry-default.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
1830386684a0 gcc-9.2.0
anatofuz
parents: 17
diff changeset
1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
16
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
18
1830386684a0 gcc-9.2.0
anatofuz
parents: 17
diff changeset
3 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
1830386684a0 gcc-9.2.0
anatofuz
parents: 17
diff changeset
4 /* { dg-final { scan-assembler-times "nop|NOP" 3 { target { ! { alpha*-*-* } } } } } */
16
kono
parents:
diff changeset
5 /* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 extern int a;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 /* Nothing declared must not mean anything. */
kono
parents:
diff changeset
10 int f3 (void);
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 /* F3 should get a default-sized NOP area. */
kono
parents:
diff changeset
13 int
kono
parents:
diff changeset
14 __attribute__((noinline))
kono
parents:
diff changeset
15 f3 (void)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 return 5*a;
kono
parents:
diff changeset
18 }