diff options
author | Andreas Jaeger <aj@gcc.gnu.org> | 2003-03-04 18:51:00 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2003-03-04 18:51:00 +0100 |
commit | 14011ca451d20d1d01d81d7f7e8055a98405966d (patch) | |
tree | d157280734d91ecf6703ee244c5cdd1e0bf1d869 /gcc/ggc-common.c | |
parent | 6b919a8ab98b7ce4c4af34d620951e77198e25b1 (diff) | |
download | gcc-14011ca451d20d1d01d81d7f7e8055a98405966d.zip gcc-14011ca451d20d1d01d81d7f7e8055a98405966d.tar.gz gcc-14011ca451d20d1d01d81d7f7e8055a98405966d.tar.bz2 |
configure.in: Check for <memcheck.h>.
* 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.
From-SVN: r63788
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 a6b7ea3..f762c46 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) |