diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-03-08 19:21:04 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-03-08 19:21:04 +0000 |
commit | 24965e7a8ac518b99a3bd7ef5b2d8d88f96bf514 (patch) | |
tree | d73c600d0203e29829b172a0aa74a1ea0b66f315 /gcc/tree.h | |
parent | 8497934433cc8d0b01a658b8387ac7316f6d76fb (diff) | |
download | gcc-24965e7a8ac518b99a3bd7ef5b2d8d88f96bf514.zip gcc-24965e7a8ac518b99a3bd7ef5b2d8d88f96bf514.tar.gz gcc-24965e7a8ac518b99a3bd7ef5b2d8d88f96bf514.tar.bz2 |
expr.c (expand_expr): Use unsave lang hook.
* expr.c (expand_expr): Use unsave lang hook.
* langhooks-def.h (LANG_HOOKS_UNSAVE): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook unsave.
* tree.c (lang_unsave, lang_unsave_expr_now): Remove.
(unsave_expr_1): Remove unused lang_unsave_expr_now.
(unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
(unsave_expr_now): Remove.
* tree.h (unsave_expr_now, lang_unsave,
lang_unsave_expr_now): Remove.
(lhd_unsave): New.
cp:
* cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
* cp-tree.h (cxx_unsave): New.
* tree.c (cp_unsave): Rename cxx_unsave, update prototype.
(init_tree): Update.
From-SVN: r50449
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -2550,18 +2550,6 @@ extern tree unsave_expr PARAMS ((tree)); extern void unsave_expr_1 PARAMS ((tree)); -/* Like unsave_expr_1, but recurses into all subtrees. */ - -extern tree unsave_expr_now PARAMS ((tree)); - -/* If non-null, these are language-specific helper functions for - unsave_expr_now. If present, LANG_UNSAVE is called before its - argument (an UNSAVE_EXPR) is to be unsaved, and all other - processing in unsave_expr_now is aborted. LANG_UNSAVE_EXPR_NOW is - called from unsave_expr_1 for language-specific tree codes. */ -extern void (*lang_unsave) PARAMS ((tree *)); -extern void (*lang_unsave_expr_now) PARAMS ((tree)); - /* Return 0 if it is safe to evaluate EXPR multiple times, return 1 if it is safe if EXPR is unsaved afterward, or return 2 if it is completely unsafe. */ @@ -2756,6 +2744,8 @@ extern tree get_set_constructor_bytes PARAMS ((tree, extern tree get_callee_fndecl PARAMS ((tree)); extern void set_decl_assembler_name PARAMS ((tree)); extern int type_num_arguments PARAMS ((tree)); +extern tree lhd_unsave_expr_now PARAMS ((tree)); + /* In stmt.c */ |