diff --git a/libc/config/linux/x86_64/syscall.h.inc b/libc/config/linux/x86_64/syscall.h.inc --- a/libc/config/linux/x86_64/syscall.h.inc +++ b/libc/config/linux/x86_64/syscall.h.inc @@ -1,4 +1,4 @@ -//===------------ inline implementation of x86_64 syscalls --------------*-===// +//===------------ __attribute__((always_inline)) inline implementation of x86_64 syscalls --------------*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -14,7 +14,7 @@ namespace __llvm_libc { -inline long syscall(long __number) { +__attribute__((always_inline)) inline long syscall(long __number) { long retcode; LIBC_INLINE_ASM("syscall" : "=a"(retcode) : @@ -23,7 +23,7 @@ return retcode; } -inline long syscall(long __number, long __arg1) { +__attribute__((always_inline)) inline long syscall(long __number, long __arg1) { long retcode; LIBC_INLINE_ASM("syscall" : "=a"(retcode) : @@ -32,7 +32,8 @@ return retcode; } -inline long syscall(long __number, long __arg1, long __arg2) { +__attribute__((always_inline)) inline long syscall( + long __number, long __arg1, long __arg2) { long retcode; LIBC_INLINE_ASM("syscall" : "=a"(retcode) : @@ -41,7 +42,8 @@ return retcode; } -inline long syscall(long __number, long __arg1, long __arg2, long __arg3) { +__attribute__((always_inline)) inline long syscall( + long __number, long __arg1, long __arg2, long __arg3) { long retcode; LIBC_INLINE_ASM("syscall" : "=a"(retcode) : @@ -50,7 +52,7 @@ return retcode; } -inline long syscall( +__attribute__((always_inline)) inline long syscall( long __number, long __arg1, long __arg2, long __arg3, long __arg4) { long retcode; register long r10 __asm__("r10") = __arg4; @@ -61,8 +63,9 @@ return retcode; } -inline long syscall(long __number, long __arg1, long __arg2, long __arg3, - long __arg4, long __arg5) { +__attribute__((always_inline)) inline long syscall( + long __number, long __arg1, long __arg2, long __arg3, long __arg4, + long __arg5) { long retcode; register long r10 __asm__("r10") = __arg4; register long r8 __asm__("r8") = __arg5; @@ -74,8 +77,9 @@ return retcode; } -inline long syscall(long __number, long __arg1, long __arg2, long __arg3, - long __arg4, long __arg5, long __arg6) { +__attribute__((always_inline)) inline long syscall( + long __number, long __arg1,long __arg2, long __arg3, long __arg4, + long __arg5, long __arg6) { long retcode; register long r10 __asm__("r10") = __arg4; register long r8 __asm__("r8") = __arg5;