Commit: Add support for configuring for other V850 architectures

Nick Clifton nickc@redhat.com
Tue Jun 7 13:59:00 GMT 2011


Hi Guys,

  I am applying the patch below to tidy up the V850 architecture
  selection in config.gcc and to add support for newer V850
  architectures (eg V850e2v3).

Cheers
  Nick

gcc/ChangeLog
2011-06-07  Nick Clifton  <nickc@redhat.com>

	* config.gcc: Unify V850 architecture options and add support for
	newer V850 architectures.
	* config/v850/t-v850e: Delete.

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 174737)
+++ gcc/config.gcc	(working copy)
@@ -2559,11 +2559,28 @@
 	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"
+
+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
@@ -2577,37 +2594,6 @@
 	cxx_target_objs="v850-c.o"
 	use_gcc_stdint=wrap
 	;;
-v850e-*-*)
-	target_cpu_default="TARGET_CPU_v850e"
-	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
-	;;
-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 @@
 	v850*-*-*)
 		supported_defaults=cpu
 		case ${with_cpu} in
-		"" | v850e | v850e1)
+		"" | v850e | v850e1 | v850e2 | v850es | v850e2v3)
 			# OK
 			;;
 		*)
@@ -3621,14 +3607,15 @@
 		;;
 
 	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



More information about the Gcc-patches mailing list