From a5fcfb6df9ad330f16233739216eca00ee7efa1f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 20 Jan 2015 05:39:45 +0100 Subject: [PATCH] re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO) PR lto/45375 * i386.c (ix86_option_override_internal): Use ix86_tune_cost to set branch cost. From-SVN: r219878 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a76dd70a12..7adefef3e02 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-01-19 Jan Hubicka + + PR lto/45375 + * i386.c (ix86_option_override_internal): Use ix86_tune_cost + to set branch cost. + 2015-01-19 Jan Hubicka PR lto/45375 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ef1b2883cad..d10d3ff36cc 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3919,7 +3919,7 @@ ix86_option_override_internal (bool main_args_p, /* Provide default for -mbranch-cost= value. */ if (!opts_set->x_ix86_branch_cost) - opts->x_ix86_branch_cost = ix86_cost->branch_cost; + opts->x_ix86_branch_cost = ix86_tune_cost->branch_cost; if (TARGET_64BIT_P (opts->x_ix86_isa_flags)) { -- 2.30.2