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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [libnosys/] [_exit.c] - Blame information for rev 271

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

Line No. Rev Author Line
1 148 jeremybenn
/* Stub version of _exit.  */
2
 
3
#include <limits.h>
4
#include "config.h"
5
#include <_ansi.h>
6
#include <_syslist.h>
7
 
8
_VOID
9
_DEFUN (_exit, (rc),
10
        int rc)
11
{
12
  /* Default stub just causes a divide by 0 exception.  */
13
  int x = rc / INT_MAX;
14
  x = 4 / x;
15
 
16
  /* Convince GCC that this function never returns.  */
17
  for (;;)
18
    ;
19
}

powered by: WebSVN 2.1.0

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