OSDN Git Service

PR target/38904
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / mingw32.h
index 571277e..43f5a05 100644 (file)
@@ -212,4 +212,10 @@ __enable_execute_stack (void *addr)                                        \
 #endif
 
 /* This matches SHLIB_SONAME and SHLIB_SOVERSION in t-cygming. */
-#define LIBGCC_SONAME "libgcc_s_1.dll"
+/* This matches SHLIB_SONAME and SHLIB_SOVERSION in t-cygwin. */
+#if DWARF2_UNWIND_INFO
+#define LIBGCC_EH_EXTN "_dw2"
+#else
+#define LIBGCC_EH_EXTN "_sjlj"
+#endif
+#define LIBGCC_SONAME "libgcc_s" LIBGCC_EH_EXTN "-1.dll"