diff options
author | Jan Hubicka <jh@suse.cz> | 2011-06-15 14:01:17 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-06-15 12:01:17 +0000 |
commit | 85ce937577ea720114fab3a8e5993be0cc6f6d7f (patch) | |
tree | 69ae811174a006e95d844f0fcb1b426efbb9c973 /gcc/ipa.c | |
parent | a577c4054fc7aa9a5228feb6f0bdb37cf31997d5 (diff) | |
download | gcc-85ce937577ea720114fab3a8e5993be0cc6f6d7f.tar.gz |
cgraphunit.c (handle_alias_pairs): New function.
* cgraphunit.c (handle_alias_pairs): New function.
(cgraph_finalize_compilation_unit): Use it.
* ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
as externally visible.
From-SVN: r175079
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index 62510c620df..b9ae579cd45 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -612,14 +612,6 @@ cgraph_externally_visible_p (struct cgraph_node *node, if (DECL_BUILT_IN (node->decl)) return true; - /* FIXME: We get wrong symbols with asm aliases in callgraph and LTO. - This is because very little of code knows that assembler name needs to - mangled. Avoid touching declarations with user asm name set to mask - some of the problems. */ - if (DECL_ASSEMBLER_NAME_SET_P (node->decl) - && IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl))[0]=='*') - return true; - /* If linker counts on us, we must preserve the function. */ if (cgraph_used_from_object_file_p (node)) return true; |