[Bug target/110696] RISC-V: -march doesn't imply correctly

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696

JuzheZhong  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from JuzheZhong  ---
Fixed

[Bug target/110696] RISC-V: -march doesn't imply correctly

2023-07-17 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696

Kito Cheng  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2023-07-17
 Status|UNCONFIRMED |NEW

--- Comment #2 from Kito Cheng  ---
Fixed on upstream, but will wait one more week for backporting to GCC 13 branch

[Bug target/110696] RISC-V: -march doesn't imply correctly

2023-07-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696

--- Comment #1 from CVS Commits  ---
The trunk branch has been updated by Lehua Ding :

https://gcc.gnu.org/g:70742d08832eb7db4d90f52465966111a19ce3a5

commit r14-2564-g70742d08832eb7db4d90f52465966111a19ce3a5
Author: Lehua Ding 
Date:   Mon Jul 17 12:27:12 2023 +0800

RISC-V: Ensure all implied extensions are included [PR110696]

This patch fix target/PR110696, recursively add all implied extensions.

PR target/110696

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc
(riscv_subset_list::handle_implied_ext):
recur add all implied extensions.
(riscv_subset_list::check_implied_ext): Add new method.
(riscv_subset_list::parse): Call checker check_implied_ext.
* config/riscv/riscv-subset.h: Add new method.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/attribute-20.c: New test.
* gcc.target/riscv/pr110696.c: New test.

Signed-off-by: Lehua Ding