Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-01-11 05:21:44 +0300
committerDJ Delorie <dj@redhat.com>2008-01-11 05:21:44 +0300
commit978e84cf602994e44570fbac0c7adcd2ef5690e1 (patch)
tree89741635536e0589631612c65ff70083ba09c6fd
parentceb32a183c463e1f9f3e957a447a9c7ee01e2b70 (diff)
* m32c/exit.S (__exit): preserve both argument registers.
-rw-r--r--libgloss/ChangeLog4
-rw-r--r--libgloss/m32c/exit.S4
2 files changed, 6 insertions, 2 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index ac7bb59e2..680c19848 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-10 DJ Delorie <dj@redhat.com>
+
+ * m32c/exit.S (__exit): preserve both argument registers.
+
2008-01-03 Jeff Johnston <jjohnstn@redhat.com>
* arm/redboot-syscalls.c: Consistently supply _isatty if syscalls
diff --git a/libgloss/m32c/exit.S b/libgloss/m32c/exit.S
index e27d73d30..53403265c 100644
--- a/libgloss/m32c/exit.S
+++ b/libgloss/m32c/exit.S
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.global __exit
__exit:
- push.w r1
+ pushm r0,r1
jsr.a __m32c_fini
- pop.w r1
+ popm r0,r1
SYSCALL(SYS_exit)