On 6/18/2026 9:01 PM, [email protected] wrote: > From: Peter Bergner <[email protected]> > > Some cpus are known by multiple names or have their name changed after > support has already been added to GCC. Add support to the riscv port > that allows setting up alternate names or aliases for a cpu's canonical > name. > > 2026-06-17 Peter Bergner <[email protected]> > > gcc/ > * common/config/riscv/riscv-common.cc (struct riscv_cpu_alias_info): > New struct. > (riscv_cpu_alias_table): New. > (riscv_find_cpu): Add support for cpu alias names. > (riscv_get_valid_option_values): Likewise. > Add an early loop exit if we found a duplicate name. > * config/riscv/riscv-cores.def (RISCV_CORE_ALIAS): New macro. OK. We could infinitely recurse if there's a loop in the alias mappings, but I doubt that's worth tryign to bullet proof against since that would be considered a bug in the alias mapping itself.
Jeff
