[patch,m32c] preserve argument registers across __m32c_fini

DJ Delorie dj@redhat.com
Fri Jan 11 22:12:00 GMT 2008


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)



More information about the Newlib mailing list