Fix compile time warnings when building riscv assembler.
authorNick Clifton <nickc@redhat.com>
Fri, 19 Feb 2021 10:14:09 +0000 (10:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 19 Feb 2021 10:14:09 +0000 (10:14 +0000)
* config/tc-riscv.c (riscv_ip): Fix compile time warnings about
misleading indentation.

gas/ChangeLog
gas/config/tc-riscv.c

index ae1bd92ff9f1656d4dfca17773c5310ee2f839aa..165d0affb4e14ef4dbb557a69e1f9bd9d3446a50 100644 (file)
@@ -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
index 5f4f3ec273d56404262f6ef7c172e7974b220657..bbf705208a37bfdadd77ed60caf8660b61642663 100644 (file)
@@ -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)