From 0302dfe5099eeec04eb8457af04566bb36833408 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 31 Jul 2003 16:21:20 +0000 Subject: [PATCH] Allocate 4 slots on stack before calling main, in case it saves its argument registers. Remove reference to deleted v850ea port. Do not use -mv850 when building for v850e target. This prevents the ctbp system register from being initialised. --- newlib/ChangeLog | 9 +++++++++ newlib/configure.host | 6 +----- newlib/libc/sys/sysnecv850/crt0.S | 6 +++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index ee43302f0..dc96716e9 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,12 @@ +2003-07-31 Nick Clifton + + * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack + before calling main, in case it saves its argument registers. + Remove reference to deleted v850ea port. + * configure.host: Remove reference to deleted v850ea port. + Do not use -mv850 when building for v850e target. This + prevents the ctbp system register from being initialised. + 2003-07-29 Honda Hiroki * libc/stdio/vfprintf.c: Set output size to 1 when diff --git a/newlib/configure.host b/newlib/configure.host index cb387e431..2fbb64c26 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -206,11 +206,7 @@ case "${host_cpu}" in ;; v850e) machine_dir=v850 - newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 " - ;; - v850ea) - machine_dir=v850 - newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 " + newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED " ;; w65*) machine_dir=w65 diff --git a/newlib/libc/sys/sysnecv850/crt0.S b/newlib/libc/sys/sysnecv850/crt0.S index e988bad46..e006871b3 100644 --- a/newlib/libc/sys/sysnecv850/crt0.S +++ b/newlib/libc/sys/sysnecv850/crt0.S @@ -5,7 +5,7 @@ _start: -#if defined __v850e__ || defined __v850ea__ +#if defined __v850e__ movea 255, r0, r20 mov 65535, r21 @@ -23,7 +23,7 @@ _start: bl .L0 .L1: jarl ___main, r31 - addi -12, sp, sp + addi -16, sp, sp mov 0, r6 mov 0, r7 mov 0, r8 @@ -53,7 +53,7 @@ _start: bl .L0 .L1: jarl ___main, r31 - addi -12, sp, sp + addi -16, sp, sp mov 0, r6 mov 0, r7 mov 0, r8