[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/10] build: add Valgrind suppression file for GNU/Linux
From: |
Akim Demaille |
Subject: |
[PATCH 03/10] build: add Valgrind suppression file for GNU/Linux |
Date: |
Mon, 24 Jun 2013 10:50:00 +0200 |
* build-aux/linux-gnu.valgrind: New.
* build-aux/local.mk: Ship it.
* configure.ac: Use it.
---
build-aux/linux-gnu.valgrind | 16 ++++++++++++++++
build-aux/local.mk | 1 +
configure.ac | 10 ++++++++--
3 files changed, 25 insertions(+), 2 deletions(-)
create mode 100644 build-aux/linux-gnu.valgrind
diff --git a/build-aux/linux-gnu.valgrind b/build-aux/linux-gnu.valgrind
new file mode 100644
index 0000000..3130fbc
--- /dev/null
+++ b/build-aux/linux-gnu.valgrind
@@ -0,0 +1,16 @@
+# Linux seattle 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012
+# x86_64 GNU/Linux
+{
+ index
+ Memcheck:Cond
+ fun:index
+ fun:expand_dynamic_string_token
+ fun:_dl_map_object
+ fun:map_doit
+ fun:_dl_catch_error
+ fun:do_preload
+ fun:dl_main
+ fun:_dl_sysdep_start
+ fun:_dl_start
+ obj:/lib/ld-2.11.3.so
+}
diff --git a/build-aux/local.mk b/build-aux/local.mk
index 8922ea5..f92b3bd 100644
--- a/build-aux/local.mk
+++ b/build-aux/local.mk
@@ -16,6 +16,7 @@
EXTRA_DIST += \
build-aux/cross-options.pl \
build-aux/darwin11.4.0.valgrind \
+ build-aux/linux-gnu.valgrind \
build-aux/move-if-change \
build-aux/prev-version.txt \
build-aux/update-b4-copyright
diff --git a/configure.ac b/configure.ac
index 734825a..f7319a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -230,10 +230,16 @@ case $VALGRIND:$host_os in
'':*) ;;
*:darwin*)
# See README-hacking.
- # VALGRIND+='
--suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind'
+ # VALGRIND+='-q
--suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind'
VALGRIND=;;
*:*)
- AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"]);;
+ suppfile=build-aux/$host_os.valgrind
+ if test -f "$srcdir/$suppfile"; then
+ VALGRIND="$VALGRIND --gen-suppressions=all"
+ VALGRIND="$VALGRIND --suppressions=\$(abs_top_srcdir)/$suppfile"
+ fi
+ AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"])
+ ;;
esac
AM_MISSING_PROG([AUTOM4TE], [autom4te])
--
1.8.2.3
- [PATCH 00/10] Push parser support for Java, Akim Demaille, 2013/06/24
- [PATCH 04/10] java: push: do not reset the error counter, Akim Demaille, 2013/06/24
- [PATCH 01/10] build: ship all the files, even if the C++ compiler is broken, Akim Demaille, 2013/06/24
- [PATCH 03/10] build: add Valgrind suppression file for GNU/Linux,
Akim Demaille <=
- [PATCH 10/10] maint: post-release administrivia, Akim Demaille, 2013/06/24
- [PATCH 05/10] style: minor changes in the Java tests, Akim Demaille, 2013/06/24
- [PATCH 07/10] java: rename YYMORE as YYPUSH_MORE for consistency with C, Akim Demaille, 2013/06/24
- [PATCH 06/10] tests: fix Java push failure when running with BISON_USE_PUSH_FOR_PULL, Akim Demaille, 2013/06/24
- [PATCH 08/10] NEWS: prepare for 2.7.91, Akim Demaille, 2013/06/24
- [PATCH 09/10] version 2.7.91, Akim Demaille, 2013/06/24
- [PATCH 02/10] java: add push-parser support, Akim Demaille, 2013/06/24