[PATCH][ARM][gas] fix build breakage with gcc-10 by using correct enum type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH][ARM][gas] fix build breakage with gcc-10 by using correct enum type

Szabolcs Nagy-2
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:

2019-12-31  Szabolcs Nagy  <[hidden email]>

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

0001-ARM-gas-fix-build-breakage-with-gcc-10-by-using-corr.diff (692 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH][ARM][gas] fix build breakage with gcc-10 by using correct enum type

Nick Clifton
Hi Szabolcs,

> 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:
>
> 2019-12-31  Szabolcs Nagy  <[hidden email]>
>
> * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
> REGLIST_RN.

Approved - please apply.

Cheers
  Nick