Add valgrind-3.10.1-demangle-q.patch

This commit is contained in:
Mark Wielaard 2015-06-03 14:55:35 +02:00
parent c55764e13a
commit 9e7a753c22
2 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,75 @@
commit 3d62ad9a0158a1fe56cf3cff9fc49bfb6d504b27
Author: florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
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<int,typeof(this)>)->xyzzy(p, 0);
+ return (new abc::def<int,typeof(*this)>)->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<int, magic<int>* const>::xyzzy(int*, magic<int>* const*) (demangle.cpp:9)
+ at 0x........: abc::def<int, magic<int> >::xyzzy(int*, magic<int>*) (demangle.cpp:9)
by 0x........: magic<int>::xyzzy(int*) (demangle.cpp:19)
by 0x........: main (demangle.cpp:27)
commit 79a59b53abd68d3d5df2f77bfbe23d6c3eab0e4b
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
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<int, magic<int> >::xyzzy(int*, magic<int>*) (demangle.cpp:9)
by 0x........: magic<int>::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

View File

@ -95,6 +95,9 @@ Patch14: valgrind-3.10.1-arm-process_vm_readv_writev.patch
# Upstream valgrind svn r15305 # Upstream valgrind svn r15305
Patch15: valgrind-3.10.1-fno-ipa-icf.patch 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} %if %{build_multilib}
# Ensure glibc{,-devel} is installed for both multilib arches # 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 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 %patch13 -p1
%patch14 -p1 %patch14 -p1
%patch15 -p1 %patch15 -p1
%patch16 -p1
%build %build
# We need to use the software collection compiler and binutils if available. # 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-syncfs.patch.
- Add valgrind-3.10.1-arm-process_vm_readv_writev.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-fno-ipa-icf.patch.
- Add valgrind-3.10.1-demangle-q.patch
* Fri May 22 2015 Mark Wielaard <mjw@redhat.com> - 3.10.1-8 * Fri May 22 2015 Mark Wielaard <mjw@redhat.com> - 3.10.1-8
- Disable extended regtest on arm. The gdb tests hang for unknown reasons. - Disable extended regtest on arm. The gdb tests hang for unknown reasons.