This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch]: libbacktrace - add support of PE/COFF
- From: Tristan Gingold <gingold at adacore dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 28 May 2015 14:01:05 +0200
- Subject: Re: [Patch]: libbacktrace - add support of PE/COFF
- Authentication-results: sourceware.org; auth=none
- References: <2DD28AFE-AAB7-4B92-9ED0-A0F5763923CC at adacore dot com> <5565C843 dot 6080807 at redhat dot com> <CAKOQZ8yzKKeBYCX1Hb_8kNt5xp57CdWtO-OsnzRz=17piW6Rkg at mail dot gmail dot com>
> On 28 May 2015, at 02:26, Ian Lance Taylor <iant@google.com> wrote:
> The #include <windows.h> will break cross-compilers. It's not OK for
> trunk until that is fixed.
I am confused by this comment, for two reasons:
- I donât see how that would break cross-compilers. Cross compilers
hosted on windows are not impacted by this include when the library is
used for the tools. When then backtrace library is used for the target,
pecoff is not used unless the target is windows.
So I donât see a case where the include breaks cross-compilers.
- If the case exists, I donât see how to implement backtrace within
shared libraries: I need a windows specific function to get the list
of DLL.
Tristan.