From d47e6b8225e7627df766d5026c6b722ae441ca6f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 26 Oct 2016 14:16:57 -0600 Subject: [PATCH] mips.c (mips16_constant_cost): Add missing fallthru comments. * config/mips/mips.c (mips16_constant_cost): Add missing fallthru comments. (mips16_build_call_stub): Increase buffer size. Adjust fallthru comment. From-SVN: r241597 --- gcc/ChangeLog | 7 +++++++ gcc/config/mips/mips.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02a37f61933..3e7704c8040 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-10-26 Jeff Law + + * config/mips/mips.c (mips16_constant_cost): Add missing + fallthru comments. + (mips16_build_call_stub): Increase buffer size. Adjust + fallthru comment. + 2016-10-26 David Malcolm * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index ebec68eea94..5c1a35a4f86 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3828,9 +3828,11 @@ mips16_constant_cost (int code, HOST_WIDE_INT x) /* Like LE, but reject the always-true case. */ if (x == -1) return -1; + /* FALLTHRU */ case LE: /* We add 1 to the immediate and use SLT. */ x += 1; + /* FALLTHRU */ case XOR: /* We can use CMPI for an xor with an unsigned 16-bit X. */ case LT: @@ -7439,7 +7441,7 @@ mips16_build_call_stub (rtx retval, rtx *fn_ptr, rtx args_size, int fp_code) if (GET_CODE (fn) != SYMBOL_REF || !call_insn_operand (fn, VOIDmode)) { - char buf[30]; + char buf[32]; rtx stub_fn, addr; rtx_insn *insn; bool lazy_p; @@ -7635,7 +7637,7 @@ mips16_build_call_stub (rtx retval, rtx *fn_ptr, rtx args_size, int fp_code) case DCmode: mips_output_64bit_xfer ('f', GP_RETURN + (8 / UNITS_PER_WORD), FP_REG_FIRST + 2); - /* Fall though. */ + /* FALLTHRU */ case DFmode: case V2SFmode: gcc_assert (TARGET_PAIRED_SINGLE_FLOAT -- 2.30.2