* 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:
parent
f7b96aaa8c
commit
13ab44c05b
|
@ -1,3 +1,8 @@
|
||||||
|
2012-10-01 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* v850/sbrk.c (_sbrk): Change heap_start to be an array of
|
||||||
|
undefined size, to avoid problems when compiled with -msda=4.
|
||||||
|
|
||||||
2012-09-26 Ian Bolton <ian.bolton@arm.com>
|
2012-09-26 Ian Bolton <ian.bolton@arm.com>
|
||||||
Jim MacArthur <jim.macarthur@arm.com>
|
Jim MacArthur <jim.macarthur@arm.com>
|
||||||
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
caddr_t
|
caddr_t
|
||||||
_sbrk (int incr)
|
_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;
|
static char * heap_end = NULL;
|
||||||
char * prev_heap_end;
|
char * prev_heap_end;
|
||||||
char * sp = (char *) & sp;
|
char * sp = (char *) & sp;
|
||||||
|
|
||||||
if (heap_end == NULL)
|
if (heap_end == NULL)
|
||||||
heap_end = & heap_start;
|
heap_end = heap_start;
|
||||||
|
|
||||||
prev_heap_end = heap_end;
|
prev_heap_end = heap_end;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2012-10-01 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an
|
||||||
|
array of undefined size, to avoid problems when compiled with
|
||||||
|
-msda=4.
|
||||||
|
|
||||||
2012-10-01 Jeff Johnston <jjohnstn@redhat.com>
|
2012-10-01 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* README: replace sources.redhat.com with sourceware.org.
|
* README: replace sources.redhat.com with sourceware.org.
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
caddr_t
|
caddr_t
|
||||||
_sbrk (int incr)
|
_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;
|
static char * heap_end = NULL;
|
||||||
char * prev_heap_end;
|
char * prev_heap_end;
|
||||||
char * sp = (char *) & sp;
|
char * sp = (char *) & sp;
|
||||||
|
|
||||||
if (heap_end == NULL)
|
if (heap_end == NULL)
|
||||||
heap_end = & heap_start;
|
heap_end = heap_start;
|
||||||
|
|
||||||
prev_heap_end = heap_end;
|
prev_heap_end = heap_end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue