]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed dependency of include/pub_tool_basics.h on config.h.
authorBart Van Assche <bvanassche@acm.org>
Tue, 29 Dec 2009 16:56:18 +0000 (16:56 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 29 Dec 2009 16:56:18 +0000 (16:56 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10972

configure.in
coregrind/m_aspacemgr/aspacemgr-common.c
coregrind/m_aspacemgr/aspacemgr-linux.c
coregrind/m_syswrap/syswrap-generic.c
helgrind/hg_intercepts.c
include/pub_tool_basics.h

index 1e978289f939d2e3f0b5d47e467dbd6a9f04b5f3..0a44463aecb26aefde97375372a4f922adb95f6a 100644 (file)
@@ -1378,24 +1378,6 @@ AC_MSG_RESULT([no])
 CFLAGS=$safe_CFLAGS
 
 
-# does this compiler support __builtin_expect?
-AC_MSG_CHECKING([if gcc supports __builtin_expect])
-
-AC_TRY_LINK(, [
-return __builtin_expect(1, 1) ? 1 : 0
-],
-[
-ac_have_builtin_expect=yes
-AC_MSG_RESULT([yes])
-], [
-ac_have_builtin_expect=no
-AC_MSG_RESULT([no])
-])
-if test x$ac_have_builtin_expect = xyes ; then
-  AC_DEFINE(HAVE_BUILTIN_EXPECT, 1, [Define to 1 if gcc supports __builtin_expect.])
-fi
-
-
 # does the ppc assembler support "mtocrf" et al?
 AC_MSG_CHECKING([if ppc32/64 as supports mtocrf/mfocrf])
 
index b8a7dd8b97bbc7eed5e6868881360a6bcb2b8c5e..16642fb22c9eff8732445520d765d75c1b62d551 100644 (file)
@@ -37,6 +37,7 @@
    ************************************************************* */
 
 #include "priv_aspacemgr.h"
+#include "config.h"
 
 
 /*-----------------------------------------------------------------*/
index 53ed143a2dc06faa545cc0b1e1da014e1ee887d0..0df6230d2918fe90cf6c4fd84102a573e38ae016 100644 (file)
@@ -40,6 +40,7 @@
    ************************************************************* */
 
 #include "priv_aspacemgr.h"
+#include "config.h"
 
 
 /* Note: many of the exported functions implemented below are
index de7a3062cd687bdf66386353ab8a7518ede42ae9..ca247fbdbe4dab4889648165076bba844cb4c116 100644 (file)
@@ -62,6 +62,8 @@
 #include "priv_types_n_macros.h"
 #include "priv_syswrap-generic.h"
 
+#include "config.h"
+
 
 /* Returns True iff address range is something the client can
    plausibly mess with: all of it is either already belongs to the
index c95597c9ba9046e2588e9f26e31b0bff58bfbeb6..8c17cc784b003be42b19733127c2f0908a9abdc1 100644 (file)
@@ -56,6 +56,7 @@
 #include "pub_tool_redir.h"
 #include "valgrind.h"
 #include "helgrind.h"
+#include "config.h"
 
 #define TRACE_PTH_FNS 0
 #define TRACE_QT4_FNS 0
index b2bf08ea5f6a0d1f8ce75019fffe6c559dbaa6b1..8aa1c4b26c4783214d9b3ea6514efd06cc520faf 100644 (file)
@@ -49,9 +49,6 @@
 // For varargs types
 #include <stdarg.h>
 
-/* For HAVE_BUILTIN_EXPECT */
-#include "config.h"
-
 
 /* ---------------------------------------------------------------------
    symbol prefixing
@@ -318,7 +315,7 @@ static inline Bool sr_EQ ( SysRes sr1, SysRes sr2 ) {
 #define VG_BUGS_TO "www.valgrind.org"
 
 /* Branch prediction hints. */
-#if HAVE_BUILTIN_EXPECT
+#if 1 /*HAVE_BUILTIN_EXPECT*/
 #  define LIKELY(x)   __builtin_expect(!!(x), 1)
 #  define UNLIKELY(x) __builtin_expect((x), 0)
 #else