summaryrefslogtreecommitdiffstats
path: root/newlib
diff options
context:
space:
mode:
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/machine/moxie/setjmp.S2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 1c44191d0..2cc87ac1d 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
diff --git a/newlib/libc/machine/moxie/setjmp.S b/newlib/libc/machine/moxie/setjmp.S
index 991b91566..6c2c015e3 100644
--- a/newlib/libc/machine/moxie/setjmp.S
+++ b/newlib/libc/machine/moxie/setjmp.S
@@ -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