aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-05-20 11:36:14 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-05-20 04:36:14 -0700
commit98d784a90b1eaf326983efce3465531ba3b79d00 (patch)
treeeb24152e318078885e58cc808a62c142d2acee21 /gcc/cp/optimize.c
parent4ccfc10aeb564246ff96a17f854a4fa5b46beef2 (diff)
downloadgcc-98d784a90b1eaf326983efce3465531ba3b79d00.zip
gcc-98d784a90b1eaf326983efce3465531ba3b79d00.tar.gz
gcc-98d784a90b1eaf326983efce3465531ba3b79d00.tar.bz2
optimize.c (calls_setjmp_r): Remove.
2005-05-20 Andrew Pinski <pinskia@physics.uc.edu> * optimize.c (calls_setjmp_r): Remove. (calls_setjmp_p): Remove. * cp-tree.c (calls_setjmp_p): Remove. * decl.c (finish_function): Do not call calls_setjmp_p. From-SVN: r82049
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 7f45ae9..5102f57 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -44,35 +44,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Prototypes. */
-static tree calls_setjmp_r (tree *, int *, void *);
static void update_cloned_parm (tree, tree);
-/* Called from calls_setjmp_p via walk_tree. */
-
-static tree
-calls_setjmp_r (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
- void *data ATTRIBUTE_UNUSED)
-{
- /* We're only interested in FUNCTION_DECLS. */
- if (TREE_CODE (*tp) != FUNCTION_DECL)
- return NULL_TREE;
-
- return setjmp_call_p (*tp) ? *tp : NULL_TREE;
-}
-
-/* Returns nonzero if FN calls `setjmp' or some other function that
- can return more than once. This function is conservative; it may
- occasionally return a nonzero value even when FN does not actually
- call `setjmp'. */
-
-bool
-calls_setjmp_p (tree fn)
-{
- return walk_tree_without_duplicates (&DECL_SAVED_TREE (fn),
- calls_setjmp_r,
- NULL) != NULL_TREE;
-}
-
/* CLONED_PARM is a copy of CLONE, generated for a cloned constructor
or destructor. Update it to ensure that the source-position for
the cloned parameter matches that for the original, and that the