[ARM][gas] fix build breakage with gcc-10 by using correct enum type
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 21 Oct 2019 15:59:11 +0000 (16:59 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 2 Jan 2020 13:07:37 +0000 (13:07 +0000)
Fixes

../../gas/config/tc-arm.c: In function 'parse_reg_list':
../../gas/config/tc-arm.c:1946:35: error: implicit conversion from 'enum reg_list_els' to 'enum arm_reg_type' [-Werror=enum-conversion]
 1946 |        reg = arm_reg_parse (&str, REGLIST_RN);
      |                                   ^~~~~~~~~~

gas/ChangeLog:

* config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
REGLIST_RN.

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

index c78b42bb0e93ae342ee787f29159e9eb73f886af..198f787d1440a8e158726e5b15cda594b022a795 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
+       REGLIST_RN.
+
 2020-01-01  Alan Modra  <amodra@gmail.com>
 
        Update year range in copyright notice of all files.
index e4081178405a8fa4d05637683bca70aa6ff26a27..c4dee105b9f45431fca55e958fb8043c580eb2fd 100644 (file)
@@ -1943,7 +1943,7 @@ parse_reg_list (char ** strp, enum reg_list_els etype)
              const char apsr_str[] = "apsr";
              int apsr_str_len = strlen (apsr_str);
 
-             reg = arm_reg_parse (&str, REGLIST_RN);
+             reg = arm_reg_parse (&str, REG_TYPE_RN);
              if (etype == REGLIST_CLRM)
                {
                  if (reg == REG_SP || reg == REG_PC)
This page took 0.034398 seconds and 4 git commands to generate.