From: Nelson Chu Date: Mon, 12 Apr 2021 09:59:57 +0000 (+0800) Subject: RISC-V: The version of i-ext should be RISCV_UNKNOWN_VERSION when expanding g-ext. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5b10973531cdda7e1aba7496f70476b5146fcf8;p=binutils-gdb.git RISC-V: The version of i-ext should be RISCV_UNKNOWN_VERSION when expanding g-ext. Fix the wrong version of i-ext when expanding g-ext. This was changed by the previous patch accidently. bfd/ * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of i-ext when expanding g-ext. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 58a862c0ea5..cb85678a716 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2021-04-12 Nelson Chu + + * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of + i-ext when expanding g-ext. + 2021-04-12 Nelson Chu * elfxx-riscv.c (riscv_ext_dont_care_version): Removed. diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index ef55d8384eb..13719e508b9 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1514,8 +1514,8 @@ riscv_parse_std_ext (riscv_parse_subset_t *rps, &minor_version, true); /* Expand g to imafd. */ riscv_parse_add_subset (rps, "i", - major_version, - minor_version, false); + RISCV_UNKNOWN_VERSION, + RISCV_UNKNOWN_VERSION, false); for ( ; *std_exts != 'q'; std_exts++) { subset[0] = *std_exts;