Article View: gnu.gcc.help
Article #52643Re: Exception handling in GCC 2.1?
From: Chris Flatters,208,7209,homephon...
Date: Fri, 19 Jun 1992 17:18
Date: Fri, 19 Jun 1992 17:18
27 lines
2006 bytes
2006 bytes
In article 4549@solaris.rz.tu-clausthal.de, patz@rvs.uni-hannover.de (Frank Patz, SWL) writes: >In article 14212@murdoch.acc.Virginia.EDU, rad2r@uvacs.cs.Virginia.EDU (Robert DeLine) writes: >> >>I've noticed that gcc 2.1 now supports templates. (yeah!) I've >>heard rumors that it also supports some form of exception >>handling. Is this true? If so, what's the syntax? (I tried the >>try/catch/throw syntax of the C++ 3.0 definition, but that didn't >>work.) > >Try to get the last version of g++ that was distributed separately >(g++-1.4xx I think). The manual (written by M. Tiemann) contained >a description of some form of exception handling. I don't know if >that still works. There is a flag (-fansi-exceptions) that causes gcc 2.1 to accept ANSI C++ excpetion syntax. Comments in the code suggest that gcc does not use the ANSI C++ exception semantics however (the stack isn't unwound and destructors are not called). Unfortunately the routines that support this appear to have gone AWOL: you will get undefined symbols if you try to link code using -fansi-exceptions. This is rather a pity: a broken implementation of exceptions would be better than none at all. If I remember correctly, you will also get undefined symbol errors if you try and use the old GNU exception syntax. Chris Flatters cflatter@nrao.edu
Technical Details
Message-ID:
<1992Jun19.171801.21729@nrao.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!decwrl!mips!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!laphroaig!cflatterReferences:
<1992Jun18.161700.4549@solaris.rz.tu-clausthal.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,bf54f0f958af5b13 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-06-19 07:10:42 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!decwrl!mips!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!laphroaig!cflatter From: cflatter@nrao.edu (Chris Flatters,208,7209,homephone) Subject: Re: Exception handling in GCC 2.1? Message-ID: <1992Jun19.171801.21729@nrao.edu> Sender: news@nrao.edu Reply-To: cflatter@nrao.edu Organization: NRAO References: <1992Jun18.161700.4549@solaris.rz.tu-clausthal.de> Date: Fri, 19 Jun 1992 17:18:01 GMT Lines: 28