aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.opt
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-07-23 12:49:45 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-07-23 12:49:45 +0000
commita05bea767716117ac703c1adfcdf660906183b65 (patch)
tree261fdc61422012cf1e8354c83eca63bf14ce9391 /gcc/config/mips/mips.opt
parentfae4095f015e9cf79b4b2bd2a243cf825ca624e0 (diff)
downloadgcc-a05bea767716117ac703c1adfcdf660906183b65.zip
gcc-a05bea767716117ac703c1adfcdf660906183b65.tar.gz
gcc-a05bea767716117ac703c1adfcdf660906183b65.tar.bz2
mips.c (override_options): Use mips_costs to derive the default branch cost.
gcc/ * config/mips/mips.c (override_options): Use mips_costs to derive the default branch cost. * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather than mips_costs. * config/mips/mips.opt (mbranch-cost=): New option. * doc/invoke.texi (-mbrach-cost): Document new MIPS option. gcc/testsuite/ * gcc.target/mips/branch-cost-1.c: New test. * gcc.target/mips/branch-cost-2.c: Likewise. From-SVN: r126846
Diffstat (limited to 'gcc/config/mips/mips.opt')
-rw-r--r--gcc/config/mips/mips.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt
index f7e751f..7e6dd37 100644
--- a/gcc/config/mips/mips.opt
+++ b/gcc/config/mips/mips.opt
@@ -35,6 +35,10 @@ march=
Target RejectNegative Joined Var(mips_arch_string)
-march=ISA Generate code for the given ISA
+mbranch-cost=
+Target RejectNegative Joined UInteger Var(mips_branch_cost)
+-mbranch-cost=COST Set the cost of branches to roughly COST instructions
+
mbranch-likely
Target Report Mask(BRANCHLIKELY)
Use Branch Likely instructions, overriding the architecture default