Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/patchable_function_entry-definition.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
145 | 1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */ |
111 | 2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */ |
145 | 3 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */ |
4 /* { dg-final { scan-assembler-times "nop|NOP" 1 { target { ! { alpha*-*-* } } } } } */ | |
111 | 5 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */ |
6 | |
7 extern int a; | |
8 | |
9 int f3 (void); | |
10 | |
11 /* F3 should now get 1 NOP. */ | |
12 int | |
13 __attribute__((noinline)) | |
14 __attribute__((patchable_function_entry(1))) | |
15 f3 (void) | |
16 { | |
17 return 5*a; | |
18 } |