aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2022-04-11 16:29:34 +0800
committerKito Cheng <kito.cheng@sifive.com>2022-04-11 22:56:54 +0800
commit4132f6ba9583e128a00d55961ae8c8e7245b2223 (patch)
treeb4d3c0931e5ede16b5287a824f06c295c43acaa8 /gcc/config.gcc
parentc62b0f731b32c1842bb679edc5b8d842b5e5732f (diff)
downloadgcc-4132f6ba9583e128a00d55961ae8c8e7245b2223.zip
gcc-4132f6ba9583e128a00d55961ae8c8e7245b2223.tar.gz
gcc-4132f6ba9583e128a00d55961ae8c8e7245b2223.tar.bz2
RISC-V: Support -misa-spec for arch-canonicalize and multilib-generator. [PR104853]
We migrate the default ISA spec version from 2.2 to 20191213, but those scripts aren't updated at the same time, this patch is making both scripts support different ISA spec versions. gcc/ChangeLog: PR target/104853 * config.gcc: Pass -misa-spec to arch-canonicalize and multilib-generator. * config/riscv/arch-canonicalize: Adding -misa-spec option. (SUPPORTED_ISA_SPEC): New. (arch_canonicalize): New argument `isa_spec`. Handle multiple ISA spec versions. * config/riscv/multilib-generator: Adding -misa-spec option.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 5382788..48a5bbc 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4717,7 +4717,7 @@ case "${target}" in
esac
PYTHON=`which python || which python3 || which python2`
if test "x${PYTHON}" != x; then
- with_arch=`${PYTHON} ${srcdir}/config/riscv/arch-canonicalize ${with_arch}`
+ with_arch=`${PYTHON} ${srcdir}/config/riscv/arch-canonicalize -misa-spec=${with_isa_spec} ${with_arch}`
fi
tm_defines="${tm_defines} TARGET_RISCV_DEFAULT_ARCH=${with_arch}"
@@ -4766,6 +4766,7 @@ case "${target}" in
case "${target}" in
riscv*-*-elf*)
if ${srcdir}/config/riscv/multilib-generator \
+ -misa-spec=${with_isa_spec} \
`echo ${with_multilib_generator} | sed 's/;/ /g'`\
> t-multilib-config;
then