diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2023-11-23 13:55:43 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@ispras.ru> | 2023-11-24 16:13:56 +0300 |
commit | ab78426ae76cd4a31c384f17dd058b4ad8b39642 (patch) | |
tree | 9d402504538eff6d626d4a9aac2ee594eda1930d /libcpp/lex.cc | |
parent | 3eb9cae6d375d222787498b15ac87f383b3834fe (diff) | |
download | gcc-ab78426ae76cd4a31c384f17dd058b4ad8b39642.zip gcc-ab78426ae76cd4a31c384f17dd058b4ad8b39642.tar.gz gcc-ab78426ae76cd4a31c384f17dd058b4ad8b39642.tar.bz2 |
libcpp: configure: drop unused Valgrind detection
When top-level configure has either --enable-checking=valgrind or
--enable-valgrind-annotations, we want to activate a couple of workarounds
in libcpp. They do not use anything from the Valgrind API, so just
delete all detection.
libcpp/ChangeLog:
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac (ENABLE_VALGRIND_CHECKING): Delete.
(ENABLE_VALGRIND_ANNOTATIONS): Rename to
ENABLE_VALGRIND_WORKAROUNDS. Delete Valgrind header checks.
* lex.cc (new_buff): Adjust for renaming.
(_cpp_free_buff): Ditto.
Diffstat (limited to 'libcpp/lex.cc')
-rw-r--r-- | libcpp/lex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/lex.cc b/libcpp/lex.cc index 0b1b936..a5d2f31 100644 --- a/libcpp/lex.cc +++ b/libcpp/lex.cc @@ -4762,7 +4762,7 @@ new_buff (size_t len) len = MIN_BUFF_SIZE; len = CPP_ALIGN (len); -#ifdef ENABLE_VALGRIND_ANNOTATIONS +#ifdef ENABLE_VALGRIND_WORKAROUNDS /* Valgrind warns about uses of interior pointers, so put _cpp_buff struct first. */ size_t slen = CPP_ALIGN2 (sizeof (_cpp_buff), 2 * DEFAULT_ALIGNMENT); @@ -4859,7 +4859,7 @@ _cpp_free_buff (_cpp_buff *buff) for (; buff; buff = next) { next = buff->next; -#ifdef ENABLE_VALGRIND_ANNOTATIONS +#ifdef ENABLE_VALGRIND_WORKAROUNDS free (buff); #else free (buff->base); |