aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-05-05 23:15:53 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-05-05 23:15:53 +0000
commit9cc53904f63c78982051e2b8d72e23e8f9cb864e (patch)
tree1257ab5be838722188b50970731f6adea6d3e57d /libgloss
parent320be0a149f0e6f03f86b4b66a8424d41d34f01d (diff)
downloadnewlib-9cc53904f63c78982051e2b8d72e23e8f9cb864e.zip
newlib-9cc53904f63c78982051e2b8d72e23e8f9cb864e.tar.gz
newlib-9cc53904f63c78982051e2b8d72e23e8f9cb864e.tar.bz2
2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>
* arm/syscalls.c (get_errno): Fix output register constraint.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog4
-rw-r--r--libgloss/arm/syscalls.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index a377d7d..4253917 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>
+
+ * arm/syscalls.c (get_errno): Fix output register constraint.
+
2005-05-05 J"orn Rennecke <joern.rennecke@st.com>
* rs6000/sim-getrusage.S: New file, broken out of:
diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c
index a215d7a..f0e60da 100644
--- a/libgloss/arm/syscalls.c
+++ b/libgloss/arm/syscalls.c
@@ -180,7 +180,7 @@ get_errno (void)
return do_AngelSWI (AngelSWI_Reason_Errno, NULL);
#else
register r0 asm("r0");
- asm ("swi %a1" : "=3Dr"(r0) : "i" (SWI_GetErrno));
+ asm ("swi %a1" : "=r"(r0) : "i" (SWI_GetErrno));
return r0;
#endif
}