|
From: Mark W. <ma...@so...> - 2019-03-27 14:56:08
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=8ed9b61432848dc23890375e425cdf1c37582bf5 commit 8ed9b61432848dc23890375e425cdf1c37582bf5 Author: Mark Wielaard <ma...@kl...> Date: Wed Mar 27 15:51:34 2019 +0100 Use ULong instead of unsigned long in s390_irgen_EX_SS. ovl was defined as an unsigned long. This would cause warnings from gcc: guest_s390_toIR.c:195:30: warning: right shift count >= width of type [-Wshift-count-overflow] when building on 32bit arches, or building a 32bit secondary arch. Fix this by defining ovl as ULong which is always guaranteed 64bit. Diff: --- VEX/priv/guest_s390_toIR.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VEX/priv/guest_s390_toIR.c b/VEX/priv/guest_s390_toIR.c index b4b8e3d..acff370 100644 --- a/VEX/priv/guest_s390_toIR.c +++ b/VEX/priv/guest_s390_toIR.c @@ -12745,7 +12745,7 @@ s390_irgen_EX_SS(UChar r, IRTemp addr2, IRTemp cond; IRDirty *d; IRTemp torun; - unsigned long ovl; + ULong ovl; IRTemp start1 = newTemp(Ity_I64); IRTemp start2 = newTemp(Ity_I64); |