[gcc r9-9278] Fix Ada bootstrap on Cygwin64
Eric Botcazou
ebotcazou@gcc.gnu.org
Wed Mar 10 11:48:01 GMT 2021
https://gcc.gnu.org/g:1356434401a9120e3aa52f92c461e035d2099a10
commit r9-9278-g1356434401a9120e3aa52f92c461e035d2099a10
Author: Mikael Pettersson <mikpelinux@gmail.com>
Date: Tue Mar 9 08:58:56 2021 -0700
Fix Ada bootstrap on Cygwin64
gcc/ada/
PR bootstrap/94918
* raise-gcc.c: On Cygwin include mingw32.h to prevent
windows.h from including x86intrin.h or emmintrin.h.
Diff:
---
gcc/ada/raise-gcc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c
index 6092a87b881..9e78526dc77 100644
--- a/gcc/ada/raise-gcc.c
+++ b/gcc/ada/raise-gcc.c
@@ -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...
More information about the Gcc-cvs
mailing list