[gcr] build: add "r0" to the clobber list on PPC in valgrind.h



commit 817cc86c177fe92785322611ce71215d320ac6b8
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Dec 19 21:26:58 2013 +0100

    build: add "r0" to the clobber list on PPC in valgrind.h
    
    Looks like the magic sequences trash this register, so make sure GCC
    knows that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710983

 build/valgrind/valgrind.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/build/valgrind/valgrind.h b/build/valgrind/valgrind.h
index 3c2098c..ab9dd04 100644
--- a/build/valgrind/valgrind.h
+++ b/build/valgrind/valgrind.h
@@ -475,7 +475,7 @@ typedef
                      "mr %0,3"     /*result*/                     \
                      : "=b" (_zzq_result)                         \
                      : "b" (_zzq_default), "b" (_zzq_ptr)         \
-                     : "cc", "memory", "r3", "r4");               \
+                     : "cc", "memory", "r3", "r4", "r0");         \
     _zzq_result;                                                  \
     })
 
@@ -488,7 +488,7 @@ typedef
                      "mr %0,3"                                    \
                      : "=b" (__addr)                              \
                      :                                            \
-                     : "cc", "memory", "r3"                       \
+                     : "cc", "memory", "r3", "r0"                 \
                     );                                            \
     _zzq_orig->nraddr = __addr;                                   \
   }
@@ -545,7 +545,7 @@ typedef
                      "mr %0,3"     /*result*/                     \
                      : "=b" (_zzq_result)                         \
                      : "b" (_zzq_default), "b" (_zzq_ptr)         \
-                     : "cc", "memory", "r3", "r4");               \
+                     : "cc", "memory", "r3", "r4", "r0");         \
     _zzq_result;                                                  \
   })
 
@@ -558,7 +558,7 @@ typedef
                      "mr %0,3"                                    \
                      : "=b" (__addr)                              \
                      :                                            \
-                     : "cc", "memory", "r3"                       \
+                     : "cc", "memory", "r3", "r0"                 \
                     );                                            \
     _zzq_orig->nraddr = __addr;                                   \
     __asm__ volatile(__SPECIAL_INSTRUCTION_PREAMBLE               \
@@ -567,7 +567,7 @@ typedef
                      "mr %0,3"                                    \
                      : "=b" (__addr)                              \
                      :                                            \
-                     : "cc", "memory", "r3"                       \
+                     : "cc", "memory", "r3", "r0"                 \
                     );                                            \
     _zzq_orig->r2 = __addr;                                       \
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]