* libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an

array of undefined size, to avoid problems when compiled with
-msda=4.

* v850/sbrk.c (_sbrk): Change heap_start to be an array of
undefined size, to avoid problems when compiled with -msda=4.
This commit is contained in:
DJ Delorie
2012-10-02 22:55:10 +00:00
parent f7b96aaa8c
commit 13ab44c05b
4 changed files with 15 additions and 4 deletions

View File

@@ -6,13 +6,13 @@
caddr_t
_sbrk (int incr)
{
extern char heap_start; /* Defined by the linker script. */
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;
heap_end = heap_start;
prev_heap_end = heap_end;