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] - Blame information for rev 849

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

Line No. Rev Author Line
1 688 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-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.