aboutsummaryrefslogtreecommitdiff
path: root/package/gcc/Config.in.host
diff options
context:
space:
mode:
authorGravatar Steve Thomas <scjthm@live.com>2014-05-19 19:48:13 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-06-09 11:38:25 +0200
commit90aca35a4cbf5914256c391c239b7d8037785d6d (patch)
tree5d4cf78d618554648a316a7d3320084d9ff0e38e /package/gcc/Config.in.host
parentf1e1a078a73dc00a91d5adaceed6046095b278f5 (diff)
downloadbuildroot-90aca35a4cbf5914256c391c239b7d8037785d6d.tar.gz
buildroot-90aca35a4cbf5914256c391c239b7d8037785d6d.tar.bz2
gcc: add a BR2_GCC_ENABLE_GRAPHITE option
The gcc graphite optimisations such as loop-interchange, blocking and loop-flattening, also known as graphite are an optional feature of gcc that is very well supported since about gcc version 4.5. This patch adds support for graphite for the toolchain as an optional flag for versions 4.8 onwards as an optional flag, that is disabled by default. Signed-off-by: Steve Thomas <scjthm@live.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gcc/Config.in.host')
-rw-r--r--package/gcc/Config.in.host13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index 60835e92ee..b6d4b5e858 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -3,6 +3,9 @@ comment "GCC Options"
config BR2_GCC_NEEDS_MPC
bool
+config BR2_GCC_SUPPORTS_GRAPHITE
+ bool
+
choice
prompt "GCC compiler Version"
default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
@@ -60,6 +63,7 @@ choice
config BR2_GCC_VERSION_4_8_X
depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a12 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_powerpc64le
select BR2_GCC_NEEDS_MPC
+ select BR2_GCC_SUPPORTS_GRAPHITE
bool "gcc 4.8.x"
config BR2_GCC_VERSION_4_8_ARC
@@ -70,6 +74,7 @@ choice
config BR2_GCC_VERSION_4_9_X
depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8
select BR2_GCC_NEEDS_MPC
+ select BR2_GCC_SUPPORTS_GRAPHITE
bool "gcc 4.9.x"
config BR2_GCC_VERSION_SNAP
@@ -77,6 +82,7 @@ choice
select BR2_GCC_NEEDS_MPC
# musl patches only for gcc 4.7+
depends on !BR2_TOOLCHAIN_BUILDROOT_MUSL
+ select BR2_GCC_SUPPORTS_GRAPHITE
bool "gcc snapshot"
endchoice
@@ -180,3 +186,10 @@ config BR2_GCC_ENABLE_LIBMUDFLAP
the help of the gcc -fmudflap option for more details.
If you're unsure, leave this option disabled.
+
+config BR2_GCC_ENABLE_GRAPHITE
+ bool "Enable graphite support"
+ depends on BR2_GCC_SUPPORTS_GRAPHITE
+ help
+ This option enables the graphite optimizations in the
+ compiler.