summaryrefslogtreecommitdiff
path: root/patches/dmalloc/5.5.2/170-ppc-bogus-assembly.patch
blob: d92bd8aaf1d047c395272e96726998ff68489e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -ur dmalloc-5.5.2.orig/return.h dmalloc-5.5.2/return.h
--- dmalloc-5.5.2.orig/return.h	2016-03-13 13:11:48.090431764 -0700
+++ dmalloc-5.5.2/return.h	2016-03-13 13:12:11.246642618 -0700
@@ -251,8 +251,7 @@
 
 #define GET_RET_ADDR(file) \
 do { \
-  asm("mflr 0"); \
-  asm("stw 0,%0" : "=g" (file)); \
+  asm("mflr %0" : "=r"(file)); \
 } while(0)
 
 #endif /* __powerpc__ && __GNUC__ && !__OPTIMIZE__ */