diff options
author | Nick Clifton <nickc@redhat.com> | 2011-06-07 14:00:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2011-06-07 14:00:13 +0000 |
commit | 1dcad079712bdc8e49d6bc2bcecc0034a4691402 (patch) | |
tree | f83009af2ecd65b2c59c14143ee7ca574f36373d /gcc/config.gcc | |
parent | 009db074870ccdf44bafc9d3f604246ddb80974b (diff) | |
download | gcc-1dcad079712bdc8e49d6bc2bcecc0034a4691402.zip gcc-1dcad079712bdc8e49d6bc2bcecc0034a4691402.tar.gz gcc-1dcad079712bdc8e49d6bc2bcecc0034a4691402.tar.bz2 |
config.gcc: Unify V850 architecture options and add support for newer V850 architectures.
* config.gcc: Unify V850 architecture options and add support for
newer V850 architectures.
* config/v850/t-v850e: Delete.
From-SVN: r174744
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 63 |
1 files changed, 25 insertions, 38 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 624129b..5d88d1b 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2559,29 +2559,28 @@ spu-*-elf*) c_target_objs="${c_target_objs} spu-c.o" cxx_target_objs="${cxx_target_objs} spu-c.o" ;; -v850e1-*-*) - target_cpu_default="TARGET_CPU_v850e1" - tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" - tm_p_file=v850/v850-protos.h - tmake_file=v850/t-v850e - md_file=v850/v850.md - extra_modes=v850/v850-modes.def - out_file=v850/v850.c - extra_options="${extra_options} v850/v850.opt" - if test x$stabs = xyes - then - tm_file="${tm_file} dbx.h" - fi - use_collect2=no - c_target_objs="v850-c.o" - cxx_target_objs="v850-c.o" - use_gcc_stdint=wrap - ;; -v850e-*-*) - target_cpu_default="TARGET_CPU_v850e" + +v850*-*-*) + case ${target} in + v850e2v3-*-*) + target_cpu_default="TARGET_CPU_v850e2v3" + ;; + v850e2-*-*) + target_cpu_default="TARGET_CPU_v850e2" + ;; + v850e1-*-* | v850es-*-*) + target_cpu_default="TARGET_CPU_v850e1" + ;; + v850e-*-*) + target_cpu_default="TARGET_CPU_v850e" + ;; + v850-*-*) + target_cpu_default="TARGET_CPU_generic" + ;; + esac tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" tm_p_file=v850/v850-protos.h - tmake_file=v850/t-v850e + tmake_file=v850/t-v850 md_file=v850/v850.md extra_modes=v850/v850-modes.def out_file=v850/v850.c @@ -2595,19 +2594,6 @@ v850e-*-*) cxx_target_objs="v850-c.o" use_gcc_stdint=wrap ;; -v850-*-*) - target_cpu_default="TARGET_CPU_generic" - tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" - tmake_file=v850/t-v850 - if test x$stabs = xyes - then - tm_file="${tm_file} dbx.h" - fi - use_collect2=no - c_target_objs="v850-c.o" - cxx_target_objs="v850-c.o" - use_gcc_stdint=wrap - ;; vax-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h" extra_options="${extra_options} vax/elf.opt" @@ -3493,7 +3479,7 @@ case "${target}" in v850*-*-*) supported_defaults=cpu case ${with_cpu} in - "" | v850e | v850e1) + "" | v850e | v850e1 | v850e2 | v850es | v850e2v3) # OK ;; *) @@ -3621,14 +3607,15 @@ case ${target} in ;; v850*-*-*) - # FIXME: The v850 is "special" in that it does not support - # runtime CPU selection, only --with-cpu. case "x$with_cpu" in x) ;; - xv850e) + xv850e | xv850e1 | xv850e2 | xv850e2v3) target_cpu_default2="TARGET_CPU_$with_cpu" ;; + xv850es) + target_cpu_default2="TARGET_CPU_v850e1" + ;; esac ;; esac |