summaryrefslogtreecommitdiff
path: root/sysdeps/unix/make-syscalls.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/make-syscalls.sh')
-rw-r--r--sysdeps/unix/make-syscalls.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh
index 8a9c75956e..10d699286b 100644
--- a/sysdeps/unix/make-syscalls.sh
+++ b/sysdeps/unix/make-syscalls.sh
@@ -74,8 +74,9 @@ while read file srcfile caller syscall args strong weak; do
callnum=-
eval `{ echo "#include <sysdep.h>";
echo "callnum=SYS_ify ($syscall)"; } |
- $asm_CPP - |sed -n -e "/^callnum=.*$syscall/d" \
- -e "/^\(callnum=\)[ ]*\(.*\)/s//\1'\2'/p"`
+ $asm_CPP -D__OPTIMIZE__ - |
+ sed -n -e "/^callnum=.*$syscall/d" \
+ -e "/^\(callnum=\)[ ]*\(.*\)/s//\1'\2'/p"`
# Derive the number of arguments from the argument signature
case $args in