Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/v850/sbrk.c')
-rw-r--r--libgloss/v850/sbrk.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libgloss/v850/sbrk.c b/libgloss/v850/sbrk.c
deleted file mode 100644
index 248a092b6..000000000
--- a/libgloss/v850/sbrk.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <_ansi.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include "sys/syscall.h"
-
-caddr_t
-_sbrk (int incr)
-{
- extern char heap_start[]; /* Defined by the linker script. */
- static char * heap_end = NULL;
- char * prev_heap_end;
- char * sp = (char *) & sp;
-
- if (heap_end == NULL)
- heap_end = heap_start;
-
- prev_heap_end = heap_end;
-
- if (heap_end + incr > sp)
- {
-#define MESSAGE "Heap and stack collision\n"
- _write (1, MESSAGE, sizeof MESSAGE);
- abort ();
- }
-
- heap_end += incr;
-
- return (caddr_t) prev_heap_end;
-}