diff mbox

V850: Add -mv850es command line option

Message ID m31v42jkxt.fsf@redhat.com
State New
Headers show

Commit Message

Nick Clifton Jan. 24, 2011, 5 p.m. UTC
Hi Guys,

  I am checking in the patch below to add a new -mv850es command line
  option to the V850 port.  The is for the V850ES processor, which
  essentially the same as the V850E1, and hence -mv850es acts as an
  alias for -mv850e1.

Cheers
  Nick

gcc/ChangeLog
2011-01-24  Nick Clifton  <nickc@redhat.com>

	* config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
	* config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
	-mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
	then define __v850e1__.
	* doc/invoke.texi: Document -mv850es.
diff mbox

Patch

Index: gcc/config/v850/v850.opt
===================================================================
--- gcc/config/v850/v850.opt	(revision 169167)
+++ gcc/config/v850/v850.opt	(working copy)
@@ -89,6 +89,10 @@ 
 Target RejectNegative Mask(V850E1)
 Compile for the v850e1 processor
 
+mv850es
+Target RejectNegative Mask(V850E1) MaskExists
+Compile for the v850es variant of the v850e1
+
 mv850e2
 Target Report RejectNegative Mask(V850E2)
 Compile for the v850e2 processor
Index: gcc/config/v850/v850.h
===================================================================
--- gcc/config/v850/v850.h	(revision 169167)
+++ gcc/config/v850/v850.h	(working copy)
@@ -98,9 +98,15 @@ 
 
 #define TARGET_V850E2_ALL      (TARGET_V850E2 || TARGET_V850E2V3) 
 
-#define ASM_SPEC "%{mv*:-mv%*}"
-#define CPP_SPEC               "%{mv850e2v3:-D__v850e2v3__} %{mv850e2:-D__v850e2__} %{mv850e:-D__v850e__} %{mv850:-D__v850__} %(subtarget_cpp_spec)" \
-                               " %{mep:-D__EP__}"
+#define ASM_SPEC "%{mv850es:-mv850e1}%{!mv850es:%{mv*:-mv%*}}"
+#define CPP_SPEC "\
+  %{mv850e2v3:-D__v850e2v3__} \
+  %{mv850e2:-D__v850e2__} \
+  %{mv850es:-D__v850e1__} \
+  %{mv850e1:-D__v850e1__} \
+  %{mv850:-D__v850__} \
+  %(subtarget_cpp_spec)" \
+  " %{mep:-D__EP__}"
 
 #define EXTRA_SPECS \
  { "subtarget_asm_spec", SUBTARGET_ASM_SPEC }, \
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 169167)
+++ gcc/doc/invoke.texi	(working copy)
@@ -890,7 +890,7 @@ 
 -mdisable-callt  -mno-disable-callt @gol
 -mv850e2v3 @gol
 -mv850e2 @gol
--mv850e1 @gol
+-mv850e1 -mv850es @gol
 -mv850e @gol
 -mv850  -mbig-switch}
 
@@ -17389,6 +17389,11 @@ 
 Specify that the target processor is the V850E1.  The preprocessor
 constants @samp{__v850e1__} and @samp{__v850e__} will be defined if
 
+@item -mv850es
+@opindex mv850es
+Specify that the target processor is the V850ES.  This is an alias for
+the @option{-mv850e1} option.
+
 @item -mv850e
 @opindex mv850e
 Specify that the target processor is the V850E@.  The preprocessor