@@ -12,10 +12,10 @@ https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7
1212
1313clang can build it correctly and this should probably be a feature test
1414
15- diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
15+ diff --git a/gcc/config/i386/driver-i386.cc b/gcc/config/i386/driver-i386.cc
1616index 1111111..2222222 100644
17- --- a/gcc/config/i386/driver-i386.c
18- +++ b/gcc/config/i386/driver-i386.c
17+ --- a/gcc/config/i386/driver-i386.cc
18+ +++ b/gcc/config/i386/driver-i386.cc
1919@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
2020
2121 const char *host_detect_local_cpu (int argc, const char **argv);
@@ -36,20 +36,16 @@ diff --git a/gcc/config.gcc b/gcc/config.gcc
3636index 1111111..2222222 100644
3737--- a/gcc/config.gcc
3838+++ b/gcc/config.gcc
39- @@ -2207,7 +2207,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
40- tmake_file="${tmake_file} i386/t-mingw-w32"
41- ;;
42- esac
39+ @@
4340- native_system_header_dir=/mingw/include
4441+ native_system_header_dir=/include
45- target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.c"
46- extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
47- case ${target} in
42+
43+
4844diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
4945index 1111111..2222222 100644
5046--- a/gcc/config/i386/mingw32.h
5147+++ b/gcc/config/i386/mingw32.h
52- @@ -198 ,7 +198 ,7 @@ along with GCC; see the file COPYING3. If not see
48+ @@ -207 ,7 +207 ,7 @@ along with GCC; see the file COPYING3. If not see
5349
5450 /* Override startfile prefix defaults. */
5551 #ifndef STANDARD_STARTFILE_PREFIX_1
@@ -58,7 +54,7 @@ index 1111111..2222222 100644
5854 #endif
5955 #ifndef STANDARD_STARTFILE_PREFIX_2
6056 #define STANDARD_STARTFILE_PREFIX_2 ""
61- @@ -207 ,7 +207 ,7 @@ along with GCC; see the file COPYING3. If not see
57+ @@ -216 ,7 +216 ,7 @@ along with GCC; see the file COPYING3. If not see
6258 /* For native mingw-version we need to take care that NATIVE_SYSTEM_HEADER_DIR
6359 macro contains POSIX-style path. See bug 52947. */
6460 #undef NATIVE_SYSTEM_HEADER_DIR
@@ -81,22 +77,22 @@ diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
8177index 1111111..2222222 100644
8278--- a/libgomp/libgomp.h
8379+++ b/libgomp/libgomp.h
84- @@ -69,6 +69,14 @@
80+ @@ -66,6 +66,13 @@
81+ # endif
8582 # endif
8683 #endif
87-
88- + #include <stdio.h>
84+ +
8985+ #include <stdio.h>
9086+ #ifdef __MINGW_PRINTF_FORMAT
9187+ #define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
9288+ #else
9389+ #define PRINTF_FORMAT printf
9490+ #endif
95- +
91+
9692 #ifdef HAVE_ATTRIBUTE_VISIBILITY
9793 # pragma GCC visibility push(hidden)
9894 #endif
99- @@ -173 ,7 +181 ,7 @@ team_free (void *ptr)
95+ @@ -168 ,7 +175 ,7 @@ extern void gomp_aligned_free (void *);
10096
10197 extern void gomp_vdebug (int, const char *, va_list);
10298 extern void gomp_debug (int, const char *, ...)
@@ -105,7 +101,7 @@ index 1111111..2222222 100644
105101 #define gomp_vdebug(KIND, FMT, VALIST) \
106102 do { \
107103 if (__builtin_expect (gomp_debug_var, 0)) \
108- @@ -186 ,11 +194 ,11 @@ extern void gomp_debug (int, const char *, ...)
104+ @@ -182 ,11 +189 ,11 @@ extern void gomp_debug (int, const char *, ...)
109105 } while (0)
110106 extern void gomp_verror (const char *, va_list);
111107 extern void gomp_error (const char *, ...)
0 commit comments