[PATCH]: For x86_64 mingw32 the dwarf2 default unwind does not work
Danny Smith
dansmister@gmail.com
Fri Dec 7 22:44:00 GMT 2007
On Dec 7, 2007 9:05 PM, Kai Tietz <Kai.Tietz@onevision.com> wrote:
> > Hi,
> >
> > 64-bit target should uses DWARF2 unwind by default. If 32-bit target
> > configured with --disable-sjlj-exceptions, use DWARF2, else default to
> > SJLJ.
> > Reasoned by a bug in DWARF2 unwind for x86_64-mingw by default sjlj
> > exceptions needs to be enabled as for 32-bit target.
> >
> > ChangeLog:
> >
> > 2007-12-06 Kai Tietz <kai.tietz@onevision.com>
> >
> > * gcc/config/i386/cygming.h: Set DWARF2_UNWIND_INFO for
> > x86_64-mingw32 target
> > by default to zero as done for 32-bit mingw.
>
>
> This patch is tested for x86_64-pc-mingw32 and i686-pc-mingw32.
> Is this patch OK for apply ?
Hello Kai
Why not simplify instead?
* config/i386/cygming.h (DWARF2_UNWIND_INFO): Handle 64-bit
target same as 32-bit.
Danny
Index: cygming.h
===================================================================
--- cygming.h (revision 130643)
+++ cygming.h (working copy)
@@ -277,11 +277,9 @@
#define ASM_COMMENT_START " #"
#ifndef DWARF2_UNWIND_INFO
-/* 64-bit target uses DWARF2 unwind by default. If 32-bit target
- configured with --disable-sjlj-exceptions, use DWARF2, else default
- to SJLJ. */
-#if TARGET_64BIT_DEFAULT \
- || (defined (CONFIG_SJLJ_EXCEPTIONS) && !CONFIG_SJLJ_EXCEPTIONS)
+/* If configured with --disable-sjlj-exceptions, use DWARF2, else
+ default to SJLJ. */
+#if (defined (CONFIG_SJLJ_EXCEPTIONS) && !CONFIG_SJLJ_EXCEPTIONS)
#define DWARF2_UNWIND_INFO 1
#else
#define DWARF2_UNWIND_INFO 0
More information about the Gcc-patches
mailing list