diff options
author | DJ Delorie <dj@redhat.com> | 2012-10-02 22:55:10 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2012-10-02 22:55:10 +0000 |
commit | 13ab44c05b093f87ddd5f1d9431d07022d775e1b (patch) | |
tree | 56ef08de7c7184afe8304e19a99dfdc8d5297f43 | |
parent | f7b96aaa8c99e4a6d73676b6e6ed6e1e2b013607 (diff) | |
download | newlib-13ab44c05b093f87ddd5f1d9431d07022d775e1b.zip newlib-13ab44c05b093f87ddd5f1d9431d07022d775e1b.tar.gz newlib-13ab44c05b093f87ddd5f1d9431d07022d775e1b.tar.bz2 |
* 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.
-rw-r--r-- | libgloss/ChangeLog | 5 | ||||
-rw-r--r-- | libgloss/v850/sbrk.c | 4 | ||||
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/sys/sysnecv850/sbrk.c | 4 |
4 files changed, 15 insertions, 4 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 0997b25..412af41 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -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> Jim MacArthur <jim.macarthur@arm.com> Marcus Shawcroft <marcus.shawcroft@arm.com> diff --git a/libgloss/v850/sbrk.c b/libgloss/v850/sbrk.c index 76c7d6a..248a092 100644 --- a/libgloss/v850/sbrk.c +++ b/libgloss/v850/sbrk.c @@ -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; diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 450c895..ec12902 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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> * README: replace sources.redhat.com with sourceware.org. diff --git a/newlib/libc/sys/sysnecv850/sbrk.c b/newlib/libc/sys/sysnecv850/sbrk.c index 8283645..2893c32 100644 --- a/newlib/libc/sys/sysnecv850/sbrk.c +++ b/newlib/libc/sys/sysnecv850/sbrk.c @@ -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; |