This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Remove extraneous parentheses in arm-dis.c
- From: Alan Hayward <Alan dot Hayward at arm dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: nd <nd at arm dot com>, Alan Hayward <Alan dot Hayward at arm dot com>
- Date: Tue, 4 Jun 2019 12:22:49 +0000
- Subject: [PATCH] Remove extraneous parentheses in arm-dis.c
When using llvm as the compiler, it errors with:
error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if ((Qd == Qn))
opcodes/ChangeLog:
2019-06-04 Alan Hayward <alan.hayward@arm.com>
* arm-dis.c (is_mve_unpredictable):
---
opcodes/arm-dis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 0503d9365d..03aebb571a 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -6619,7 +6619,7 @@ is_mve_unpredictable (unsigned long given, enum mve_instructions matched_insn,
= arm_decode_field_multiple (given, 13, 15, 22, 22);
unsigned long Qn = arm_decode_field_multiple (given, 17, 19, 7, 7);
- if ((Qd == Qn))
+ if (Qd == Qn)
{
*unpredictable_code = UNPRED_Q_REGS_EQ_AND_SIZE_1;
return TRUE;
--
2.20.1 (Apple Git-117)