diff options
author | Stefan Schmidt | 2018-07-23 19:17:44 +0200 |
---|---|---|
committer | Stefan Schmidt | 2018-07-23 19:17:44 +0200 |
commit | b120f711ee19a0f242b1f538dcb0a105012e6069 (patch) | |
tree | 0be291badb2baecdad0ab7e881819d33919f10cf | |
parent | 2b6a3aa4931240888d835d1124b790a990fddd42 (diff) | |
download | aur-b120f711ee19a0f242b1f538dcb0a105012e6069.tar.gz |
Updated to v8.1.0
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 93 | ||||
-rw-r--r-- | fix-compilation.patch | 11 | ||||
-rw-r--r-- | pr66035.patch | 48 |
4 files changed, 66 insertions, 106 deletions
@@ -1,7 +1,7 @@ pkgbase = powerpc-linux-gnu-gcc-stage2 pkgdesc = The GNU Compiler Collection. Stage 2 for toolchain building (powerpc-linux-gnu) - pkgver = 6.1.1 - pkgrel = 4 + pkgver = 8.1.0 + pkgrel = 1 url = http://gcc.gnu.org arch = i686 arch = x86_64 @@ -9,20 +9,22 @@ pkgbase = powerpc-linux-gnu-gcc-stage2 license = LGPL license = FDL license = custom - depends = powerpc-linux-gnu-binutils>=2.26.1-1 - depends = powerpc-linux-gnu-glibc-headers>=2.23-5 + depends = powerpc-linux-gnu-binutils>=2.30-4 + depends = powerpc-linux-gnu-glibc-headers>=2.27-3 depends = libmpc depends = zlib - provides = powerpc-linux-gnu-gcc-stage1=6.1.1 + provides = powerpc-linux-gnu-gcc-stage1=8.1.0 conflicts = powerpc-linux-gnu-gcc-stage1 replaces = powerpc-linux-gnu-gcc-stage1 options = !emptydirs options = !distcc options = !strip - source = https://github.com/gcc-mirror/gcc/archive/1bbd3999.tar.gz - source = http://isl.gforge.inria.fr/isl-0.16.1.tar.bz2 - md5sums = ff2d7ad9a3144299decbdad85dfcb920 - md5sums = ac1f25a0677912952718a51f5bc20f32 + source = https://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.xz + source = http://isl.gforge.inria.fr/isl-0.18.tar.bz2 + validpgpkeys = F3691687D867B81B51CE07D9BBE43771487328A9 + validpgpkeys = 13975A70E63C361C73AE69EF6EEB81F8981C74C7 + sha256sums = 1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153 + sha256sums = 6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b pkgname = powerpc-linux-gnu-gcc-stage2 @@ -3,35 +3,37 @@ # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Kevin Mihelich <kevin@archlinuxarm.org> # Contributor: Tavian Barnes <tavianator@tavianator.com> -# Maintainer: Stefan Schmidt <thrimbor.github@gmail.com> +# Maintainer: Tavian Barnes <tavianator@tavianator.com> _target="powerpc-linux-gnu" pkgname=${_target}-gcc-stage2 -pkgver=6.1.1 -_pkgver=6 -_islver=0.16.1 -pkgrel=4 -_commit=1bbd3999 +pkgver=8.1.0 +_majorver=${pkgver:0:1} +_islver=0.18 +pkgrel=1 pkgdesc="The GNU Compiler Collection. Stage 2 for toolchain building (${_target})" -arch=('i686' 'x86_64') -license=('GPL' 'LGPL' 'FDL' 'custom') -url="http://gcc.gnu.org" -depends=("${_target}-binutils>=2.26.1-1" "${_target}-glibc-headers>=2.23-5" 'libmpc' 'zlib') -options=('!emptydirs' '!distcc' '!strip') +arch=(i686 x86_64) +license=(GPL LGPL FDL custom) +url='http://gcc.gnu.org' +depends=("${_target}-binutils>=2.30-4" "${_target}-glibc-headers>=2.27-3" libmpc zlib) +options=(!emptydirs !distcc !strip) conflicts=("${_target}-gcc-stage1") replaces=("${_target}-gcc-stage1") provides=("${_target}-gcc-stage1=${pkgver}") -source=(https://github.com/gcc-mirror/gcc/archive/${_commit}.tar.gz +#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) -md5sums=('ff2d7ad9a3144299decbdad85dfcb920' - 'ac1f25a0677912952718a51f5bc20f32') +sha256sums=('1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153' + '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b') +validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org + 13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com -prepare() { - mv gcc-${_commit}* gcc - cd ${srcdir} - - patch -Np0 < "../fix-compilation.patch" +_svnrev=259195 +_svnurl=svn://gcc.gnu.org/svn/gcc/branches/gcc-${_majorver}-branch +_libdir=usr/lib/gcc/$CHOST/${pkgver%%+*} +prepare() { + [[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc cd gcc # link isl for in-tree build @@ -43,50 +45,65 @@ prepare() { # hack! - some configure tests for header files using "$CPP $CPPFLAGS" sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure - mkdir ${srcdir}/gcc-build + mkdir -p "$srcdir/gcc-build" } build() { - cd ${srcdir}/gcc-build + cd gcc-build # using -pipe causes spurious test-suite failures # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565 CFLAGS=${CFLAGS/-pipe/} CXXFLAGS=${CXXFLAGS/-pipe/} - ${srcdir}/gcc/configure --prefix=/usr \ + "$srcdir/gcc/configure" --prefix=/usr \ --program-prefix=${_target}- \ --with-local-prefix=/usr/${_target} \ --with-sysroot=/usr/${_target} \ --with-build-sysroot=/usr/${_target} \ --with-as=/usr/bin/${_target}-as \ --with-ld=/usr/bin/${_target}-ld \ - --libdir=/usr/lib --libexecdir=/usr/lib \ - --target=${_target} --host=${CHOST} --build=${CHOST} \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ --disable-nls \ --enable-languages=c,c++ \ - --disable-shared --disable-threads \ - --with-system-zlib --with-isl --enable-__cxa_atexit \ - --disable-libunwind-exceptions --enable-clocale=gnu \ - --disable-libstdcxx-pch --disable-libssp \ - --enable-gnu-unique-object --enable-linker-build-id \ - --disable-lto --disable-plugin --enable-install-libiberty \ - --with-linker-hash-style=gnu --enable-gnu-indirect-function \ - --disable-multilib --disable-werror \ - --enable-checking=release + --disable-shared \ + --disable-threads \ + --with-system-zlib \ + --with-isl \ + --enable-__cxa_atexit \ + --disable-libunwind-exceptions \ + --enable-clocale=gnu \ + --disable-libstdcxx-pch \ + --disable-libssp \ + --enable-gnu-unique-object \ + --enable-linker-build-id \ + --disable-lto \ + --disable-plugin \ + --enable-install-libiberty \ + --with-linker-hash-style=gnu \ + --enable-gnu-indirect-function \ + --disable-multilib \ + --disable-werror \ + --enable-checking=release \ + --enable-default-pie \ + --enable-default-ssp \ + --target=${_target} \ + --host=${CHOST} \ + --build=${CHOST} make all-gcc all-target-libgcc } package() { - cd ${srcdir}/gcc-build + cd gcc-build - make DESTDIR=${pkgdir} install-gcc install-target-libgcc + make DESTDIR="$pkgdir" install-gcc install-target-libgcc - rm -rf ${pkgdir}/usr/share + rm -rf "$pkgdir/usr/share" # strip it manually - strip ${pkgdir}/usr/bin/* 2>/dev/null || true - find ${pkgdir}/usr/lib -type f -exec /usr/bin/${_target}-strip \ + strip "$pkgdir/usr/bin/"* 2>/dev/null || true + find "$pkgdir/usr/lib" -type f -exec /usr/bin/${_target}-strip \ --strip-unneeded {} \; 2>/dev/null || true } diff --git a/fix-compilation.patch b/fix-compilation.patch deleted file mode 100644 index f42abbd139ff..000000000000 --- a/fix-compilation.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gcc/gcc/ubsan.c 2018-02-04 21:13:39.853992701 +0100 -+++ gcc/gcc/ubsan.c 2018-02-04 21:12:44.957195790 +0100 -@@ -1469,7 +1469,7 @@ - - expanded_location xloc = expand_location (loc); - if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0 -- || xloc.file == '\0' || xloc.file[0] == '\xff' -+ || xloc.file[0] == '\0' || xloc.file[0] == '\xff' - || xloc.file[1] == '\xff') - return false; - diff --git a/pr66035.patch b/pr66035.patch deleted file mode 100644 index c51822ca1f2c..000000000000 --- a/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)); |