From 7e2b7e23358f50a0f83e4d1292538cbf0eb85073 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 10 Jan 2020 13:27:36 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline-analysis.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2