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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr45206.c] - Rev 691

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-Os -fno-omit-frame-pointer" } */
 
struct _Unwind_Context { void *ra; };
 
long uw_install_context_1 (struct _Unwind_Context *, struct _Unwind_Context *);
 
void _Unwind_RaiseException(void)
{
  struct _Unwind_Context this_context, cur_context;
  long offset = uw_install_context_1 (&this_context, &cur_context);
  void *handler = __builtin_frob_return_addr ((&cur_context)->ra);
 
  __builtin_eh_return (offset, handler);
}
 
 

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.