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.
This commit is contained in:
Nick Clifton 2003-07-31 16:21:20 +00:00
parent 49c12c3f53
commit 0302dfe509
3 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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