From ec854bf05fe866a10de330e05ab7cfdb94fd1fe1 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Mon, 7 May 2018 12:32:15 +0000 Subject: [PATCH] core/gcc to 8.1.0-1 --- core/gcc/PKGBUILD | 16 +++----- core/gcc/Unlink-the-response-file.patch | 54 ------------------------- core/gcc/bz84080.patch | 27 ------------- core/gcc/pr66035.patch | 48 ---------------------- 4 files changed, 5 insertions(+), 140 deletions(-) delete mode 100644 core/gcc/Unlink-the-response-file.patch delete mode 100644 core/gcc/bz84080.patch delete mode 100644 core/gcc/pr66035.patch diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index 7a1f9722f..e894e2913 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -16,7 +16,7 @@ noautobuild=1 pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go) -pkgver=7.3.1+20180406 +pkgver=8.1.0 _majorver=${pkgver:0:1} _islver=0.18 pkgrel=1 @@ -28,20 +28,17 @@ makedepends=(binutils libmpc doxygen) makedepends=(binutils libmpc doxygen python) checkdepends=(dejagnu inetutils) options=(!emptydirs !distcc) -#source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} -source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig} +#source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig} +source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2 c89 c99 - bz84080.patch 0001-ARMv5-disable-LDRD-STRD.patch) validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org 13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com -sha256sums=('41675861b7fdb4ebfb5cbbe1bce456d4e4061ce4df95096075756eaae3263e00' - 'SKIP' +sha256sums=('1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153' '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b' 'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931' '2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a' - 'bce05807443558db55f0d6b4dae37a678ea1bb3388b541c876fe3d110e3717e7' '31e24baa9eee826d7d77dbcf8f1a6a44c92f771e52d21677acb8d76fac7ae204') _svnrev=259195 @@ -70,9 +67,6 @@ prepare() { [[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc cd gcc - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84080 - patch -p0 -i "$srcdir/bz84080.patch" - # link isl for in-tree build ln -s ../isl-${_islver} isl @@ -157,7 +151,7 @@ package_gcc-libs() { groups=(base) depends=('glibc>=2.27') options+=(!strip) - provides=(libgo.so libgfortran.so) + provides=(libgo.so libgfortran.so libubsan.so libasan.so) cd gcc-build make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared diff --git a/core/gcc/Unlink-the-response-file.patch b/core/gcc/Unlink-the-response-file.patch deleted file mode 100644 index 55c95a797..000000000 --- a/core/gcc/Unlink-the-response-file.patch +++ /dev/null @@ -1,54 +0,0 @@ -From f591a95d1532ac7791c146a8e55ba3a32b3e476f Mon Sep 17 00:00:00 2001 -From: ebotcazou -Date: Tue, 23 Jun 2015 20:48:07 +0000 -Subject: [PATCH] * collect-utils.c (collect_wait): Unlink the - response file here instead of... (do_wait): ...here. - (utils_cleanup): ...and here. - -git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224858 138bc75d-0d04-0410-961f-82ee72b054a4 ---- - gcc/ChangeLog | 7 +++++++ - gcc/collect-utils.c | 14 ++++++-------- - 2 files changed, 13 insertions(+), 8 deletions(-) - -diff --git a/gcc/collect-utils.c b/gcc/collect-utils.c -index 6bbe9eb..517a075 100644 ---- a/gcc/collect-utils.c -+++ b/gcc/collect-utils.c -@@ -68,6 +68,12 @@ collect_wait (const char *prog, struct pex_obj *pex) - fatal_error (input_location, "can't get program status: %m"); - pex_free (pex); - -+ if (response_file && !save_temps) -+ { -+ unlink (response_file); -+ response_file = NULL; -+ } -+ - if (status) - { - if (WIFSIGNALED (status)) -@@ -90,12 +96,6 @@ do_wait (const char *prog, struct pex_obj *pex) - int ret = collect_wait (prog, pex); - if (ret != 0) - fatal_error (input_location, "%s returned %d exit status", prog, ret); -- -- if (response_file && !save_temps) -- { -- unlink (response_file); -- response_file = NULL; -- } - } - - -@@ -224,7 +224,5 @@ utils_cleanup (bool from_signal) - calls to maybe_unlink fails. */ - cleanup_done = true; - -- if (response_file) -- maybe_unlink (response_file); - tool_cleanup (from_signal); - } --- -2.7.1 - diff --git a/core/gcc/bz84080.patch b/core/gcc/bz84080.patch deleted file mode 100644 index 8999f6e6d..000000000 --- a/core/gcc/bz84080.patch +++ /dev/null @@ -1,27 +0,0 @@ -Index: gcc/testsuite/g++.dg/cpp1y/auto-fn47.C -=================================================================== ---- gcc/testsuite/g++.dg/cpp1y/auto-fn47.C (nonexistent) -+++ gcc/testsuite/g++.dg/cpp1y/auto-fn47.C (revision 257630) -@@ -0,0 +1,6 @@ -+// PR c++/84080 -+// { dg-do compile { target c++14 } } -+ -+template T foo(); -+ -+template <> auto foo<0>() { return 42; } // { dg-error "does not match" } -Index: gcc/cp/pt.c -=================================================================== ---- gcc/cp/pt.c (revision 257629) -+++ gcc/cp/pt.c (revision 257630) -@@ -2203,6 +2203,11 @@ - specialize TMPL will produce DECL. */ - continue; - -+ if (uses_template_parms (targs)) -+ /* We deduced something involving 'auto', which isn't a valid -+ template argument. */ -+ continue; -+ - /* Remove, from the set of candidates, all those functions - whose constraints are not satisfied. */ - if (flag_concepts && !constraints_satisfied_p (fn, targs)) diff --git a/core/gcc/pr66035.patch b/core/gcc/pr66035.patch deleted file mode 100644 index c51822ca1..000000000 --- a/core/gcc/pr66035.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- a/gcc/fortran/trans-expr.c -+++ a/gcc/fortran/trans-expr.c -@@ -6897,6 +6897,30 @@ alloc_scalar_allocatable_for_subcomponent_assignment (stmtblock_t *block, - TREE_TYPE (tmp), tmp, - fold_convert (TREE_TYPE (tmp), size)); - } -+ else if (cm->ts.type == BT_CLASS) -+ { -+ gcc_assert (expr2->ts.type == BT_CLASS || expr2->ts.type == BT_DERIVED); -+ if (expr2->ts.type == BT_DERIVED) -+ { -+ tmp = gfc_get_symbol_decl (gfc_find_vtab (&expr2->ts)); -+ tmp = gfc_build_addr_expr (NULL_TREE, tmp); -+ size = fold_convert (size_type_node, gfc_vptr_size_get (tmp)); -+ } -+ else -+ { -+ gfc_expr *e2vtab; -+ gfc_se se; -+ e2vtab = gfc_find_and_cut_at_last_class_ref (expr2); -+ gfc_add_vptr_component (e2vtab); -+ gfc_add_size_component (e2vtab); -+ gfc_init_se (&se, NULL); -+ gfc_conv_expr (&se, e2vtab); -+ gfc_add_block_to_block (block, &se.pre); -+ size = fold_convert (size_type_node, se.expr); -+ gfc_free_expr (e2vtab); -+ } -+ size_in_bytes = size; -+ } - else - { - /* Otherwise use the length in bytes of the rhs. */ -@@ -7068,6 +7092,14 @@ gfc_trans_subcomponent_assign (tree dest, gfc_component * cm, gfc_expr * expr, - tmp = gfc_build_memcpy_call (tmp, se.expr, size); - gfc_add_expr_to_block (&block, tmp); - } -+ else if (cm->ts.type == BT_CLASS && expr->ts.type == BT_CLASS) -+ { -+ tmp = gfc_copy_class_to_class (se.expr, dest, integer_one_node, -+ CLASS_DATA (cm)->attr.unlimited_polymorphic); -+ gfc_add_expr_to_block (&block, tmp); -+ gfc_add_modify (&block, gfc_class_vptr_get (dest), -+ gfc_class_vptr_get (se.expr)); -+ } - else - gfc_add_modify (&block, tmp, - fold_convert (TREE_TYPE (tmp), se.expr));