www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/27/12:37:20

From: pavenis AT lanet DOT lv
Message-ID: <B0000106653@stargate.astr.lu.lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com
Date: Wed, 27 Oct 1999 18:08:05 +0300
MIME-Version: 1.0
Subject: Re: exception handling
References: <94094593923109-26155223109s9800973 AT student DOT rau DOT ac DOT za>
In-reply-to: <Pine.SUN.3.91.991027094039.27176E-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12a)
Reply-To: djgpp AT delorie DOT com

On 27 Oct 99, at 9:43, Eli Zaretskii wrote:

> 
> On Tue, 26 Oct 1999, Wynand Van Staden wrote:
> 
> > I'm using gcc-2.8.1 as well as gpp-2.8.1
> 
> If you need exceptions support, upgrade to the latest GCC version.  
> Version 2.8.1 didn't support them very well.
> 
> > what i read in some faq's was that exception handling wasn't 
> > implemented fully in this version.  save for using '-fsjlj-exceptions'.  
> > but supposedely this is a 'cruder' method of exception handling. what i'd 
> > like to know if it will reduce performance or does it have any other 
> > "side-effects" that i should be aware of.
> 
> -fsljlj-exceptions is dog slow.  In addition, the whole support for 
> exceptions (and, indeed, for most C++ features) is not very good in 
> versions of GCC before 2.9x.
> 

-fsjlj-exceptions worked with gcc-2.8.X. With egcs-1.1.X and 
gcc-2.95.X it seems to be broken. At least I never was able to get any 
example to work. Maybe it's needed to compile libgcc.a with this 
option, but I don't know whether it is so. Fortunatelly it 's was not 
needed as the default -fexceptions works. I had the same problems 
also under Linux so it's not DJGPP specific.

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019