public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25191]  New: exception_defines.h #defines try/catch
@ 2005-11-30 22:25 hhinnant at apple dot com
  2005-11-30 23:57 ` [Bug libstdc++/25191] " pinskia at gcc dot gnu dot org
                   ` (83 more replies)
  0 siblings, 84 replies; 86+ messages in thread
From: hhinnant at apple dot com @ 2005-11-30 22:25 UTC (permalink / raw)
  To: gcc-bugs

exception_defines.h #defines try/catch when -fno-exceptions.  This destroys
Objective C code using @try and @catch.  A simple fix is to insteaad in
exception_defines.h do something like (untested):

#ifndef __EXCEPTIONS
// Iff -fno-exceptions, transform error handling code to work without it.
# define __try      if (true)
# define __catch(X) if (false)
# define __throw_exception_again
#else
// Else proceed normally.
# define __try      try
# define __catch(X) catch(X)
# define __throw_exception_again throw
#endif

And then religiously use __try/__catch in libstdc++ instead of try/catch.


-- 
           Summary: exception_defines.h #defines try/catch
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hhinnant at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25191


^ permalink raw reply	[flat|nested] 86+ messages in thread

end of thread, other threads:[~2009-02-03 23:47 UTC | newest]

Thread overview: 86+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 22:25 [Bug c++/25191] New: exception_defines.h #defines try/catch hhinnant at apple dot com
2005-11-30 23:57 ` [Bug libstdc++/25191] " pinskia at gcc dot gnu dot org
2005-12-02 18:59 ` bkoz at gcc dot gnu dot org
2005-12-02 19:01 ` pinskia at gcc dot gnu dot org
2005-12-02 19:04 ` pinskia at gcc dot gnu dot org
2005-12-02 19:07 ` hhinnant at apple dot com
2005-12-02 19:18 ` gdr at integrable-solutions dot net
2005-12-02 19:23 ` gdr at integrable-solutions dot net
2005-12-02 19:29 ` gdr at integrable-solutions dot net
2005-12-02 21:00 ` hhinnant at apple dot com
2005-12-02 21:06 ` pinskia at gcc dot gnu dot org
2005-12-02 21:21 ` hhinnant at apple dot com
2005-12-03  0:58 ` gdr at integrable-solutions dot net
2005-12-03  1:02 ` gdr at integrable-solutions dot net
2005-12-03  1:25 ` hhinnant at apple dot com
2005-12-03  4:20 ` gdr at integrable-solutions dot net
2005-12-04  2:12 ` hhinnant at apple dot com
2005-12-04  2:54 ` gdr at integrable-solutions dot net
2005-12-04 15:55 ` hhinnant at apple dot com
2005-12-06  1:19 ` hhinnant at apple dot com
2005-12-07 19:02 ` bkoz at gcc dot gnu dot org
2005-12-13 20:03 ` pinskia at gcc dot gnu dot org
2006-01-11 15:30 ` hhinnant at apple dot com
2006-01-11 15:56 ` gdr at cs dot tamu dot edu
2006-01-11 16:10 ` hhinnant at apple dot com
2006-01-11 16:42 ` gdr at cs dot tamu dot edu
2006-01-11 22:12 ` hhinnant at apple dot com
2006-01-12  0:14 ` gdr at cs dot tamu dot edu
2006-01-12  0:14 ` gdr at cs dot tamu dot edu
2006-01-12  0:59 ` hhinnant at apple dot com
2006-01-12  1:10 ` gdr at cs dot tamu dot edu
2006-01-12  1:26   ` Andrew Pinski
2006-01-12  1:15 ` gdr at cs dot tamu dot edu
2006-01-12  1:26 ` pinskia at physics dot uc dot edu
2006-01-12  2:49 ` hhinnant at apple dot com
2007-04-24  9:54 ` l dot lunak at suse dot cz
2007-04-27  9:04 ` pcarlini at suse dot de
2007-04-27 11:04 ` pcarlini at suse dot de
2007-04-27 13:15 ` hhinnant at apple dot com
2007-04-27 13:22 ` pcarlini at suse dot de
2007-04-27 13:42 ` l dot lunak at suse dot cz
2008-04-24  8:40 ` pinskia at gcc dot gnu dot org
2008-04-24  8:42 ` pinskia at gcc dot gnu dot org
2008-06-02 11:49 ` rguenth at gcc dot gnu dot org
2008-06-02 12:06 ` paolo dot carlini at oracle dot com
2008-06-02 20:21 ` bkoz at gcc dot gnu dot org
2008-06-02 21:00 ` paolo dot carlini at oracle dot com
2008-06-02 22:28 ` bkoz at gcc dot gnu dot org
2008-06-02 23:09 ` sebor at roguewave dot com
2008-06-03  0:08 ` sebor at roguewave dot com
2008-06-03  9:53 ` paolo dot carlini at oracle dot com
2008-06-03 10:01 ` rguenther at suse dot de
2008-06-03 10:04 ` paolo dot carlini at oracle dot com
2008-09-22 12:42 ` rguenth at gcc dot gnu dot org
2008-09-22 12:43 ` rguenth at gcc dot gnu dot org
2008-09-22 14:10 ` paolo dot carlini at oracle dot com
2008-09-23 20:45 ` jason at gcc dot gnu dot org
2008-09-24  8:52 ` l dot lunak at suse dot cz
2008-09-24 13:04 ` mark at codesourcery dot com
2008-09-24 19:23 ` jason at redhat dot com
2008-09-25  9:57 ` l dot lunak at suse dot cz
2008-09-26 21:58 ` jason at redhat dot com
2008-11-18 18:47 ` jason at gcc dot gnu dot org
2008-11-19 21:43 ` jason at gcc dot gnu dot org
2008-11-19 22:43 ` l dot lunak at suse dot cz
2008-11-20 10:02 ` rguenth at gcc dot gnu dot org
2008-11-20 10:26 ` paolo dot carlini at oracle dot com
2008-11-20 15:15 ` jason at redhat dot com
2008-11-20 17:41 ` hhinnant at apple dot com
2008-11-20 17:57 ` mmitchel at gcc dot gnu dot org
2008-11-20 18:11 ` jason at redhat dot com
2008-11-21 22:21 ` pinskia at gcc dot gnu dot org
2008-11-21 22:22 ` pinskia at gcc dot gnu dot org
2008-11-21 22:25 ` pinskia at gcc dot gnu dot org
2008-11-21 23:10 ` pinskia at gcc dot gnu dot org
2008-11-23  0:03 ` jason at redhat dot com
2009-02-02 20:27 ` jason at gcc dot gnu dot org
2009-02-02 20:29 ` mark at codesourcery dot com
2009-02-02 21:11 ` paolo dot carlini at oracle dot com
2009-02-03 16:32 ` paolo dot carlini at oracle dot com
2009-02-03 17:10 ` bonzini at gnu dot org
2009-02-03 17:14 ` paolo dot carlini at oracle dot com
2009-02-03 17:16 ` bonzini at gnu dot org
2009-02-03 17:21 ` paolo dot carlini at oracle dot com
2009-02-03 23:45 ` paolo at gcc dot gnu dot org
2009-02-03 23:47 ` paolo dot carlini at oracle dot com

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).