valgrind/valgrind-3.8.0-config_h.patch

12 lines
459 B
Diff
Raw Normal View History

2012-01-27 16:56:53 +00:00
--- valgrind/include/pub_tool_basics.h.jj 2011-10-26 23:24:32.000000000 +0200
+++ valgrind/include/pub_tool_basics.h 2011-12-09 17:42:50.828630546 +0100
2012-08-07 22:24:14 +00:00
@@ -297,7 +297,7 @@ static inline Bool sr_EQ ( SysRes sr1, S
2012-01-27 16:56:53 +00:00
#define VG_BUGS_TO "www.valgrind.org"
/* Branch prediction hints. */
-#if defined(__GNUC__)
+#if defined(__GNUC__) && (__GNUC__ >= 3)
# define LIKELY(x) __builtin_expect(!!(x), 1)
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
#else