OSDN Git Service

2009-07-24 Kai Tietz <kai.tietz@onevision.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Jul 2009 13:34:29 +0000 (13:34 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Jul 2009 13:34:29 +0000 (13:34 +0000)
        * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
        TARGET_BI_ARCH is specified without enabling SJLJ.
        * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
        if TARGET_64BIT and TARGET_BI_ARCH aren't defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150114 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/cygming.h
gcc/config/i386/mingw32.h

index 82f6b3d..09feedc 100644 (file)
@@ -1,3 +1,10 @@
+2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
+
+       * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
+       TARGET_BI_ARCH is specified without enabling SJLJ.
+       * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
+       if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
+
 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
 
        * arm.md (negdi2): Use DImode if forcing a value into a register.
index bc81554..5fc0c1d 100644 (file)
@@ -287,6 +287,10 @@ do {                                               \
 /* The logic of this #if must be kept synchronised with the logic
    for selecting the tmake_eh_file fragment in config.gcc.  */
 #define DWARF2_UNWIND_INFO 1
+/* If multilib is selected break build as sjlj is required.  */
+#if defined (TARGET_BI_ARCH)
+#error For 64-bit windows and 32-bit based multilib version of gcc just SJLJ exceptions are supported.
+#endif
 #else
 #define DWARF2_UNWIND_INFO 0
 #endif
index a5657c0..e856ecd 100644 (file)
@@ -207,7 +207,9 @@ __enable_execute_stack (void *addr)                                 \
 #include <windows.h>
 #endif
 
-#if !TARGET_64BIT
+/* For 64-bit Windows we can't use DW2 unwind info. Also for multilib
+   builds we can't use it, too.  */
+#if !TARGET_64BIT && !defined (TARGET_BI_ARCH)
 #define MD_UNWIND_SUPPORT "config/i386/w32-unwind.h"
 #endif