]> gcc.gnu.org Git - gcc.git/commitdiff
Fix Ada bootstrap on Cygwin64
authorMikael Pettersson <mikpelinux@gmail.com>
Tue, 9 Mar 2021 15:58:56 +0000 (08:58 -0700)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 10 Mar 2021 11:46:57 +0000 (12:46 +0100)
gcc/ada/
PR bootstrap/94918
* raise-gcc.c: On Cygwin include mingw32.h to prevent
windows.h from including x86intrin.h or emmintrin.h.

gcc/ada/raise-gcc.c

index 6092a87b881b4b36d5542ad003f41134d6aaad81..9e78526dc7745dbff54542c611f37f07c205a20c 100644 (file)
@@ -79,6 +79,12 @@ typedef char bool;
    (SJLJ or DWARF). We need a consistently named interface to import from
    a-except, so wrappers are defined here.  */
 
+#ifdef __CYGWIN__
+/* Prevent compile error due to unwind-generic.h including <windows.h>,
+   see comment above #include <windows.h> in mingw32.h.  */
+#include "mingw32.h"
+#endif
+
 #ifndef IN_RTS
   /* For gnat1/gnatbind compilation: cannot use unwind.h, as it is for the
      target. So mimic configure...
This page took 0.066041 seconds and 5 git commands to generate.