public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected
@ 2006-05-07 3:28 landonf at opendarwin dot org
2006-05-07 6:24 ` [Bug libobjc/27466] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: landonf at opendarwin dot org @ 2006-05-07 3:28 UTC (permalink / raw)
To: gcc-bugs
libobjc's exception implementation doesn't support a user-supplied default
uncaught exception handler, and this would be a very handy feature to have.
With the equivalent of std:set_unexpected, one could implement the
NSSetUncaughtExceptionHandler() Foundation API.
--
Summary: RFE: Support for libobjc equivalent of
std::set_unexpected
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libobjc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: landonf at opendarwin dot org
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
@ 2006-05-07 6:24 ` pinskia at gcc dot gnu dot org
2008-11-28 15:58 ` rfm at gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-07 6:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-07 06:24 -------
It will most likely be called objc_set_unexpected like all other libobjc
functions and then GNUStep will implement NSSetUncaughtExceptionHandler.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-07 06:24:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
2006-05-07 6:24 ` [Bug libobjc/27466] " pinskia at gcc dot gnu dot org
@ 2008-11-28 15:58 ` rfm at gnu dot org
2008-12-08 8:30 ` rfm at gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rfm at gnu dot org @ 2008-11-28 15:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rfm at gnu dot org 2008-11-28 15:56 -------
Created an attachment (id=16787)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16787&action=view)
An implementation of objc_set_unexpected function
We really need this function to use native objective-c in GNUstep.
The tiny attached patch does what the gnustep-base library needs ... providing
a function to set a hanlder to be called if an exception is not caught. Please
could you apply it or something similar.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
2006-05-07 6:24 ` [Bug libobjc/27466] " pinskia at gcc dot gnu dot org
2008-11-28 15:58 ` rfm at gnu dot org
@ 2008-12-08 8:30 ` rfm at gnu dot org
2008-12-17 9:37 ` rfm at gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rfm at gnu dot org @ 2008-12-08 8:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rfm at gnu dot org 2008-12-08 08:29 -------
Any news on when this can be done? The path is tiny/trivial, so even though it
might be judged low priority I'd have hoped it could be fitted in quickly.
--
rfm at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rfm at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (2 preceding siblings ...)
2008-12-08 8:30 ` rfm at gnu dot org
@ 2008-12-17 9:37 ` rfm at gnu dot org
2009-01-01 15:10 ` rfm at gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rfm at gnu dot org @ 2008-12-17 9:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rfm at gnu dot org 2008-12-17 09:36 -------
Is anyone monitoring/progressing this bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (3 preceding siblings ...)
2008-12-17 9:37 ` rfm at gnu dot org
@ 2009-01-01 15:10 ` rfm at gnu dot org
2009-02-26 5:17 ` ayers at fsfe dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rfm at gnu dot org @ 2009-01-01 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rfm at gnu dot org 2009-01-01 15:08 -------
I just checked up on this again ...
The problem was initially reported two and a half years ago.
I supplied a (very very simple) patch to fix it a month ago.
Could someone please apply the patch so it gets into the next release?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (4 preceding siblings ...)
2009-01-01 15:10 ` rfm at gnu dot org
@ 2009-02-26 5:17 ` ayers at fsfe dot org
2009-02-26 5:24 ` ayers at fsfe dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ayers at fsfe dot org @ 2009-02-26 5:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ayers at fsfe dot org 2009-02-26 05:16 -------
Created an attachment (id=17364)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17364&action=view)
Updated patch (using and accessor function) inlcuding a test case
For the record:
This is an update of the existing patch which includes a test case. This was
posted as an RFA: http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01085.html with
the following ChangeLog entries:
2009-02-23 Richard Frith-Macdonald <rfm@gnu.org>
PR libobjc/27466
* objc/objc-api.h: declare objc_set_unexpected function.
* exception.c: implement objc_set_unexpected function.
* libobjc.def: export objc_set_unexpected
2009-02-23 David Ayers <ayers@fsfe.org>
PR libobjc/27466
* objc/execute/exceptions/handler-1.m. New.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (5 preceding siblings ...)
2009-02-26 5:17 ` ayers at fsfe dot org
@ 2009-02-26 5:24 ` ayers at fsfe dot org
2009-03-12 22:28 ` ayers at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ayers at fsfe dot org @ 2009-02-26 5:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ayers at fsfe dot org 2009-02-26 05:24 -------
Created an attachment (id=17365)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17365&action=view)
Alternative patch using a callback hook
This patch was posted as an RFA:
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01086.html
With the following ChangeLog entry:
2009-02-23 Richard Frith-Macdonald <rfm@gnu.org>
David Ayers <ayers@fsfe.org>
PR libobjc/27466
* objc/objc-api.h (_objc_unexpected_exception): Declare new
hook.
* exception.c (objc_exception_throw): Use hook.
* libobjc.def (_objc_unexpected_exception): Export hook.
2009-02-23 David Ayers <ayers@fsfe.org>
PR libobjc/27466
* objc/execute/exceptions/handler-1.m. New.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (6 preceding siblings ...)
2009-02-26 5:24 ` ayers at fsfe dot org
@ 2009-03-12 22:28 ` ayers at gcc dot gnu dot org
2009-03-14 17:04 ` ayers at gcc dot gnu dot org
2009-03-14 17:05 ` ayers at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ayers at gcc dot gnu dot org @ 2009-03-12 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ayers at gcc dot gnu dot org 2009-03-12 22:28 -------
Subject: Bug 27466
Author: ayers
Date: Thu Mar 12 22:28:15 2009
New Revision: 144826
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144826
Log:
libobjc/
2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
David Ayers <ayers@fsfe.org>
PR libobjc/27466
* objc/objc-api.h (_objc_unexpected_exception): Declare
new hook. Update copyright dates.
* exception.c (objc_exception_throw): Use hook. Update
copyright dates.
* libobjc.def (_objc_unexpected_exception): Export hook.
Update copyright dates.
gcc/testsuite/
2009-03-12 David Ayers <ayers@fsfe.org>
PR libobjc/27466
* objc/execute/exceptions/handler-1.m. New test.
Added:
trunk/gcc/testsuite/objc/execute/exceptions/handler-1.m
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libobjc/ChangeLog
trunk/libobjc/exception.c
trunk/libobjc/libobjc.def
trunk/libobjc/objc/objc-api.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (7 preceding siblings ...)
2009-03-12 22:28 ` ayers at gcc dot gnu dot org
@ 2009-03-14 17:04 ` ayers at gcc dot gnu dot org
2009-03-14 17:05 ` ayers at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ayers at gcc dot gnu dot org @ 2009-03-14 17:04 UTC (permalink / raw)
To: gcc-bugs
--
ayers at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |ayers at gcc dot gnu dot org
|org |
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
` (8 preceding siblings ...)
2009-03-14 17:04 ` ayers at gcc dot gnu dot org
@ 2009-03-14 17:05 ` ayers at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ayers at gcc dot gnu dot org @ 2009-03-14 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ayers at gcc dot gnu dot org 2009-03-14 17:05 -------
Fixed for 4.4.0
--
ayers at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-03-14 17:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-07 3:28 [Bug libobjc/27466] New: RFE: Support for libobjc equivalent of std::set_unexpected landonf at opendarwin dot org
2006-05-07 6:24 ` [Bug libobjc/27466] " pinskia at gcc dot gnu dot org
2008-11-28 15:58 ` rfm at gnu dot org
2008-12-08 8:30 ` rfm at gnu dot org
2008-12-17 9:37 ` rfm at gnu dot org
2009-01-01 15:10 ` rfm at gnu dot org
2009-02-26 5:17 ` ayers at fsfe dot org
2009-02-26 5:24 ` ayers at fsfe dot org
2009-03-12 22:28 ` ayers at gcc dot gnu dot org
2009-03-14 17:04 ` ayers at gcc dot gnu dot org
2009-03-14 17:05 ` ayers at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).