]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix Ada bootstrap on Cygwin64
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 4 May 2020 21:32:39 +0000 (23:32 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 4 May 2020 21:43:30 +0000 (23:43 +0200)
This fixes a compilation error 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.

gcc/ada/ChangeLog
gcc/ada/mingw32.h

index a819f57a2bfae14af176f6869ae2641f2bc17618..41ba2db6a07b3b6a2ce549ee625c2c761cca1640 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-04  Mikael Pettersson  <mikpelinux@gmail.com>
+
+       PR bootstrap/94918
+       * mingw32.h: Prevent windows.h from including emmintrin.h on Cygwin64.
+
 2020-03-12  Release Manager
 
        * GCC 9.3.0 released.
index fe6464fd601df51d6c105745b3469c640f8274f2..3dbf7974a674ae56cacc62c055697f9959f424df 100644 (file)
@@ -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>