diff options
author | Martin Jambor <mjambor@suse.cz> | 2019-10-30 16:47:29 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2019-10-30 16:47:29 +0100 |
commit | f653eb0e44bd1b8bca92aefa4d92756e91581eec (patch) | |
tree | 46d876c2de398a179b67b1657767ebefc426b143 | |
parent | 499a39af5dd093a676a77e5694e185dea3a96121 (diff) | |
download | gcc-f653eb0e44bd1b8bca92aefa4d92756e91581eec.zip gcc-f653eb0e44bd1b8bca92aefa4d92756e91581eec.tar.gz gcc-f653eb0e44bd1b8bca92aefa4d92756e91581eec.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cgraph.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70412cd..0be5eb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 9eea021..6992096 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. |