delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/24/18:18:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <426C1B79.6293C37@dessent.net>
Date: Sun, 24 Apr 2005 15:19:37 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin with Gcc-3.2?
References: <E1DPo8o-00006F-00 AT smtp07 DOT web DOT de> <426C0E98 DOT D4DAC8 AT dessent DOT net> <d4h4oq$ecg$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Mikael wrote:

> Hmm, sorry for hi-jacking the thread, but that means if I use GCC 4.0.0 that
> I have compiled myself and I use the Win32 API I should have configured gcc
> with --enable-sjlj-exceptions in order to avoid problems, right? I didn't so
> I guess I have to re-compile.
> To the OP: Building your own version of GCC under Cygwin is easy (I've done
> so since the GCC 3.3.* days, can't speak for the earlier versions), you just
> have to be more careful about the configure options than I have been!

Read the archives.  It's only a problem if you try to throw an exception
inside a callback that is called from a foreign library AND that library
has not been compiled with -fexceptions.  General win32 API calls work
fine, callback functions that don't throw exceptions work fine.  If you
never compile code that involves those circumstances, then you can use
DW2.  For the Cygwin gcc packages though I think such an assumption
cannot be made, so the slower but safe sjlj is used.  You would have to
ask Gerrit and/or cgf for the reasoning.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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