diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-05-05 17:59:00 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-05-05 17:59:00 +0200 |
commit | 1dc3dd91672d2742d294429b8427b548ee2ba85a (patch) | |
tree | 2c335867c432bc1522e915b6666e6d04f5573c10 /config/cc | |
parent | e4828c01d378448d56cfad19fdb8c29247cecd3c (diff) | |
download | crosstool-ng-1dc3dd91672d2742d294429b8427b548ee2ba85a.tar.gz crosstool-ng-1dc3dd91672d2742d294429b8427b548ee2ba85a.tar.bz2 crosstool-ng-1dc3dd91672d2742d294429b8427b548ee2ba85a.zip |
cc/gcc: add preliminray support for 4.8
This means:
- introduce the new symbols for 4.8
- do not always select PPL if graphite is selected
Reported-by: "Plotnikov Dmitry" <leitz@ispras.ru>
[Dmitry did a preliminray patch to add gcc-4.8 support,
which this patch is inspired from]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'config/cc')
-rw-r--r-- | config/cc/gcc.in | 46 | ||||
-rw-r--r-- | config/cc/gcc.in.2 | 23 |
2 files changed, 44 insertions, 25 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in index a0b23a85..cf733acb 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -316,9 +316,25 @@ config CC_GCC_4_7_or_later bool select CC_GCC_4_6_or_later -config CC_GCC_latest +config CC_GCC_4_8 + bool + select CC_GCC_4_8_or_later + select CC_GCC_USE_GMP_MPFR + select CC_GCC_USE_MPC + select CC_GCC_HAS_GRAPHITE + select CC_GCC_HAS_LTO + select CC_GCC_HAS_PKGVERSION_BUGURL + select CC_GCC_HAS_BUILD_ID + select CC_GCC_HAS_LNK_HASH_STYLE + select CC_GCC_HAS_LIBQUADMATH + +config CC_GCC_4_8_or_later bool select CC_GCC_4_7_or_later + +config CC_GCC_latest + bool + select CC_GCC_4_8_or_later select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_MPC select CC_GCC_HAS_GRAPHITE @@ -331,6 +347,22 @@ config CC_GCC_latest config CC_GCC_HAS_GRAPHITE bool +# For graphite: gcc 4.4..4.7 need ppl, while 4.8.. need isl +# Prompt in config/cc/gcc.in.2 +config CC_GCC_USE_GRAPHITE + bool + default y + depends on CC_GCC_HAS_GRAPHITE + select CLOOG_NEEDED + select PPL_NEEDED if !CC_GCC_4_8_or_later + select ISL_NEEDED if CC_GCC_4_8_or_later + help + Enable the GRAPHITE loop optimsations. + + On some systems (eg. Cygwin), PPL and/or CLooG (required to enable + GRAPHITE) may not build properly (yet), so you'll have to say 'N' + here (or help debug the issues) + # The way LTO works is a bit twisted. # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements # Basically: @@ -342,6 +374,15 @@ config CC_GCC_HAS_GRAPHITE config CC_GCC_HAS_LTO bool +# Prompt in config/cc/gcc.in.2 +config CC_GCC_USE_LTO + bool + default y + depends on CC_GCC_HAS_LTO + select CC_GCC_USE_LIBELF if CC_GCC_4_5 + help + Enable the Link Time Optimisations. + config CC_GCC_HAS_PKGVERSION_BUGURL bool @@ -371,9 +412,6 @@ config CC_GCC_USE_GMP_MPFR select GMP_NEEDED select MPFR_NEEDED -config CC_GCC_USE_PPL_CLOOG - bool - select PPL_NEEDED select CLOOG_NEEDED config CC_GCC_USE_MPC diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index f445c786..20b70d83 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -70,20 +70,9 @@ config CC_GCC_SYSTEM_ZLIB comment "Optimisation features" +# Defined in config/cc/gcc.in config CC_GCC_USE_GRAPHITE - bool prompt "Enable GRAPHITE loop optimisations" - default y - depends on CC_GCC_HAS_GRAPHITE - select CC_GCC_USE_PPL_CLOOG - help - Enable the GRAPHITE loop optimsations. - - This requires the PPL and CLooG companion libraries, and - those will be automatically build for you. - - On some systems (eg. Cygwin), PPL and/or CLooG may not - build properly (yet), so you'll have to say 'N' here. # The way LTO works is a bit twisted. # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements @@ -95,17 +84,9 @@ config CC_GCC_USE_GRAPHITE # advantage of it # Also, only the 4.5 series needs libelf for LTO; 4.6 has dropped # the dependency. +# Defined in config/cc/gcc.in config CC_GCC_USE_LTO - bool prompt "Enable LTO" - default y - depends on CC_GCC_HAS_LTO - select CC_GCC_USE_LIBELF if CC_GCC_4_5 - help - Enable the Link Time Optimisations. - - This will require the libelf companion library, and it - wil be build automatically for you. #----------------------------------------------------------------------------- comment "Settings for libraries running on target" |