From: Nick Clifton Date: Fri, 19 Feb 2021 10:14:09 +0000 (+0000) Subject: Fix compile time warnings when building riscv assembler. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0257c2ff4f698c5dbb51236d78fd8bce4b4c6905;p=binutils-gdb.git Fix compile time warnings when building riscv assembler. * config/tc-riscv.c (riscv_ip): Fix compile time warnings about misleading indentation. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index ae1bd92ff9f..165d0affb4e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2021-02-19 Nick Clifton + + * config/tc-riscv.c (riscv_ip): Fix compile time warnings about + misleading indentation. + 2021-02-19 Nelson Chu PR 27158 diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 5f4f3ec273d..bbf705208a3 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -2093,7 +2093,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr, || imm_expr->X_add_number >= 32 || !VALID_CLTYPE_IMM ((valueT) imm_expr->X_add_number)) break; - ip->insn_opcode |= ENCODE_CLTYPE_IMM (imm_expr->X_add_number); + ip->insn_opcode |= ENCODE_CLTYPE_IMM (imm_expr->X_add_number); goto rvc_imm_done; case '6': if (my_getSmallExpression (imm_expr, imm_reloc, s, p) @@ -2102,7 +2102,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr, || imm_expr->X_add_number >= 64 || !VALID_CSSTYPE_IMM ((valueT) imm_expr->X_add_number)) break; - ip->insn_opcode |= ENCODE_CSSTYPE_IMM (imm_expr->X_add_number); + ip->insn_opcode |= ENCODE_CSSTYPE_IMM (imm_expr->X_add_number); goto rvc_imm_done; case '8': if (my_getSmallExpression (imm_expr, imm_reloc, s, p) @@ -2111,7 +2111,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr, || imm_expr->X_add_number >= 256 || !VALID_CIWTYPE_IMM ((valueT) imm_expr->X_add_number)) break; - ip->insn_opcode |= ENCODE_CIWTYPE_IMM (imm_expr->X_add_number); + ip->insn_opcode |= ENCODE_CIWTYPE_IMM (imm_expr->X_add_number); goto rvc_imm_done; case 'j': if (my_getSmallExpression (imm_expr, imm_reloc, s, p)