History

mingw-w64: update to 8.0.0

Including a patch for GCC to fix a warning that fails the build[1]. [1] https://www.spinics.net/lists/gcchelp/msg51246.html

Orgad Shaneh committed 6 years ago

Commit 151f5501 parent 64777af8 files · +372 −21Browse files

Unified · Split

8 files
  1. plugins/gcc10/gcc10.patch +54 −2
  2. plugins/gcc4/gcc4.patch +41 −2
  3. plugins/gcc6/gcc6.patch +56 −4
  4. plugins/gcc7/gcc7.patch +54 −2
  5. plugins/gcc8/gcc8.patch +54 −2
  6. plugins/gcc9/gcc9.patch +54 −2
  7. src/gcc-1-fixes.patch +57 −5
  8. src/mingw-w64.mk +2 −2
plugins/gcc10/gcc10.patch+54−2
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Sun, 10 May 2020 15:06:47 +1000
8−Subject: [PATCH 1/2] allow native cpu detection when building with clang
8+Subject: [PATCH 1/3] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Sun, 10 May 2020 15:09:58 +1000
32−Subject: [PATCH 2/2] remove hard-coded mingw from paths
32+Subject: [PATCH 2/3] remove hard-coded mingw from paths
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -67,3 +67,55 @@ index 1111111..2222222 100644 · 31 unmodified lines
6767
6868 /* Output STRING, a string representing a filename, to FILE.
6969 We canonicalize it to be in Unix format (backslashes are replaced
70+
71+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
72+From: Liu Hao <lh_mouse@126.com>
73+Date: Wed, 6 May 2020 21:49:18 +0800
74+Subject: [PATCH 3/3] libgomp: Don't hard-code MS printf attributes
75+
76+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
77+
78+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
79+
80+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
81+index 1111111..2222222 100644
82+--- a/libgomp/libgomp.h
83++++ b/libgomp/libgomp.h
84+@@ -69,6 +69,14 @@
85+ # endif
86+ #endif
87+
88++#include <stdio.h>
89++#include <stdio.h>
90++#ifdef __MINGW_PRINTF_FORMAT
91++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
92++#else
93++#define PRINTF_FORMAT printf
94++#endif
95++
96+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
97+ # pragma GCC visibility push(hidden)
98+ #endif
99+@@ -173,7 +181,7 @@ team_free (void *ptr)
100+
101+ extern void gomp_vdebug (int, const char *, va_list);
102+ extern void gomp_debug (int, const char *, ...)
103+- __attribute__ ((format (printf, 2, 3)));
104++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
105+ #define gomp_vdebug(KIND, FMT, VALIST) \
106+ do { \
107+ if (__builtin_expect (gomp_debug_var, 0)) \
108+@@ -186,11 +194,11 @@ extern void gomp_debug (int, const char
109+ } while (0)
110+ extern void gomp_verror (const char *, va_list);
111+ extern void gomp_error (const char *, ...)
112+- __attribute__ ((format (printf, 1, 2)));
113++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
114+ extern void gomp_vfatal (const char *, va_list)
115+ __attribute__ ((noreturn));
116+ extern void gomp_fatal (const char *, ...)
117+- __attribute__ ((noreturn, format (printf, 1, 2)));
118++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
119+
120+ struct gomp_task;
121+ struct gomp_taskgroup;
plugins/gcc4/gcc4.patch+41−2
@@ -3,7 +3,7 @@ This file is part of MXE. See LICENSE.md for licensing information. · 2 unmodified lines
33 From 05788ad7e6bf16402aa7c9c085784c3582de425c Mon Sep 17 00:00:00 2001
44 From: Mark Brand <mabrand@mabrand.nl>
55 Date: Thu, 30 Jul 2015 10:00:49 +0200
6−Subject: [PATCH 1/2] mingw-float
6+Subject: [PATCH 1/3] mingw-float
77
88 This patch has been taken from:
99 https://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html
@@ -38,7 +38,7 @@ index 805b84d..b9dcc48 100644 · 28 unmodified lines
3838 From b5497062665c4f4e2a9e10f6ec44817f845ebe17 Mon Sep 17 00:00:00 2001
3939 From: Ilya Goncharov <zenbooster@gmail.com>
4040 Date: Thu, 30 Jul 2015 10:04:07 +0200
41−Subject: [PATCH 2/2] intrinsics
41+Subject: [PATCH 2/3] intrinsics
4242
4343 This patch has been taken from:
4444 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56038
@@ -882,3 +882,42 @@ index 026e60b..6a78c42 100644 · 837 unmodified lines
882882 --
883883 2.1.4
884884
885+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
886+From: Liu Hao <lh_mouse@126.com>
887+Date: Wed, 6 May 2020 21:49:18 +0800
888+Subject: [PATCH 3/3] libgomp: Don't hard-code MS printf attributes
889+
890+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
891+
892+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
893+
894+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
895+index 1111111..2222222 100644
896+--- a/libgomp/libgomp.h
897++++ b/libgomp/libgomp.h
898+@@ -41,6 +41,13 @@
899+ #include <stdbool.h>
900+ #include <stdlib.h>
901+
902++#include <stdio.h>
903++#ifdef __MINGW_PRINTF_FORMAT
904++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
905++#else
906++#define PRINTF_FORMAT printf
907++#endif
908++
909+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
910+ # pragma GCC visibility push(hidden)
911+ #endif
912+@@ -533,9 +540,9 @@
913+ /* error.c */
914+
915+ extern void gomp_error (const char *, ...)
916+- __attribute__((format (printf, 1, 2)));
917++ __attribute__((format (PRINTF_FORMAT, 1, 2)));
918+ extern void gomp_fatal (const char *, ...)
919+- __attribute__((noreturn, format (printf, 1, 2)));
920++ __attribute__((noreturn, format (PRINTF_FORMAT, 1, 2)));
921+
922+ /* iter.c */
923+
plugins/gcc6/gcc6.patch+56−4
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Thu, 2 Feb 2017 02:05:50 +1100
8−Subject: [PATCH 1/4] allow native cpu detection when building with clang
8+Subject: [PATCH 1/5] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Fri, 6 Apr 2018 13:40:22 +1000
32−Subject: [PATCH 2/4] remove hard-coded mingw from include path
32+Subject: [PATCH 2/5] remove hard-coded mingw from include path
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -62,7 +62,7 @@ index 1111111..2222222 100644 · 26 unmodified lines
6262 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
6363 From: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
6464 Date: Sun, 11 Nov 2018 17:44:43 +0000
65−Subject: [PATCH 3/4] Backport from mainline 2018-11-04 Uros Bizjak
65+Subject: [PATCH 3/5] Backport from mainline 2018-11-04 Uros Bizjak
6666 <ubizjak@gmail.com>
6767
6868 PR middle-end/58372
@@ -115,7 +115,7 @@ index 1111111..2222222 100644 · 46 unmodified lines
115115 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
116116 From: Tony Theodore <tonyt@logyst.com>
117117 Date: Sun, 31 May 2020 18:36:27 +1000
118−Subject: [PATCH 4/4] PR c++/66297, DR 1684 - literal class and constexpr
118+Subject: [PATCH 4/5] PR c++/66297, DR 1684 - literal class and constexpr
119119 member fns
120120
121121 taken from:
@@ -183,3 +183,55 @@ index 1111111..2222222 100644 · 61 unmodified lines
183183 }
184184 }
185185 else if (CLASSTYPE_VBASECLASSES (DECL_CONTEXT (fun)))
186+
187+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
188+From: Liu Hao <lh_mouse@126.com>
189+Date: Wed, 6 May 2020 21:49:18 +0800
190+Subject: [PATCH 5/5] libgomp: Don't hard-code MS printf attributes
191+
192+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
193+
194+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
195+
196+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
197+index 1111111..2222222 100644
198+--- a/libgomp/libgomp.h
199++++ b/libgomp/libgomp.h
200+@@ -66,6 +66,14 @@
201+ # endif
202+ #endif
203+
204++#include <stdio.h>
205++#include <stdio.h>
206++#ifdef __MINGW_PRINTF_FORMAT
207++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
208++#else
209++#define PRINTF_FORMAT printf
210++#endif
211++
212+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
213+ # pragma GCC visibility push(hidden)
214+ #endif
215+@@ -95,7 +103,7 @@ extern void *gomp_realloc (void *, size_
216+
217+ extern void gomp_vdebug (int, const char *, va_list);
218+ extern void gomp_debug (int, const char *, ...)
219+- __attribute__ ((format (printf, 2, 3)));
220++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
221+ #define gomp_vdebug(KIND, FMT, VALIST) \
222+ do { \
223+ if (__builtin_expect (gomp_debug_var, 0)) \
224+@@ -108,11 +116,11 @@ extern void gomp_debug (int, const char
225+ } while (0)
226+ extern void gomp_verror (const char *, va_list);
227+ extern void gomp_error (const char *, ...)
228+- __attribute__ ((format (printf, 1, 2)));
229++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
230+ extern void gomp_vfatal (const char *, va_list)
231+ __attribute__ ((noreturn));
232+ extern void gomp_fatal (const char *, ...)
233+- __attribute__ ((noreturn, format (printf, 1, 2)));
234++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
235+
236+ struct gomp_task;
237+ struct gomp_taskgroup;
plugins/gcc7/gcc7.patch+54−2
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Thu, 2 Feb 2017 02:05:50 +1100
8−Subject: [PATCH 1/2] allow native cpu detection when building with clang
8+Subject: [PATCH 1/3] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Fri, 6 Apr 2018 13:40:22 +1000
32−Subject: [PATCH 2/2] remove hard-coded mingw from include path
32+Subject: [PATCH 2/3] remove hard-coded mingw from include path
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -58,3 +58,55 @@ index 1111111..2222222 100644 · 22 unmodified lines
5858
5959 /* Output STRING, a string representing a filename, to FILE.
6060 We canonicalize it to be in Unix format (backslashes are replaced
61+
62+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
63+From: Liu Hao <lh_mouse@126.com>
64+Date: Wed, 6 May 2020 21:49:18 +0800
65+Subject: [PATCH 3/3] libgomp: Don't hard-code MS printf attributes
66+
67+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
68+
69+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
70+
71+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
72+index 1111111..2222222 100644
73+--- a/libgomp/libgomp.h
74++++ b/libgomp/libgomp.h
75+@@ -68,6 +68,14 @@
76+ # endif
77+ #endif
78+
79++#include <stdio.h>
80++#include <stdio.h>
81++#ifdef __MINGW_PRINTF_FORMAT
82++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
83++#else
84++#define PRINTF_FORMAT printf
85++#endif
86++
87+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
88+ # pragma GCC visibility push(hidden)
89+ #endif
90+@@ -97,7 +105,7 @@ extern void *gomp_realloc (void *, size_
91+
92+ extern void gomp_vdebug (int, const char *, va_list);
93+ extern void gomp_debug (int, const char *, ...)
94+- __attribute__ ((format (printf, 2, 3)));
95++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
96+ #define gomp_vdebug(KIND, FMT, VALIST) \
97+ do { \
98+ if (__builtin_expect (gomp_debug_var, 0)) \
99+@@ -110,11 +118,11 @@ extern void gomp_debug (int, const char
100+ } while (0)
101+ extern void gomp_verror (const char *, va_list);
102+ extern void gomp_error (const char *, ...)
103+- __attribute__ ((format (printf, 1, 2)));
104++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
105+ extern void gomp_vfatal (const char *, va_list)
106+ __attribute__ ((noreturn));
107+ extern void gomp_fatal (const char *, ...)
108+- __attribute__ ((noreturn, format (printf, 1, 2)));
109++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
110+
111+ struct gomp_task;
112+ struct gomp_taskgroup;
plugins/gcc8/gcc8.patch+54−2
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Thu, 2 Feb 2017 02:05:50 +1100
8−Subject: [PATCH 1/2] allow native cpu detection when building with clang
8+Subject: [PATCH 1/3] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Fri, 6 Apr 2018 13:40:22 +1000
32−Subject: [PATCH 2/2] remove hard-coded mingw from include path
32+Subject: [PATCH 2/3] remove hard-coded mingw from include path
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -59,3 +59,55 @@ index 1111111..2222222 100644 · 23 unmodified lines
5959 /* Output STRING, a string representing a filename, to FILE.
6060 We canonicalize it to be in Unix format (backslashes are replaced
6161
62+
63+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
64+From: Liu Hao <lh_mouse@126.com>
65+Date: Wed, 6 May 2020 21:49:18 +0800
66+Subject: [PATCH 3/3] libgomp: Don't hard-code MS printf attributes
67+
68+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
69+
70+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
71+
72+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
73+index 1111111..2222222 100644
74+--- a/libgomp/libgomp.h
75++++ b/libgomp/libgomp.h
76+@@ -68,6 +68,14 @@
77+ # endif
78+ #endif
79+
80++#include <stdio.h>
81++#include <stdio.h>
82++#ifdef __MINGW_PRINTF_FORMAT
83++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
84++#else
85++#define PRINTF_FORMAT printf
86++#endif
87++
88+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
89+ # pragma GCC visibility push(hidden)
90+ #endif
91+@@ -97,7 +105,7 @@ extern void *gomp_realloc (void *, size_
92+
93+ extern void gomp_vdebug (int, const char *, va_list);
94+ extern void gomp_debug (int, const char *, ...)
95+- __attribute__ ((format (printf, 2, 3)));
96++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
97+ #define gomp_vdebug(KIND, FMT, VALIST) \
98+ do { \
99+ if (__builtin_expect (gomp_debug_var, 0)) \
100+@@ -110,11 +118,11 @@ extern void gomp_debug (int, const char
101+ } while (0)
102+ extern void gomp_verror (const char *, va_list);
103+ extern void gomp_error (const char *, ...)
104+- __attribute__ ((format (printf, 1, 2)));
105++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
106+ extern void gomp_vfatal (const char *, va_list)
107+ __attribute__ ((noreturn));
108+ extern void gomp_fatal (const char *, ...)
109+- __attribute__ ((noreturn, format (printf, 1, 2)));
110++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
111+
112+ struct gomp_task;
113+ struct gomp_taskgroup;
plugins/gcc9/gcc9.patch+54−2
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Thu, 2 Feb 2017 02:05:50 +1100
8−Subject: [PATCH 1/2] allow native cpu detection when building with clang
8+Subject: [PATCH 1/3] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Fri, 6 Apr 2018 13:40:22 +1000
32−Subject: [PATCH 2/2] remove hard-coded mingw from include path
32+Subject: [PATCH 2/3] remove hard-coded mingw from include path
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -58,3 +58,55 @@ index 1111111..2222222 100644 · 22 unmodified lines
5858
5959 /* Output STRING, a string representing a filename, to FILE.
6060 We canonicalize it to be in Unix format (backslashes are replaced
61+
62+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
63+From: Liu Hao <lh_mouse@126.com>
64+Date: Wed, 6 May 2020 21:49:18 +0800
65+Subject: [PATCH 3/3] libgomp: Don't hard-code MS printf attributes
66+
67+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
68+
69+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
70+
71+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
72+index 1111111..2222222 100644
73+--- a/libgomp/libgomp.h
74++++ b/libgomp/libgomp.h
75+@@ -69,6 +69,14 @@
76+ # endif
77+ #endif
78+
79++#include <stdio.h>
80++#include <stdio.h>
81++#ifdef __MINGW_PRINTF_FORMAT
82++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
83++#else
84++#define PRINTF_FORMAT printf
85++#endif
86++
87+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
88+ # pragma GCC visibility push(hidden)
89+ #endif
90+@@ -110,7 +118,7 @@ extern void gomp_aligned_free (void *);
91+
92+ extern void gomp_vdebug (int, const char *, va_list);
93+ extern void gomp_debug (int, const char *, ...)
94+- __attribute__ ((format (printf, 2, 3)));
95++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
96+ #define gomp_vdebug(KIND, FMT, VALIST) \
97+ do { \
98+ if (__builtin_expect (gomp_debug_var, 0)) \
99+@@ -123,11 +131,11 @@ extern void gomp_debug (int, const char
100+ } while (0)
101+ extern void gomp_verror (const char *, va_list);
102+ extern void gomp_error (const char *, ...)
103+- __attribute__ ((format (printf, 1, 2)));
104++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
105+ extern void gomp_vfatal (const char *, va_list)
106+ __attribute__ ((noreturn));
107+ extern void gomp_fatal (const char *, ...)
108+- __attribute__ ((noreturn, format (printf, 1, 2)));
109++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
110+
111+ struct gomp_task;
112+ struct gomp_taskgroup;
src/gcc-1-fixes.patch+57−5
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. · 4 unmodified lines
55 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66 From: Tony Theodore <tonyt@logyst.com>
77 Date: Thu, 2 Feb 2017 02:05:50 +1100
8−Subject: [PATCH 1/5] allow native cpu detection when building with clang
8+Subject: [PATCH 1/6] allow native cpu detection when building with clang
99
1010 function was disabled for non-gcc5 in:
1111 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc
@@ -29,7 +29,7 @@ index 1111111..2222222 100644 · 17 unmodified lines
2929 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3030 From: Tony Theodore <tonyt@logyst.com>
3131 Date: Fri, 6 Apr 2018 13:40:22 +1000
32−Subject: [PATCH 2/5] remove hard-coded mingw from include path
32+Subject: [PATCH 2/6] remove hard-coded mingw from include path
3333
3434
3535 diff --git a/gcc/config.gcc b/gcc/config.gcc
@@ -62,7 +62,7 @@ index 1111111..2222222 100644 · 26 unmodified lines
6262 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
6363 From: Cameron Kaiser <classilla@floodgap.com>
6464 Date: Sat, 13 Oct 2018 18:59:18 -0700
65−Subject: [PATCH 3/5] fix gcc compile error on ppc64le
65+Subject: [PATCH 3/6] fix gcc compile error on ppc64le
6666
6767 https://gcc.gnu.org/viewcvs/gcc/branches/gcc-6-branch/libcpp/lex.c?view=log&pathrev=261621
6868
@@ -83,7 +83,7 @@ index 1111111..2222222 100644 · 14 unmodified lines
8383 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8484 From: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
8585 Date: Sun, 11 Nov 2018 17:44:43 +0000
86−Subject: [PATCH 4/5] Backport from mainline 2018-11-04 Uros Bizjak
86+Subject: [PATCH 4/6] Backport from mainline 2018-11-04 Uros Bizjak
8787 <ubizjak@gmail.com>
8888
8989 PR middle-end/58372
@@ -136,7 +136,7 @@ index 1111111..2222222 100644 · 46 unmodified lines
136136 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
137137 From: Tony Theodore <tonyt@logyst.com>
138138 Date: Sun, 31 May 2020 18:36:27 +1000
139−Subject: [PATCH 5/5] PR c++/66297, DR 1684 - literal class and constexpr
139+Subject: [PATCH 5/6] PR c++/66297, DR 1684 - literal class and constexpr
140140 member fns
141141
142142 taken from:
@@ -204,3 +204,55 @@ index 1111111..2222222 100644 · 61 unmodified lines
204204 }
205205 }
206206 else if (CLASSTYPE_VBASECLASSES (DECL_CONTEXT (fun)))
207+
208+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
209+From: Liu Hao <lh_mouse@126.com>
210+Date: Wed, 6 May 2020 21:49:18 +0800
211+Subject: [PATCH 6/6] libgomp: Don't hard-code MS printf attributes
212+
213+Source: https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
214+
215+Following discussion at https://www.spinics.net/lists/gcchelp/msg51246.html
216+
217+diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
218+index 1111111..2222222 100644
219+--- a/libgomp/libgomp.h
220++++ b/libgomp/libgomp.h
221+@@ -45,6 +45,14 @@
222+ #include <stdlib.h>
223+ #include <stdarg.h>
224+
225++#include <stdio.h>
226++#include <stdio.h>
227++#ifdef __MINGW_PRINTF_FORMAT
228++#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
229++#else
230++#define PRINTF_FORMAT printf
231++#endif
232++
233+ #ifdef HAVE_ATTRIBUTE_VISIBILITY
234+ # pragma GCC visibility push(hidden)
235+ #endif
236+@@ -541,7 +549,7 @@ extern void *gomp_realloc (void *, size_t);
237+
238+ extern void gomp_vdebug (int, const char *, va_list);
239+ extern void gomp_debug (int, const char *, ...)
240+- __attribute__ ((format (printf, 2, 3)));
241++ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
242+ #define gomp_vdebug(KIND, FMT, VALIST) \
243+ do { \
244+ if (__builtin_expect (gomp_debug_var, 0)) \
245+@@ -554,11 +562,11 @@ extern void gomp_debug (int, const char *, ...)
246+ } while (0)
247+ extern void gomp_verror (const char *, va_list);
248+ extern void gomp_error (const char *, ...)
249+- __attribute__ ((format (printf, 1, 2)));
250++ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
251+ extern void gomp_vfatal (const char *, va_list)
252+ __attribute__ ((noreturn));
253+ extern void gomp_fatal (const char *, ...)
254+- __attribute__ ((noreturn, format (printf, 1, 2)));
255++ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
256+
257+ /* iter.c */
258+
src/mingw-w64.mk+2−2
@@ -4,8 +4,8 @@ PKG := mingw-w64 · 3 unmodified lines
44 $(PKG)_WEBSITE := https://mingw-w64.sourceforge.io/
55 $(PKG)_DESCR := MinGW-w64 Runtime
66 $(PKG)_IGNORE :=
7−$(PKG)_VERSION := 7.0.0
8−$(PKG)_CHECKSUM := aa20dfff3596f08a7f427aab74315a6cb80c2b086b4a107ed35af02f9496b628
7+$(PKG)_VERSION := 8.0.0
8+$(PKG)_CHECKSUM := 44c740ea6ab3924bc3aa169bad11ad3c5766c5c8459e3126d44eabb8735a5762
99 $(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
1010 $(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
1111 $(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-release/$($(PKG)_FILE)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t