aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2025-07-28 20:49:39 +0800
committerKito Cheng <kito.cheng@sifive.com>2025-08-06 14:50:28 +0800
commitaa1ae5284da3377190c7dd1e0dbd865bb41c46e6 (patch)
tree9aaa028647ebfeb4776f27aef8035142cd2f1a4d /libjava/classpath
parent87262627fd65a1a7acd80a529077f098a7e26f18 (diff)
downloadgcc-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')
0 files changed, 0 insertions, 0 deletions