This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix compiler warning in mips/dsp.igen
- From: Thiemo Seufer <ths at networkno dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 7 Nov 2006 14:59:37 +0000
- Subject: [PATCH] Fix compiler warning in mips/dsp.igen
Hello All,
I applied the appended patch which fixes a compiler warning.
Thiemo
2006-11-07 Thiemo Seufer <ths@mips.com>
* dsp.igen (do_w_op): Fix compiler warning.
Index: mips/dsp.igen
===================================================================
RCS file: /cvs/src/src/sim/mips/dsp.igen,v
retrieving revision 1.2
diff -u -p -r1.2 dsp.igen
--- mips/dsp.igen 15 May 2006 20:34:18 -0000 1.2
+++ mips/dsp.igen 7 Nov 2006 14:54:29 -0000
@@ -69,10 +69,10 @@
h0 = (signed64)h1 + (signed64)h2;
else // SUB
h0 = (signed64)h1 - (signed64)h2;
- if (((h0 & 0x100000000) >> 1) != (h0 & 0x80000000))
+ if (((h0 & 0x100000000LL) >> 1) != (h0 & 0x80000000))
{
DSPCR |= DSPCR_OUFLAG4;
- if (h0 & 0x100000000)
+ if (h0 & 0x100000000LL)
h0 = 0x80000000;
else
h0 = 0x7fffffff;