aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/install.texi
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2021-05-08 05:45:54 -0400
committerYunQiang Su <yunqiang.su@cipunited.com>2022-10-25 16:44:12 +0800
commit593632051f48a20bdc685d00d168f064d808bd7b (patch)
tree4aaffe625878597857fca7e1431aabd2a9457560 /gcc/doc/install.texi
parent4479f1dc79fc4f1b5e0fed209df35f405bc94589 (diff)
downloadgcc-593632051f48a20bdc685d00d168f064d808bd7b.zip
gcc-593632051f48a20bdc685d00d168f064d808bd7b.tar.gz
gcc-593632051f48a20bdc685d00d168f064d808bd7b.tar.bz2
MIPS: add builtime option for -mcompact-branches
For R6+ target, it allows to configure gcc to use compact branches only if avaiable. gcc/ChangeLog: * config.gcc: add -with-compact-branches=policy build option. * doc/install.texi: Likewise. * config/mips/mips.h: Likewise.
Diffstat (limited to 'gcc/doc/install.texi')
-rw-r--r--gcc/doc/install.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 4931e0b..c1876f2 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1543,6 +1543,25 @@ systems that support conditional traps).
Division by zero checks use the break instruction.
@end table
+@item --with-compact-branches=@var{policy}
+Specify how the compiler should generate branch instructions.
+This option is only supported on the MIPS target.
+The possibilities for @var{type} are:
+@table @code
+@item optimal
+Cause a delay slot branch to be used if one is available in the
+current ISA and the delay slot is successfully filled. If the delay slot
+is not filled, a compact branch will be chosen if one is available.
+@item never
+Ensures that compact branch instructions will never be generated.
+@item always
+Ensures that a compact branch instruction will be generated if available.
+If a compact branch instruction is not available,
+a delay slot form of the branch will be used instead.
+This option is supported from MIPS Release 6 onwards.
+For pre-R6/microMIPS/MIPS16, this option is just same as never/optimal.
+@end table
+
@c If you make --with-llsc the default for additional targets,
@c update the --with-llsc description in the MIPS section below.