aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-07-24 17:36:44 +0000
committerUlrich Drepper <drepper@redhat.com>2002-07-24 17:36:44 +0000
commit31db6c4d741c7ea5ea447c8a890994368021345e (patch)
tree46b00549dcc5da969c097f32b496636a133531dd /sysdeps/unix
parent541ee341982f94660a1b6e2e1edd4b3a7bc694c2 (diff)
downloadglibc-31db6c4d741c7ea5ea447c8a890994368021345e.tar
glibc-31db6c4d741c7ea5ea447c8a890994368021345e.tar.gz
glibc-31db6c4d741c7ea5ea447c8a890994368021345e.tar.bz2
glibc-31db6c4d741c7ea5ea447c8a890994368021345e.zip
(PUSHARGS_1): Use more efficient instruction.
(__socket): Optimize return sequence.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/arm/socket.S8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/socket.S b/sysdeps/unix/sysv/linux/arm/socket.S
index a672413d12..2672de7b2c 100644
--- a/sysdeps/unix/sysv/linux/arm/socket.S
+++ b/sysdeps/unix/sysv/linux/arm/socket.S
@@ -35,7 +35,7 @@
#define __socket P(__,socket)
#endif
-#define PUSHARGS_1 stmfd sp!, {a1}
+#define PUSHARGS_1 str a1, [sp, $-4]!
#define PUSHARGS_2 stmfd sp!, {a1, a2}
#define PUSHARGS_3 stmfd sp!, {a1, a2, a3}
#define PUSHARGS_4 stmfd sp!, {a1, a2, a3, a4}
@@ -78,10 +78,8 @@ ENTRY (__socket)
/* r0 is < 0 if there was an error. */
cmn r0, $124
- bhs PLTJMP(syscall_error)
-
- /* Successful; return the syscall's value. */
- ret
+ RETINSTR(movcc, pc, r14)
+ b PLTJMP(syscall_error)
PSEUDO_END (__socket)