summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-04 17:51:00 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-04 17:51:00 +0000
commit8adead19d78c082210086b2a421f8987bb39c1bc (patch)
treed157280734d91ecf6703ee244c5cdd1e0bf1d869 /gcc/ggc-page.c
parent507226b5dbed27a1aed4d1ffad2a6871213da1de (diff)
downloadgcc-8adead19d78c082210086b2a421f8987bb39c1bc.tar.gz
* configure.in: Check for <memcheck.h>.
* configure: Regenerated. * config.in: Define HAVE_MEMCHECK_H. * ggc-common.c: Use <memcheck.h> if available instead of <valgrind.h>. * ggc-page.c: Likewise. * cppfiles.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63788 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index e0064e7fdb2..69ba34b40b1 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -32,7 +32,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "timevar.h"
#include "params.h"
#ifdef ENABLE_VALGRIND_CHECKING
-#include <valgrind.h>
+# ifdef HAVE_MEMCHECK_H
+# include <memcheck.h>
+# else
+# include <valgrind.h>
+# endif
#else
/* Avoid #ifdef:s when we can help it. */
#define VALGRIND_DISCARD(x)