Re: [Qemu-devel] [PATCH] target-mips: Fix warning about shifting negative value

2016-08-09 Thread Paolo Bonzini
On 08/08/2016 15:56, Pranith Kumar wrote: > Hi Paolo, > > On Mon, Aug 8, 2016 at 5:11 AM, Paolo Bonzini wrote: >> >> >> On 07/08/2016 03:15, Pranith Kumar wrote: >>> With latest clang you get the following warning: >>> >>> warning: shifting a negative signed value is undefined >>> [-Wshift-neg

Re: [Qemu-devel] [PATCH] target-mips: Fix warning about shifting negative value

2016-08-08 Thread Pranith Kumar
Hi Paolo, On Mon, Aug 8, 2016 at 5:11 AM, Paolo Bonzini wrote: > > > On 07/08/2016 03:15, Pranith Kumar wrote: >> With latest clang you get the following warning: >> >> warning: shifting a negative signed value is undefined >> [-Wshift-negative-value] >> >> Fix the warning by changing negative s

Re: [Qemu-devel] [PATCH] target-mips: Fix warning about shifting negative value

2016-08-08 Thread Paolo Bonzini
On 07/08/2016 03:15, Pranith Kumar wrote: > With latest clang you get the following warning: > > warning: shifting a negative signed value is undefined > [-Wshift-negative-value] > > Fix the warning by changing negative shift to inverse 0 shift. > > Signed-off-by: Pranith Kumar > --- > targ

[Qemu-devel] [PATCH] target-mips: Fix warning about shifting negative value

2016-08-06 Thread Pranith Kumar
With latest clang you get the following warning: warning: shifting a negative signed value is undefined [-Wshift-negative-value] Fix the warning by changing negative shift to inverse 0 shift. Signed-off-by: Pranith Kumar --- target-mips/translate.c | 10 +- 1 file changed, 5 insertions