aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.h
diff options
context:
space:
mode:
authorJunxian Zhu <zhujunxian@oss.cipunited.com>2023-03-02 10:30:21 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2023-03-02 10:30:21 +0000
commitf2b846f1feb6a1bbca0b85d2db66b92787bc0891 (patch)
tree10b0718b807e3d2a8c1429b12c2cd79a95260029 /gcc/config/mips/mips.h
parentb09dc74801cf4e19bdf5fcd18a5cd53fc9e9ca9a (diff)
downloadgcc-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/mips/mips.h')
-rw-r--r--gcc/config/mips/mips.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index f664d30..6daf6d3 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -916,7 +916,8 @@ struct mips_cpu_info {
{"synci", "%{!msynci:%{!mno-synci:-m%(VALUE)}}" }, \
{"lxc1-sxc1", "%{!mlxc1-sxc1:%{!mno-lxc1-sxc1:-m%(VALUE)}}" }, \
{"madd4", "%{!mmadd4:%{!mno-madd4:-m%(VALUE)}}" }, \
- {"compact-branches", "%{!mcompact-branches=*:-mcompact-branches=%(VALUE)}" } \
+ {"compact-branches", "%{!mcompact-branches=*:-mcompact-branches=%(VALUE)}" }, \
+ {"msa", "%{!mmsa:%{!mno-msa:-m%(VALUE)}}" } \
/* A spec that infers the:
-mnan=2008 setting from a -mips argument,