From: Petar Jovanovic Date: Mon, 5 Dec 2016 16:29:24 +0000 (+0000) Subject: Add CLEAR_CALLER_SAVED_REGS in leak-tree test X-Git-Tag: svn/VALGRIND_3_13_0~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91042c29dd3fbe2971f36f35b08e9735327f50a;p=thirdparty%2Fvalgrind.git Add CLEAR_CALLER_SAVED_REGS in leak-tree test Motivation for this change is similar to what has already been done in other leak-* tests. That is, call CLEAR_CALLER_SAVED_REGS (currently used only on PPC and MIPS arches) to clear temporary registers that might be holding pointers lost in a previously called function. This fixes memcheck/tests/leak-tree failure on some MIPS platforms. Patch by Aleksandar Rikalo. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16173 --- diff --git a/memcheck/tests/leak-tree.c b/memcheck/tests/leak-tree.c index 99575f987e..59b1ccdf90 100644 --- a/memcheck/tests/leak-tree.c +++ b/memcheck/tests/leak-tree.c @@ -62,6 +62,7 @@ int main(void) // See leak-cases.c for why we do the work in f(). f(); + CLEAR_CALLER_SAVED_REGS; GET_FINAL_LEAK_COUNTS; PRINT_LEAK_COUNTS(stderr);