hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/include/asm/asm-const.h
....@@ -11,4 +11,17 @@
1111 # define __ASM_CONST(x) x##UL
1212 # define ASM_CONST(x) __ASM_CONST(x)
1313 #endif
14
+
15
+/*
16
+ * Inline assembly memory constraint
17
+ *
18
+ * GCC 4.9 doesn't properly handle pre update memory constraint "m<>"
19
+ *
20
+ */
21
+#if defined(GCC_VERSION) && GCC_VERSION < 50000
22
+#define UPD_CONSTR ""
23
+#else
24
+#define UPD_CONSTR "<>"
25
+#endif
26
+
1427 #endif /* _ASM_POWERPC_ASM_CONST_H */