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]

m32c: fix _exit()


2006-03-02  DJ Delorie  <dj@redhat.com>

	* m32c/exit.S: Preserve r1.

Index: m32c/exit.S
===================================================================
RCS file: /cvs/src/src/libgloss/m32c/exit.S,v
retrieving revision 1.2
diff -p -U3 -r1.2 exit.S
--- m32c/exit.S	14 Dec 2005 03:38:27 -0000	1.2
+++ m32c/exit.S	3 Mar 2006 03:19:33 -0000
@@ -34,5 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 
 	.global	__exit
 __exit:
+	push.w	r1
 	jsr.a	__m32c_fini
+	pop.w	r1
 	SYSCALL(SYS_exit)


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