2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>

* arm/syscalls.c (get_errno): Fix output register constraint.
This commit is contained in:
Jeff Johnston 2005-05-05 23:15:53 +00:00
parent 320be0a149
commit 9cc53904f6
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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
}