]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Support --with-cpu
authorCharlie Jenkins <charlie@rivosinc.com>
Wed, 26 Nov 2025 19:29:51 +0000 (11:29 -0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 28 Nov 2025 09:14:31 +0000 (17:14 +0800)
commit5be645aae5b261cb238a2a8a953c12eea2bc01b1
tree175c1fda6097d39a7ffc3dea77f8eaf2ec533715
parentb028abd09278b8e7fdd8012d4592e3cc0aaff5f4
RISC-V: Support --with-cpu

The --with-cpu will allow riscv compilers to have a default mcpu flag.
Setting -mcpu or -march at compile time will override the configured
--with-cpu.

gcc/ChangeLog:

* config.gcc: Add cpu to supported configure options
* config/riscv/riscv.h (riscv_arch_help): Use --with-cpu during
compilation
* doc/install.texi: Mention in docs that --with-cpu is supported
gcc/config.gcc
gcc/config/riscv/riscv.h
gcc/doc/install.texi