Add a MIPS -mbranch-cost option
Richard Sandiford
richard@codesourcery.com
Tue Jul 24 08:41:00 GMT 2007
Thiemo Seufer <ths@networkno.de> writes:
> 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. :-)
Fixed, thanks.
Richard
More information about the Gcc-patches
mailing list