diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-03-31 22:40:57 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-03-31 22:40:57 +0000 |
commit | 48a7a23514d50575b02c946e6faa2844d2ffe99c (patch) | |
tree | 600c929066a396a657e416e8ec38992c5fcf2367 /gcc/ada | |
parent | 7cb32822701d0ce49aae361f576c9c9dc31bb2f3 (diff) | |
download | gcc-48a7a23514d50575b02c946e6faa2844d2ffe99c.zip gcc-48a7a23514d50575b02c946e6faa2844d2ffe99c.tar.gz gcc-48a7a23514d50575b02c946e6faa2844d2ffe99c.tar.bz2 |
c-common.c (c_unsafe_for_reeval): Rename.
* c-common.c (c_unsafe_for_reeval): Rename.
* c-common.h (c_unsafe_for_reeval): Rename.
* c-decl.c (finish_incomplete_decl): Rename.
(c_init_decl_processing): Don't set langhook.
* c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
* c-objc-common.c (c_objc_common_init): Don't set langhook.
* c-tree.h (finish_incomplete_decl): Rename.
* langhooks-def.h (lhd_unsafe_for_reeval): New.
(LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_unsafe_For_reeval): New.
* langhooks.h (struct langhooks): New hooks.
* toplev.c (incomplete_decl_finalize_hook): Remove.
(wrapup_global_declarations): Update.
* tree.c (lang_unsafe_for_reeval): Remove.
(unsafe_for_reeval): Update.
* tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
Remove.
ada:
* gigi.h (finish_incomplete_decl): Rename.
* misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
* utils.c (gnat_init_decl_processing): Don't set hook.
(finish_incomplete_decl): Rename.
cp:
* cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
* lex.c (cxx_init): Don't set hook.
objc:
* objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
From-SVN: r51673
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ada/gigi.h | 2 | ||||
-rw-r--r-- | gcc/ada/misc.c | 2 | ||||
-rw-r--r-- | gcc/ada/utils.c | 8 |
4 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index ddc24fd..062c7e6 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,10 @@ +2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk> + + * gigi.h (finish_incomplete_decl): Rename. + * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine. + * utils.c (gnat_init_decl_processing): Don't set hook. + (finish_incomplete_decl): Rename. + 2002-03-29 Andreas Schwab <schwab@suse.de> * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts diff --git a/gcc/ada/gigi.h b/gcc/ada/gigi.h index 0223eac..de05d4e 100644 --- a/gcc/ada/gigi.h +++ b/gcc/ada/gigi.h @@ -448,7 +448,7 @@ extern void incomplete_type_error PARAMS ((tree, tree)); compile_file in toplev.c makes an indirect call through the function pointer incomplete_decl_finalize_hook which is initialized to this routine in init_decl_processing. */ -extern void finish_incomplete_decl PARAMS ((tree)); +extern void gnat_finish_incomplete_decl PARAMS ((tree)); /* Create an expression whose value is that of EXPR, converted to type TYPE. The TREE_TYPE of the value diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index 78222c2..8edbba4 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -108,6 +108,8 @@ static rtx gnat_expand_expr PARAMS ((tree, rtx, enum machine_mode, #define LANG_HOOKS_MARK_TREE gnat_mark_tree #undef LANG_HOOKS_HONOR_READONLY #define LANG_HOOKS_HONOR_READONLY 1 +#undef LANG_HOOKS_FINISH_INCOMPLETE_DECL +#define LANG_HOOKS_FINISH_INCOMPLETE_DECL gnat_finish_incomplete_decl #undef LANG_HOOKS_GET_ALIAS_SET #define LANG_HOOKS_GET_ALIAS_SET gnat_get_alias_set #undef LANG_HOOKS_EXPAND_EXPR diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index d01e7d8..6d8f637 100644 --- a/gcc/ada/utils.c +++ b/gcc/ada/utils.c @@ -481,12 +481,6 @@ gnat_init_decl_processing () { lineno = 0; - /* incomplete_decl_finalize_hook is defined in toplev.c. It needs to be set - by each front end to the appropriate routine that handles incomplete - VAR_DECL nodes. This routine will be invoked by compile_file when a - VAR_DECL node of DECL_SIZE zero is encountered. */ - incomplete_decl_finalize_hook = finish_incomplete_decl; - /* Make the binding_level structure for global names. */ current_function_decl = 0; current_binding_level = 0; @@ -709,7 +703,7 @@ incomplete_type_error (dont_care_1, dont_care_2) init_decl_processing. */ void -finish_incomplete_decl (dont_care) +gnat_finish_incomplete_decl (dont_care) tree dont_care ATTRIBUTE_UNUSED; { gigi_abort (405); |