This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch,m32c] preserve argument registers across __m32c_fini
- From: DJ Delorie <dj at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 10 Jan 2008 21:21:58 -0500
- Subject: [patch,m32c] preserve argument registers across __m32c_fini
Applied.
2008-01-10 DJ Delorie <dj@redhat.com>
* m32c/exit.S (__exit): preserve both argument registers.
Index: m32c/exit.S
===================================================================
RCS file: /cvs/src/src/libgloss/m32c/exit.S,v
retrieving revision 1.3
diff -p -U3 -r1.3 exit.S
--- m32c/exit.S 3 Mar 2006 03:20:58 -0000 1.3
+++ m32c/exit.S 11 Jan 2008 02:18:20 -0000
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
.global __exit
__exit:
- push.w r1
+ pushm r0,r1
jsr.a __m32c_fini
- pop.w r1
+ popm r0,r1
SYSCALL(SYS_exit)