This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]