name = "GCC"
version = '4.5.3'
versionsuffix = "-CLooG-PPL"

homepage = 'http://gcc.gnu.org/'
description = """The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran,
 Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...)."""

toolchain = {'name': 'dummy', 'version': 'dummy'}

pplver = '0.11'

source_urls = [
    'http://ftpmirror.gnu.org/%(namelower)s/%(namelower)s-%(version)s',  # GCC auto-resolving HTTP mirror
    'http://ftpmirror.gnu.org/gmp',  # idem for GMP
    'http://ftpmirror.gnu.org/mpfr',  # idem for MPFR
    'http://www.multiprecision.org/mpc/download',  # MPC official
    'http://bugseng.com/products/ppl/download/ftp/releases/%s' % pplver,  # PPL official
    'http://www.bastoul.net/cloog/pages/download/count.php3?url=.',  # CLooG official
    'ftp://gcc.gnu.org/pub/gcc/infrastructure/',  # GCC dependencies, for PPL and CLooG-PPL
    'http://gcc.cybermirror.org/infrastructure/',  # HTTP mirror for GCC dependencies
]
sources = [
    SOURCELOWER_TAR_GZ,
    'gmp-5.0.2.tar.gz',
    'mpfr-3.0.1.tar.gz',
    'mpc-0.8.2.tar.gz',
    'cloog-ppl-0.15.11.tar.gz',
    'ppl-%s.tar.gz' % pplver,
]

checksums = [
    'bf100d5b3b88f7938752e43c90e48f48',     # gcc-4.5.3.tar.gz
    '87e73447afdc2ca5cefd987da865da51',     # gmp-5.0.2.tar.gz
    'e9c191fc46a4f5741f8a0a11ab33b8bf',     # mpfr-3.0.1.tar.gz
    'e98267ebd5648a39f881d66797122fb6',     # mpc-0.8.2.tar.gz
    '060ae4df6fb8176e021b4d033a6c0b9e',     # cloog-ppl-0.15.11.tar.gz
    'ba527ec0ffc830ce16fad8a4195a337e',     # ppl-0.11.tar.gz
]

languages = ['c', 'c++', 'fortran']

withcloog = True
withppl = True

# building GCC sometimes fails if make parallelism is too high, so let's limit it
maxparallel = 4

withlto = False

moduleclass = 'compiler'
