gcc: Update to 10.1.0. Disable plugins support due to linking fail with
"export ordinals too large"
This commit is contained in:
@@ -56,7 +56,7 @@ index 3dd0b7f..e2b8666 100644
|
||||
gmo.h \
|
||||
gettextP.h \
|
||||
hash-string.h \
|
||||
@@ -61,6 +62,7 @@ HEADERS = \
|
||||
@@ -62,6 +63,7 @@ HEADERS = \
|
||||
eval-plural.h \
|
||||
localcharset.h \
|
||||
relocatable.h \
|
||||
@@ -64,7 +64,7 @@ index 3dd0b7f..e2b8666 100644
|
||||
libgnuintl.h
|
||||
SOURCES = \
|
||||
bindtextdom.c \
|
||||
@@ -81,6 +83,8 @@ SOURCES = \
|
||||
@@ -82,6 +84,8 @@ SOURCES = \
|
||||
plural-exp.c \
|
||||
localcharset.c \
|
||||
relocatable.c \
|
||||
@@ -73,7 +73,7 @@ index 3dd0b7f..e2b8666 100644
|
||||
localename.c \
|
||||
log.c \
|
||||
osdep.c \
|
||||
@@ -104,6 +108,8 @@ OBJECTS = \
|
||||
@@ -105,6 +109,8 @@ OBJECTS = \
|
||||
plural-exp.o \
|
||||
localcharset.o \
|
||||
relocatable.o \
|
||||
@@ -82,7 +82,7 @@ index 3dd0b7f..e2b8666 100644
|
||||
localename.o \
|
||||
log.o \
|
||||
osdep.o \
|
||||
@@ -158,7 +164,7 @@ install-info install-dvi install-ps install-pdf install-html:
|
||||
@@ -165,7 +171,7 @@ install-info install-dvi install-ps install-pdf install-html:
|
||||
$(OBJECTS): config.h libintl.h
|
||||
bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
|
||||
dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
|
||||
|
||||
@@ -31,7 +31,7 @@ index ea2cc23..ac17272 100644
|
||||
/* Variable length record files on VMS will have a stat size that includes
|
||||
record control characters that won't be included in the read size. */
|
||||
#ifdef VMS
|
||||
@@ -198,6 +205,49 @@ static int pchf_save_compare (const void *e1, const void *e2);
|
||||
@@ -200,6 +207,49 @@ static int pchf_save_compare (const void *e1, const void *e2);
|
||||
static int pchf_compare (const void *d_p, const void *e_p);
|
||||
static bool check_file_against_entries (cpp_reader *, _cpp_file *, bool);
|
||||
|
||||
@@ -81,7 +81,7 @@ index ea2cc23..ac17272 100644
|
||||
/* Given a filename in FILE->PATH, with the empty string interpreted
|
||||
as <stdin>, open it.
|
||||
|
||||
@@ -227,6 +277,43 @@ open_file (_cpp_file *file)
|
||||
@@ -229,6 +279,43 @@ open_file (_cpp_file *file)
|
||||
}
|
||||
else
|
||||
file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY, 0666);
|
||||
|
||||
@@ -11,7 +11,7 @@ diff --git a/gcc/config.gcc b/gcc/config.gcc
|
||||
index c835734..4638567 100644
|
||||
--- a/gcc/config.gcc
|
||||
+++ b/gcc/config.gcc
|
||||
@@ -1699,7 +1699,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
|
||||
@@ -2169,7 +2169,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
|
||||
tmake_file="${tmake_file} i386/t-mingw-w32"
|
||||
;;
|
||||
esac
|
||||
@@ -20,7 +20,7 @@ index c835734..4638567 100644
|
||||
+ if test x$native_system_header_dir = x ; then
|
||||
+ native_system_header_dir=/mingw/include
|
||||
+ fi
|
||||
target_gtfiles="\$(srcdir)/config/i386/winnt.c"
|
||||
target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.c"
|
||||
extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
|
||||
case ${target} in
|
||||
--
|
||||
|
||||
@@ -30,7 +30,7 @@ diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
|
||||
index 4ac5f68..f875e7b 100644
|
||||
--- a/gcc/config/i386/mingw32.h
|
||||
+++ b/gcc/config/i386/mingw32.h
|
||||
@@ -140,7 +140,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
@@ -165,7 +165,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#define REAL_LIBGCC_SPEC \
|
||||
"%{mthreads:-lmingwthrd} -lmingw32 \
|
||||
" SHARED_LIBGCC_SPEC " \
|
||||
|
||||
@@ -14,7 +14,7 @@ diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am
|
||||
index 31eb986..f8ef020 100644
|
||||
--- a/libgfortran/Makefile.am
|
||||
+++ b/libgfortran/Makefile.am
|
||||
@@ -50,7 +50,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS)
|
||||
@@ -49,7 +49,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS)
|
||||
cafexeclib_LTLIBRARIES = libcaf_single.la
|
||||
cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)
|
||||
libcaf_single_la_SOURCES = caf/single.c
|
||||
@@ -27,7 +27,7 @@ diff --git a/libgfortran/Makefile.in b/libgfortran/Makefile.in
|
||||
index 0f60e6e..8473026 100644
|
||||
--- a/libgfortran/Makefile.in
|
||||
+++ b/libgfortran/Makefile.in
|
||||
@@ -615,7 +615,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS)
|
||||
@@ -738,7 +738,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS)
|
||||
cafexeclib_LTLIBRARIES = libcaf_single.la
|
||||
cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)
|
||||
libcaf_single_la_SOURCES = caf/single.c
|
||||
|
||||
@@ -25,7 +25,7 @@ index 9cd3fa7..9334f27 100644
|
||||
/* The Intel API is flexible enough that we must allow aliasing with other
|
||||
vector types, and their scalar components. */
|
||||
typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
|
||||
@@ -1245,6 +1249,10 @@ do { \
|
||||
@@ -1316,6 +1316,10 @@ do { \
|
||||
(row3) = __builtin_ia32_movhlps (__t3, __t2); \
|
||||
} while (0)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c
|
||||
index aa17378..631d9c4 100644
|
||||
--- a/gcc/config/i386/host-mingw32.c
|
||||
+++ b/gcc/config/i386/host-mingw32.c
|
||||
@@ -42,9 +42,6 @@ static size_t mingw32_gt_pch_alloc_granularity (void);
|
||||
@@ -44,9 +44,6 @@ static size_t mingw32_gt_pch_alloc_granularity (void);
|
||||
|
||||
static inline void w32_error(const char*, const char*, int, const char*);
|
||||
|
||||
@@ -35,7 +35,7 @@ index aa17378..631d9c4 100644
|
||||
/* Granularity for reserving address space. */
|
||||
static size_t va_granularity = 0x10000;
|
||||
|
||||
@@ -86,9 +83,6 @@ static void *
|
||||
@@ -85,9 +82,6 @@ static void *
|
||||
mingw32_gt_pch_get_address (size_t size, int)
|
||||
{
|
||||
void* res;
|
||||
@@ -45,7 +45,7 @@ index aa17378..631d9c4 100644
|
||||
|
||||
/* FIXME: We let system determine base by setting first arg to NULL.
|
||||
Allocating at top of available address space avoids unnecessary
|
||||
@@ -98,7 +92,7 @@ mingw32_gt_pch_get_address (size_t size, int)
|
||||
@@ -94,7 +88,7 @@ mingw32_gt_pch_get_address (size_t size, int)
|
||||
If we allocate at bottom we need to reserve the address as early
|
||||
as possible and at the same point in each invocation. */
|
||||
|
||||
@@ -54,7 +54,7 @@ index aa17378..631d9c4 100644
|
||||
MEM_RESERVE | MEM_TOP_DOWN,
|
||||
PAGE_NOACCESS);
|
||||
if (!res)
|
||||
@@ -148,7 +142,7 @@ mingw32_gt_pch_use_address (void *addr, size_t size, int fd,
|
||||
@@ -144,7 +138,7 @@ mingw32_gt_pch_use_address (void *addr, size_t size, int fd,
|
||||
|
||||
/* Offset must be also be a multiple of allocation granularity for
|
||||
this to work. We can't change the offset. */
|
||||
@@ -67,7 +67,7 @@ diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
|
||||
index 03fbe7d..3a5df8a 100644
|
||||
--- a/gcc/ggc-common.c
|
||||
+++ b/gcc/ggc-common.c
|
||||
@@ -603,7 +603,9 @@ gt_pch_restore (FILE *f)
|
||||
@@ -591,7 +591,9 @@ gt_pch_restore (FILE *f)
|
||||
size_t i;
|
||||
struct mmap_info mmi;
|
||||
int result;
|
||||
@@ -78,62 +78,62 @@ index 03fbe7d..3a5df8a 100644
|
||||
/* Delete any deletable objects. This makes ggc_pch_read much
|
||||
faster, as it can be sure that no GCable objects remain other
|
||||
than the ones just read in. */
|
||||
@@ -611,20 +613,24 @@ gt_pch_restore (FILE *f)
|
||||
@@ -601,20 +601,24 @@ gt_pch_restore (FILE *f)
|
||||
for (rti = *rt; rti->base != NULL; rti++)
|
||||
memset (rti->base, 0, rti->stride);
|
||||
|
||||
- /* Read in all the scalar variables. */
|
||||
+ /* We need to read tables after mapping, or fatal_error will
|
||||
+ segfault when gt_pch_use_address returns -1. Skip them for now. */
|
||||
+ segfault when gt_pch_use_address returns -1. Skip them for now. */
|
||||
+ pch_tabs_off = ftell(f);
|
||||
+
|
||||
+ /* Skip all the scalar variables. */
|
||||
for (rt = gt_pch_scalar_rtab; *rt; rt++)
|
||||
for (rti = *rt; rti->base != NULL; rti++)
|
||||
- if (fread (rti->base, rti->stride, 1, f) != 1)
|
||||
- fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
- fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+ if (fseek (f, rti->stride, SEEK_CUR) != 0)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
|
||||
- /* Read in all the global pointers, in 6 easy loops. */
|
||||
+ /* Skip all the global pointers. */
|
||||
+ /* Skip all the global pointers. */
|
||||
for (rt = gt_ggc_rtab; *rt; rt++)
|
||||
for (rti = *rt; rti->base != NULL; rti++)
|
||||
for (i = 0; i < rti->nelt; i++)
|
||||
- if (fread ((char *)rti->base + rti->stride * i,
|
||||
- sizeof (void *), 1, f) != 1)
|
||||
- fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
- fatal_error (input_location, "cannot read PCH file: %m");
|
||||
-
|
||||
+ if (fseek (f, sizeof (void *), SEEK_CUR) != 0)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+
|
||||
+ /* mmi still has to be read now. */
|
||||
+ /* mmi still has to be read now. */
|
||||
if (fread (&mmi, sizeof (mmi), 1, f) != 1)
|
||||
fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
fatal_error (input_location, "cannot read PCH file: %m");
|
||||
|
||||
@@ -635,12 +641,35 @@ gt_pch_restore (FILE *f)
|
||||
@@ -617,12 +629,35 @@ gt_pch_restore (FILE *f)
|
||||
if (result == 0)
|
||||
{
|
||||
if (fseek (f, mmi.offset, SEEK_SET) != 0
|
||||
- || fread (mmi.preferred_base, mmi.size, 1, f) != 1)
|
||||
- fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
- fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+ || fread (mmi.preferred_base, mmi.size, 1, f) != 1)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
}
|
||||
else if (fseek (f, mmi.offset + mmi.size, SEEK_SET) != 0)
|
||||
fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+
|
||||
+ /* File mapping done, read tables now. */
|
||||
fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+
|
||||
+ /* File mapping done, read tables now. */
|
||||
+ pch_data_off = ftell(f);
|
||||
+
|
||||
+
|
||||
+ if (fseek (f, pch_tabs_off, SEEK_SET) != 0)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
|
||||
+ /* Read in all the scalar variables. */
|
||||
+ for (rt = gt_pch_scalar_rtab; *rt; rt++)
|
||||
+ for (rti = *rt; rti->base != NULL; rti++)
|
||||
+ if (fread (rti->base, rti->stride, 1, f) != 1)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+
|
||||
+ /* Read in all the global pointers, in 6 easy loops. */
|
||||
+ for (rt = gt_ggc_rtab; *rt; rt++)
|
||||
@@ -141,10 +141,10 @@ index 03fbe7d..3a5df8a 100644
|
||||
+ for (i = 0; i < rti->nelt; i++)
|
||||
+ if (fread ((char *)rti->base + rti->stride * i,
|
||||
+ sizeof (void *), 1, f) != 1)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+
|
||||
+ if (fseek (f, pch_data_off, SEEK_SET) != 0)
|
||||
+ fatal_error (input_location, "can%'t read PCH file: %m");
|
||||
+ fatal_error (input_location, "cannot read PCH file: %m");
|
||||
+
|
||||
ggc_pch_read (f, mmi.preferred_base);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.
|
||||
index e1ca515..133807e 100644
|
||||
--- a/gcc/ada/gcc-interface/Makefile.in
|
||||
+++ b/gcc/ada/gcc-interface/Makefile.in
|
||||
@@ -2804,13 +2804,16 @@ gnatlib-shared-win32:
|
||||
@@ -753,13 +753,16 @@ gnatlib-shared-win32:
|
||||
$(PICFLAG_FOR_TARGET) \
|
||||
-o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
|
||||
$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/gcc/gcc.c-original 2019-05-31 12:16:26.175109000 +0200
|
||||
+++ b/gcc/gcc.c 2019-05-31 12:43:48.461954800 +0200
|
||||
@@ -6099,7 +6099,6 @@
|
||||
@@ -6129,7 +6129,6 @@
|
||||
int save_arg_going;
|
||||
int save_delete_this_arg;
|
||||
int save_this_is_output_file;
|
||||
@@ -8,7 +8,7 @@
|
||||
int save_input_from_pipe;
|
||||
int save_this_is_linker_script;
|
||||
const char *save_suffix_subst;
|
||||
@@ -6117,7 +6116,6 @@
|
||||
@@ -6145,7 +6146,6 @@
|
||||
save_arg_going = arg_going;
|
||||
save_delete_this_arg = delete_this_arg;
|
||||
save_this_is_output_file = this_is_output_file;
|
||||
@@ -16,16 +16,16 @@
|
||||
save_this_is_linker_script = this_is_linker_script;
|
||||
save_input_from_pipe = input_from_pipe;
|
||||
save_suffix_subst = suffix_subst;
|
||||
@@ -6148,13 +6146,15 @@
|
||||
@@ -6175,13 +6177,15 @@
|
||||
argbuf.address ());
|
||||
|
||||
|
||||
/* Pop the spec processing context. */
|
||||
+ const char *saved_library_file = this_is_library_file ? argbuf.address()[0] : NULL;
|
||||
argbuf.release ();
|
||||
argbuf = save_argbuf;
|
||||
+ if (saved_library_file)
|
||||
+ argbuf.safe_push (saved_library_file);
|
||||
|
||||
|
||||
arg_going = save_arg_going;
|
||||
delete_this_arg = save_delete_this_arg;
|
||||
this_is_output_file = save_this_is_output_file;
|
||||
@@ -33,9 +33,9 @@
|
||||
this_is_linker_script = save_this_is_linker_script;
|
||||
input_from_pipe = save_input_from_pipe;
|
||||
suffix_subst = save_suffix_subst;
|
||||
@@ -6226,8 +6226,9 @@
|
||||
@@ -6257,8 +6257,9 @@
|
||||
/* p now points to just past the end of the spec function expression. */
|
||||
|
||||
|
||||
funcval = eval_spec_function (func, args, soft_matched_part);
|
||||
- if (funcval != NULL && do_spec_1 (funcval, 0, NULL) < 0)
|
||||
+ if (funcval != NULL && this_is_library_file == 0 && do_spec_1 (funcval, 0, NULL) < 0)
|
||||
|
||||
@@ -59,7 +59,7 @@ diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
|
||||
index 15f7e119d18..07740c4c403 100644
|
||||
--- a/gcc/cgraphclones.c
|
||||
+++ b/gcc/cgraphclones.c
|
||||
@@ -524,7 +524,8 @@ static GTY(()) hash_map<const char *, unsigned> *clone_fn_ids;
|
||||
@@ -469,7 +469,8 @@ static GTY(()) hash_map<const char *, unsigned> *clone_fn_ids;
|
||||
each NAME) unspecified number. If clone numbering is not needed
|
||||
then the two argument clone_function_name should be used instead.
|
||||
Should not be called directly except for by
|
||||
@@ -69,7 +69,7 @@ index 15f7e119d18..07740c4c403 100644
|
||||
|
||||
tree
|
||||
clone_function_name_numbered (const char *name, const char *suffix)
|
||||
@@ -563,12 +564,23 @@ clone_function_name (const char *name, const char *suffix,
|
||||
@@ -509,12 +510,23 @@ clone_function_name (const char *name, const char *suffix,
|
||||
{
|
||||
size_t len = strlen (name);
|
||||
char *tmp_name, *prefix;
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
From 05b0bb43124b041da360ba9adcbaab8430be6d18 Mon Sep 17 00:00:00 2001
|
||||
From: Liu Hao <lh_mouse@126.com>
|
||||
Date: Wed, 6 May 2020 21:49:18 +0800
|
||||
Subject: [PATCH] libgomp: Don't hard-code MS printf attributes
|
||||
|
||||
---
|
||||
libgomp/libgomp.h | 13 ++++++++++---
|
||||
1 file changed, 10 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
|
||||
index c98c1452bd4..0cc8443f6c2 100644
|
||||
--- a/libgomp/libgomp.h
|
||||
+++ b/libgomp/libgomp.h
|
||||
@@ -69,6 +69,13 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
+#include <stdio.h>
|
||||
+#ifdef __MINGW_PRINTF_FORMAT
|
||||
+#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
|
||||
+#else
|
||||
+#define PRINTF_FORMAT printf
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_ATTRIBUTE_VISIBILITY
|
||||
# pragma GCC visibility push(hidden)
|
||||
#endif
|
||||
@@ -180,7 +187,7 @@ extern void gomp_aligned_free (void *);
|
||||
|
||||
extern void gomp_vdebug (int, const char *, va_list);
|
||||
extern void gomp_debug (int, const char *, ...)
|
||||
- __attribute__ ((format (printf, 2, 3)));
|
||||
+ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
|
||||
#define gomp_vdebug(KIND, FMT, VALIST) \
|
||||
do { \
|
||||
if (__builtin_expect (gomp_debug_var, 0)) \
|
||||
@@ -193,11 +200,11 @@ extern void gomp_debug (int, const char *, ...)
|
||||
} while (0)
|
||||
extern void gomp_verror (const char *, va_list);
|
||||
extern void gomp_error (const char *, ...)
|
||||
- __attribute__ ((format (printf, 1, 2)));
|
||||
+ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
|
||||
extern void gomp_vfatal (const char *, va_list)
|
||||
__attribute__ ((noreturn));
|
||||
extern void gomp_fatal (const char *, ...)
|
||||
- __attribute__ ((noreturn, format (printf, 1, 2)));
|
||||
+ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
|
||||
|
||||
struct gomp_task;
|
||||
struct gomp_taskgroup;
|
||||
--
|
||||
2.26.2
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
--- a/gcc/diagnostic-color.c 2018-01-03 16:03:58.000000000 +0600
|
||||
+++ b/gcc/diagnostic-color.c 2018-08-02 16:33:22.679146900 +0600
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# include <windows.h>
|
||||
@@ -8,7 +8,7 @@
|
||||
#endif
|
||||
|
||||
#include "color-macros.h"
|
||||
@@ -208,10 +209,42 @@
|
||||
@@ -210,10 +211,42 @@
|
||||
to care about it either... */
|
||||
HANDLE h;
|
||||
DWORD m;
|
||||
|
||||
@@ -17,11 +17,11 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
$([[ "$_enable_objc" == "yes" ]] && echo "${MINGW_PACKAGE_PREFIX}-${_realname}-objc")
|
||||
)
|
||||
#_snapshot=20181214
|
||||
pkgver=9.3.0
|
||||
pkgver=10.1.0
|
||||
#_majorver=${pkgver:0:1}
|
||||
#_sourcedir=${_realname}-${_majorver}-${_snapshot}
|
||||
_sourcedir=${_realname}-${pkgver}
|
||||
pkgrel=2
|
||||
pkgrel=1
|
||||
pkgdesc="GCC for the MinGW-w64"
|
||||
arch=('any')
|
||||
url="https://gcc.gnu.org"
|
||||
@@ -39,7 +39,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
"${MINGW_PACKAGE_PREFIX}-mpfr"
|
||||
"${MINGW_PACKAGE_PREFIX}-windows-default-manifest"
|
||||
"${MINGW_PACKAGE_PREFIX}-winpthreads"
|
||||
"${MINGW_PACKAGE_PREFIX}-zlib")
|
||||
"${MINGW_PACKAGE_PREFIX}-zlib"
|
||||
"${MINGW_PACKAGE_PREFIX}-zstd")
|
||||
#checkdepends=('dejagnu')
|
||||
optdepends=()
|
||||
options=('staticlibs' '!emptydirs') # '!strip' 'debug')
|
||||
@@ -58,25 +59,27 @@ source=("https://ftp.gnu.org/gnu/gcc/${_realname}-${pkgver%%+*}/${_realname}-${p
|
||||
0011-Enable-shared-gnat-implib.patch
|
||||
0012-Handle-spaces-in-path-for-default-manifest.patch
|
||||
0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch
|
||||
0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
|
||||
0130-libstdc++-in-out.patch
|
||||
0140-gcc-8.2.0-diagnostic-color.patch)
|
||||
sha256sums=('71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1'
|
||||
sha256sums=('b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2'
|
||||
'SKIP'
|
||||
'bce81824fc89e5e62cca350de4c17a27e27a18a1a1ad5ca3492aec1fc5af3234'
|
||||
'2dd7498bcb25b41afcc458696386b456ee4ff440bf395519a23d1f945ba15a41'
|
||||
'6033acda690786397059536787a6577e1a9f2b39f8a66276821917066094f43c'
|
||||
'1247e81571c908548b4d9aaa3df1ad8fd73aad7b81e7eafea12d53bbada70e94'
|
||||
'5b8ab5a54ebdd10c9802ea431b935ff4ba225eec6ca92824cfddfcf2ee8ac910'
|
||||
'388f423a67e4be6f547ca7e340ff8ee4c78b1ed83f3fd698daa409e309911807'
|
||||
'86fc77d5a6c137a9aca65ad6ba56653fb41b05636b763ce2c0b0b14d617c9de4'
|
||||
'd1e10cd2ef5594c34acead334bb93af500e00699ba673edc8916da22a572677d'
|
||||
'bd1c201febdf292570b0da9dcc066a237916ab3166dce3610487814f131517e5'
|
||||
'7f5fc74961ec0face6c4c56d3fc3613c38c5133bb68648191065bbf597f3e906'
|
||||
'3629446c0039d9061cfedcb6d7a7589279588bb4601c7ce233546d357bd4be34'
|
||||
'ec6800816632234afc35ce40542a6aab3ee76e8514a7d0cb4171fd874353ecd7'
|
||||
'0eaee0e1201f4f85ea20756432a9d51531e0e859f6f121276684e2b63b2ee315'
|
||||
'0decbbebda7ceac91da5d3dec9b7330f406a4358fa150560f08ff6f54739035f'
|
||||
'8faff8e503a617f283270f411399a8bcacda3ab62b4072dedf117e108af4844a'
|
||||
'e427297a118c47d2e71cb05dd9a496e9ada497917721c16918548ee2f13ad709'
|
||||
'2321c7dce29a600477e481d16d847f05dc8c6d6461ee1eba7814c5bf62c2ef95'
|
||||
'a526cfab91a1499be92c824c7f2185a013a38dbdfbeabe63ecbe84451e07b021'
|
||||
'e467f0ac68b349de826c79b00a45c5ad9e7c5a55d06b9b9fa7afd94c597f6376')
|
||||
'2e4f7d0ef739aec8986eb06a2baadee552ebc2e8be661c39a448e93515179eb5'
|
||||
'513a824ee500d063f09ec920a9ad317a3a117e5468bf201aaf3f70dd0000e769'
|
||||
'ec58aafba0174313451c282339bbd67ed0b11bca034c29023e0138b61441cf71'
|
||||
'3402f11c3edb3a2b0f27f7159c476879e1e6cddb05ac0327968d89ea245044c7'
|
||||
'11dd5388a1e1c0a2bc8bc3824726598784b9b9e0896a3d77950ba6a4569f1128'
|
||||
'21e31addcf13bc6fa6650b02ed0f2e195a1226260ae48c536840cc9230de2cfc'
|
||||
'276ecc392c777d4b17d771a987e80dca50ff25d8f65671d5de139be73997064b'
|
||||
'441d63d95622ffcc2fa5dd688aecad20d2ab16d7d275c567865a754e1d3d4b7a'
|
||||
'5240a9e731b45c17a164066c7eb193c1fbee9fd8d9a2a5afa2edbcde9510da47')
|
||||
|
||||
# Helper macros to help make tasks easier #
|
||||
apply_patch_with_msg() {
|
||||
@@ -115,7 +118,8 @@ prepare() {
|
||||
0010-Fix-using-large-PCH.patch \
|
||||
0011-Enable-shared-gnat-implib.patch \
|
||||
0012-Handle-spaces-in-path-for-default-manifest.patch \
|
||||
0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch
|
||||
0014-gcc-9-branch-clone_function_name_1-Retain-any-stdcall-suffix.patch \
|
||||
0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch
|
||||
|
||||
apply_patch_with_msg \
|
||||
0130-libstdc++-in-out.patch
|
||||
@@ -198,7 +202,7 @@ build() {
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--disable-symvers \
|
||||
--enable-plugin \
|
||||
--disable-plugin \
|
||||
--with-libiconv \
|
||||
--with-system-zlib \
|
||||
--with-{gmp,mpfr,mpc,isl}=${MINGW_PREFIX} \
|
||||
@@ -269,7 +273,8 @@ package_mingw-w64-gcc() {
|
||||
"${MINGW_PACKAGE_PREFIX}-${_realname}-libs=${pkgver}-${pkgrel}"
|
||||
"${MINGW_PACKAGE_PREFIX}-windows-default-manifest"
|
||||
"${MINGW_PACKAGE_PREFIX}-winpthreads"
|
||||
"${MINGW_PACKAGE_PREFIX}-zlib")
|
||||
"${MINGW_PACKAGE_PREFIX}-zlib"
|
||||
"${MINGW_PACKAGE_PREFIX}-zstd")
|
||||
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}-base")
|
||||
conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}-base")
|
||||
|
||||
@@ -300,7 +305,7 @@ package_mingw-w64-gcc() {
|
||||
cp -r lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/include/ssp ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/include/
|
||||
cp -r lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/include-fixed ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
cp -r lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/install-tools ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
cp -r lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/plugin ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
#cp -r lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/plugin ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
cp lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/cc1.exe ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
cp lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/collect2.exe ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
cp lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/crt*.o ${pkgdir}${MINGW_PREFIX}/lib/gcc/${MINGW_CHOST}/${pkgver%%+*}/
|
||||
|
||||
Reference in New Issue
Block a user