This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi,
This patch move the file lto-symtab.c out of the lto FE directory.
It also move the resolution annotations of out language specific part
of tree nodes into two hash tables. Since the functionality of
lto-symtab.c is now available to all parts of gcc, there is not need
for the input_cgraph lang-hook. I also move the cgraph read/write
part of the lto1 FE back to lto-cgraph.c, where it logically belong.
-Doug
2008-10-27 Doug Kwan <dougkwan@google.com>
* lto-symtab.c (New file): Move from up from lto sub-directory.
* lto-cgraph.c (lto-tree-in.h): New include
(input_overwrite_node, input_node, input_edge, input_cgraph_1,
input_cgraph): Move from back from lto/lto-lang.c to here.
* lto-tree-in.h (lto_symtab_clear_resolution): New prototype.
* langhooks.c (lhd_input_cgraph): Remove.
* langhooks.h (struct lang_hooks_for_lto): Remove INPUT_CRAPH hooks.
* Makefile.in (PLUGIN_API_H, LTO_TREE_IN_H): New vars.
(OBJS-common): Include lto-symtab.o
(lto-cgraph.o): Add LTO_TREE_IN_H in dependency.
(lto-function-in.o): Ditto.
(lto-symtab.o): New rule.
(GTFILES): Add lto-symtab.c
* langhooks-def.h (lhd_input_cgraph): Remove prototype.
(LANG_HOOKS_INPUT_GRAPH): Remove macro.
(LANG_HOOKS_LTO): Remove LANG_HOOKS_INPUT_CGRAPH from initializer.
lto/ChangeLog:
* lto.c (free_decl): Call lto_symtab_clear_resolution when freeing
DECL.
* Make-lang.in (LTO_OBJS): Remove lto/lto-symtab.o
(lto/lto-symtab.o): Remove rule.
* lto-tree.h (struct lang_identifier): Remove LTO specific fields.
(struct lang_decl): Remove RESOLUTION and add DUMMY in struct.
(LANG_IDENTIFIER_CAST, LTO_IDENTIFIER_DECL, LTO_DECL_RESOLUTION):
Remove macros.
lto-symtab.c (File): Move up one level.
lto-lang.c (cgraph.h): Remove include.
(input_overwrite_node, input_node, input_edge, input_cgraph_1,
input_cgraph): Move to lto-cgraph.c in gcc directory above.
(LANG_HOOKS_INPUT_CGRAPH): Remove use of macro.
Attachment:
patch.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |