re PR objc/23381 (Next runtime objc exceptions are broken)
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 31 Aug 2005 04:48:41 +0000 (04:48 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 31 Aug 2005 04:48:41 +0000 (21:48 -0700)
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.

From-SVN: r103658

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index f6fde14f03dfd3eb3c593d1653213103df9032b0..fdb8c57958d42e54a3b74c16986d306273afa737 100644 (file)
@@ -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
index 697e0290c2d1b6da58a84abcb490cb14504ca25b..7d3fb2672fbcb5d5e68fe939210886c31f85564c 100644 (file)
@@ -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));