Edges to interposable calles are possibly_call_in_translation_unit_p
authorMartin Jambor <mjambor@suse.cz>
Wed, 30 Oct 2019 15:47:29 +0000 (16:47 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 30 Oct 2019 15:47:29 +0000 (16:47 +0100)
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

gcc/ChangeLog
gcc/cgraph.c

index 70412cdb2f30b5ca79c59f649a800fdf7917e768..0be5eb33de7d4e5f7f7bd78a33e6ed74c0c81683 100644 (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
index 9eea0218c4fc70ab4851072b6833644e792cc478..699209654f812a9ac0cef04b28cfe0bcbcbf60c4 100644 (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.