From: Martin Liska Date: Fri, 10 Jan 2020 12:27:36 +0000 (+0100) Subject: Fix wrong parenthesis in inliner. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e2b7e23358f50a0f83e4d1292538cbf0eb85073;p=gcc.git Fix wrong parenthesis in inliner. 2020-01-10 Martin Liska PR ipa/93217 * ipa-inline-analysis.c (offline_size): Make proper parenthesis encapsulation that was there before r280040. From-SVN: r280103 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f93e9190c46..81d8e5c3e29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-01-10 Martin Liska + + PR ipa/93217 + * ipa-inline-analysis.c (offline_size): Make proper parenthesis + encapsulation that was there before r280040. + 2020-01-10 Richard Biener PR middle-end/93199 diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 3c71aab4ecb..148efbc09ef 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -457,7 +457,7 @@ offline_size (struct cgraph_node *node, ipa_size_summary *info) && node->can_remove_if_no_direct_calls_p ()) { int prob = opt_for_fn (node->decl, param_comdat_sharing_probability); - return info->size * (100 - prob + 50) / 100; + return (info->size * (100 - prob) + 50) / 100; } } return 0;