0014-fix-incorrect-subext-name.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 2b5f08aa28efa2ee545eb1f49d147b0d39b4b695 Mon Sep 17 00:00:00 2001
  2. From: "max.ma" <max.ma@starfivetech.com>
  3. Date: Thu, 28 Oct 2021 16:54:05 -0700
  4. Subject: [PATCH 14/15] fix incorrect subext name
  5. ---
  6. gcc/common/config/riscv/riscv-common.c | 8 ++++----
  7. 1 file changed, 4 insertions(+), 4 deletions(-)
  8. diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c
  9. index 6a3bda64e68..0927554d506 100644
  10. --- a/gcc/common/config/riscv/riscv-common.c
  11. +++ b/gcc/common/config/riscv/riscv-common.c
  12. @@ -912,10 +912,10 @@ static const riscv_ext_flag_table_t riscv_ext_flag_table[] =
  13. {"zicsr", &gcc_options::x_riscv_zi_subext, MASK_ZICSR},
  14. {"zifencei", &gcc_options::x_riscv_zi_subext, MASK_ZIFENCEI},
  15. - {"zba", &gcc_options::riscv_zb_subext, MASK_ZBA},
  16. - {"zbb", &gcc_options::riscv_zb_subext, MASK_ZBB},
  17. - {"zbs", &gcc_options::riscv_zb_subext, MASK_ZBS},
  18. - {"zbc", &gcc_options::riscv_zb_subext, MASK_ZBC},
  19. + {"zba", &gcc_options::x_riscv_zb_subext, MASK_ZBA},
  20. + {"zbb", &gcc_options::x_riscv_zb_subext, MASK_ZBB},
  21. + {"zbs", &gcc_options::x_riscv_zb_subext, MASK_ZBS},
  22. + {"zbc", &gcc_options::x_riscv_zb_subext, MASK_ZBC},
  23. {NULL, NULL, 0}
  24. };
  25. --
  26. 2.33.1