This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add a MIPS -mbranch-cost option
- From: Thiemo Seufer <ths at networkno dot de>
- To: gcc-patches at gcc dot gnu dot org, richard at codesourcery dot com
- Date: Mon, 23 Jul 2007 14:48:49 +0100
- Subject: Re: Add a MIPS -mbranch-cost option
- References: <87zm1n4733.fsf@firetop.home>
Richard Sandiford wrote:
> This patch adds a -mbranch-cost option, as explained in the documentation.
> It's probably only going to be of interest to developers and dyed-in-the-wool
> code tweakers, but it's easy enough to support.
>
> Tested on mipsisa32r2-elfoabi and mipsisa64-elfoabi. Applied to trunk.
>
> Thanks to Nigel Stephens for the suggestion.
>
> Richard
>
>
> 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.
^
Typo in ChangeLog. :-)
Thiemo