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:
authorDJ Delorie <dj@redhat.com>2012-10-03 02:55:10 +0400
committerDJ Delorie <dj@redhat.com>2012-10-03 02:55:10 +0400
commit13ab44c05b093f87ddd5f1d9431d07022d775e1b (patch)
tree56ef08de7c7184afe8304e19a99dfdc8d5297f43 /libgloss/v850
parentf7b96aaa8c99e4a6d73676b6e6ed6e1e2b013607 (diff)
* 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.
Diffstat (limited to 'libgloss/v850')
-rw-r--r--libgloss/v850/sbrk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgloss/v850/sbrk.c b/libgloss/v850/sbrk.c
index 76c7d6ab3..248a092b6 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;