From: Bruno Haible Date: Wed, 19 May 2010 20:11:00 +0000 (+0200) Subject: Avoid valgrind error reports from libunistring. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fcaaedf40a31c2ea6c961ab4e720a5bbd841d37;p=pspp Avoid valgrind error reports from libunistring. --- 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