/devel/gcc-4.4: gcc-4.4
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 13867995942261f2
parent 1385 c3f370245832
child 1387 a52504ffac55
/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(-)
config/companion_libs.in
config/companion_libs/cloog.in
config/companion_libs/gmp.in
config/companion_libs/mpc.in
config/companion_libs/mpfr.in
config/companion_libs/ppl.in
scripts/build/companion_libs/cloog.sh
scripts/build/companion_libs/gmp.sh
scripts/build/companion_libs/mpc.sh
scripts/build/companion_libs/mpfr.sh
scripts/build/companion_libs/ppl.sh
     1.1 --- a/config/companion_libs.in	Mon May 25 18:23:38 2009 +0000
     1.2 +++ b/config/companion_libs.in	Mon May 25 19:46:58 2009 +0000
     1.3 @@ -20,17 +20,6 @@
     1.4          - gcc
     1.5          - gdb
     1.6  
     1.7 -config GMP_MPFR_TARGET
     1.8 -    bool
     1.9 -    prompt "Build libraries for the target"
    1.10 -    depends on GMP_MPFR
    1.11 -    depends on ! BARE_METAL
    1.12 -    default n
    1.13 -    help
    1.14 -      Also build libraries for the target. This can be usefull if you want
    1.15 -      to later build a compiler that will run on the target, or if you want
    1.16 -      to run gdb natively on the target.
    1.17 -
    1.18  if GMP_MPFR
    1.19  source config/companion_libs/gmp.in
    1.20  source config/companion_libs/mpfr.in
    1.21 @@ -57,4 +46,39 @@
    1.22  source config/companion_libs/mpc.in
    1.23  endif
    1.24  
    1.25 +comment "Common companion libraries options"
    1.26 +    depends on GMP_MPFR || PPL_CLOOG_MPC
    1.27 +
    1.28 +config COMP_LIBS_CHECK
    1.29 +    bool
    1.30 +    prompt "Check the companion libraries builds (!!! READ HELP!!!)"
    1.31 +    depends on GMP_MPFR || PPL_CLOOG_MPC
    1.32 +    default n
    1.33 +    help
    1.34 +      It is highly recommended to check the newly built companion libraries.
    1.35 +      Unfortunately, this is a very intensive task, and takes a loooong time.
    1.36 +
    1.37 +      Checking the newly built companion libraries is thus disabled by default,
    1.38 +      but it is suggested that you check them at least once or your machine,
    1.39 +      and if they work, disable the check on subsequent builds.
    1.40 +
    1.41 +      If you suspect that one (or more) of your companion libraries is the
    1.42 +      cause for incorrectly generated code, you should answer 'Y' here.
    1.43 +      Note however that this will take a really long time. For example,
    1.44 +      building PPL on my machine takes roughly 1'40", while checking it takes
    1.45 +      about 1h30"...
    1.46 +
    1.47 +config COMP_LIBS_TARGET
    1.48 +    bool
    1.49 +    prompt "Build companion libraries for the target"
    1.50 +    depends on GMP_MPFR || PPL_CLOOG_MPC
    1.51 +    depends on ! BARE_METAL
    1.52 +    default n
    1.53 +    help
    1.54 +      Also build companion libraries for the target. This can be usefull if
    1.55 +      you want to later build a compiler that will run on the target, or if
    1.56 +      you want to run gdb natively on the target.
    1.57 +      
    1.58 +      Please note that for now, crosstool-NG can only build GMP and MPFR so.
    1.59 +
    1.60  endmenu
     2.1 --- a/config/companion_libs/cloog.in	Mon May 25 18:23:38 2009 +0000
     2.2 +++ b/config/companion_libs/cloog.in	Mon May 25 19:46:58 2009 +0000
     2.3 @@ -17,16 +17,3 @@
     2.4      default "0.15.3" if CLOOG_V_0_15_3
     2.5  # CT_INSERT_VERSION_STRING_ABOVE
     2.6  # Don't remove above line!
     2.7 -
     2.8 -config CLOOG_CHECK
     2.9 -    bool
    2.10 -    prompt "Check CLooG (!!! README !!!)"
    2.11 -    default n
    2.12 -    help
    2.13 -      It is highly recommended to check the newly built CLooG library.
    2.14 -      Unfortunately, this is a very intensive task, and takes a loooong time.
    2.15 -      
    2.16 -      Checking CLooG is thus disabled by default.
    2.17 -      
    2.18 -      If you suspect that your CLooG library is the cause for incorrectly
    2.19 -      generated code, you should answer 'Y' here.
     3.1 --- a/config/companion_libs/gmp.in	Mon May 25 18:23:38 2009 +0000
     3.2 +++ b/config/companion_libs/gmp.in	Mon May 25 19:46:58 2009 +0000
     3.3 @@ -22,16 +22,3 @@
     3.4      default "4.2.4" if GMP_V_4_2_4
     3.5  # CT_INSERT_VERSION_STRING_ABOVE
     3.6  # Don't remove above line!
     3.7 -
     3.8 -config GMP_CHECK
     3.9 -    bool
    3.10 -    prompt "Check GMP (!!! README !!!)"
    3.11 -    default n
    3.12 -    help
    3.13 -      It is highly recommended to check the newly built GMP library.
    3.14 -      Unfortunately, this is a very intensive task, and takes a loooong time.
    3.15 -
    3.16 -      Checking GMP is thus disabled by default.
    3.17 -
    3.18 -      If you suspect that your GMP library is the cause for incorrectly
    3.19 -      generated code, you should answer 'Y' here.
     4.1 --- a/config/companion_libs/mpc.in	Mon May 25 18:23:38 2009 +0000
     4.2 +++ b/config/companion_libs/mpc.in	Mon May 25 19:46:58 2009 +0000
     4.3 @@ -17,16 +17,3 @@
     4.4      default "0.6" if MPC_V_0_6
     4.5  # CT_INSERT_VERSION_STRING_ABOVE
     4.6  # Don't remove above line!
     4.7 -
     4.8 -config MPC_CHECK
     4.9 -    bool
    4.10 -    prompt "Check MPC (!!! README !!!)"
    4.11 -    default n
    4.12 -    help
    4.13 -      It is highly recommended to check the newly built MPC library.
    4.14 -      Unfortunately, this is a very intensive task, and takes a loooong time.
    4.15 -
    4.16 -      Checking MPC is thus disabled by default.
    4.17 -
    4.18 -      If you suspect that your MPC library is the cause for incorrectly
    4.19 -      generated code, you should answer 'Y' here.
     5.1 --- a/config/companion_libs/mpfr.in	Mon May 25 18:23:38 2009 +0000
     5.2 +++ b/config/companion_libs/mpfr.in	Mon May 25 19:46:58 2009 +0000
     5.3 @@ -32,17 +32,3 @@
     5.4      default "2.4.1" if MPFR_V_2_4_1
     5.5  # CT_INSERT_VERSION_STRING_ABOVE
     5.6  # Don't remove above line!
     5.7 -
     5.8 -config MPFR_CHECK
     5.9 -    bool
    5.10 -    prompt "Check MPFR (!!! README !!!)"
    5.11 -    default n
    5.12 -    help
    5.13 -      It is highly recommended to check the newly built MPFR library.
    5.14 -      Unfortunately, this is a very intensive task, and takes a loooong time.
    5.15 -
    5.16 -      Checking MPFR is thus disabled by default.
    5.17 -
    5.18 -      If you suspect that your MPFR library is the cause for incorrectly
    5.19 -      generated code, you should answer 'Y' here.
    5.20 -
     6.1 --- a/config/companion_libs/ppl.in	Mon May 25 18:23:38 2009 +0000
     6.2 +++ b/config/companion_libs/ppl.in	Mon May 25 19:46:58 2009 +0000
     6.3 @@ -17,17 +17,3 @@
     6.4      default "0.10.2" if PPL_V_0_10_2
     6.5  # CT_INSERT_VERSION_STRING_ABOVE
     6.6  # Don't remove above line!
     6.7 -
     6.8 -config PPL_CHECK
     6.9 -    bool
    6.10 -    prompt "Check PPL (!!! README !!!)"
    6.11 -    default n
    6.12 -    help
    6.13 -      Checking PPL is very intensive and takes a loooong time.
    6.14 -      The PPL folks do not recommend checking the library, but they do
    6.15 -      not recommend not checking it, either.
    6.16 -      
    6.17 -      Checking PPL is thus disabled by default.
    6.18 -      
    6.19 -      If you suspect that your PPL library is the cause for incorrectly
    6.20 -      generated code, you should answer 'Y' here.
     7.1 --- a/scripts/build/companion_libs/cloog.sh	Mon May 25 18:23:38 2009 +0000
     7.2 +++ b/scripts/build/companion_libs/cloog.sh	Mon May 25 19:46:58 2009 +0000
     7.3 @@ -46,7 +46,7 @@
     7.4      CT_DoLog EXTRA "Building CLooG/ppl"
     7.5      CT_DoExecLog ALL make ${PARALLELMFLAGS}
     7.6  
     7.7 -    if [ "${CT_CLOOG_CHECK}" = "y" ]; then
     7.8 +    if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
     7.9          CT_DoLog EXTRA "Checking CLooG/ppl"
    7.10          CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    7.11      fi
     8.1 --- a/scripts/build/companion_libs/gmp.sh	Mon May 25 18:23:38 2009 +0000
     8.2 +++ b/scripts/build/companion_libs/gmp.sh	Mon May 25 19:46:58 2009 +0000
     8.3 @@ -45,7 +45,7 @@
     8.4      CT_DoLog EXTRA "Building GMP"
     8.5      CT_DoExecLog ALL make ${PARALLELMFLAGS}
     8.6  
     8.7 -    if [ "${CT_GMP_CHECK}" = "y" ]; then
     8.8 +    if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
     8.9          CT_DoLog EXTRA "Checking GMP"
    8.10          CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    8.11      fi
    8.12 @@ -56,7 +56,7 @@
    8.13      CT_EndStep
    8.14  }
    8.15  
    8.16 -if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
    8.17 +if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
    8.18  
    8.19  do_gmp_target() {
    8.20      mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
     9.1 --- a/scripts/build/companion_libs/mpc.sh	Mon May 25 18:23:38 2009 +0000
     9.2 +++ b/scripts/build/companion_libs/mpc.sh	Mon May 25 19:46:58 2009 +0000
     9.3 @@ -43,7 +43,7 @@
     9.4      CT_DoLog EXTRA "Building MPC"
     9.5      CT_DoExecLog ALL make ${PARALLELMFLAGS}
     9.6  
     9.7 -    if [ "${CT_MPC_CHECK}" = "y" ]; then
     9.8 +    if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
     9.9          CT_DoLog EXTRA "Checking MPC"
    9.10          CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    9.11      fi
    10.1 --- a/scripts/build/companion_libs/mpfr.sh	Mon May 25 18:23:38 2009 +0000
    10.2 +++ b/scripts/build/companion_libs/mpfr.sh	Mon May 25 19:46:58 2009 +0000
    10.3 @@ -84,7 +84,7 @@
    10.4      CT_DoLog EXTRA "Building MPFR"
    10.5      CT_DoExecLog ALL make ${PARALLELMFLAGS}
    10.6  
    10.7 -    if [ "${CT_MPFR_CHECK}" = "y" ]; then
    10.8 +    if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
    10.9          CT_DoLog EXTRA "Checking MPFR"
   10.10          CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
   10.11      fi
   10.12 @@ -95,7 +95,7 @@
   10.13      CT_EndStep
   10.14  }
   10.15  
   10.16 -if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
   10.17 +if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
   10.18  
   10.19  do_mpfr_target() {
   10.20      mkdir -p "${CT_BUILD_DIR}/build-mpfr-target"
    11.1 --- a/scripts/build/companion_libs/ppl.sh	Mon May 25 18:23:38 2009 +0000
    11.2 +++ b/scripts/build/companion_libs/ppl.sh	Mon May 25 19:46:58 2009 +0000
    11.3 @@ -54,7 +54,7 @@
    11.4      CT_DoLog EXTRA "Building PPL"
    11.5      CT_DoExecLog ALL make ${PARALLELMFLAGS}
    11.6  
    11.7 -    if [ "${CT_PPL_CHECK}" = "y" ]; then
    11.8 +    if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
    11.9          CT_DoLog EXTRA "Checking PPL"
   11.10          CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
   11.11      fi