https://bugs.kde.org/show_bug.cgi?id=430429

Jonathan Albrecht <jonathan.albre...@ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.albre...@ibm.com

--- Comment #1 from Jonathan Albrecht <jonathan.albre...@ibm.com> ---
This seems very similar to https://bugs.kde.org/show_bug.cgi?id=342008 which
just added an explicit cast for _zzq_default.

I tried the same fix for s390x with:

diff --git a/include/valgrind.h b/include/valgrind.h
index d33dd3093..04a747c7a 100644
--- a/include/valgrind.h
+++ b/include/valgrind.h
@@ -876,7 +876,8 @@ typedef
                     /* results = r3 */                           \
                     "lgr %0, 3\n\t"                              \
                     : "=d" (_zzq_result)                         \
-                    : "a" (&_zzq_args[0]), "0" (_zzq_default)    \
+                    : "a" (&_zzq_args[0]),                       \
+                      "0" ((unsigned long int)_zzq_default)      \
                     : "cc", "2", "3", "memory"                   \
                    );                                            \
    _zzq_result;                                                  \

and it fixes the compile error but I don't know if that's sufficient.

FWIW, I built valgrind from source using gcc and ran the reg tests both with
and without the change and got the same results.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to