summaryrefslogtreecommitdiff
path: root/gcc/ada/misc.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-25 19:11:13 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-25 19:11:13 +0000
commit04745efb33cbc42c2559af1fa010e8be98286c5c (patch)
tree3fdcb23609c1c0e4600afc58d41d0dd3ea750b9b /gcc/ada/misc.c
parent9bf4f00f20352132618598aea813524ecff39b8d (diff)
downloadgcc-04745efb33cbc42c2559af1fa010e8be98286c5c.tar.gz
* c-decl.c (maybe_build_cleanup): Remove.
* expr.c (expand_expr): Use langhook. * langhooks-def.h (lhd_return_null_tree, LANG_HOOKS_MAYBE_BUILD_CLEANUP): New. (LANGHOOKS_INITIALIZER): Update. * langhooks.c (lhd_return_null_tree): New. * langhooks.h (struct lang_hooks): New hook. * tree-inline.c (initialize_inlined_parameters): Use langhook. * tree.h (maybe_build_cleanup): Remove. ada: * misc.c (maybe_build_cleanup): Remove. cp: * cp-tree.h (cxx_maybe_build_cleanup): New. * decl.c (destroy_local_var, hack_incomplete_structures): Update. (maybe_build_cleanup): Rename cxx_maybe_build_cleanup. * tree.c (build_target_expr): Update. f: * com.c (maybe_build_cleanup): Remove. java: * decl.c (maybe_build_cleanup): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r--gcc/ada/misc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index 7073c8969f0..b32ba1fad97 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -406,18 +406,6 @@ gnat_init_gcc_eh ()
#endif
}
-
-/* If DECL has a cleanup, build and return that cleanup here.
- This is a callback called by expand_expr. */
-
-tree
-maybe_build_cleanup (decl)
- tree decl ATTRIBUTE_UNUSED;
-{
- /* There are no cleanups in C. */
- return NULL_TREE;
-}
-
/* Hooks for print-tree.c: */
static void