diff --git a/valgrind-3.10.1-demangle-q.patch b/valgrind-3.10.1-demangle-q.patch new file mode 100644 index 0000000..2cc45d6 --- /dev/null +++ b/valgrind-3.10.1-demangle-q.patch @@ -0,0 +1,75 @@ +commit 3d62ad9a0158a1fe56cf3cff9fc49bfb6d504b27 +Author: florian +Date: Mon Nov 24 22:30:49 2014 +0000 + + Change the testcase to not depend on the type of 'this' in the output. + GCC 4.9.2 and GCC 4.8.x have different opinions about that variable's type. + + + git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14780 a5019735-40e9-0310-863c-91ae7b9d1cf9 + +diff --git a/memcheck/tests/demangle.cpp b/memcheck/tests/demangle.cpp +index 6fb2b98..ff15fe1 100644 +--- a/memcheck/tests/demangle.cpp ++++ b/memcheck/tests/demangle.cpp +@@ -16,7 +16,7 @@ class magic { + public: + T xyzzy(T *p) + { +- return (new abc::def)->xyzzy(p, 0); ++ return (new abc::def)->xyzzy(p, 0); + } + }; + +diff --git a/memcheck/tests/demangle.stderr.exp b/memcheck/tests/demangle.stderr.exp +index b79c638..2124517 100644 +--- a/memcheck/tests/demangle.stderr.exp ++++ b/memcheck/tests/demangle.stderr.exp +@@ -1,6 +1,6 @@ + + Conditional jump or move depends on uninitialised value(s) +- at 0x........: abc::def* const>::xyzzy(int*, magic* const*) (demangle.cpp:9) ++ at 0x........: abc::def >::xyzzy(int*, magic*) (demangle.cpp:9) + by 0x........: magic::xyzzy(int*) (demangle.cpp:19) + by 0x........: main (demangle.cpp:27) + +commit 79a59b53abd68d3d5df2f77bfbe23d6c3eab0e4b +Author: mjw +Date: Wed Jun 3 09:52:00 2015 +0000 + + Run memcheck/tests/demangle with -q. + + The interesting part is the demangled backtrace in the error message. + Suppress the memory allocation/blocks summary which can differ slightly + depending on the underlying arch/libs. + + git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15308 a5019735-40e9-0310-863c-91ae7b9d1cf9 + +diff --git a/memcheck/tests/demangle.stderr.exp b/memcheck/tests/demangle.stderr.exp +index 2124517..6e7467d 100644 +--- a/memcheck/tests/demangle.stderr.exp ++++ b/memcheck/tests/demangle.stderr.exp +@@ -1,16 +1,5 @@ +- + Conditional jump or move depends on uninitialised value(s) + at 0x........: abc::def >::xyzzy(int*, magic*) (demangle.cpp:9) + by 0x........: magic::xyzzy(int*) (demangle.cpp:19) + by 0x........: main (demangle.cpp:27) + +- +-HEAP SUMMARY: +- in use at exit: 6 bytes in 3 blocks +- total heap usage: 3 allocs, 0 frees, 6 bytes allocated +- +-For a detailed leak analysis, rerun with: --leak-check=full +- +-For counts of detected and suppressed errors, rerun with: -v +-Use --track-origins=yes to see where uninitialised values come from +-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) +diff --git a/memcheck/tests/demangle.vgtest b/memcheck/tests/demangle.vgtest +index f6ae038..b65b6d3 100644 +--- a/memcheck/tests/demangle.vgtest ++++ b/memcheck/tests/demangle.vgtest +@@ -1 +1,2 @@ + prog: demangle ++vgopts: -q diff --git a/valgrind.spec b/valgrind.spec index 694ccd2..44984e4 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -95,6 +95,9 @@ Patch14: valgrind-3.10.1-arm-process_vm_readv_writev.patch # Upstream valgrind svn r15305 Patch15: valgrind-3.10.1-fno-ipa-icf.patch +# Upstream valgrind svn r14780 and r15308 +Patch16: valgrind-3.10.1-demangle-q.patch + %if %{build_multilib} # Ensure glibc{,-devel} is installed for both multilib arches BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so @@ -208,6 +211,7 @@ Valgrind User Manual for details. %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -368,6 +372,7 @@ echo ===============END TESTING=============== - Add valgrind-3.10.1-syncfs.patch. - Add valgrind-3.10.1-arm-process_vm_readv_writev.patch. - Add valgrind-3.10.1-fno-ipa-icf.patch. +- Add valgrind-3.10.1-demangle-q.patch * Fri May 22 2015 Mark Wielaard - 3.10.1-8 - Disable extended regtest on arm. The gdb tests hang for unknown reasons.