]> git.pld-linux.org Git - packages/LeakTracer.git/blobdiff - LeakTracer-caller_addr.patch
- alpha and sparc support.
[packages/LeakTracer.git] / LeakTracer-caller_addr.patch
index 61639924d137378959b59a26fa7784311a2d8ee8..587485f66a2398abc86078c50c56b7a55b5867d0 100644 (file)
@@ -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
  
 +// 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;
 +}
This page took 0.062533 seconds and 4 git commands to generate.