Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-03 Thread Christian Franke
Yaakov (Cygwin/X) wrote: On Wed, 2012-02-01 at 20:55 +0100, Christian Franke wrote: Yaakov (Cygwin/X) wrote: On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread Ryan Johnson
On 01/02/2012 1:21 AM, Christian Franke wrote: Yaakov (Cygwin/X) wrote: On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always abort()s program.

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread marco atzeri
On 2/1/2012 3:07 PM, Ryan Johnson wrote: OK, I'll do. Must be at least somewhat Cygwin specific. Clang on i686 Linux generates exception handling code properly (tested with clang 2.9 on Debian). I have vague memories that Clang doesn't support SJLJ exceptions, and further vague memories that

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread René Berber
On 2/1/2012 12:21 AM, Christian Franke wrote: Must be at least somewhat Cygwin specific. Clang on i686 Linux generates exception handling code properly (tested with clang 2.9 on Debian). Are you using -fcxx-exeptions ? I think you have to enable exceptions with that flag, by default their

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread Christian Franke
Yaakov (Cygwin/X) wrote: On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always abort()s program. Is this as excepted? As best as I can tell,

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread Christian Franke
René Berber wrote: On 2/1/2012 12:21 AM, Christian Franke wrote: Must be at least somewhat Cygwin specific. Clang on i686 Linux generates exception handling code properly (tested with clang 2.9 on Debian). Are you using -fcxx-exeptions ? I think you have to enable exceptions with that flag,

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-02-01 Thread Yaakov (Cygwin/X)
On Wed, 2012-02-01 at 20:55 +0100, Christian Franke wrote: Yaakov (Cygwin/X) wrote: On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always

llvm/clang 3.0-1 silently ignores C++ exception handling

2012-01-31 Thread Christian Franke
Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always abort()s program. $ cat trycatch.cc void do_work(); void handle_error(); void func() { try { do_work(); } catch (...) { handle_error(); } } $

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-01-31 Thread Yaakov (Cygwin/X)
On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always abort()s program. Is this as excepted? As best as I can tell, this is an upstream

Re: llvm/clang 3.0-1 silently ignores C++ exception handling

2012-01-31 Thread Christian Franke
Yaakov (Cygwin/X) wrote: On Tue, 2012-01-31 at 19:41 +0100, Christian Franke wrote: Clang++ 3.0-1 does not produce any exception handling code. Unwind tables and code within catch(.) {...} blocks are not generated. Throw always abort()s program. Is this as excepted? As best as I can tell,