https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93224
Bug ID: 93224
Summary: 29_atomics/atomic_ref/float.cc fails with a tweaker
IPA inliner
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jwakely.gcc at gmail dot com, segher at gcc dot gnu.org
Target Milestone: ---
Host: powerpc64le-unknown-linux-gnu
This is follow up of PR93217, where using the following IPA tweak:
--- a/gcc/ipa-inline-analysis.c
+++ b/gcc/ipa-inline-analysis.c
@@ -457,6 +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);
+ prob -= 50;
return (info->size * (100 - prob) + 50) / 100;
}
}
will cause the test to fail. The test-case should not depend on inliner
decisions.