Added a configure option to activate Graphite compilations flags

* check if GCC actually supports Graphite flags when the option
  --use-gcc-graphite is used
This commit is contained in:
Jerome Duval
2013-04-06 13:58:46 +02:00
parent f18ed048c2
commit 748c10f222
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -145,6 +145,12 @@ if $(HAIKU_GCC_VERSION[1]) >= 4 {
HAIKU_GCC_BASE_FLAGS += -Wno-array-bounds ;
}
# activating graphite optimizations
if $(HAIKU_USE_GCC_GRAPHITE) = 1 {
HAIKU_GCC_BASE_FLAGS += -floop-interchange -ftree-loop-distribution
-floop-strip-mine -floop-block ;
}
if $(HOST_GCC_VERSION[1]) >= 3 {
HOST_GCC_BASE_FLAGS += -fno-strict-aliasing -fno-tree-vrp ;
}