diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-04-04 22:29:02 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-04-04 22:29:02 +0000 |
commit | 72d1a48d2bd8fe3f40d1e9931ed7cfc7c73c57bb (patch) | |
tree | d7460cd194cf18efe3df82e63a44cc5ea3f541f9 /libgcc/libgcc2.c | |
parent | 7134713caafea2c1a3fb51db7c09f3a63b1272aa (diff) | |
download | gcc-72d1a48d2bd8fe3f40d1e9931ed7cfc7c73c57bb.zip gcc-72d1a48d2bd8fe3f40d1e9931ed7cfc7c73c57bb.tar.gz gcc-72d1a48d2bd8fe3f40d1e9931ed7cfc7c73c57bb.tar.bz2 |
re PR target/67172 (i686-w64-mingw32 dwarf2 bootstrap fails with undefined reference to __EH_FRAME_BEGIN__)
PR target/67172
* libgcc2.c (L__main): Undefine __LIBGCC_EH_FRAME_SECTION_NAME__ if
__MINGW32__ is defined.
From-SVN: r234727
Diffstat (limited to 'libgcc/libgcc2.c')
-rw-r--r-- | libgcc/libgcc2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/libgcc2.c b/libgcc/libgcc2.c index 340d1f7..6bc9a2f 100644 --- a/libgcc/libgcc2.c +++ b/libgcc/libgcc2.c @@ -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" |