]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/67172 (i686-w64-mingw32 dwarf2 bootstrap fails with undefined reference...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 4 Apr 2016 22:29:02 +0000 (22:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 4 Apr 2016 22:29:02 +0000 (22:29 +0000)
PR target/67172
* libgcc2.c (L__main): Undefine __LIBGCC_EH_FRAME_SECTION_NAME__ if
__MINGW32__ is defined.

From-SVN: r234727

libgcc/ChangeLog
libgcc/libgcc2.c

index 7c761b0351dc8ebd5ff4f757db590fe36e4c7a38..6011d2cccfb1ed726bf597702e3327b5f8c6e196 100644 (file)
@@ -1,3 +1,9 @@
+2016-04-04  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/67172
+       * libgcc2.c (L__main): Undefine __LIBGCC_EH_FRAME_SECTION_NAME__ if
+       __MINGW32__ is defined.
+
 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
 
         * libgcc/config/ft32/lib1funcs.S (*divsi3, *modsi3): New.
index 340d1f725fd49e348776ffba0d7c08875af3e2e6..6bc9a2f6c40b2c9b95c6a5d2ca76b3df9d5bd0c6 100644 (file)
@@ -2209,7 +2209,12 @@ TRANSFER_FROM_TRAMPOLINE
 #if !defined (HAS_INIT_SECTION) || !defined (OBJECT_FORMAT_ELF)
 
 /* Some ELF crosses use crtstuff.c to provide __CTOR_LIST__, but use this
-   code to run constructors.  In that case, we need to handle EH here, too.  */
+   code to run constructors.  In that case, we need to handle EH here, too.
+   But MINGW32 is special because it handles CRTSTUFF and EH on its own.  */
+
+#ifdef __MINGW32__
+#undef __LIBGCC_EH_FRAME_SECTION_NAME__
+#endif
 
 #ifdef __LIBGCC_EH_FRAME_SECTION_NAME__
 #include "unwind-dw2-fde.h"