diff options
author | Junxian Zhu <zhujunxian@oss.cipunited.com> | 2023-03-02 10:30:21 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-03-02 10:30:21 +0000 |
commit | f2b846f1feb6a1bbca0b85d2db66b92787bc0891 (patch) | |
tree | 10b0718b807e3d2a8c1429b12c2cd79a95260029 /gcc/config.gcc | |
parent | b09dc74801cf4e19bdf5fcd18a5cd53fc9e9ca9a (diff) | |
download | gcc-f2b846f1feb6a1bbca0b85d2db66b92787bc0891.zip gcc-f2b846f1feb6a1bbca0b85d2db66b92787bc0891.tar.gz gcc-f2b846f1feb6a1bbca0b85d2db66b92787bc0891.tar.bz2 |
MIPS: Add buildtime option to set msa default
Add buildtime option to decide whether will compiler build with `-mmsa` option default.
gcc/ChangeLog:
* config.gcc: add -with-{no-}msa build option.
* config/mips/mips.h: Likewise.
* doc/install.texi: Likewise.
Signed-off-by: Junxian Zhu <zhujunxian@oss.cipunited.com>
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index c070e6e..da3a6d3 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4709,7 +4709,7 @@ case "${target}" in ;; mips*-*-*) - supported_defaults="abi arch arch_32 arch_64 float fpu nan fp_32 odd_spreg_32 tune tune_32 tune_64 divide llsc mips-plt synci lxc1-sxc1 madd4 compact-branches" + supported_defaults="abi arch arch_32 arch_64 float fpu nan fp_32 odd_spreg_32 tune tune_32 tune_64 divide llsc mips-plt synci lxc1-sxc1 madd4 compact-branches msa" case ${with_float} in "" | soft | hard) @@ -4871,6 +4871,21 @@ case "${target}" in exit 1 ;; esac + + case ${with_msa} in + yes) + with_msa=msa + ;; + no) + with_msa=no-msa + ;; + "") + ;; + *) + echo "Unknown msa type used in --with-msa" 1>&2 + exit 1 + ;; + esac ;; loongarch*-*-*) @@ -5815,7 +5830,7 @@ case ${target} in esac t= -all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu nan fp_32 odd_spreg_32 divide llsc mips-plt synci tls lxc1-sxc1 madd4 isa_spec compact-branches" +all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu nan fp_32 odd_spreg_32 divide llsc mips-plt synci tls lxc1-sxc1 madd4 isa_spec compact-branches msa" for option in $all_defaults do eval "val=\$with_"`echo $option | sed s/-/_/g` |