This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [SH] Fix defunct -mbranch-cost option
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: oleg dot endo at t-online dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Dec 2011 07:20:15 +0900 (JST)
- Subject: Re: [SH] Fix defunct -mbranch-cost option
- References: <1325099072.18753.625.camel@yam-132-YW-E178-FTW>
Oleg Endo <oleg.endo@t-online.de> wrote:
> while working on another PR I've noticed that the -mbranch-cost option
> in the SH target is not really working. The attached patch brings it
> back to life, leaving the default behavior unchanged.
>
> Cheers,
> Oleg
>
>
> 2011-12-28 Oleg Endo <oleg.endo@t-online.de>
>
> * config/sh/sh.h (BRANCH_COST): Use sh_branch_cost variable.
> * config/sh/sh.c (sh_option_override): Simplify sh_branch_cost
> expression.
Ok as the obvious fix. Thanks for the patch.
Regards,
kaz