diff options
author | Nick Clifton <nickc@redhat.com> | 2021-02-19 10:14:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-02-19 10:14:09 +0000 |
commit | 0257c2ff4f698c5dbb51236d78fd8bce4b4c6905 (patch) | |
tree | d67cba58758c9b743ef3bfa034880b73ae61f8df | |
parent | 8488c357ce4fc309d49c7b0224cf9574b68e8116 (diff) | |
download | binutils-0257c2ff4f698c5dbb51236d78fd8bce4b4c6905.zip binutils-0257c2ff4f698c5dbb51236d78fd8bce4b4c6905.tar.gz binutils-0257c2ff4f698c5dbb51236d78fd8bce4b4c6905.tar.bz2 |
Fix compile time warnings when building riscv assembler.
* config/tc-riscv.c (riscv_ip): Fix compile time warnings about
misleading indentation.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-riscv.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ae1bd92..165d0af 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2021-02-19 Nick Clifton <nickc@redhat.com> + + * config/tc-riscv.c (riscv_ip): Fix compile time warnings about + misleading indentation. + 2021-02-19 Nelson Chu <nelson.chu@sifive.com> PR 27158 diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 5f4f3ec..bbf7052 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) |