https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124406
--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I am testing
diff --git a/gcc/ipa-pure-const.cc b/gcc/ipa-pure-const.cc
index 5024e488692..af94e5e3b74 100644
--- a/gcc/ipa-pure-const.cc
+++ b/gcc/ipa-pure-const.cc
@@ -1481,7 +1481,6 @@ skip_function_for_local_pure_const (struct cgraph_node
*node)
/* Save some work and do not analyze functions which are interposable and
do not have any non-interposable aliases. */
if (node->get_availability () <= AVAIL_INTERPOSABLE
- && !flag_lto
&& !node->has_aliases_p ())
{
if (dump_file)