mips.c (override_options): Use mips_costs to derive the default branch cost.
commita05bea767716117ac703c1adfcdf660906183b65
authorRichard Sandiford <richard@codesourcery.com>
Mon, 23 Jul 2007 12:49:45 +0000 (23 12:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 23 Jul 2007 12:49:45 +0000 (23 12:49 +0000)
tree261fdc61422012cf1e8354c83eca63bf14ce9391
parentfae4095f015e9cf79b4b2bd2a243cf825ca624e0
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
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/branch-cost-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/branch-cost-2.c [new file with mode: 0644]