diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-09-19 00:57:16 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-09-19 00:57:16 +0000 |
commit | 2b09622a0db0e4601fe6f8c71efdb4a40e8a16b8 (patch) | |
tree | 9d203e92d464ade1633f5d81bff8844963cf0746 /gas/configure.in | |
parent | 6a4c8f1e29bcfc8c354cbfeebfa98b75735fd477 (diff) | |
download | gdb-2b09622a0db0e4601fe6f8c71efdb4a40e8a16b8.zip gdb-2b09622a0db0e4601fe6f8c71efdb4a40e8a16b8.tar.gz gdb-2b09622a0db0e4601fe6f8c71efdb4a40e8a16b8.tar.bz2 |
* config/tc-sparc.c: (lookup_arch,init_default_arch): New functions.
(default_arch,default_init_p,sparc_arch_table): New static locals.
(sparc_arch_size): New static local.
(max_architecture): Initialize in init_default_arch.
(md_parse_options): Call init_default_arch if necessary.
Rewrite -xarch/-A processing.
(md_show_usage): Print -A values from sparc_arch_table.
(md_begin): Call init_default_arch if necessary.
(sparc_md_end): Handle both 32 and 64 bit environments.
* config/tc-sparc.h (TARGET_FORMAT): Likewise.
* acconfig.h (SPARC_V9,SPARC_ARCH64): Delete.
(DEFAULT_ARCH): Add.
* config.in: Regenerate.
* configure.in (sparc): Default DEFAULT_ARCH based on target cpu.
(SPARC_V9,SPARC_ARCH64): Delete.
* configure: Regenerate.
* config/vms-conf.h (SPARC_V9,SPARC_ARCH64): Delete.
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gas/configure.in b/gas/configure.in index 462c865..b71dc8b 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -66,6 +66,7 @@ changequote(,)dnl changequote([,])dnl # check for architecture variants + arch= endian= case ${cpu} in armeb) cpu_type=arm endian=big ;; @@ -85,8 +86,10 @@ changequote([,])dnl powerpcle*) cpu_type=ppc endian=little ;; powerpc*) cpu_type=ppc endian=big ;; rs6000*) cpu_type=ppc ;; - sparc64) cpu_type=sparc want_sparc_v9=true ;; - sparc*) cpu_type=sparc ;; + sparclite*) cpu_type=sparc arch=sparclite ;; + sparclet*) cpu_type=sparc arch=sparclet ;; + sparc64*) cpu_type=sparc arch=v9 ;; + sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. v850*) cpu_type=v850 ;; *) cpu_type=${cpu} ;; esac @@ -341,12 +344,6 @@ changequote([,])dnl ;; esac - test -n "$want_sparc_v9" && AC_DEFINE(SPARC_V9) - - case ${cpu}-${vendor}-${os} in - sparc64-*-elf*) AC_DEFINE(SPARC_ARCH64) ;; - esac - case ${cpu_type} in m32r) case ${extra_objects} in @@ -381,6 +378,10 @@ changequote([,])dnl fi ;; + sparc) + AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}") + ;; + *) ;; esac |