This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [MinGW] Allow Building GCC with --disable-sjlj-exceptions


Ranjit Mathew wrote:

> -#define DWARF2_UNWIND_INFO 0
> +#define DWARF2_UNWIND_INFO 1

This makes no sense at all.  DW2 EH is seriously broken under
cygwin/mingw, and it's not clear that this is even fundamentally fixable
(e.g. the situation of throwing an exception in a callback from third
party code that doesn't use DW2 like the win32 API.)  Someone posted on
the mingw list recently with a testcase showing even further breakage in
DW2 EH when throwing across a DLL boundary.  Flipping this switch should
be the *last* step that happens after all these other problems are
fixed, not the first step.  SJLJ is still the only sane default for
cygwin/mingw.

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]