diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2025-07-28 20:49:39 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2025-08-06 14:50:28 +0800 |
commit | aa1ae5284da3377190c7dd1e0dbd865bb41c46e6 (patch) | |
tree | 9aaa028647ebfeb4776f27aef8035142cd2f1a4d /libjava/classpath/lib/java/security | |
parent | 87262627fd65a1a7acd80a529077f098a7e26f18 (diff) | |
download | gcc-aa1ae5284da3377190c7dd1e0dbd865bb41c46e6.zip gcc-aa1ae5284da3377190c7dd1e0dbd865bb41c46e6.tar.gz gcc-aa1ae5284da3377190c7dd1e0dbd865bb41c46e6.tar.bz2 |
RISC-V: Support -march=unset
This patch introduces a new `-march=unset` option for RISC-V GCC that
allows users to explicitly ignore previous `-march` options and derive
the architecture string from the `-mcpu` option instead.
This feature is particularly useful for build systems and toolchain
configurations where you want to ensure the architecture is always
derived from the CPU specification rather than relying on potentially
conflicting `-march` options.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc (riscv_expand_arch):
Ignore `unset`.
* config/riscv/riscv.h (OPTION_DEFAULT_SPECS): Handle
`-march=unset`.
(ARCH_UNSET_CLEANUP_SPECS): New.
(DRIVER_SELF_SPECS): Handle -march=unset.
* doc/invoke.texi (RISC-V Options): Update documentation for
`-march=unset`.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/arch-unset-1.c: New test.
* gcc.target/riscv/arch-unset-2.c: New test.
* gcc.target/riscv/arch-unset-3.c: New test.
* gcc.target/riscv/arch-unset-4.c: New test.
* gcc.target/riscv/arch-unset-5.c: New test.
Diffstat (limited to 'libjava/classpath/lib/java/security')
0 files changed, 0 insertions, 0 deletions