aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1997-09-09 15:06:54 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-09 09:06:54 -0600
commit74aca74bc31fbb7795b7f0ffb5659739941d08cc (patch)
treefe567c19f792554782a3e2ccd0ea849072a97ce8
parentc0b041480e2424abb4a20ccd8818f9ffb74e1013 (diff)
downloadgcc-74aca74bc31fbb7795b7f0ffb5659739941d08cc.zip
gcc-74aca74bc31fbb7795b7f0ffb5659739941d08cc.tar.gz
gcc-74aca74bc31fbb7795b7f0ffb5659739941d08cc.tar.bz2
v850.h (ASM_SPEC): Pass on target processor.
* v850.h (ASM_SPEC): Pass on target processor. (CPP_PREDEFINES): Only define if not already specified. (TARGET_VERSION): Only define if not already specified. (MASK_CPU, MASK_V850, MASK_DEFAULT): Bits to specify target processor. (EXTRA_SWITCHES): Extra entries in the switches array. (TARGET_DEFAULT): Set default target processor. From-SVN: r15180
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/v850/v850.h23
2 files changed, 28 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1196983..94b0ca0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+Mon Sep 8 15:15:11 1997 Nick Clifton <nickc@cygnus.com>
+
+ * v850.h (ASM_SPEC): Pass on target processor.
+ (CPP_PREDEFINES): Only define if not already specified.
+ (TARGET_VERSION): Only define if not already specified.
+ (MASK_CPU, MASK_V850, MASK_DEFAULT): Bits to specify target
+ processor.
+ (EXTRA_SWITCHES): Extra entries in the switches array.
+ (TARGET_DEFAULT): Set default target processor.
+
Mon Sep 8 18:26:35 1997 Jim Wilson <wilson@cygnus.com>
* m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index 2a05aef..e155c2d 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -24,6 +24,8 @@ Boston, MA 02111-1307, USA. */
#include "svr4.h"
#undef ASM_SPEC
+#define ASM_SPEC "%{mv*:-mv%*}"
+
#undef ASM_FINAL_SPEC
#undef LIB_SPEC
#undef ENDFILE_SPEC
@@ -32,7 +34,15 @@ Boston, MA 02111-1307, USA. */
/* Names to predefine in the preprocessor for this target machine. */
+#ifndef CPP_PREDEFINES
#define CPP_PREDEFINES "-D__v850__ -D__v851__ -D__v850"
+#endif
+
+/* Print subsidiary information on the compiler version in use. */
+
+#ifndef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (NEC V850)");
+#endif
/* Run-time compilation parameters selecting different hardware subsets. */
@@ -98,10 +108,17 @@ extern int target_flags;
{ "no-prolog-function", -MASK_PROLOG_FUNCTION }, \
{ "space", MASK_EP | MASK_PROLOG_FUNCTION }, \
{ "debug", MASK_DEBUG }, \
+ { "v850", MASK_V850 }, \
+ { "v850", -(MASK_V850 ^ MASK_CPU) }, \
+ EXTRA_SWITCHES \
{ "", TARGET_DEFAULT}}
+#ifndef EXTRA_SWITCHES
+#define EXTRA_SWITCHES
+#endif
+
#ifndef TARGET_DEFAULT
-#define TARGET_DEFAULT 0
+#define TARGET_DEFAULT MASK_DEFAULT
#endif
/* Information about the various small memory areas. */
@@ -152,10 +169,6 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
{ "zda-", &small_memory[ (int)SMALL_MEMORY_ZDA ].value }, \
}
-/* Print subsidiary information on the compiler version in use. */
-
-#define TARGET_VERSION fprintf (stderr, " (NEC V850)");
-
/* Sometimes certain combinations of command options do not make
sense on a particular target machine. You can define a macro
`OVERRIDE_OPTIONS' to take account of this. This macro, if