diff options
author | Jan Hubicka <jh@suse.cz> | 2013-05-15 10:09:26 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-05-15 08:09:26 +0000 |
commit | 2d6e460353fd7ad3160faaa96a0174042c6c28f1 (patch) | |
tree | b5bf9542ac17e96b9f1eab08c77364e8adba45c3 /gcc/varpool.c | |
parent | 83f44b399712cc22564013b42bb6976ef60895c4 (diff) | |
download | gcc-2d6e460353fd7ad3160faaa96a0174042c6c28f1.tar.gz |
re PR c++/57038 (Latest libreoffice compilation fails with enabled LTO)
PR lto/57038
PR lto/47375
* lto-symtab.c (lto_symtab_symbol_p): Add external symbol; weakrefs are
not external.
(lto_symtab_merge_decls): Fix thinko when dealing with non-lto_symtab decls.
(lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
(lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
* varpool.c (dump_varpool_node): Dump more flags.
* lto-partition.c (get_symbol_class): Fix weakrefs.
(lto_balanced_map): Fix weakrefs.
(privatize_symbol_name): Remove unnecesary label.
(rename_statics): Handle weakrefs as statics.
* gcc.dg/lto/attr-weakref-1_0.c: New testcase.
* gcc.dg/lto/attr-weakref-1_1.c: New testcase.
* gcc.dg/lto/attr-weakref-1_2.c: New testcase.
From-SVN: r198917
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r-- | gcc/varpool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c index dbf519e6137..e3ad22b1cfd 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -86,6 +86,10 @@ dump_varpool_node (FILE *f, struct varpool_node *node) fprintf (f, " finalized"); if (node->output) fprintf (f, " output"); + if (TREE_READONLY (node->symbol.decl)) + fprintf (f, " read-only"); + if (const_value_known_p (node->symbol.decl)) + fprintf (f, " const-value-known"); fprintf (f, "\n"); } |