]> sourceware.org Git - newlib-cygwin.git/commitdiff
Minor optimization and bug fix for moxie.
authorAnthony Green <green@moxielogic.com>
Sat, 27 Oct 2012 15:57:12 +0000 (15:57 +0000)
committerAnthony Green <green@moxielogic.com>
Sat, 27 Oct 2012 15:57:12 +0000 (15:57 +0000)
libgloss/ChangeLog
libgloss/moxie/crt0.S
newlib/ChangeLog
newlib/libc/machine/moxie/setjmp.S

index c04d9c7103d2d8454aecd59c4ed10ddd758a7df3..9ea622f589c577c5e473c296ce5586fb0943e887 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-27  Anthony Green  <green@moxielogic.com>
+
+       * moxie/crt0.S (_start): Call memset with correct
+       ABI.
+
 2012-10-03  DJ Delorie  <dj@redhat.com>
 
        * rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros
index e166895ac1fc852b4e21895649b920b65422325e..44616a82e4fc10cd76770ac2d24ba2e99aa73af3 100644 (file)
        .type   __start,@function
 __start:
 _start:
-       ldi.l   $sp, (_stack-12)/* load up stack pointer with space
-                                  for stack frame. */
+       ldi.l   $sp, _stack     /* set the top of stack */
        xor     $fp, $fp        /* zero fp to allow unwinders to stop */
 
        /* zero the bss area */
        ldi.l   $r0, __bss_start__
-       ldi.l   $r1, __bss_end__
-       sub.l   $r1, $r0
-       sto.l   8($sp), $r1
-       ldi.l   $r1, 0
+       xor     $r1, $r1
+       ldi.l   $r2, __bss_end__
+       sub.l   $r2, $r0
        jsra    memset
-       inc     $sp, 12
 
        /* Call _init to invoke static constructors, etc.  */
        jsra    _init
index 1c44191d046fe6122468aa80902eff6e515107ac..2cc87ac1d633f564b401e545b66687344310eb62 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-27  Anthony Green  <green@moxielogic.com>
+
+       * libc/machine/moxie/setjmp.S (setjmp): Minor optimization.
+
 2012-10-26  Corinna Vinschen  <vinschen@redhat.com>
 
        * libc/include/sys/signal.h (sigset_t): Don't define when building
index 991b915662c604b32b308a01f3d7e89142fa7749..6c2c015e37f1ff64fcf9a948c6a1cd3114044f2f 100644 (file)
@@ -51,7 +51,7 @@ setjmp:
        sto.l   0x34($r0), $r13
        sto.l   0x38($r0), $sp
        sto.l   0x3c($r0), $fp
-       ldi.l   $r0, 0x00
+       xor     $r0, $r0
        ret
 .Lend1:
        .size   setjmp,.Lend1-setjmp
This page took 0.063641 seconds and 5 git commands to generate.