This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r130454 - in /branches/incremental-compiler: gc...
- From: tromey at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 26 Nov 2007 23:13:02 -0000
- Subject: r130454 - in /branches/incremental-compiler: gc...
Author: tromey
Date: Mon Nov 26 23:13:01 2007
New Revision: 130454
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130454
Log:
libcpp
* lex.c (lex_identifier): Use CPP_HASHNODE.
* traditional.c (lex_identifier): Use CPP_HASHNODE.
* identifiers.c (alloc_node): Use HT_NODE. Fix types. Update for
change to struct ht.
(_cpp_init_hashtable): Remove cast.
(struct callback_info): New struct.
(cpp_ht_proxy): New function.
(cpp_forall_identifiers): Use cpp_ht_proxy.
* include/symtab.h (ht_identifier): Put 'str' at the end. Change
type for struct hack.
(struct ht) <alloc_node>: Add size_t argument.
* include/cpplib.h (CPP_HASHNODE): Redefine.
(HT_NODE): Likewise.
(cpp_hashnode): Put 'ident' at the end.
* Makefile.in (mostlyclean): Add TAGS.
(TAGS_SOURCES): New variable.
(TAGS): New target.
* symtab.c (ht_lookup_with_hash): Copy directly into HT_STR.
gcc
* c-parser.c (check_hunk_binding): Comment out unused variable.
* langhooks-def.h (LANG_HOOKS_IDENTIFIER_OFFSET): New define.
(LANG_HOOKS_INITIALIZER): Use it.
* c-common.h (C_RID_CODE): Rewrote.
(struct c_common_identifier) <node>: Remove field.
* var-tracking.c: Include langhooks.h.
* tree-outof-ssa.c: Include langhooks.h.
* ggc-page.c (gt_ggc_m_S): New function.
* stringpool.c: Include langhooks.h.
(string_stack): Remove.
(init_stringpool): Update.
(alloc_node): Add length argument. Use build_identifier.
(ggc_alloc_string): Use ggc_alloc.
(gt_ggc_m_S): Remove.
* c-pragma.c: Include langhooks.h.
* ggc.h (gt_ggc_m_S): Change argument type.
* print-rtl.c: Include langhooks.h.
* langhooks.h (struct lang_hooks) <identifier_offset>: New field.
* c-pretty-print.c: Include langhooks.h.
* c-decl.c (struct lang_identifier) <node>: New field.
(C_IDENTIFIER_OFFSET_isnt_accurate): New declaration.
* c-aux-info.c: Include langhooks.h.
* c-tree.h (C_SIZEOF_STRUCT_LANG_IDENTIFIER): Redefine.
(C_IDENTIFIER_OFFSET): New define.
* c-objc-common.h (LANG_HOOKS_IDENTIFIER_OFFSET): New define.
* toplev.c (struct save_string_list): New struct.
(struct compilation_job) <strings>: New field.
(copy_to_vec): Add 'strings' argument.
(server_callback): Update.
* tree.h (IDENTIFIER_LENGTH): Redefine.
(IDENTIFIER_POINTER): Likewise.
(IDENTIFIER_HASH_VALUE): Likewise.
(HT_IDENT_TO_GCC_IDENT): Likewise.
(GCC_IDENT_TO_HT_IDENT): Likewise.
(struct tree_identifier) <id>: Remove.
(build_identifier): Declare.
* tree.c (make_node_stat): Don't allow IDENTIFIER_NODEs.
(build_identifier): New function.
* c-lex.c: Include langhooks.h.
* gengtype.c (write_types_process_field): Arrange to mark
strings.
(open_base_files): Include langhooks.h.
* tree-complex.c: Include langhooks.h.
Modified:
branches/incremental-compiler/gcc/ChangeLog
branches/incremental-compiler/gcc/c-aux-info.c
branches/incremental-compiler/gcc/c-common.h
branches/incremental-compiler/gcc/c-decl.c
branches/incremental-compiler/gcc/c-lex.c
branches/incremental-compiler/gcc/c-objc-common.h
branches/incremental-compiler/gcc/c-parser.c
branches/incremental-compiler/gcc/c-pragma.c
branches/incremental-compiler/gcc/c-pretty-print.c
branches/incremental-compiler/gcc/c-tree.h
branches/incremental-compiler/gcc/gengtype.c
branches/incremental-compiler/gcc/ggc-page.c
branches/incremental-compiler/gcc/ggc.h
branches/incremental-compiler/gcc/langhooks-def.h
branches/incremental-compiler/gcc/langhooks.h
branches/incremental-compiler/gcc/print-rtl.c
branches/incremental-compiler/gcc/stringpool.c
branches/incremental-compiler/gcc/toplev.c
branches/incremental-compiler/gcc/tree-complex.c
branches/incremental-compiler/gcc/tree-outof-ssa.c
branches/incremental-compiler/gcc/tree.c
branches/incremental-compiler/gcc/tree.h
branches/incremental-compiler/gcc/var-tracking.c
branches/incremental-compiler/libcpp/ChangeLog
branches/incremental-compiler/libcpp/Makefile.in
branches/incremental-compiler/libcpp/identifiers.c
branches/incremental-compiler/libcpp/include/cpplib.h
branches/incremental-compiler/libcpp/include/symtab.h
branches/incremental-compiler/libcpp/lex.c
branches/incremental-compiler/libcpp/symtab.c
branches/incremental-compiler/libcpp/traditional.c