[arch-commits] Commit in gcc/repos (11 files)

2012-02-28 Thread Allan McRae
Date: Tuesday, February 28, 2012 @ 18:12:13
  Author: allan
Revision: 151627

db-move: moved gcc from [staging] to [testing] (i686)

Added:
  gcc/repos/testing-i686/
  gcc/repos/testing-i686/PKGBUILD
(from rev 151626, gcc/repos/staging-i686/PKGBUILD)
  gcc/repos/testing-i686/gcc-4.6.2-cloog-0.17.patch
(from rev 151626, gcc/repos/staging-i686/gcc-4.6.2-cloog-0.17.patch)
  gcc/repos/testing-i686/gcc-ada.install
(from rev 151626, gcc/repos/staging-i686/gcc-ada.install)
  gcc/repos/testing-i686/gcc-fortran.install
(from rev 151626, gcc/repos/staging-i686/gcc-fortran.install)
  gcc/repos/testing-i686/gcc-go.install
(from rev 151626, gcc/repos/staging-i686/gcc-go.install)
  gcc/repos/testing-i686/gcc-hash-style-both.patch
(from rev 151626, gcc/repos/staging-i686/gcc-hash-style-both.patch)
  gcc/repos/testing-i686/gcc-libs.install
(from rev 151626, gcc/repos/staging-i686/gcc-libs.install)
  gcc/repos/testing-i686/gcc.install
(from rev 151626, gcc/repos/staging-i686/gcc.install)
  gcc/repos/testing-i686/gcc_pure64.patch
(from rev 151626, gcc/repos/staging-i686/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-i686/

+
 PKGBUILD   |  265 +++
 gcc-4.6.2-cloog-0.17.patch |   36 +
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-hash-style-both.patch  |  122 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 9 files changed, 541 insertions(+)

Copied: gcc/repos/testing-i686/PKGBUILD (from rev 151626, 
gcc/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-02-28 23:12:13 UTC (rev 151627)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.2
+pkgrel=8
+_snapshot=4.6-20120120
+_libstdcppmanver=20111215  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.${_libstdcppmanver}.tar.bz2
+   gcc_pure64.patch
+   gcc-hash-style-both.patch
+   gcc-4.6.2-cloog-0.17.patch)
+md5sums=('f7ca5d9f7a07216577f81318b7cf56ef'
+ '450772ce32daed97d7383199f8797f33'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f'
+ '6d9939a2e667376031679ac9f9c49263')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  # compatibility with latest cloog
+  patch -Np1 -i ${srcdir}/gcc-4.6.2-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  

[arch-commits] Commit in gcc/repos (11 files)

2012-02-28 Thread Allan McRae
Date: Tuesday, February 28, 2012 @ 18:12:15
  Author: allan
Revision: 151628

db-move: moved gcc from [staging] to [testing] (x86_64)

Added:
  gcc/repos/testing-x86_64/
  gcc/repos/testing-x86_64/PKGBUILD
(from rev 151626, gcc/repos/staging-x86_64/PKGBUILD)
  gcc/repos/testing-x86_64/gcc-4.6.2-cloog-0.17.patch
(from rev 151626, gcc/repos/staging-x86_64/gcc-4.6.2-cloog-0.17.patch)
  gcc/repos/testing-x86_64/gcc-ada.install
(from rev 151626, gcc/repos/staging-x86_64/gcc-ada.install)
  gcc/repos/testing-x86_64/gcc-fortran.install
(from rev 151626, gcc/repos/staging-x86_64/gcc-fortran.install)
  gcc/repos/testing-x86_64/gcc-go.install
(from rev 151626, gcc/repos/staging-x86_64/gcc-go.install)
  gcc/repos/testing-x86_64/gcc-hash-style-both.patch
(from rev 151626, gcc/repos/staging-x86_64/gcc-hash-style-both.patch)
  gcc/repos/testing-x86_64/gcc-libs.install
(from rev 151626, gcc/repos/staging-x86_64/gcc-libs.install)
  gcc/repos/testing-x86_64/gcc.install
(from rev 151626, gcc/repos/staging-x86_64/gcc.install)
  gcc/repos/testing-x86_64/gcc_pure64.patch
(from rev 151626, gcc/repos/staging-x86_64/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-x86_64/

+
 PKGBUILD   |  265 +++
 gcc-4.6.2-cloog-0.17.patch |   36 +
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-hash-style-both.patch  |  122 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 9 files changed, 541 insertions(+)

Copied: gcc/repos/testing-x86_64/PKGBUILD (from rev 151626, 
gcc/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-02-28 23:12:15 UTC (rev 151628)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.2
+pkgrel=8
+_snapshot=4.6-20120120
+_libstdcppmanver=20111215  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.${_libstdcppmanver}.tar.bz2
+   gcc_pure64.patch
+   gcc-hash-style-both.patch
+   gcc-4.6.2-cloog-0.17.patch)
+md5sums=('f7ca5d9f7a07216577f81318b7cf56ef'
+ '450772ce32daed97d7383199f8797f33'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f'
+ '6d9939a2e667376031679ac9f9c49263')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  # compatibility with latest cloog
+  patch -Np1 -i ${srcdir}/gcc-4.6.2-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries 

[arch-commits] Commit in gcc/repos (11 files)

2012-02-03 Thread Allan McRae
Date: Friday, February 3, 2012 @ 19:03:34
  Author: allan
Revision: 148579

db-move: moved gcc from [staging] to [testing] (i686)

Added:
  gcc/repos/testing-i686/
  gcc/repos/testing-i686/PKGBUILD
(from rev 148578, gcc/repos/staging-i686/PKGBUILD)
  gcc/repos/testing-i686/gcc-4.6.2-cloog-0.17.patch
(from rev 148578, gcc/repos/staging-i686/gcc-4.6.2-cloog-0.17.patch)
  gcc/repos/testing-i686/gcc-ada.install
(from rev 148578, gcc/repos/staging-i686/gcc-ada.install)
  gcc/repos/testing-i686/gcc-fortran.install
(from rev 148578, gcc/repos/staging-i686/gcc-fortran.install)
  gcc/repos/testing-i686/gcc-go.install
(from rev 148578, gcc/repos/staging-i686/gcc-go.install)
  gcc/repos/testing-i686/gcc-hash-style-both.patch
(from rev 148578, gcc/repos/staging-i686/gcc-hash-style-both.patch)
  gcc/repos/testing-i686/gcc-libs.install
(from rev 148578, gcc/repos/staging-i686/gcc-libs.install)
  gcc/repos/testing-i686/gcc.install
(from rev 148578, gcc/repos/staging-i686/gcc.install)
  gcc/repos/testing-i686/gcc_pure64.patch
(from rev 148578, gcc/repos/staging-i686/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-i686/

+
 PKGBUILD   |  265 +++
 gcc-4.6.2-cloog-0.17.patch |   36 +
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-hash-style-both.patch  |  122 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 9 files changed, 541 insertions(+)

Copied: gcc/repos/testing-i686/PKGBUILD (from rev 148578, 
gcc/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-02-04 00:03:34 UTC (rev 148579)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.2
+pkgrel=7
+_snapshot=4.6-20120120
+_libstdcppmanver=20111215  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.${_libstdcppmanver}.tar.bz2
+   gcc_pure64.patch
+   gcc-hash-style-both.patch
+   gcc-4.6.2-cloog-0.17.patch)
+md5sums=('f7ca5d9f7a07216577f81318b7cf56ef'
+ '450772ce32daed97d7383199f8797f33'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f'
+ '6d9939a2e667376031679ac9f9c49263')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  # compatibility with latest cloog
+  patch -Np1 -i ${srcdir}/gcc-4.6.2-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  

[arch-commits] Commit in gcc/repos (11 files)

2012-02-03 Thread Allan McRae
Date: Friday, February 3, 2012 @ 19:03:35
  Author: allan
Revision: 148580

db-move: moved gcc from [staging] to [testing] (x86_64)

Added:
  gcc/repos/testing-x86_64/
  gcc/repos/testing-x86_64/PKGBUILD
(from rev 148578, gcc/repos/staging-x86_64/PKGBUILD)
  gcc/repos/testing-x86_64/gcc-4.6.2-cloog-0.17.patch
(from rev 148578, gcc/repos/staging-x86_64/gcc-4.6.2-cloog-0.17.patch)
  gcc/repos/testing-x86_64/gcc-ada.install
(from rev 148578, gcc/repos/staging-x86_64/gcc-ada.install)
  gcc/repos/testing-x86_64/gcc-fortran.install
(from rev 148578, gcc/repos/staging-x86_64/gcc-fortran.install)
  gcc/repos/testing-x86_64/gcc-go.install
(from rev 148578, gcc/repos/staging-x86_64/gcc-go.install)
  gcc/repos/testing-x86_64/gcc-hash-style-both.patch
(from rev 148578, gcc/repos/staging-x86_64/gcc-hash-style-both.patch)
  gcc/repos/testing-x86_64/gcc-libs.install
(from rev 148578, gcc/repos/staging-x86_64/gcc-libs.install)
  gcc/repos/testing-x86_64/gcc.install
(from rev 148578, gcc/repos/staging-x86_64/gcc.install)
  gcc/repos/testing-x86_64/gcc_pure64.patch
(from rev 148578, gcc/repos/staging-x86_64/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-x86_64/

+
 PKGBUILD   |  265 +++
 gcc-4.6.2-cloog-0.17.patch |   36 +
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-hash-style-both.patch  |  122 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 9 files changed, 541 insertions(+)

Copied: gcc/repos/testing-x86_64/PKGBUILD (from rev 148578, 
gcc/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-02-04 00:03:35 UTC (rev 148580)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.2
+pkgrel=7
+_snapshot=4.6-20120120
+_libstdcppmanver=20111215  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.${_libstdcppmanver}.tar.bz2
+   gcc_pure64.patch
+   gcc-hash-style-both.patch
+   gcc-4.6.2-cloog-0.17.patch)
+md5sums=('f7ca5d9f7a07216577f81318b7cf56ef'
+ '450772ce32daed97d7383199f8797f33'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f'
+ '6d9939a2e667376031679ac9f9c49263')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  # compatibility with latest cloog
+  patch -Np1 -i ${srcdir}/gcc-4.6.2-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries