aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-08-31 04:48:41 +0000
committerAndrew Pinski <pinskia@physics.uc.edu>2005-08-31 04:48:41 +0000
commit12d35a7c9124355443c6a8bcc51c8049faf26c0e (patch)
tree5399b6b443fcf75f067922179dc2ba0c399cc748 /gcc/objc
parent8076eccf74a968317f7f54c6a7fa9db773adc8f1 (diff)
2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
PR objc/23381 * objc-act.c (next_sjlj_build_try_catch_finally): Set TREE_SIDE_EFFECTS on catch_seq after building it. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@103658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog6
-rw-r--r--gcc/objc/objc-act.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index f6fde14f03d..fdb8c57958d 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR objc/23381
+ * objc-act.c (next_sjlj_build_try_catch_finally): Set
+ TREE_SIDE_EFFECTS on catch_seq after building it.
+
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
part of PR objc/21992
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 697e0290c2d..7d3fb2672fb 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -3727,6 +3727,7 @@ next_sjlj_build_try_catch_finally (void)
{
tree caught_decl = objc_build_exc_ptr ();
catch_seq = build_stmt (BIND_EXPR, caught_decl, NULL, NULL);
+ TREE_SIDE_EFFECTS (catch_seq) = 1;
t = next_sjlj_build_exc_extract (caught_decl);
append_to_statement_list (t, &BIND_EXPR_BODY (catch_seq));