Only present each of arch, abi, cpu tune and fpu optimisations for those targets supporting them.

/trunk/config/target.in       |   30    30     0     0 ++++++++++++++++++++++++++++++
 /trunk/arch/arm/config.in     |    5     5     0     0 +++++
 /trunk/arch/powerpc/config.in |    3     3     0     0 +++
 /trunk/arch/alpha/config.in   |    2     2     0     0 ++
 /trunk/arch/x86/config.in     |    3     3     0     0 +++
 /trunk/arch/mips/config.in    |    3     3     0     0 +++
 /trunk/arch/x86_64/config.in  |    3     3     0     0 +++
 7 files changed, 49 insertions(+)
This commit is contained in:
Yann E. MORIN" 2008-06-27 15:08:43 +00:00
parent 4b7c2e32ac
commit 055681518c
7 changed files with 49 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Alpha specific configuration file # Alpha specific configuration file
config ARCH_alpha config ARCH_alpha
select ARCH_SUPPORT_CPU
select ARCH_SUPPORT_TUNE
help help
The Alpha architecture. The Alpha architecture.

View File

@ -3,6 +3,11 @@
config ARCH_arm config ARCH_arm
select ARCH_SUPPORTS_BOTH_ENDIAN select ARCH_SUPPORTS_BOTH_ENDIAN
select ARCH_DEFAULT_LE select ARCH_DEFAULT_LE
select ARCH_SUPPORT_ARCH
select ARCH_SUPPORT_ABI
select ARCH_SUPPORT_CPU
select ARCH_SUPPORT_TUNE
select ARCH_SUPPORT_FPU
help help
The ARM architecture, as defined by: The ARM architecture, as defined by:
http://www.arm.com/ http://www.arm.com/

View File

@ -3,6 +3,9 @@
config ARCH_mips config ARCH_mips
select ARCH_SUPPORTS_BOTH_ENDIAN select ARCH_SUPPORTS_BOTH_ENDIAN
select ARCH_DEFAULT_BE select ARCH_DEFAULT_BE
select ARCH_SUPPORT_ARCH
select ARCH_SUPPORT_ABI
select ARCH_SUPPORT_TUNE
help help
The MIPS architecture, as defined by: The MIPS architecture, as defined by:
http://www.mips.com/ http://www.mips.com/

View File

@ -1,6 +1,9 @@
# powerpc specific configuration file # powerpc specific configuration file
config ARCH_powerpc config ARCH_powerpc
select ARCH_SUPPORT_ABI
select ARCH_SUPPORT_CPU
select ARCH_SUPPORT_TUNE
help help
The PowerPC architecture, as defined by: The PowerPC architecture, as defined by:
http://www.ibm.com/developerworks/eserver/articles/archguide.html http://www.ibm.com/developerworks/eserver/articles/archguide.html

View File

@ -1,6 +1,9 @@
# x86 specific options # x86 specific options
config ARCH_x86 config ARCH_x86
select ARCH_SUPPORT_ARCH
select ARCH_SUPPORT_CPU
select ARCH_SUPPORT_TUNE
help help
The x86 architecture, as defined by: The x86 architecture, as defined by:
http://www.intel.com/ http://www.intel.com/

View File

@ -1,6 +1,9 @@
# x86_64 specific options # x86_64 specific options
config ARCH_x86_64 config ARCH_x86_64
select ARCH_SUPPORT_ARCH
select ARCH_SUPPORT_CPU
select ARCH_SUPPORT_TUNE
help help
The x86_64 architecture, as defined by: The x86_64 architecture, as defined by:
http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html

View File

@ -6,10 +6,15 @@ config ARCH
string string
# Pre-declare target optimisation variables # Pre-declare target optimisation variables
config ARCH_SUPPORT_ARCH
config ARCH_ARCH config ARCH_ARCH
config ARCH_SUPPORT_ABI
config ARCH_ABI config ARCH_ABI
config ARCH_SUPPORT_CPU
config ARCH_CPU config ARCH_CPU
config ARCH_SUPPORT_TUNE
config ARCH_TUNE config ARCH_TUNE
config ARCH_SUPPORT_FPU
config ARCH_FPU config ARCH_FPU
config ARCH_SUPPORTS_BOTH_ENDIAN config ARCH_SUPPORTS_BOTH_ENDIAN
config ARCH_DEFAULT_BE config ARCH_DEFAULT_BE
@ -59,9 +64,30 @@ endchoice
comment "Target optimisations" comment "Target optimisations"
config ARCH_SUPPORT_ARCH
bool
default n
config ARCH_SUPPORT_ABI
bool
default n
config ARCH_SUPPORT_CPU
bool
default n
config ARCH_SUPPORT_TUNE
bool
default n
config ARCH_SUPPORT_FPU
bool
default n
config ARCH_ARCH config ARCH_ARCH
string string
prompt "Architecture level" prompt "Architecture level"
depends on ARCH_SUPPORT_ARCH
default "" default ""
help help
GCC uses this name to determine what kind of instructions it can emit GCC uses this name to determine what kind of instructions it can emit
@ -81,6 +107,7 @@ config ARCH_ARCH
config ARCH_ABI config ARCH_ABI
string string
prompt "Generate code for the specific ABI" prompt "Generate code for the specific ABI"
depends on ARCH_SUPPORT_ABI
default "" default ""
help help
Generate code for the given ABI. Generate code for the given ABI.
@ -97,6 +124,7 @@ config ARCH_ABI
config ARCH_CPU config ARCH_CPU
string string
prompt "Emit assembly for CPU" prompt "Emit assembly for CPU"
depends on ARCH_SUPPORT_CPU
default "" default ""
help help
This specifies the name of the target processor. GCC uses this name This specifies the name of the target processor. GCC uses this name
@ -115,6 +143,7 @@ config ARCH_CPU
config ARCH_TUNE config ARCH_TUNE
string string
prompt "Tune for CPU" prompt "Tune for CPU"
depends on ARCH_SUPPORT_TUNE
default "" default ""
help help
This option is very similar to the ARCH_CPU option (above), except This option is very similar to the ARCH_CPU option (above), except
@ -137,6 +166,7 @@ config ARCH_TUNE
config ARCH_FPU config ARCH_FPU
string string
prompt "Use specific FPU" prompt "Use specific FPU"
depends on ARCH_SUPPORT_FPU
default "" default ""
help help
On some targets (eg. ARM), you can specify the kind of FPU to emit On some targets (eg. ARM), you can specify the kind of FPU to emit