summaryrefslogtreecommitdiffstats
path: root/newlib
diff options
context:
space:
mode:
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/sys/sysnecv850/sbrk.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 450c895f5..ec1290209 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 828364591..2893c322f 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;