This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto][patch] Provide fake resolution for non public decls
- From: "Rafael Espindola" <espindola at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Wed, 8 Oct 2008 11:00:47 +0100
- Subject: [lto][patch] Provide fake resolution for non public decls
Resolution only exists for public decls, but it is possible to handle
private decl as if they had LDPR_PREVAILING_DEF_IRONLY resolution.
This remove some special handling in other parts of the code.
gcc/
2008-10-08 Rafael Espindola <espindola@google.com>
* lto-tree-in.h (lto_symtab_get_resolution): New.
gcc/lto
2008-10-08 Rafael Espindola <espindola@google.com>
* lto-symtab.c (lto_symtab_set_resolution): New.
(lto_symtab_merge_decl): Use lto_symtab_set_resolution and
lto_symtab_get_resolution.
(lto_symtab_prevailing_decl): Return decl for non public decls.
(lto_symtab_get_resolution): New.
* lto.c (lto_fixup_tree, lto_fixup_state): Remove unecessary checks.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047