Applied Joel Sherrill's patch to add v850-rtems target

From-SVN: r31216
This commit is contained in:
Joel Sherrill 2000-01-04 22:02:43 +00:00 committed by Nick Clifton
parent f22a97d238
commit 966f8bfd16
4 changed files with 66 additions and 0 deletions

View 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.

38
gcc/config/v850/rtems.h Normal file
View File

@ -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 */

11
gcc/configure vendored
View File

@ -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

View 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