From 7d1f0a00ed3260561b9d79055acdd6ed42311cd3 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 23 Nov 2016 11:10:53 -0700 Subject: [PATCH] iq2000.c (iq2000_rtx_costs): Avoid multiplication in boolean context warning. * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication in boolean context warning. From-SVN: r242787 --- gcc/ChangeLog | 3 +++ gcc/config/iq2000/iq2000.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db002f7ae0e..b8a968e43c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,6 +7,9 @@ 2016-11-23 Jeff Law + * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication + in boolean context warning. + * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype. 2016-11-23 James Greenhalgh diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index 2c936da4336..a3195db3a26 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -3309,7 +3309,7 @@ iq2000_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED, int num_words = (GET_MODE_SIZE (mode) > UNITS_PER_WORD) ? 2 : 1; if (simple_memory_operand (x, mode)) - return COSTS_N_INSNS (num_words); + return COSTS_N_INSNS (num_words) != 0; * total = COSTS_N_INSNS (2 * num_words); break; -- 2.11.4.GIT