diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-04 17:51:00 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-04 17:51:00 +0000 |
commit | 8adead19d78c082210086b2a421f8987bb39c1bc (patch) | |
tree | d157280734d91ecf6703ee244c5cdd1e0bf1d869 /gcc/ggc-common.c | |
parent | 507226b5dbed27a1aed4d1ffad2a6871213da1de (diff) | |
download | gcc-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-common.c')
-rw-r--r-- | gcc/ggc-common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index a6b7ea3aa4b..f762c467ce7 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -1,5 +1,6 @@ /* Simple garbage collection for the GNU compiler. - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of GCC. @@ -38,7 +39,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #endif #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) |