]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
x86_cpu_features.c: cpuid fix for x86_32 PIC with old GCC versions
[wimlib] / include / wimlib / compiler.h
index a1f513f5da76cb7632a59e10a749bb665fc2b72d..5327318832f3c7ffb6dd9484117e73f9333a9f75 100644 (file)
 #  define _format_attribute(type, format_str, format_start)
 #endif
 
+#ifndef noinline
+#  define noinline
+#endif
+
+/* Same as 'noinline', but 'noinline_for_stack' documents that 'noinline' is
+ * being used to prevent the annotated function from being inlined into a
+ * recursive function and increasing its stack usage.  */
+#define noinline_for_stack     noinline
+
 #ifndef CPU_IS_BIG_ENDIAN
-#  error "missing required definition of CPU_IS_BIG_ENDIAN"
+#  error "missing required endianness definition"
 #endif
 
 #define CPU_IS_LITTLE_ENDIAN (!CPU_IS_BIG_ENDIAN)