mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
core/gcc to 8.1.0-1
This commit is contained in:
parent
045d60f252
commit
ec854bf05f
4 changed files with 5 additions and 140 deletions
|
@ -16,7 +16,7 @@
|
||||||
noautobuild=1
|
noautobuild=1
|
||||||
|
|
||||||
pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go)
|
pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go)
|
||||||
pkgver=7.3.1+20180406
|
pkgver=8.1.0
|
||||||
_majorver=${pkgver:0:1}
|
_majorver=${pkgver:0:1}
|
||||||
_islver=0.18
|
_islver=0.18
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
|
@ -28,20 +28,17 @@ makedepends=(binutils libmpc doxygen)
|
||||||
makedepends=(binutils libmpc doxygen python)
|
makedepends=(binutils libmpc doxygen python)
|
||||||
checkdepends=(dejagnu inetutils)
|
checkdepends=(dejagnu inetutils)
|
||||||
options=(!emptydirs !distcc)
|
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
|
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
|
||||||
c89 c99
|
c89 c99
|
||||||
bz84080.patch
|
|
||||||
0001-ARMv5-disable-LDRD-STRD.patch)
|
0001-ARMv5-disable-LDRD-STRD.patch)
|
||||||
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
|
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
|
||||||
13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com
|
13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com
|
||||||
sha256sums=('41675861b7fdb4ebfb5cbbe1bce456d4e4061ce4df95096075756eaae3263e00'
|
sha256sums=('1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153'
|
||||||
'SKIP'
|
|
||||||
'6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
|
'6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
|
||||||
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
|
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
|
||||||
'2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a'
|
'2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a'
|
||||||
'bce05807443558db55f0d6b4dae37a678ea1bb3388b541c876fe3d110e3717e7'
|
|
||||||
'31e24baa9eee826d7d77dbcf8f1a6a44c92f771e52d21677acb8d76fac7ae204')
|
'31e24baa9eee826d7d77dbcf8f1a6a44c92f771e52d21677acb8d76fac7ae204')
|
||||||
|
|
||||||
_svnrev=259195
|
_svnrev=259195
|
||||||
|
@ -70,9 +67,6 @@ prepare() {
|
||||||
[[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc
|
[[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc
|
||||||
cd 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
|
# link isl for in-tree build
|
||||||
ln -s ../isl-${_islver} isl
|
ln -s ../isl-${_islver} isl
|
||||||
|
|
||||||
|
@ -157,7 +151,7 @@ package_gcc-libs() {
|
||||||
groups=(base)
|
groups=(base)
|
||||||
depends=('glibc>=2.27')
|
depends=('glibc>=2.27')
|
||||||
options+=(!strip)
|
options+=(!strip)
|
||||||
provides=(libgo.so libgfortran.so)
|
provides=(libgo.so libgfortran.so libubsan.so libasan.so)
|
||||||
|
|
||||||
cd gcc-build
|
cd gcc-build
|
||||||
make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared
|
make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
From f591a95d1532ac7791c146a8e55ba3a32b3e476f Mon Sep 17 00:00:00 2001
|
|
||||||
From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
|
|
||||||
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
|
|
||||||
|
|
|
@ -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 <int i, typename T> 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))
|
|
|
@ -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));
|
|
Loading…
Reference in a new issue