OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20091013-1_0.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-lto-do link } */
2
/* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 -flto}} } */
3
 
4
void * HeapAlloc(void*,unsigned int,unsigned long);
5
 
6
typedef struct tagGdiFont GdiFont;
7
 
8
typedef struct tagDC {
9
    int xunused;
10
    GdiFont *gdiFont;
11
    unsigned int font_code_page;
12
} DC;
13
 
14
DC *alloc_dc_ptr( void *funcs, unsigned short magic )
15
{
16
  DC *dc;
17
  if (!(dc = HeapAlloc( 0, 0, sizeof(*dc) ))) return ((void *)0);
18
  dc->gdiFont = 0;
19
  return dc;
20
}
21
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.