Edges to interposable calles are possibly_call_in_translation_unit_p

2019-10-30  Martin Jambor  <mjambor@suse.cz>

	ipa/92278
	* cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
	availability comparison.

From-SVN: r277627
This commit is contained in:
Martin Jambor 2019-10-30 16:47:29 +01:00 committed by Martin Jambor
parent 499a39af5d
commit f653eb0e44
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2019-10-30 Martin Jambor <mjambor@suse.cz>
ipa/92278
* cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
availability comparison.
2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430.c (msp430_expand_helper): Support expansion of

View file

@ -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.