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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20091013-1_0.c] - Blame information for rev 753

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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