1.1 --- a/config/target.in Fri Jun 27 13:58:53 2008 +0000
1.2 +++ b/config/target.in Fri Jun 27 15:08:43 2008 +0000
1.3 @@ -6,10 +6,15 @@
1.4 string
1.5
1.6 # Pre-declare target optimisation variables
1.7 +config ARCH_SUPPORT_ARCH
1.8 config ARCH_ARCH
1.9 +config ARCH_SUPPORT_ABI
1.10 config ARCH_ABI
1.11 +config ARCH_SUPPORT_CPU
1.12 config ARCH_CPU
1.13 +config ARCH_SUPPORT_TUNE
1.14 config ARCH_TUNE
1.15 +config ARCH_SUPPORT_FPU
1.16 config ARCH_FPU
1.17 config ARCH_SUPPORTS_BOTH_ENDIAN
1.18 config ARCH_DEFAULT_BE
1.19 @@ -59,9 +64,30 @@
1.20
1.21 comment "Target optimisations"
1.22
1.23 +config ARCH_SUPPORT_ARCH
1.24 + bool
1.25 + default n
1.26 +
1.27 +config ARCH_SUPPORT_ABI
1.28 + bool
1.29 + default n
1.30 +
1.31 +config ARCH_SUPPORT_CPU
1.32 + bool
1.33 + default n
1.34 +
1.35 +config ARCH_SUPPORT_TUNE
1.36 + bool
1.37 + default n
1.38 +
1.39 +config ARCH_SUPPORT_FPU
1.40 + bool
1.41 + default n
1.42 +
1.43 config ARCH_ARCH
1.44 string
1.45 prompt "Architecture level"
1.46 + depends on ARCH_SUPPORT_ARCH
1.47 default ""
1.48 help
1.49 GCC uses this name to determine what kind of instructions it can emit
1.50 @@ -81,6 +107,7 @@
1.51 config ARCH_ABI
1.52 string
1.53 prompt "Generate code for the specific ABI"
1.54 + depends on ARCH_SUPPORT_ABI
1.55 default ""
1.56 help
1.57 Generate code for the given ABI.
1.58 @@ -97,6 +124,7 @@
1.59 config ARCH_CPU
1.60 string
1.61 prompt "Emit assembly for CPU"
1.62 + depends on ARCH_SUPPORT_CPU
1.63 default ""
1.64 help
1.65 This specifies the name of the target processor. GCC uses this name
1.66 @@ -115,6 +143,7 @@
1.67 config ARCH_TUNE
1.68 string
1.69 prompt "Tune for CPU"
1.70 + depends on ARCH_SUPPORT_TUNE
1.71 default ""
1.72 help
1.73 This option is very similar to the ARCH_CPU option (above), except
1.74 @@ -137,6 +166,7 @@
1.75 config ARCH_FPU
1.76 string
1.77 prompt "Use specific FPU"
1.78 + depends on ARCH_SUPPORT_FPU
1.79 default ""
1.80 help
1.81 On some targets (eg. ARM), you can specify the kind of FPU to emit