summaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-11 00:23:18 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-11 00:23:18 +0000
commit93d6541c507d307be473c97e4215a9230bb3aa33 (patch)
treecd9fc77d9320650c3a10531cbef56137bda127b5 /gcc/cp/except.c
parentc0f1a474b57f4db1f3549d1d095cb05ba33cf39a (diff)
downloadgcc-93d6541c507d307be473c97e4215a9230bb3aa33.tar.gz
* decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
* except.c (expand_end_eh_spec): Add the return type. * rtti.c (throw_bad_cast): Add the parmtypes. (throw_bad_typeid): Likewise. * semantics.c (expand_stmt): Only leave out rtl for unused artificials, and set DECL_IGNORED_P on them as well. * decl.c (wrapup_globals_for_namespace): Likewise. * decl.c (maybe_commonize_var): Skip all artificial decls. * pt.c (tsubst_decl): Don't copy TREE_ASM_WRITTEN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 3a54ea82d42..c6cdaa2a2da 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -719,6 +719,7 @@ expand_end_eh_spec (raises, try_block)
tmp = tree_cons
(NULL_TREE, integer_type_node, tree_cons
(NULL_TREE, TREE_TYPE (decl), void_list_node));
+ tmp = build_function_type (void_type_node, tmp);
fn = push_throw_library_fn (fn, tmp);
}