From: Martin Jambor Date: Wed, 30 Oct 2019 15:47:29 +0000 (+0100) Subject: Edges to interposable calles are possibly_call_in_translation_unit_p X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f653eb0e44bd1b8bca92aefa4d92756e91581eec;p=gcc.git 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 --- 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.