From 1a80db971def22067b3ccbb27b995cd5b86488c0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Feb 2013 10:58:47 +0100 Subject: configure.ac: Don't define ENABLE_CHECKING whenever --enable-checking is seen... * configure.ac: Don't define ENABLE_CHECKING whenever --enable-checking is seen, instead use similar --enable-checking=yes vs. --enable-checking=release default as gcc/ subdir has and define ENABLE_CHECKING if ENABLE_CHECKING is defined in gcc/. Define ENABLE_VALGRIND_CHECKING if requested. * lex.c (new_buff): If ENABLE_VALGRIND_CHECKING, put _cpp_buff struct first in the allocated buffer and result->base after it. (_cpp_free_buff): If ENABLE_VALGRIND_CHECKING, free buff itself instead of buff->base. * config.in: Regenerated. * configure: Regenerated. From-SVN: r196333 --- libcpp/config.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcpp/config.in') diff --git a/libcpp/config.in b/libcpp/config.in index fca690c..1b0b255 100644 --- a/libcpp/config.in +++ b/libcpp/config.in @@ -21,6 +21,10 @@ language is requested. */ #undef ENABLE_NLS +/* Define if you want to workaround valgrind (a memory checker) warnings about + possible memory leaks because of libcpp use of interior pointers. */ +#undef ENABLE_VALGRIND_CHECKING + /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA -- cgit v1.1