]> git.ipfire.org Git - thirdparty/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:45:36 +0000 (12:45 +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 3b6c21fcd139d8c97cda38afca644ae01115c5cd..feba9855c7588ee80c9cb4d0a4331e866649e9a1 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...