annotate gcc/testsuite/gcc.dg/lto/20081222_1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 #include "20081222_0.h"
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
kono
parents:
diff changeset
4 #define ASMNAME2(prefix, cname) STRING (prefix) cname
kono
parents:
diff changeset
5 #define STRING(x) #x
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 /* Actually, call "x" "INT_X", and make it hidden. */
kono
parents:
diff changeset
8 extern __typeof (x) x
kono
parents:
diff changeset
9 __asm__ (ASMNAME ("INT_x"))
kono
parents:
diff changeset
10 __attribute__ ((__visibility__ ("hidden")));
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int x ()
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 return 7;
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 /* Make an externally-visible symbol "X" that's an alias for INT_x. */
kono
parents:
diff changeset
18 extern __typeof (x) EXT_x
kono
parents:
diff changeset
19 __asm__ (ASMNAME ("x"))
kono
parents:
diff changeset
20 __attribute__ ((__alias__ ("INT_x")));