From 1fcaaedf40a31c2ea6c961ab4e720a5bbd841d37 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 19 May 2010 22:11:00 +0200 Subject: [PATCH] Avoid valgrind error reports from libunistring. --- ChangeLog | 7 +++++++ lib/libunistring.valgrind | 9 +++++++++ modules/libunistring | 1 + modules/libunistring-optional | 1 + 4 files changed, 18 insertions(+) create mode 100644 lib/libunistring.valgrind diff --git a/ChangeLog b/ChangeLog index 76f0077edd..5bc2c09a5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-05-19 Bruno Haible + + Avoid valgrind error reports from libunistring. + * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind. + * modules/libunistring (Files): Add it. + * modules/libunistring-optional (Files): Likewise. + 2010-05-18 Paolo Bonzini Bruno Haible diff --git a/lib/libunistring.valgrind b/lib/libunistring.valgrind new file mode 100644 index 0000000000..aba265aecf --- /dev/null +++ b/lib/libunistring.valgrind @@ -0,0 +1,9 @@ +# Suppress valgrind messages in an installed libunistring. + +# Suppress a valgrind message about use of uninitialized memory in freea(). +# This use is OK because it provides only a speedup. +{ + libunistring_freea + Memcheck:Cond + fun:libunistring_freea +} diff --git a/modules/libunistring b/modules/libunistring index 1de28df464..5073584686 100644 --- a/modules/libunistring +++ b/modules/libunistring @@ -4,6 +4,7 @@ Unicode string functions. Files: m4/libunistring.m4 m4/absolute-header.m4 +lib/libunistring.valgrind Depends-on: havelib diff --git a/modules/libunistring-optional b/modules/libunistring-optional index 0493600074..212842a304 100644 --- a/modules/libunistring-optional +++ b/modules/libunistring-optional @@ -5,6 +5,7 @@ Files: m4/libunistring-optional.m4 m4/libunistring.m4 m4/absolute-header.m4 +lib/libunistring.valgrind Depends-on: havelib -- 2.30.2