diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-05-04 23:32:39 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-05-04 23:37:33 +0200 |
commit | cc7e4de998cd2a31eb7c834fd427e7f16a99d60a (patch) | |
tree | 441c064f3c91f62f8ce74fa949b332bcaae402aa | |
parent | 5e681acd3587285cc3c8c6d603e4ce93cf6dacf2 (diff) | |
download | gcc-cc7e4de998cd2a31eb7c834fd427e7f16a99d60a.zip gcc-cc7e4de998cd2a31eb7c834fd427e7f16a99d60a.tar.gz gcc-cc7e4de998cd2a31eb7c834fd427e7f16a99d60a.tar.bz2 |
Fix Ada bootstrap on Cygwin64
This fixes two compilation errors preventing bootstrap with Ada
on x86_64-pc-cygwin.
2020-05-04 Mikael Pettersson <mikpelinux@gmail.com>
PR bootstrap/94918
* mingw32.h: Prevent windows.h from including emmintrin.h on Cygw64.
* s-oscons-tmplt.c (Serial_Port_Descriptor): Use System.Win32.HANDLE
also on Cygwin.
-rw-r--r-- | gcc/ada/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ada/mingw32.h | 1 | ||||
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 5349fd9..eacc976 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,10 @@ +2020-05-04 Mikael Pettersson <mikpelinux@gmail.com> + + PR bootstrap/94918 + * mingw32.h: Prevent windows.h from including emmintrin.h on Cygwin64. + * s-oscons-tmplt.c (Serial_Port_Descriptor): Use System.Win32.HANDLE + also on Cygwin. + 2020-03-11 Richard Wai <richard@annexi-strayline.com> * gcc-interface/decl.c (gnat_to_gnu_entity): Also test Is_Public on diff --git a/gcc/ada/mingw32.h b/gcc/ada/mingw32.h index fe6464f..3dbf797 100644 --- a/gcc/ada/mingw32.h +++ b/gcc/ada/mingw32.h @@ -56,6 +56,7 @@ /* 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> diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 4c3ecc6..2a1be80 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -261,7 +261,7 @@ main (void) { TXT("-- This is the version for " TARGET) TXT("") TXT("with Interfaces.C;") -#if defined (__MINGW32__) +#if defined (__MINGW32__) || defined (__CYGWIN__) # define TARGET_OS "Windows" # define Serial_Port_Descriptor "System.Win32.HANDLE" TXT("with System.Win32;") |