diff options
author | Jan Hubicka <jh@suse.cz> | 2013-06-13 12:00:04 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-06-13 10:00:04 +0000 |
commit | e5b962d0ccb213b6ad1f2ba4d6a0b84c9e94b046 (patch) | |
tree | 56d91bbff9c3f0ae370755a4ad8ff8b876842047 /gcc/ipa.c | |
parent | a8355e51785ca09eadc0e56afd0778c4ce076e2f (diff) | |
download | gcc-e5b962d0ccb213b6ad1f2ba4d6a0b84c9e94b046.zip gcc-e5b962d0ccb213b6ad1f2ba4d6a0b84c9e94b046.tar.gz gcc-e5b962d0ccb213b6ad1f2ba4d6a0b84c9e94b046.tar.bz2 |
ipa.c (cgraph_externally_visible_p, [...]): Local comdats are not externally visible.
* ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
Local comdats are not externally visible.
* symtab.c (dump_symtab_base): Dump externally visible.
(verify_symtab_base): Verify back links in the symtab hash.
From-SVN: r200064
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -606,9 +606,8 @@ cgraph_externally_visible_p (struct cgraph_node *node, { if (!node->symbol.definition) return false; - if (!DECL_COMDAT (node->symbol.decl) - && (!TREE_PUBLIC (node->symbol.decl) - || DECL_EXTERNAL (node->symbol.decl))) + if (!TREE_PUBLIC (node->symbol.decl) + || DECL_EXTERNAL (node->symbol.decl)) return false; /* Do not try to localize built-in functions yet. One of problems is that we @@ -667,7 +666,7 @@ varpool_externally_visible_p (struct varpool_node *vnode) if (DECL_EXTERNAL (vnode->symbol.decl)) return true; - if (!DECL_COMDAT (vnode->symbol.decl) && !TREE_PUBLIC (vnode->symbol.decl)) + if (!TREE_PUBLIC (vnode->symbol.decl)) return false; /* If linker counts on us, we must preserve the function. */ |