OSDN Git Service

Applied Joel Sherrill's patch to add v850-rtems target
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jan 2000 22:02:43 +0000 (22:02 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jan 2000 22:02:43 +0000 (22:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31216 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/v850/rtems.h [new file with mode: 0644]
gcc/configure
gcc/configure.in

index d6909f6..6cafbc6 100644 (file)
@@ -1,3 +1,9 @@
+2000-01-04  Joel Sherrill <joel@OARcorp.com>
+
+       * configure.in (v850*-*-rtems*): New target.
+       * configure: Regenerate.
+       * config/v850/rtems.h: New file.
+
 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
diff --git a/gcc/config/v850/rtems.h b/gcc/config/v850/rtems.h
new file mode 100644 (file)
index 0000000..e306318
--- /dev/null
@@ -0,0 +1,38 @@
+/* Definitions for rtems targeting a v850 using elf
+   Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
+   Contributed by Joel Sherrill (joel@OARcorp.com).
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
+
+#include "v850/v850.h"
+
+/* Specify predefined symbols in preprocessor.  */
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-D__v851__ -D__v850 -Drtems \
+  -Asystem(rtems) -Acpu(v850) -Amachine(v850)"
+
+/* Generate calls to memcpy, memcmp and memset.  */
+#ifndef TARGET_MEM_FUNCTIONS
+#define TARGET_MEM_FUNCTIONS
+#endif
+
+/* Get machine-independent configuration parameters for RTEMS.  */
+#include <rtems.h>
+
+/* end of v850/rtems.h */
index 1f1b170..e574c46 100755 (executable)
@@ -6159,6 +6159,17 @@ for machine in $build $host $target; do
 #              cpu_type=gmicro
 #              use_collect2=yes
 #              ;;
+       v850-*-rtems*)
+               cpu_type=v850
+               tm_file="v850/rtems.h"
+               xm_file="v850/xm-v850.h"
+               tmake_file="v850/t-v850 t-rtems"
+               if test x$stabs = xyes
+               then
+                       tm_file="${tm_file} dbx.h"
+               fi
+               use_collect2=no
+               ;;
        v850-*-*)
                target_cpu_default="TARGET_CPU_generic"
                cpu_type=v850
index d37b5ec..2026ad8 100644 (file)
@@ -3497,6 +3497,17 @@ changequote([,])dnl
 #              cpu_type=gmicro
 #              use_collect2=yes
 #              ;;
+       v850-*-rtems*)
+               cpu_type=v850
+               tm_file="v850/rtems.h"
+               xm_file="v850/xm-v850.h"
+               tmake_file="v850/t-v850 t-rtems"
+               if test x$stabs = xyes
+               then
+                       tm_file="${tm_file} dbx.h"
+               fi
+               use_collect2=no
+               ;;
        v850-*-*)
                target_cpu_default="TARGET_CPU_generic"
                cpu_type=v850