From: pavenis AT lanet DOT lv Message-ID: To: Eli Zaretskii , djgpp AT delorie DOT com Date: Wed, 27 Oct 1999 18:08:05 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: exception handling References: <94094593923109-26155223109s9800973 AT student DOT rau DOT ac DOT za> In-reply-to: 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