config/companion_libs.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon May 25 19:46:58 2009 +0000 (2009-05-25)
branchgcc-4.4
changeset 1386 7995942261f2
parent 1384 b23f3c2e0c73
child 1388 b1e6fa0bf9eb
permissions -rw-r--r--
/devel/gcc-4.4:
- commonalise the config-knobs that:
- enable checking the newly built companion libraries
- enable building the companion libraries for the target

-------- diffstat follows --------
/devel/gcc-4.4/scripts/build/companion_libs/ppl.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/mpc.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/gmp.sh | 4 2 2 0 +-
/devel/gcc-4.4/scripts/build/companion_libs/cloog.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/mpfr.sh | 4 2 2 0 +-
/devel/gcc-4.4/config/companion_libs/ppl.in | 14 0 14 0 ----------
/devel/gcc-4.4/config/companion_libs/mpc.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/gmp.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/cloog.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/mpfr.in | 14 0 14 0 ----------
/devel/gcc-4.4/config/companion_libs.in | 46 35 11 0 ++++++++++++++++++++++++++--------
11 files changed, 42 insertions(+), 85 deletions(-)
yann@1318
     1
# Companion libraries config options
yann@1318
     2
# Those libraries are required for different versions of gcc,
yann@1318
     3
# and can be used by binutils and gdb (maybe others as well).
yann@602
     4
yann@1318
     5
menu "Companion libraries"
yann@602
     6
yann@602
     7
config GMP_MPFR
yann@602
     8
    bool
yann@602
     9
    prompt "GMP and MPFR"
yann@602
    10
    help
yann@1318
    11
      gcc 4.3.0 and above requires both GMP and MPFR to build some frontends,
yann@1324
    12
      and some other components can use them as well.
yann@1318
    13
      
yann@1324
    14
      These will be automatically selected if you choose gcc>=4.3.0, but you
yann@1324
    15
      can say 'Y' here if you want to build those two libraries for the other
yann@1324
    16
      components (that don't select them by default).
yann@1318
    17
      
yann@602
    18
      The packages that can use GMP and MPFR are:
yann@602
    19
        - binutils
yann@602
    20
        - gcc
yann@602
    21
        - gdb
yann@602
    22
yann@602
    23
if GMP_MPFR
yann@1318
    24
source config/companion_libs/gmp.in
yann@1318
    25
source config/companion_libs/mpfr.in
yann@602
    26
endif
yann@602
    27
yann@1384
    28
config PPL_CLOOG_MPC
yann@1324
    29
    bool
yann@1384
    30
    prompt "PPL, GLooG/PPL and MPC"
yann@1324
    31
    help
yann@1384
    32
      gcc-4.4.0 and above requires PPL and CLooG/PPL to build some parts
yann@1384
    33
      of the optimiser (GRAPHITE loop optimisation, to be precise).
yann@1384
    34
      
yann@1384
    35
      In addition to those, gcc-4.4 also optionally uses MPC to enable
yann@1384
    36
      additional optimisations on complex numbers. Although MPC is optional,
yann@1384
    37
      crosstool-NG requires it and uses it to build gcc >= 4.4.0.
yann@1324
    38
      
yann@1324
    39
      These will be automatically selected if you choose gcc>=4.4.0, but you
yann@1324
    40
      can say 'Y' here, although it is unknown yet if any other component
yann@1324
    41
      can use them.
yann@1324
    42
yann@1384
    43
if PPL_CLOOG_MPC
yann@1324
    44
source config/companion_libs/ppl.in
yann@1380
    45
source config/companion_libs/cloog.in
yann@1384
    46
source config/companion_libs/mpc.in
yann@1324
    47
endif
yann@1324
    48
yann@1386
    49
comment "Common companion libraries options"
yann@1386
    50
    depends on GMP_MPFR || PPL_CLOOG_MPC
yann@1386
    51
yann@1386
    52
config COMP_LIBS_CHECK
yann@1386
    53
    bool
yann@1386
    54
    prompt "Check the companion libraries builds (!!! READ HELP!!!)"
yann@1386
    55
    depends on GMP_MPFR || PPL_CLOOG_MPC
yann@1386
    56
    default n
yann@1386
    57
    help
yann@1386
    58
      It is highly recommended to check the newly built companion libraries.
yann@1386
    59
      Unfortunately, this is a very intensive task, and takes a loooong time.
yann@1386
    60
yann@1386
    61
      Checking the newly built companion libraries is thus disabled by default,
yann@1386
    62
      but it is suggested that you check them at least once or your machine,
yann@1386
    63
      and if they work, disable the check on subsequent builds.
yann@1386
    64
yann@1386
    65
      If you suspect that one (or more) of your companion libraries is the
yann@1386
    66
      cause for incorrectly generated code, you should answer 'Y' here.
yann@1386
    67
      Note however that this will take a really long time. For example,
yann@1386
    68
      building PPL on my machine takes roughly 1'40", while checking it takes
yann@1386
    69
      about 1h30"...
yann@1386
    70
yann@1386
    71
config COMP_LIBS_TARGET
yann@1386
    72
    bool
yann@1386
    73
    prompt "Build companion libraries for the target"
yann@1386
    74
    depends on GMP_MPFR || PPL_CLOOG_MPC
yann@1386
    75
    depends on ! BARE_METAL
yann@1386
    76
    default n
yann@1386
    77
    help
yann@1386
    78
      Also build companion libraries for the target. This can be usefull if
yann@1386
    79
      you want to later build a compiler that will run on the target, or if
yann@1386
    80
      you want to run gdb natively on the target.
yann@1386
    81
      
yann@1386
    82
      Please note that for now, crosstool-NG can only build GMP and MPFR so.
yann@1386
    83
yann@602
    84
endmenu