Hi. This restores parenthesis to before r280040.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests. And fixes the issue for ppc64le-linux-gnu. Thanks, Martin gcc/ChangeLog: 2020-01-10 Martin Liska <mli...@suse.cz> PR ipa/93217 * ipa-inline-analysis.c (offline_size): Make proper parenthesis encapsulation that was there before r280040. --- gcc/ipa-inline-analysis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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;