]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 283429 - ARM leak checking needs CLEAR_CALLER_SAVED_REGS
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 8 Feb 2024 13:09:15 +0000 (14:09 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 8 Feb 2024 13:09:15 +0000 (14:09 +0100)
Unfortunately it took over 12 years to reinvent the wheel and
fix this item.

See also
d91042c29dd3fbe2971f36f35b08e9735327f50a
and
b0015f7572bf42ee4ac1296884f5e7640ec1e5dc

NEWS
memcheck/tests/leak.h

diff --git a/NEWS b/NEWS
index a902488af71687c5db33d1ffe0b6590d1021fc08..21e07e897591603d73f60ed6b4b94c82089d830a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ than mailing the developers (or mailing lists) directly -- bugs that
 are not entered into bugzilla tend to get forgotten about or ignored.
 
 
+283429  ARM leak checking needs CLEAR_CALLER_SAVED_REGS
 281059  Cannot connect to Oracle using valgrind
 390269  unhandled amd64-darwin syscall: unix:464 (openat_nocancel)
 401284  False positive "Source and destination overlap in strncat"
index 23722a4217923bb096b1b5b5316c21716f0ba355..9e3cd2ad8fc33ba919f56e15c7fb7f0ff1ac71a8 100644 (file)
 #define CLEAR_CALLER_SAVED_REGS                                              \
    do {                                                                      \
       __asm__ __volatile__ ("mov %r0, $0\n\t");                              \
+      __asm__ __volatile__ ("mov %r1, $0\n\t");                              \
+      __asm__ __volatile__ ("mov %r2, $0\n\t");                              \
+      __asm__ __volatile__ ("mov %r3, $0\n\t");                              \
    } while (0)
 #else
 #define CLEAR_CALLER_SAVED_REGS  /*nothing*/