SOURCES: LeakTracer-caller_addr.patch - alpha and sparc support.
pluto
pluto at pld-linux.org
Sun Dec 11 04:58:13 CET 2005
Author: pluto Date: Sun Dec 11 03:58:13 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- alpha and sparc support.
---- Files affected:
SOURCES:
LeakTracer-caller_addr.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/LeakTracer-caller_addr.patch
diff -u SOURCES/LeakTracer-caller_addr.patch:1.1 SOURCES/LeakTracer-caller_addr.patch:1.2
--- SOURCES/LeakTracer-caller_addr.patch:1.1 Sun Dec 11 01:01:00 2005
+++ SOURCES/LeakTracer-caller_addr.patch Sun Dec 11 04:58:08 2005
@@ -1,6 +1,6 @@
--- LeakTracer.cc.orig 2005-12-10 23:57:27.000000000 +0000
+++ LeakTracer.cc 2005-12-11 00:12:19.592655400 +0000
-@@ -86,6 +86,21 @@
+@@ -86,6 +86,25 @@
*/
#define INITIALSIZE 32768
@@ -12,9 +12,13 @@
+// x86-32: call [mem] takes 5 bytes.
+// x86-64: callq/jmpq [mem] takes 5 bytes.
+ c -= 5;
-+#elif defined(__powerpc__)
-+// ppc32: bl [mem] takes 4 bytes.
++#elif defined(__powerpc__) || defined(__alpha__)
++// ppc32/64: bl [mem] takes 4 bytes.
++// alpha: bsr ra,[mem] takes 4 bytes.
+ c -= 4;
++#elif defined(__sparc__)
++// sparc32/64: call with delay slot takes 8 bytes.
++ c -= 8;
+#endif
+ return (const void*)c;
+}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/LeakTracer-caller_addr.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list