]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
RISC-V: The version of i-ext should be RISCV_UNKNOWN_VERSION when expanding g-ext.
authorNelson Chu <nelson.chu@sifive.com>
Mon, 12 Apr 2021 09:59:57 +0000 (17:59 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Mon, 12 Apr 2021 10:04:12 +0000 (18:04 +0800)
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.

bfd/ChangeLog
bfd/elfxx-riscv.c

index 58a862c0ea57afc0f8fff246209e87d6e40923bd..cb85678a716eda5981346adb9b2e79701914c333 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-12  Nelson Chu  <nelson.chu@sifive.com>
+
+       * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
+       i-ext when expanding g-ext.
+
 2021-04-12  Nelson Chu  <nelson.chu@sifive.com>
 
        * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
index ef55d8384eb01dac797bcd6ea1cb6d7716fcb619..13719e508b9a4021b8630646bad48803e551312d 100644 (file)
@@ -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;