openmp-mips-affinity.patch 2.2 KB
Newer Older
Sylvestre Ledru's avatar
Sylvestre Ledru committed
1
Index: llvm-toolchain-snapshot_9~svn351647/openmp/runtime/src/kmp_affinity.h
2
===================================================================
Sylvestre Ledru's avatar
Sylvestre Ledru committed
3 4
--- llvm-toolchain-snapshot_9~svn351647.orig/openmp/runtime/src/kmp_affinity.h
+++ llvm-toolchain-snapshot_9~svn351647/openmp/runtime/src/kmp_affinity.h
Sylvestre Ledru's avatar
Sylvestre Ledru committed
5
@@ -211,28 +211,29 @@ public:
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
 #elif __NR_sched_getaffinity != 223
 #error Wrong code for getaffinity system call.
 #endif /* __NR_sched_getaffinity */
-#elif KMP_ARCH_MIPS
-#ifndef __NR_sched_setaffinity
-#define __NR_sched_setaffinity 4239
-#elif __NR_sched_setaffinity != 4239
-#error Wrong code for setaffinity system call.
-#endif /* __NR_sched_setaffinity */
-#ifndef __NR_sched_getaffinity
-#define __NR_sched_getaffinity 4240
-#elif __NR_sched_getaffinity != 4240
-#error Wrong code for getaffinity system call.
-#endif /* __NR_sched_getaffinity */
-#elif KMP_ARCH_MIPS64
-#ifndef __NR_sched_setaffinity
-#define __NR_sched_setaffinity 5195
-#elif __NR_sched_setaffinity != 5195
-#error Wrong code for setaffinity system call.
-#endif /* __NR_sched_setaffinity */
-#ifndef __NR_sched_getaffinity
-#define __NR_sched_getaffinity 5196
-#elif __NR_sched_getaffinity != 5196
-#error Wrong code for getaffinity system call.
-#endif /* __NR_sched_getaffinity */
+# elif KMP_ARCH_MIPS
+#  ifndef __NR_sched_setaffinity
+#   define __NR_sched_setaffinity  4239
+#  elif __NR_sched_setaffinity != 4239
+#   error Wrong code for setaffinity system call.
+#  endif /* __NR_sched_setaffinity */
+#  ifndef __NR_sched_getaffinity
+#   define __NR_sched_getaffinity  4240
+#  elif __NR_sched_getaffinity != 4240
+#   error Wrong code for getaffinity system call.
+#  endif /* __NR_sched_getaffinity */
+# elif KMP_ARCH_MIPS64
+#  ifndef __NR_sched_setaffinity
+#   define __NR_sched_setaffinity  5195
+#  elif __NR_sched_setaffinity != 5195
+#   error Wrong code for setaffinity system call.
+#  endif /* __NR_sched_setaffinity */
+#  ifndef __NR_sched_getaffinity
+#   define __NR_sched_getaffinity  5196
+#  elif __NR_sched_getaffinity != 5196
+#   error Wrong code for getaffinity system call.
+#  endif /* __NR_sched_getaffinity */
+# else
 #error Unknown or unsupported architecture
 #endif /* KMP_ARCH_* */
 class KMPNativeAffinity : public KMPAffinity {