forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2005-08-13 Marcin Koziej <[email protected]> Andrew Pinski <[email protected]> PR libobjc/22492 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally. testsuite/ChangeLog: 2005-08-13 Marcin Koziej <[email protected]> Andrew Pinski <[email protected]> PR libobjc/22492 * execute/exceptions/finally-1.m: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103073 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
pinskia
committed
Aug 14, 2005
1 parent
ef5b12b
commit 34dcb2f
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2005-08-13 Marcin Koziej <[email protected]> | ||
Andrew Pinski <[email protected]> | ||
|
||
PR libobjc/22492 | ||
* execute/exceptions/finally-1.m: New test. | ||
|
||
2005-08-13 Andrew Pinski <[email protected]> | ||
|
||
* objc.dg/nested-func-1.m: Move to ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <objc/Object.h> | ||
|
||
int | ||
thrower_try_body() | ||
{ | ||
printf("Thrower try body\n"); | ||
return (0); | ||
} | ||
|
||
int | ||
finally_body() | ||
{ | ||
printf("Finally body\n"); | ||
return (0); | ||
} | ||
|
||
int | ||
thrower() | ||
{ | ||
@try | ||
{ | ||
thrower_try_body(); | ||
@throw [Object new]; | ||
} | ||
@finally | ||
{ | ||
finally_body(); | ||
} // <----- program aborts here. | ||
return 0; | ||
} | ||
|
||
|
||
int | ||
main(int ac, char *av[]) | ||
{ | ||
@try | ||
{ | ||
thrower(); | ||
} | ||
@catch (id exc) | ||
{ | ||
printf("Got exception of class %s\n", [[exc class] name]); | ||
[exc free]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2005-08-13 Marcin Koziej <[email protected]> | ||
Andrew Pinski <[email protected]> | ||
|
||
PR libobjc/22492 | ||
* exception.c (PERSONALITY_FUNCTION): Fix the PC with finally. | ||
|
||
2005-08-13 Andrew Pinski <[email protected]> | ||
|
||
* Makefile.in (extra_ldflags_libobjc): New. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters