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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [fptr-1.c] - Rev 214

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

/* { dg-do run { target ia64-*-linux* } } */
/* { dg-options "-O2" } */
 
/* Test function descriptor access.  */
 
extern unsigned long *_GLOBAL_OFFSET_TABLE_;
extern void abort(void);
 
struct ia64_fdesc
{
  unsigned long func;
  unsigned long gp;
};
 
void
os_boot_rendez (void)
{
}
 
static int
check (unsigned long gp)
{
  return gp != (unsigned long) &_GLOBAL_OFFSET_TABLE_;
}
 
int
main (int argc, char **argv)
{
  int i;
  int res = 0;
 
  for (i = 0; i < 1; i++)
    res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
  if (res)
    abort ();
  return res;
}
 

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

powered by: WebSVN 2.1.0

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