From: jamborm Date: Wed, 30 Oct 2019 15:47:29 +0000 (+0000) Subject: Edges to interposable calles are possibly_call_in_translation_unit_p X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8487a88e5f842d6de7efd5eee2f89ae7243b1dc7;p=thirdparty%2Fgcc.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277627 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70412cdb2f30..0be5eb33de7d 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 9eea0218c4fc..699209654f81 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.