OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [lib/] [main.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort(void);
2
extern void main_test (void);
3
extern void abort (void);
4
int inside_main;
5
 
6
int
7
main ()
8
{
9
  inside_main = 1;
10
  main_test ();
11
  inside_main = 0;
12
  return 0;
13
}
14
 
15
/* When optimizing, all the constant cases should have been
16
   constant folded, so no calls to link_error should remain.
17
   In any case, link_error should not be called.  */
18
 
19
#ifndef __OPTIMIZE__
20
void
21
link_error (void)
22
{
23
  abort ();
24
}
25
#endif

powered by: WebSVN 2.1.0

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