Skip to content

Commit f76d51a

Browse files
committed
remove cruft for supposedly-buggy clang from or1k & microblaze syscall_arch
it was never demonstrated to me that this workaround was needed, and seems likely that, if there ever was any clang version for which it was needed, it's old enough to be unusably buggy in other ways. if it turns out some compilers actually can't do the register allocation right, we'll need to replace this with inline shuffling code, since the external __syscall dependency is being removed.
1 parent 22e5bbd commit f76d51a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

arch/microblaze/syscall_arch.h

-9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
44
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
55

6-
#ifndef __clang__
7-
86
static __inline long __syscall0(long n)
97
{
108
register unsigned long r12 __asm__("r12") = n;
@@ -96,11 +94,4 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
9694
return r3;
9795
}
9896

99-
#else
100-
101-
#undef SYSCALL_NO_INLINE
102-
#define SYSCALL_NO_INLINE
103-
104-
#endif
105-
10697
#define SYSCALL_IPC_BROKEN_MODE

arch/or1k/syscall_arch.h

-9
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#define SYSCALL_MMAP2_UNIT 8192ULL
77

8-
#ifndef __clang__
9-
108
static __inline long __syscall0(long n)
119
{
1210
register unsigned long r11 __asm__("r11") = n;
@@ -113,10 +111,3 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
113111
"r23", "r25", "r27", "r29", "r31");
114112
return r11;
115113
}
116-
117-
#else
118-
119-
#undef SYSCALL_NO_INLINE
120-
#define SYSCALL_NO_INLINE
121-
122-
#endif

0 commit comments

Comments
 (0)