diff options
author | stuart <stuart@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-04 18:37:14 +0000 |
---|---|---|
committer | stuart <stuart@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-04 18:37:14 +0000 |
commit | 2a3c85c890fe1be9dbc267a12ad6c36010f70b5f (patch) | |
tree | 1ae3e19de9644c004c9d11875633e0cfe99564a9 /gcc/objc | |
parent | b2e3c5f9ef12e96b8033d26fda9d839743fee673 (diff) | |
download | gcc-2a3c85c890fe1be9dbc267a12ad6c36010f70b5f.tar.gz |
PR 31281
* objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
* testsuite/objc/execute/exceptions/pr31281.m: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123501 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 76c342854ad..eb2061a6975 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-04 Stuart Hastings <stuart@apple.com> + + PR 31281 + * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl. + 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> * Make-lang.in: Add dummy lang.install-pdf target. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 0cbd759e9d4..19475e2f8d8 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3642,7 +3642,7 @@ next_sjlj_build_catch_list (void) { struct _objc_exception_data _stack; - id volatile _rethrow = 0; + id _rethrow = 0; try { objc_exception_try_enter (&_stack); @@ -3686,7 +3686,6 @@ next_sjlj_build_try_catch_finally (void) rethrow_decl = objc_create_temporary_var (objc_object_type); cur_try_context->rethrow_decl = rethrow_decl; - TREE_THIS_VOLATILE (rethrow_decl) = 1; TREE_CHAIN (rethrow_decl) = stack_decl; /* Build the outermost variable binding level. */ |