This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to cygwin.h to disable dwarf2 EH
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Mar 2002 00:26:25 +0000
- Subject: PATCH to cygwin.h to disable dwarf2 EH
Chris Faylor's patch of last April,
http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00479.html
removed this definition from cygwin.h, causing cygwin to default to dwarf2
EH. Unfortunately, it still doesn't work, and isn't likely to in time for
3.1. So default to sjlj.
Tested i686-pc-cygwin. Applied trunk and 3.1.
2002-03-20 Jason Merrill <jason@redhat.com>
* config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
*** config/i386/cygwin.h.~1~ Tue Mar 12 01:46:23 2002
--- config/i386/cygwin.h Thu Mar 21 00:16:31 2002
*************** extern void i386_pe_unique_section PARAM
*** 409,414 ****
--- 409,419 ----
#undef ASM_COMMENT_START
#define ASM_COMMENT_START " #"
+ /* DWARF2 Unwinding doesn't work with exception handling yet. To make
+ it work, we need to build a libgcc_s.dll, and dcrt0.o should be
+ changed to call __register_frame_info/__deregister_frame_info. */
+ #define DWARF2_UNWIND_INFO 0
+
/* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C