From f653eb0e44bd1b8bca92aefa4d92756e91581eec Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Wed, 30 Oct 2019 16:47:29 +0100 Subject: [PATCH] Edges to interposable calles are possibly_call_in_translation_unit_p 2019-10-30 Martin Jambor ipa/92278 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix availability comparison. From-SVN: r277627 --- gcc/ChangeLog | 6 ++++++ gcc/cgraph.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70412cdb2f3..0be5eb33de7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-10-30 Martin Jambor + + ipa/92278 + * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix + availability comparison. + 2019-10-30 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_expand_helper): Support expansion of diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 9eea0218c4f..699209654f8 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -3819,7 +3819,7 @@ cgraph_edge::possibly_call_in_translation_unit_p (void) if (node->previous_sharing_asm_name) node = symtab_node::get_for_asmname (DECL_ASSEMBLER_NAME (callee->decl)); gcc_assert (TREE_PUBLIC (node->decl)); - return node->get_availability () >= AVAIL_AVAILABLE; + return node->get_availability () >= AVAIL_INTERPOSABLE; } /* A stashed copy of "symtab" for use by selftest::symbol_table_test. -- 2.30.2