aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-07-31 16:21:20 +0000
committerNick Clifton <nickc@redhat.com>2003-07-31 16:21:20 +0000
commit0302dfe5099eeec04eb8457af04566bb36833408 (patch)
tree4da5b30f1bbd31496a668cc71b2ad6f4fe1e63a7 /newlib
parent49c12c3f53071ab0bca5b700ee291537f823ba47 (diff)
downloadnewlib-0302dfe5099eeec04eb8457af04566bb36833408.zip
newlib-0302dfe5099eeec04eb8457af04566bb36833408.tar.gz
newlib-0302dfe5099eeec04eb8457af04566bb36833408.tar.bz2
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.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog9
-rw-r--r--newlib/configure.host6
-rw-r--r--newlib/libc/sys/sysnecv850/crt0.S6
3 files changed, 13 insertions, 8 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index ee43302..dc96716 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,12 @@
+2003-07-31 Nick Clifton <nickc@redhat.com>
+
+ * 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 <hhonda@ipflex.com>
* libc/stdio/vfprintf.c: Set output size to 1 when
diff --git a/newlib/configure.host b/newlib/configure.host
index cb387e4..2fbb64c 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 e988bad..e006871 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