From f7c4c35f7ee9b5dfb1a731c607cc6522240c30ec Mon Sep 17 00:00:00 2001 From: nickc Date: Tue, 4 Jan 2000 22:02:43 +0000 Subject: [PATCH] Applied Joel Sherrill's patch to add v850-rtems target git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31216 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/v850/rtems.h | 38 ++++++++++++++++++++++++++++++++++++++ gcc/configure | 11 +++++++++++ gcc/configure.in | 11 +++++++++++ 4 files changed, 66 insertions(+) create mode 100644 gcc/config/v850/rtems.h diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6909f6b278..6cafbc6b069 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-01-04 Joel Sherrill + + * configure.in (v850*-*-rtems*): New target. + * configure: Regenerate. + * config/v850/rtems.h: New file. + 2000-01-04 Mumit Khan * 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 index 00000000000..e30631835c1 --- /dev/null +++ b/gcc/config/v850/rtems.h @@ -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 + +/* end of v850/rtems.h */ diff --git a/gcc/configure b/gcc/configure index 1f1b1705a3a..e574c46ccf7 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 diff --git a/gcc/configure.in b/gcc/configure.in index d37b5ec20f6..2026ad8ce0b 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -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 -- 2.11.0