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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [lib/] [main.c] - Rev 688

Compare with Previous | Blame | View Log

extern void abort(void);
extern void main_test (void);
extern void abort (void);
int inside_main;
 
int
main ()
{
  inside_main = 1;
  main_test ();
  inside_main = 0;
  return 0;
}
 
/* When optimizing, all the constant cases should have been
   constant folded, so no calls to link_error should remain.
   In any case, link_error should not be called.  */
 
#ifndef __OPTIMIZE__
void
link_error (void)
{
  abort ();
}
#endif
 

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.