summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-10 00:14:55 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-10 00:14:55 +0000
commit30b30a8777850d1c3266785fb082dbc6d28b707d (patch)
treed40473b46a1ad91e6d1fc47a48140a01cbc22bed /gcc/lto-streamer-out.c
parent883fe359862dfc9b4a7971ff9cc7435d972419a6 (diff)
downloadgcc-30b30a8777850d1c3266785fb082dbc6d28b707d.tar.gz
* lto-streamer-out.c (produce_symtab): Do not write alias cgraph/varpool
nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 5ef7b126c6c..db9ce4be14b 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -2399,6 +2399,8 @@ produce_symtab (struct output_block *ob,
for (i = 0; i < lto_cgraph_encoder_size (encoder); i++)
{
node = lto_cgraph_encoder_deref (encoder, i);
+ if (node->alias)
+ continue;
write_symbol (cache, &stream, node->decl, seen, false);
for (alias = node->same_body; alias; alias = alias->next)
write_symbol (cache, &stream, alias->decl, seen, true);
@@ -2408,6 +2410,8 @@ produce_symtab (struct output_block *ob,
for (i = 0; i < lto_varpool_encoder_size (varpool_encoder); i++)
{
vnode = lto_varpool_encoder_deref (varpool_encoder, i);
+ if (vnode->alias)
+ continue;
write_symbol (cache, &stream, vnode->decl, seen, false);
for (valias = vnode->extra_name; valias; valias = valias->next)
write_symbol (cache, &stream, valias->decl, seen, true);