RISC-V architecture has a set of extensions and those are reflected in the predefined macros. This series add support for '-march' as an architecture-specific option and uses for RISC-V to correctly predefine these macros. Luc Van Oostenryck (3): arch: teach sparse about the '-march' option riscv: parse '-march=....' riscv: add the predefines for the extensions options.c | 8 ++++ target-riscv.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++ target.h | 2 + 3 files changed, 109 insertions(+) -- 2.27.0