aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-04-05 15:27:08 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2000-04-05 15:27:08 +0000
commitc9fff01f4438c02fdf9013ed7c2e5132f93a3515 (patch)
tree74709b2539c5b36acd5664ba0a5f3f9543af0305
parent3ea0387c395dd80e66cbe60fa35ae04546ae0cdd (diff)
downloadgcc-c9fff01f4438c02fdf9013ed7c2e5132f93a3515.zip
gcc-c9fff01f4438c02fdf9013ed7c2e5132f93a3515.tar.gz
gcc-c9fff01f4438c02fdf9013ed7c2e5132f93a3515.tar.bz2
Fix problems in my previous commit.
From-SVN: r32930
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/optimize.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 91ff2c9..fa30d81 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 5 15:12:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
+
+ * optimize.c (calls_setjmp_r): Use setjmp_call_p instead of
+ special_function_p.
+
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cfns.gperf (hash, libc_name_p): Prototype.
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 0bd4b21..5ba9ea7 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -752,7 +752,7 @@ calls_setjmp_r (tp, walk_subtrees, data)
if (TREE_CODE (*tp) != FUNCTION_DECL)
return NULL_TREE;
- return setjmp_call_p (*tp);
+ return setjmp_call_p (*tp) ? *tp : NULL_TREE;
}
/* Returns non-zero if FN calls `setjmp' or some other function that