From: Arnaud Charlet <charlet@adacore.com>
To: Mikael Pettersson <mikpelinux@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
Arnaud Charlet <charlet@adacore.com>
Subject: Re: [PATCH v2] fix Ada bootstrap on Cygwin64 (PR bootstrap/94918)
Date: Sun, 7 Mar 2021 19:20:22 +0100 [thread overview]
Message-ID: <20210307182022.GA31210@adacore.com> (raw)
In-Reply-To: <CAM43=SMCKWH-CK3f=q5vp58ubyZRjPmvzQ6yrRg74sm6chpixw@mail.gmail.com>
> > > > This fixes a compilation error preventing bootstrap with Ada on
> > > > x86_64-pc-cygwin. See PR bootstrap/94918 for details.
> > > >
> > > > Compared to the initial patch sent in May 2020, this v2 patch places
> > > > the fix in Ada's raise-gcc.c instead of the shared unwind-generic.h,
> > > > which should hopefully simplify getting it applied.
> > >
> > > Not sure why. Applying it there looks incomplete and kludgy, don't you
> > > agree?
> >
> > Ok, then here's v3 which places the fix in unwind-generic.h. The fix
> > matches what Ada's mingw32.h does.
> >
> > Tested by bootstrapping this and the preliminary workaround for
> > PR98590 on x86_64-pc-cygwin.
> >
> > Ok for master and branches?
>
> Ping. This is currently the only blocker for bootstrapping gcc-11 with
> Ada on Cygwin64.
Unfortunately changes in libgcc are outside my area, you'll need to find
another maintainer for this one.
> > libgcc/
> >
> > 2021-01-10 Mikael Pettersson <mikpelinux@gmail.com>
> >
> > PR bootstrap/94918
> > * unwind-generic.h (__SEH__): Prevent windows.h from including
> > x86intrin.h or emmintrin.h on Cygwin64.
> >
> > --- gcc-11-20210103/libgcc/unwind-generic.h.~1~ 2021-01-03
> > 23:32:20.000000000 +0100
> > +++ gcc-11-20210103/libgcc/unwind-generic.h 2021-01-09
> > 14:51:16.262378715 +0100
> > @@ -30,6 +30,12 @@
> >
> > #if defined (__SEH__) && !defined (__USING_SJLJ_EXCEPTIONS__)
> > /* Only for _GCC_specific_handler. */
> > +#if defined (__CYGWIN__) && !defined (__CYGWIN32__) && !defined (IN_RTS)
> > +/* Note: windows.h on cygwin-64 includes x86intrin.h which uses malloc.
> > + That fails to compile, if malloc is poisoned, i.e. if !IN_RTS. */
> > +#define _X86INTRIN_H_INCLUDED
> > +#define _EMMINTRIN_H_INCLUDED
> > +#endif
> > #include <windows.h>
> > #endif
>
next prev parent reply other threads:[~2021-03-07 18:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-10 10:44 Mikael Pettersson
2021-01-10 10:57 ` Arnaud Charlet
2021-01-10 13:04 ` Mikael Pettersson
2021-03-07 17:16 ` Mikael Pettersson
2021-03-07 18:20 ` Arnaud Charlet [this message]
2021-03-08 10:21 ` Richard Biener
2021-03-08 11:07 ` Eric Botcazou
2021-03-08 21:43 ` Mikael Pettersson
2021-03-08 22:21 ` Eric Botcazou
2021-03-09 16:00 ` Jeff Law
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210307182022.GA31210@adacore.com \
--to=charlet@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=mikpelinux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).