]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[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>
Mon, 13 Jan 2020 15:49:26 +0000 (15:49 +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:

Backported from mainline.
2020-01-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>

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

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

index fcb5592f9faa542e9843312d515e7b420bb48f10..81f066d6d77e0e2c5d04c823af6af1a7471ebccc 100644 (file)
@@ -1,3 +1,11 @@
+2020-01-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       Backported from mainline.
+       2020-01-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
+       REGLIST_RN.
+
 2019-12-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        Backported from mainline.
index caabdbba90d3d03c0d3d41d5a262b0b240dddb14..9910572fd9e1d39f785149d63cbc13ac2d4fc3e3 100644 (file)
@@ -1868,7 +1868,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)