annotate gcc/testsuite/gcc.dg/lto/20091013-1_0.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-lto-do link } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target fpic } */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
3 /* { dg-require-effective-target ptr_eq_long } */
111
kono
parents:
diff changeset
4 /* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 -flto}} } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
5 /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
111
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 void * HeapAlloc(void*,unsigned int,unsigned long);
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 typedef struct tagGdiFont GdiFont;
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 typedef struct tagDC {
kono
parents:
diff changeset
12 int xunused;
kono
parents:
diff changeset
13 GdiFont *gdiFont;
kono
parents:
diff changeset
14 unsigned int font_code_page;
kono
parents:
diff changeset
15 } DC;
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 DC *alloc_dc_ptr( void *funcs, unsigned short magic )
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 DC *dc;
kono
parents:
diff changeset
20 if (!(dc = HeapAlloc( 0, 0, sizeof(*dc) ))) return ((void *)0);
kono
parents:
diff changeset
21 dc->gdiFont = 0;
kono
parents:
diff changeset
22 return dc;
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24