patch-2.4.5 linux/include/asm-alpha/compiler.h
Next file: linux/include/asm-alpha/core_tsunami.h
Previous file: linux/include/asm-alpha/bitops.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun May 20 12:11:39 2001
- Orig file:
v2.4.4/linux/include/asm-alpha/compiler.h
- Orig date:
Sun Apr 22 19:10:53 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-alpha/compiler.h linux/include/asm-alpha/compiler.h
@@ -72,4 +72,13 @@
__asm__("stw %1,%0" : "=m"(mem) : "r"(val))
#endif
+/* Somewhere in the middle of the GCC 2.96 development cycle, we implemented
+ a mechanism by which the user can annotate likely branch directions and
+ expect the blocks to be reordered appropriately. Define __builtin_expect
+ to nothing for earlier compilers. */
+
+#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#define __builtin_expect(x, expected_value) (x)
+#endif
+
#endif /* __ALPHA_COMPILER_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)