diff options
author | wiz <wiz@pkgsrc.org> | 2020-04-08 06:39:57 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-04-08 06:39:57 +0000 |
commit | bda40a2cfcbd0111e03b34a385c688bded960561 (patch) | |
tree | c565791f7a8117552f7d3f8b463775179254c9a9 /lang/gcc8/patches | |
parent | a4dbd3d2bcd311817d06fbd05f71069dfc8bd7cd (diff) | |
download | pkgsrc-bda40a2cfcbd0111e03b34a385c688bded960561.tar.gz |
gcc8*: update to 8.4.0
Changes not found. ~ one year of bug fixes on top of 8.3.0.
Diffstat (limited to 'lang/gcc8/patches')
-rw-r--r-- | lang/gcc8/patches/patch-fixincludes_fixincl.x | 65 | ||||
-rw-r--r-- | lang/gcc8/patches/patch-fixincludes_inclhack.def | 12 | ||||
-rw-r--r-- | lang/gcc8/patches/patch-gcc_config_netbsd-protos.h | 12 | ||||
-rw-r--r-- | lang/gcc8/patches/patch-gcc_config_t-netbsd | 9 | ||||
-rw-r--r-- | lang/gcc8/patches/patch-gcc_gimplify.c | 18 | ||||
-rw-r--r-- | lang/gcc8/patches/patch-libstdc++-v3_libsupc++_new__opa.cc | 10 |
6 files changed, 87 insertions, 39 deletions
diff --git a/lang/gcc8/patches/patch-fixincludes_fixincl.x b/lang/gcc8/patches/patch-fixincludes_fixincl.x index 0ec5e1592d3..7fe3a1dcf6c 100644 --- a/lang/gcc8/patches/patch-fixincludes_fixincl.x +++ b/lang/gcc8/patches/patch-fixincludes_fixincl.x @@ -1,18 +1,41 @@ -$NetBSD: patch-fixincludes_fixincl.x,v 1.1 2019/10/19 21:20:38 minskim Exp $ +$NetBSD: patch-fixincludes_fixincl.x,v 1.2 2020/04/08 06:39:57 wiz Exp $ A workaround for Catalina SDK bug from https://github.com/Homebrew/homebrew-core/pull/44762 ---- fixincludes/fixincl.x.orig 2018-02-22 08:12:26.000000000 -0800 -+++ fixincludes/fixincl.x 2019-10-18 18:16:11.000000000 -0700 -@@ -2584,6 +2584,48 @@ +--- fixincludes/fixincl.x.orig 2020-03-04 08:29:59.000000000 +0000 ++++ fixincludes/fixincl.x +@@ -2,11 +2,11 @@ + * + * DO NOT EDIT THIS FILE (fixincl.x) + * +- * It has been AutoGen-ed January 1, 2020 at 12:04:04 PM by AutoGen 5.18.16 ++ * It has been AutoGen-ed April 8, 2020 at 05:08:04 AM by AutoGen 5.18.10 + * From the definitions inclhack.def + * and the template file fixincl + */ +-/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Jan 1 12:04:05 EST 2020 ++/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Apr 8 05:08:04 GMT 2020 + * + * You must regenerate it. Use the ./genfixes script. + * +@@ -15,7 +15,7 @@ + * certain ANSI-incompatible system header files which are fixed to work + * correctly with ANSI C and placed in a directory that GNU C will search. + * +- * This file contains 255 fixup descriptions. ++ * This file contains 256 fixup descriptions. + * + * See README for more information. + * +@@ -2589,6 +2589,48 @@ extern \"C\" {\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * + * Description of Darwin_Availability fix + */ +tSCC zDarwin_AvailabilityName[] = -+ "darwin_availability"; ++ "darwin_availability"; + +/* + * File name selection pattern @@ -51,38 +74,38 @@ https://github.com/Homebrew/homebrew-core/pull/44762 + +/* * * * * * * * * * * * * * * * * * * * * * * * * * + * - * Description of Darwin_9_Long_Double_Funcs_2 fix + * Description of Darwin_Availabilityinternal fix */ - tSCC zDarwin_9_Long_Double_Funcs_2Name[] = -@@ -10099,9 +10141,9 @@ + tSCC zDarwin_AvailabilityinternalName[] = +@@ -10356,9 +10398,9 @@ static const char* apzX11_SprintfPatch[] * * List of all fixes */ --#define REGEX_COUNT 287 -+#define REGEX_COUNT 288 +-#define REGEX_COUNT 294 ++#define REGEX_COUNT 295 #define MACH_LIST_SIZE_LIMIT 187 --#define FIX_COUNT 249 -+#define FIX_COUNT 250 +-#define FIX_COUNT 255 ++#define FIX_COUNT 256 /* * Enumerate the fixes -@@ -10168,6 +10210,7 @@ +@@ -10425,6 +10467,7 @@ typedef enum { + CTRL_QUOTES_DEF_FIXIDX, CTRL_QUOTES_USE_FIXIDX, CXX_UNREADY_FIXIDX, - DARWIN_AVAILABILITYINTERNAL_FIXIDX, + DARWIN_AVAILABILITY_FIXIDX, + DARWIN_AVAILABILITYINTERNAL_FIXIDX, DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX, DARWIN_EXTERNC_FIXIDX, - DARWIN_GCC4_BREAKAGE_FIXIDX, -@@ -10664,6 +10707,11 @@ - DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, - aDarwin_AvailabilityinternalTests, apzDarwin_AvailabilityinternalPatch, 0 }, +@@ -10927,6 +10970,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = { + CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, + { zDarwin_AvailabilityName, zDarwin_AvailabilityList, + apzDarwin_AvailabilityMachs, + DARWIN_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + aDarwin_AvailabilityTests, apzDarwin_AvailabilityPatch, 0 }, + - { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List, - apzDarwin_9_Long_Double_Funcs_2Machs, - DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + { zDarwin_AvailabilityinternalName, zDarwin_AvailabilityinternalList, + apzDarwin_AvailabilityinternalMachs, + DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, diff --git a/lang/gcc8/patches/patch-fixincludes_inclhack.def b/lang/gcc8/patches/patch-fixincludes_inclhack.def index f4f35b113bf..c6cb3f4dde1 100644 --- a/lang/gcc8/patches/patch-fixincludes_inclhack.def +++ b/lang/gcc8/patches/patch-fixincludes_inclhack.def @@ -1,11 +1,11 @@ -$NetBSD: patch-fixincludes_inclhack.def,v 1.1 2019/10/19 21:20:38 minskim Exp $ +$NetBSD: patch-fixincludes_inclhack.def,v 1.2 2020/04/08 06:39:57 wiz Exp $ A workaround for Catalina SDK bug from https://github.com/Homebrew/homebrew-core/pull/44762 ---- fixincludes/inclhack.def.orig 2018-02-22 08:12:26.000000000 -0800 -+++ fixincludes/inclhack.def 2019-10-18 18:17:01.000000000 -0700 -@@ -1268,6 +1268,28 @@ +--- fixincludes/inclhack.def.orig 2020-03-04 08:29:59.000000000 +0000 ++++ fixincludes/inclhack.def +@@ -1269,6 +1269,28 @@ fix = { }; /* @@ -31,6 +31,6 @@ https://github.com/Homebrew/homebrew-core/pull/44762 +}; + +/* - * For the AAB_darwin7_9_long_double_funcs fix to be useful, - * you have to not use "" includes. + * macOS 10.12 <AvailabilityInternal.h> uses __attribute__((availability)) + * unconditionally. */ diff --git a/lang/gcc8/patches/patch-gcc_config_netbsd-protos.h b/lang/gcc8/patches/patch-gcc_config_netbsd-protos.h index 963ac8333ff..c791b845289 100644 --- a/lang/gcc8/patches/patch-gcc_config_netbsd-protos.h +++ b/lang/gcc8/patches/patch-gcc_config_netbsd-protos.h @@ -1,9 +1,9 @@ -$NetBSD: patch-gcc_config_netbsd-protos.h,v 1.1 2018/05/05 04:08:36 maya Exp $ +$NetBSD: patch-gcc_config_netbsd-protos.h,v 1.2 2020/04/08 06:39:57 wiz Exp $ ---- /dev/null 2014-12-15 07:13:57.000000000 +0000 +--- gcc/config/netbsd-protos.h.orig 2020-03-04 08:30:00.000000000 +0000 +++ gcc/config/netbsd-protos.h -@@ -0,0 +1,29 @@ -+/* Prototypes. +@@ -1,4 +1,33 @@ + /* Prototypes. + Copyright (C) 2001-2014 Free Software Foundation, Inc. + +This file is part of GCC. @@ -32,3 +32,7 @@ $NetBSD: patch-gcc_config_netbsd-protos.h,v 1.1 2018/05/05 04:08:36 maya Exp $ +void netbsd_patch_builtins (void); + +#endif /* _NETBSD_PROTOS_H_ */ ++/* Prototypes. + Copyright (C) 2017-2018 Free Software Foundation, Inc. + + This file is part of GCC. diff --git a/lang/gcc8/patches/patch-gcc_config_t-netbsd b/lang/gcc8/patches/patch-gcc_config_t-netbsd index b087f469e5b..8991049df8c 100644 --- a/lang/gcc8/patches/patch-gcc_config_t-netbsd +++ b/lang/gcc8/patches/patch-gcc_config_t-netbsd @@ -1,8 +1,8 @@ -$NetBSD: patch-gcc_config_t-netbsd,v 1.1 2018/05/05 04:08:36 maya Exp $ +$NetBSD: patch-gcc_config_t-netbsd,v 1.2 2020/04/08 06:39:57 wiz Exp $ ---- /dev/null 2014-12-16 20:23:05.000000000 +0000 +--- gcc/config/t-netbsd.orig 2020-03-04 08:30:00.000000000 +0000 +++ gcc/config/t-netbsd -@@ -0,0 +1,23 @@ +@@ -1,3 +1,26 @@ +# Copyright (C) 2002-2014 Free Software Foundation, Inc. +# +# This file is part of GCC. @@ -26,3 +26,6 @@ $NetBSD: patch-gcc_config_t-netbsd,v 1.1 2018/05/05 04:08:36 maya Exp $ + $(COMPILE) $< + $(POSTCOMPILE) + + # Copyright (C) 2017-2018 Free Software Foundation, Inc. + # + # This file is part of GCC. diff --git a/lang/gcc8/patches/patch-gcc_gimplify.c b/lang/gcc8/patches/patch-gcc_gimplify.c new file mode 100644 index 00000000000..2c03d67ddc1 --- /dev/null +++ b/lang/gcc8/patches/patch-gcc_gimplify.c @@ -0,0 +1,18 @@ +$NetBSD: patch-gcc_gimplify.c,v 1.1 2020/04/08 06:39:57 wiz Exp $ + +Fix -fstack-check on NetBSD. +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479 + +--- gcc/gimplify.c.orig 2019-02-07 14:44:31.000000000 +0000 ++++ gcc/gimplify.c +@@ -6065,7 +6065,9 @@ gimplify_addr_expr (tree *expr_p, gimple + + /* For various reasons, the gimplification of the expression + may have made a new INDIRECT_REF. */ +- if (TREE_CODE (op0) == INDIRECT_REF) ++ if (TREE_CODE (op0) == INDIRECT_REF ++ || (TREE_CODE (op0) == MEM_REF ++ && integer_zerop (TREE_OPERAND (op0, 1)))) + goto do_indirect_ref; + + mark_addressable (TREE_OPERAND (expr, 0)); diff --git a/lang/gcc8/patches/patch-libstdc++-v3_libsupc++_new__opa.cc b/lang/gcc8/patches/patch-libstdc++-v3_libsupc++_new__opa.cc index 94bd76f9e5f..278453115d9 100644 --- a/lang/gcc8/patches/patch-libstdc++-v3_libsupc++_new__opa.cc +++ b/lang/gcc8/patches/patch-libstdc++-v3_libsupc++_new__opa.cc @@ -1,12 +1,12 @@ -$NetBSD: patch-libstdc++-v3_libsupc++_new__opa.cc,v 1.2 2019/05/31 09:23:57 kamil Exp $ +$NetBSD: patch-libstdc++-v3_libsupc++_new__opa.cc,v 1.3 2020/04/08 06:39:57 wiz Exp $ Ensure we can find SunOS std::aligned_alloc if using it. ---- libstdc++-v3/libsupc++/new_opa.cc.orig 2018-08-08 15:33:36.000000000 +0000 +--- libstdc++-v3/libsupc++/new_opa.cc.orig 2020-03-04 08:30:03.000000000 +0000 +++ libstdc++-v3/libsupc++/new_opa.cc -@@ -42,6 +42,10 @@ extern "C" void *memalign(std::size_t bo - using std::new_handler; - using std::bad_alloc; +@@ -57,6 +57,10 @@ extern "C" + } + #endif +#if defined(__sun) && _GLIBCXX_HAVE_ALIGNED_ALLOC +using std::aligned_alloc; |