diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2003-06-30 19:47:22 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2003-06-30 19:47:22 +0000 |
commit | f13e0d4e03b103142140a2e574ad9a98634f426a (patch) | |
tree | d7081e2edcaaae25aaa2c0cdc2115d8f8931eae5 /gcc/config.gcc | |
parent | 82a30d6f0fc7a660cf360fd7d6ee4512e21d4b29 (diff) | |
download | gcc-f13e0d4e03b103142140a2e574ad9a98634f426a.zip gcc-f13e0d4e03b103142140a2e574ad9a98634f426a.tar.gz gcc-f13e0d4e03b103142140a2e574ad9a98634f426a.tar.bz2 |
config.gcc [...]: Support --with-arch, --with-tune, and --with-mode configure options.
* config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
--with-mode configure options.
* config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
(DRIVER_SELF_SPECS): Define.
* config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
architecture to assembler.
(LINK_SPEC): Merge 31-bit and 64-bit variants.
(LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
* config/s390/s390.c (override_options): New default rules for
architecture mode and cpu architecture selection.
* doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
new default rules.
* config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
* config/s390/s390.md (attr "cpu"): Add "z990" processor type.
* config/s390/s390.c (override_options): Add "z990" to
processor_alias_table.
* doc/invoke.texi (-march): Document "z990" processor type.
* config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
* config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
(enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
* config/s390/s390.c (override_options): Replace enum pta_flags by
enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
* config/s390/s390.c (s390_cpu): Rename to ...
(s390_tune): ... this.
* config/s390/s390.h (s390_cpu, s390_tune): Likewise.
* config/s390/s390.c (s390_issue_rate, override_options): Likewise.
* config/s390/s390.md (attr "cpu"): Likewise.
From-SVN: r68736
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 78e20e6..688604c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2444,6 +2444,35 @@ then done ;; + s390*-*-*) + supported_defaults="arch mode tune" + + for which in arch tune; do + eval "val=\$with_$which" + case x$val in + x \ + | xg5 | xg6 | xz900 | xz990) + # OK + ;; + *) + echo "Unknown cpu used in --with-$which=$val." 1>&2 + exit 1 + ;; + esac + done + + case "x$with_mode" in + x \ + | xesa | xzarch) + # OK + ;; + *) + echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 + exit 1 + ;; + esac + ;; + sparc*-*-*) supported_defaults="cpu float tune" @@ -2608,7 +2637,7 @@ then esac t= - all_defaults="abi cpu arch tune schedule float" + all_defaults="abi cpu arch tune schedule float mode" for option in $all_defaults do eval "val=\$with_$option" |