Package: dmalloc
Version: 5.4.2-2

This package fails to build with recent compilers due to some bad inline
assembly:

http://buildd.debian.org/~jeroen/status/package.php?p=dmalloc&a=arm#fail-arm

The patch below seems to fix this problem.

--- clean/dmalloc-5.4.2/return.h        2004-10-19 14:51:21.000000000 +0000
+++ dmalloc-5.4.2/return.h      2005-12-12 08:48:53.000000000 +0000
@@ -301,7 +301,7 @@
  * For ARM based machines with gcc/gas 3.3.3 -- Silvester Erdeg.
  */
 #ifdef __arm__
-#define GET_RET_ADDR(file)  asm("str lr, %0" : "=g" (file) : /* no
inputs */ )
+#define GET_RET_ADDR(file)  do { register int lr asm("lr"); file =
(char *)lr; } while (0)
 #endif
 
 /*************************************/




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to