From 1c497005ee58fd237646a49231b73fd3ea79e2d5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 31 May 2017 21:49:44 -0400 Subject: remove long-obsolete clang workarounds from mips* syscall_arch.h files at one point, clang reportedly failed to support the asm register constraints needed for inline syscalls. versions of clang that old have much bigger problems that preclude using them to compile musl libc. --- arch/mips/syscall_arch.h | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'arch/mips') diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h index 39c0ea32..3ac4da21 100644 --- a/arch/mips/syscall_arch.h +++ b/arch/mips/syscall_arch.h @@ -20,8 +20,6 @@ static inline void __stat_fix(long p) } #endif -#ifndef __clang__ - static inline long __syscall0(long n) { register long r7 __asm__("$7"); @@ -105,45 +103,6 @@ static inline long __syscall4(long n, long a, long b, long c, long d) return ret; } -#else - -static inline long __syscall0(long n) -{ - return (__syscall)(n); -} - -static inline long __syscall1(long n, long a) -{ - return (__syscall)(n, a); -} - -static inline long __syscall2(long n, long a, long b) -{ - long r2 = (__syscall)(n, a, b); - if (r2 > -4096UL) return r2; - if (n == SYS_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __stat_fix(b); - return r2; -} - -static inline long __syscall3(long n, long a, long b, long c) -{ - long r2 = (__syscall)(n, a, b, c); - if (r2 > -4096UL) return r2; - if (n == SYS_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __stat_fix(b); - return r2; -} - -static inline long __syscall4(long n, long a, long b, long c, long d) -{ - long r2 = (__syscall)(n, a, b, c, d); - if (r2 > -4096UL) return r2; - if (n == SYS_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __stat_fix(b); - if (n == SYS_fstatat) __stat_fix(c); - return r2; -} - -#endif - static inline long __syscall5(long n, long a, long b, long c, long d, long e) { long r2 = (__syscall)(n, a, b, c, d, e); -- cgit v1.2.1