diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-05-19 07:19:17 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-05-19 07:19:17 +0000 |
commit | 77dc0938f72adc4ef75f164fe290deeb236b32eb (patch) | |
tree | b8d3defbc89a227144e054b7b36e1da85937bbb9 /gcc/cp/except.c | |
parent | 12c45d894bb083f9a735c121a371d3b404302d82 (diff) | |
download | gcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.zip gcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.tar.gz gcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.tar.bz2 |
Warning fixes:
* Makefile.in (parse.o): Depend on toplev.h.
* class.c (typecode_p): Remove prototype and definition.
* cp-tree.h (currently_open_class, is_empty_class, member_p):
Add prototype.
* decl.c (push_overloaded_decl_top_level): Remove prototype and
definition.
* errfn.c (cp_error): Cast function pointer `error' to (errorfn *)
in call to `cp_thing'.
(cp_warning): Likewise for function pointer `warning'.
* except.c (do_function_call): Remove prototype and definition.
(call_eh_info): Wrap variable `t1' in macro NEW_EH_MODEL.
* method.c (is_java_type): Add prototype and make it static.
* parse.y: Include toplev.h.
* pt.c (type_unification): Remove unused variable `arg'.
(instantiate_decl): likewise for `save_ti'.
* tree.c (propagate_binfo_offsets): Likewise for `base_binfos'.
From-SVN: r19866
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r-- | gcc/cp/except.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 5b68314..89dee7e 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -45,7 +45,6 @@ tree builtin_return_address_fndecl; /* A couple of backend routines from m88k.c */ static void push_eh_cleanup PROTO((void)); -static rtx do_function_call PROTO((tree, tree, tree)); static tree build_eh_type_type PROTO((tree)); static tree build_eh_type PROTO((tree)); static void expand_end_eh_spec PROTO((tree)); @@ -182,22 +181,6 @@ extern tree const_ptr_type_node; /* ========================================================================= */ -/* Cheesyness to save some typing. Returns the return value rtx. */ - -static rtx -do_function_call (func, params, return_type) - tree func, params, return_type; -{ - tree func_call; - func_call = build_function_call (func, params); - expand_call (func_call, NULL_RTX, 0); - if (return_type != NULL_TREE) - return hard_function_value (return_type, func_call); - return NULL_RTX; -} - -/* ========================================================================= */ - /* sets up all the global eh stuff that needs to be initialized at the start of compilation. @@ -267,7 +250,10 @@ call_eh_info () fn = IDENTIFIER_GLOBAL_VALUE (fn); else { - tree t1,t, fields[7]; +#ifdef NEW_EH_MODEL + tree t1; +#endif + tree t, fields[7]; int fo = 0; /* Declare cp_eh_info * __cp_exception_info (void), |