summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-02 08:37:36 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-02 08:37:36 +0000
commit9c19b6a5cdee54288e3c2242b187e359156198a9 (patch)
tree67f9958f2be73ce369c8f8f33cca90e20f03635c
parentcd9edb4e477bf0a5146d11f6b59e1330d54c9be1 (diff)
downloadppe42-gcc-9c19b6a5cdee54288e3c2242b187e359156198a9.tar.gz
ppe42-gcc-9c19b6a5cdee54288e3c2242b187e359156198a9.zip
PR target/37528
* config/i386/mingw32.h (LIBGCC_SPEC) : Replace with .. (REAL_LIBGCC_SPEC): New. Always include -lgcc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140830 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/mingw32.h8
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c3de3d1d744..52fe4dc6876 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/37528
+ * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
+ (REAL_LIBGCC_SPEC): New. Always include -lgcc.
+
2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index bb5fd7f7e6e..7a1ae9ebc6b 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -89,10 +89,12 @@ along with GCC; see the file COPYING3. If not see
%(shared_libgcc_undefs)"
/* Include in the mingw32 libraries with libgcc */
-#undef LIBGCC_SPEC
-#define LIBGCC_SPEC \
+#undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC \
"-lmingw32 \
- %{shared-libgcc:-lgcc_s} -lgcc \
+ %{shared-libgcc:-lgcc_s} \
+ %{!shared-libgcc:-lgcc_eh} \
+ -lgcc \
-lmoldname -lmingwex -lmsvcrt"
#undef STARTFILE_SPEC
OpenPOWER on IntegriCloud