Debian Codegraph @

gcc/testsuite/gcc.dg/pr110729.c

raw
1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
2 /* { dg-require-effective-target o_flag_in_section } */
3 /* { dg-options "-ffunction-sections -fpatchable-function-entry=2" } */
4 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
5
6 /* Verify there are three different link_to symbols for three
7 .section __patchable_function_entries respectively. */
8
9 int
10 f ()
11 {
12 return 1;
13 }
14
15 int
16 g ()
17 {
18 return 2;
19 }
20
21 int
22 h ()
23 {
24 return 3;
25 }
26
27 /* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE0} 1 } } */
28 /* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE1} 1 } } */
29 /* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE2} 1 } } */