summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-29 22:13:59 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-29 22:13:59 +0000
commita519c4d3595ef641cf4a7f5e9f3f122c8906375f (patch)
tree973dcd60e0999971d390a6d534a2bf385183062a /gcc/ggc-page.c
parentb932f66cf529d7794e2ebb1260ab46c1f0808db9 (diff)
downloadgcc-a519c4d3595ef641cf4a7f5e9f3f122c8906375f.tar.gz
* configure.in <enable-checking for valgrind>: Look for
<valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H if it exists. * configure, config.in: Regenerate. * ggc-common.c [ENABLE_VALGRIND_CHECKING && HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use #elif for other alternatives. * ggc-page.c: Ditto. * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy include structure from ggc-common.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index 198b73364bf..8f14664f1e1 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -31,10 +31,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "timevar.h"
#include "params.h"
#ifdef ENABLE_VALGRIND_CHECKING
-# ifdef HAVE_MEMCHECK_H
-# include <memcheck.h>
+# ifdef HAVE_VALGRIND_MEMCHECK_H
+# include <valgrind/memcheck.h>
+# elif defined HAVE_MEMCHECK_H
+# include <memcheck.h>
# else
-# include <valgrind.h>
+# include <valgrind.h>
# endif
#else
/* Avoid #ifdef:s when we can help it. */