]> git.pld-linux.org Git - packages/LeakTracer.git/commitdiff
- alpha and sparc support.
authorPaweł Sikora <pluto@pld-linux.org>
Sun, 11 Dec 2005 03:58:08 +0000 (03:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    LeakTracer-caller_addr.patch -> 1.2

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.070744 seconds and 4 git commands to generate.