From ed25d7320abdd2411ab54d1757c1c4fafff7b928 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 6 Jan 2009 19:01:36 +0000 Subject: [PATCH] 2009-01-06 Joel Sherrill * r8c.opc, m32c.opc: Add parentheses to remove warnings. --- sim/m32c/ChangeLog | 4 ++++ sim/m32c/m32c.opc | 4 ++-- sim/m32c/r8c.opc | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 5512d6995a5..24684fb5eb1 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,7 @@ +2009-01-06 Joel Sherrill + + * r8c.opc, m32c.opc: Add parentheses to remove warnings. + 2008-10-01 DJ Delorie * int.c (trigger_peripheral_interrupt): Clear interrupt pending diff --git a/sim/m32c/m32c.opc b/sim/m32c/m32c.opc index 3fe6cf069a8..8a3eedd7a2c 100644 --- a/sim/m32c/m32c.opc +++ b/sim/m32c/m32c.opc @@ -642,13 +642,13 @@ next_opcode: prefix (0, 0, 0); sc = decode_src23 (sss, ss, 1); - BIT_OPC (sc, bit, !b & carry); + BIT_OPC (sc, bit, (!b) & carry); /** 0000 0001 1101 sss0 ss11 0bit BNOR src */ prefix (0, 0, 0); sc = decode_src23 (sss, ss, 1); - BIT_OPC (sc, bit, !b | carry); + BIT_OPC (sc, bit, (!b) | carry); /** 1101 ddd0 dd01 1bit BNOT dest */ diff --git a/sim/m32c/r8c.opc b/sim/m32c/r8c.opc index abfc7b9a26d..0e8746462b3 100644 --- a/sim/m32c/r8c.opc +++ b/sim/m32c/r8c.opc @@ -475,11 +475,11 @@ decode_r8c() /** 0111 1110 0101 srcx BNAND src */ - BIT_OPC (srcx, !b & carry); + BIT_OPC (srcx, (!b) & carry); /** 0111 1110 0111 srcx BNOR src */ - BIT_OPC (srcx, !b | carry); + BIT_OPC (srcx, (!b) | carry); /** 0111 1110 1010 dest BNOT:G dest */ -- 2.30.2