aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-06-15 12:01:17 +0000
committerJan Hubicka <jh@suse.cz>2011-06-15 12:01:17 +0000
commitd65d2482d8a86c1e34cea63387db1cb5fc4b9f46 (patch)
tree69ae811174a006e95d844f0fcb1b426efbb9c973 /gcc/ipa.c
parent1572b61b7feb6db7d1a51acebea1e8279d85b0e0 (diff)
* 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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@175079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c8
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;