From 812c6dd4edac1b2e7f6783937e4d0210bdf31db8 Mon Sep 17 00:00:00 2001 From: nickc Date: Thu, 4 Sep 2003 13:20:24 +0000 Subject: Add support for v850e1 processor - a variant of the v850e. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71063 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/v850/t-v850 | 5 +++++ gcc/config/v850/t-v850e | 4 ++++ gcc/config/v850/v850.h | 14 ++++++++++++++ 3 files changed, 23 insertions(+) (limited to 'gcc/config/v850') diff --git a/gcc/config/v850/t-v850 b/gcc/config/v850/t-v850 index 8a7063f92fe..4890ee3a9ff 100644 --- a/gcc/config/v850/t-v850 +++ b/gcc/config/v850/t-v850 @@ -84,9 +84,14 @@ fp-bit.c: $(srcdir)/config/fp-bit.c MULTILIB_OPTIONS = mv850e MULTILIB_DIRNAMES = v850e INSTALL_LIBGCC = install-multilib +MULTILIB_MATCHES = mv850e=mv850e1 TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h toplev.h $(GGC_H) $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/v850/v850-c.c + +# Local Variables: +# mode: Makefile +# End: diff --git a/gcc/config/v850/t-v850e b/gcc/config/v850/t-v850e index f6546026eef..97724e58109 100644 --- a/gcc/config/v850/t-v850e +++ b/gcc/config/v850/t-v850e @@ -90,3 +90,7 @@ TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsign v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h toplev.h $(GGC_H) $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/v850/v850-c.c + +# Local Variables: +# mode: Makefile +# End: diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h index 52e631334e5..7ebf12d6693 100644 --- a/gcc/config/v850/v850.h +++ b/gcc/config/v850/v850.h @@ -32,6 +32,7 @@ #define TARGET_CPU_generic 1 #define TARGET_CPU_v850e 2 +#define TARGET_CPU_v850e1 3 #ifndef TARGET_CPU_DEFAULT #define TARGET_CPU_DEFAULT TARGET_CPU_generic @@ -56,6 +57,17 @@ #define TARGET_VERSION fprintf (stderr, " (NEC V850E)"); #endif +#if TARGET_CPU_DEFAULT == TARGET_CPU_v850e1 +#undef MASK_DEFAULT +#define MASK_DEFAULT MASK_V850E /* No practical difference. */ +#undef SUBTARGET_ASM_SPEC +#define SUBTARGET_ASM_SPEC "%{!mv*:-mv850e1}" +#undef SUBTARGET_CPP_SPEC +#define SUBTARGET_CPP_SPEC "%{!mv*:-D__v850e1__} %{mv850e1:-D__v850e1__}" +#undef TARGET_VERSION +#define TARGET_VERSION fprintf (stderr, " (NEC V850E1)"); +#endif + #define ASM_SPEC "%{mv*:-mv%*}" #define CPP_SPEC "%{mv850e:-D__v850e__} %{mv850:-D__v850__} %(subtarget_cpp_spec)" @@ -176,6 +188,8 @@ extern int target_flags; { "v850", MASK_V850, \ N_("Compile for the v850 processor") }, \ { "v850", -(MASK_V850 ^ MASK_CPU), "" }, \ + { "v850e1", MASK_V850E, N_("Compile for v850e1 processor") }, \ + { "v850e1", -(MASK_V850E ^ MASK_CPU), "" }, /* Make sure that the other bits are cleared. */ \ { "v850e", MASK_V850E, N_("Compile for v850e processor") }, \ { "v850e", -(MASK_V850E ^ MASK_CPU), "" }, /* Make sure that the other bits are cleared. */ \ { "small-sld", MASK_SMALL_SLD, N_("Enable the use of the short load instructions") }, \ -- cgit v1.2.1