This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch sim/d10v] -Werror tweaks
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 17 Jun 2002 19:50:28 -0400
- Subject: [patch sim/d10v] -Werror tweaks
Just FYI,
Andrew
2002-06-17 Andrew Cagney <cagney@redhat.com>
* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
Index: d10v_sim.h
===================================================================
RCS file: /cvs/src/src/sim/d10v/d10v_sim.h,v
retrieving revision 1.4
diff -u -r1.4 d10v_sim.h
--- d10v_sim.h 9 Jun 2002 15:45:46 -0000 1.4
+++ d10v_sim.h 17 Jun 2002 23:36:44 -0000
@@ -318,7 +318,7 @@
#define PSW CREG (PSW_CR)
#define SET_PSW(VAL) SET_CREG (PSW_CR, (VAL))
#define SET_HW_PSW(VAL) SET_HW_CREG (PSW_CR, (VAL))
-#define SET_PSW_BIT(MASK,VAL) move_to_cr (PSW_CR, ~(MASK), (VAL) ? (MASK) : 0, 1)
+#define SET_PSW_BIT(MASK,VAL) move_to_cr (PSW_CR, ~((reg_t) MASK), (VAL) ? (MASK) : 0, 1)
#define PSW_SM ((PSW & PSW_SM_BIT) != 0)
#define SET_PSW_SM(VAL) SET_PSW_BIT (PSW_SM_BIT, (VAL))