These two patches look good to me.  Still, need a maintainer's approval.

On Sun, 2021-08-29 at 22:59 -0400, YunQiang Su wrote:
> Currently mips-cpu.defs, mips.h, netbsd.h and config.gcc are
> using hardcoded numbers for isa level.
> 
> Let's replace them with more readable enum mips_isa.
> 
> gcc/ChangeLog:
>         * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
>           use enum instead of int for 'isa' member.
>         * config/config.gcc, config/mips/mips{.h,-cpus.def},
>           config/mips/netbsd.h: replace hardcoded numbers with enum.
> ---
>  gcc/config.gcc                |  62 ++++-----
>  gcc/config/mips/mips-cpus.def | 228 +++++++++++++++++-----------------
>  gcc/config/mips/mips.c        |   5 +-
>  gcc/config/mips/mips.h        |  84 ++++++++-----
>  gcc/config/mips/netbsd.h      |   5 +-
>  5 files changed, 203 insertions(+), 181 deletions(-)


Reply via email to