summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2015-11-14 17:24:41 (GMT)
committerAlexey Neyman <stilor@att.net>2015-11-14 23:04:55 (GMT)
commitbb704f532af37086f7a1f2d4a4a3386941cbdb85 (patch)
tree89a4fd95eae1ea7ba05a073111850261837bb9c0
parent8a07253fa076dcfff1738600743d5c3b4d4f4131 (diff)
Allow --with-cpu/--with-tune for !arm.
The configure error mentioned in the commits that disable --with-arch/--with-tune when --with-cpu is specified is specific to ARM builds. For other architectures, it makes sense (hey, it even makes sense for ARM - read 'info gcc'! - it is just a shortcoming of ARM build, apparently). Thus, add an arch setting ARCH_EXCLUSIVE_WITH_CPU (currently, set only for ARM) that will trigger current behavior. Permit combinations of --with-arch/cpu/tune for other arches. Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r--config/arch/arm.in1
-rw-r--r--config/target.in7
2 files changed, 6 insertions, 2 deletions
diff --git a/config/arch/arm.in b/config/arch/arm.in
index 5d40e37..5dbc717 100644
--- a/config/arch/arm.in
+++ b/config/arch/arm.in
@@ -9,6 +9,7 @@
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_WITH_ARCH
## select ARCH_SUPPORTS_WITH_CPU
+## select ARCH_EXCLUSIVE_WITH_CPU
## select ARCH_SUPPORTS_WITH_TUNE
## select ARCH_SUPPORTS_WITH_FLOAT if ARCH_32
## select ARCH_SUPPORTS_WITH_FPU if ARCH_32
diff --git a/config/target.in b/config/target.in
index 31d2dc1..8cbaabc 100644
--- a/config/target.in
+++ b/config/target.in
@@ -210,11 +210,14 @@ config ARCH_SUPPORTS_WITH_FPU
config ARCH_SUPPORTS_SOFTFP
bool
+config ARCH_EXCLUSIVE_WITH_CPU
+ bool
+
config ARCH_ARCH
string
prompt "Architecture level"
depends on ARCH_SUPPORTS_WITH_ARCH
- depends on ARCH_CPU = ""
+ depends on !ARCH_EXCLUSIVE_WITH_CPU || ARCH_CPU = ""
default ""
help
GCC uses this name to determine what kind of instructions it can emit
@@ -271,7 +274,7 @@ config ARCH_TUNE
string
prompt "Tune for CPU"
depends on ARCH_SUPPORTS_WITH_TUNE
- depends on ARCH_CPU = ""
+ depends on !ARCH_EXCLUSIVE_WITH_CPU || ARCH_CPU = ""
default ""
help
This option is very similar to the ARCH_CPU option (above), except