diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 05:16:14 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 05:16:14 +0000 |
commit | 15daca6efa02e2a814d2525b13ce6d014429b1a7 (patch) | |
tree | 699c87f45ac8d8f3301362648096b1084d3f9031 /gcc/cp | |
parent | 427911176defd91fb2ac55f17bde1da551c2c02b (diff) | |
download | gcc-15daca6efa02e2a814d2525b13ce6d014429b1a7.tar.gz |
In gcc/:
* toplev.c (compile_file): Call final_write_globals
even if there have been errors.
In gcc/cp/:
* decl2.c (cp_write_global_declarations): Rename from
cp_finish_file.
* cp-lang.c (finish_file): Don't call cp_finish_file.
* cp-tree.h (cp_write_global_declarations): Rename from
cp_finish_file.
* cp-objcp-common.h (LANG_HOOKS_WRITE_GLOBALS): Define to
cp_write_global_declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/cp/cp-lang.c | 1 | ||||
-rw-r--r-- | gcc/cp/cp-objcp-common.h | 2 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 4 |
5 files changed, 14 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 27d86cd49ba..add6b2c3389 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2006-09-25 Geoffrey Keating <geoffk@apple.com> + + * decl2.c (cp_write_global_declarations): Rename from + cp_finish_file. + * cp-lang.c (finish_file): Don't call cp_finish_file. + * cp-tree.h (cp_write_global_declarations): Rename from + cp_finish_file. + * cp-objcp-common.h (LANG_HOOKS_WRITE_GLOBALS): Define to + cp_write_global_declarations. + 2006-10-31 Geoffrey Keating <geoffk@apple.com> * name-lookup.c (get_anonymous_namespace_name): New. diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c index 60503278930..793046b3469 100644 --- a/gcc/cp/cp-lang.c +++ b/gcc/cp/cp-lang.c @@ -141,7 +141,6 @@ cp_init_ts (void) void finish_file (void) { - cp_finish_file (); } #include "gtype-cp.h" diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h index 5424d77ae87..23e1f0ffff1 100644 --- a/gcc/cp/cp-objcp-common.h +++ b/gcc/cp/cp-objcp-common.h @@ -84,7 +84,7 @@ extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t, #undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL #define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL cxx_warn_unused_global_decl #undef LANG_HOOKS_WRITE_GLOBALS -#define LANG_HOOKS_WRITE_GLOBALS lhd_do_nothing +#define LANG_HOOKS_WRITE_GLOBALS cp_write_global_declarations #undef LANG_HOOKS_COMDAT_GROUP #define LANG_HOOKS_COMDAT_GROUP cxx_comdat_group #undef LANG_HOOKS_BUILTIN_FUNCTION diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index a8fa8a7e1fa..0fdbf82d02c 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3968,7 +3968,7 @@ extern tree grokbitfield (const cp_declarator *, cp_decl_specifier_seq *, tree); extern void cplus_decl_attributes (tree *, tree, int); extern void finish_anon_union (tree); -extern void cp_finish_file (void); +extern void cp_write_global_declarations (void); extern tree coerce_new_type (tree); extern tree coerce_delete_type (tree); extern void comdat_linkage (tree); diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e4b5c00a31e..43889181f2f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -3027,13 +3027,13 @@ build_java_method_aliases (void) } } -/* This routine is called from the last rule in yyparse (). +/* This routine is called at the end of compilation. Its job is to create all the code needed to initialize and destroy the global aggregates. We do the destruction first, since that way we only need to reverse the decls once. */ void -cp_finish_file (void) +cp_write_global_declarations (void) { tree vars; bool reconsider; |