aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJoel Sherrill <joel@OARcorp.com>2000-12-07 02:42:02 +0000
committerJeff Law <law@gcc.gnu.org>2000-12-06 19:42:02 -0700
commitbc98ef7f6c0cb3ee14b28c3ca7655261138fe0a1 (patch)
treec47b465e075e5f52610c560762ac2bc684e2adbe /gcc/config
parent5eeab2e3fdc1ed8b98c3c0e9aced14e622f8534f (diff)
downloadgcc-bc98ef7f6c0cb3ee14b28c3ca7655261138fe0a1.zip
gcc-bc98ef7f6c0cb3ee14b28c3ca7655261138fe0a1.tar.gz
gcc-bc98ef7f6c0cb3ee14b28c3ca7655261138fe0a1.tar.bz2
config.gcc (a29k*-*-rtems*, [...]): New targets.
* config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*, h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets. * config.gcc (*-rtems*): Add support for gthr-rtems.h. * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h, config/mips/rtems.h: New files. From-SVN: r38094
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/a29k/rtems.h36
-rw-r--r--gcc/config/arm/rtems-elf.h37
-rw-r--r--gcc/config/h8300/rtems.h37
-rw-r--r--gcc/config/mips/rtems.h34
4 files changed, 144 insertions, 0 deletions
diff --git a/gcc/config/a29k/rtems.h b/gcc/config/a29k/rtems.h
new file mode 100644
index 0000000..e2adcc8
--- /dev/null
+++ b/gcc/config/a29k/rtems.h
@@ -0,0 +1,36 @@
+/* Definitions for rtems targeting a AMD A29K using COFF.
+ Copyright (C) 1997, 1998, 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 "a29k/a29k.h"
+
+/* Specify predefined symbols in preprocessor. */
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-D_AM29K -D_AM29000 -D_EPI -Drtems -D__rtems__ \
+ -Asystem(rtems) -Acpu(a29k) -Amachine(a29k)"
+
+/* 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>
diff --git a/gcc/config/arm/rtems-elf.h b/gcc/config/arm/rtems-elf.h
new file mode 100644
index 0000000..23a1a32
--- /dev/null
+++ b/gcc/config/arm/rtems-elf.h
@@ -0,0 +1,37 @@
+/* Definitions for RTEMS based ARM systems using ELF
+ Copyright (C) 2000 Free Software Foundation, Inc.
+
+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 this program; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+/* Run-time Target Specification. */
+#define TARGET_VERSION fputs (" (ARM/ELF RTEMS)", stderr);
+
+#define HAS_INIT_SECTION
+
+#include "unknown-elf.h"
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-Darm -Darm_elf -Drtems -D__rtems__ -D__ELF__ \
+ -Asystem(rtems) -Acpu(arm) -Amachine(arm)"
+
+/*#undef INVOKE_main*/
+
+/* Get machine-independent configuration parameters for RTEMS. */
+#include <rtems.h>
+
+
diff --git a/gcc/config/h8300/rtems.h b/gcc/config/h8300/rtems.h
new file mode 100644
index 0000000..1ac2de9
--- /dev/null
+++ b/gcc/config/h8300/rtems.h
@@ -0,0 +1,37 @@
+/* Definitions for rtems targeting a H8
+ 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 "h8300/h8300.h"
+
+/* Specify predefined symbols in preprocessor. */
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-Dh8300 \
+ -D__LONG_MAX__=2147483647L -D__LONG_LONG_MAX__=2147483647L \
+ -Drtems -D__rtems__ -Asystem(rtems) -Acpu(h8300) -Amachine(h8300)"
+
+/* 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>
diff --git a/gcc/config/mips/rtems.h b/gcc/config/mips/rtems.h
new file mode 100644
index 0000000..23463d7
--- /dev/null
+++ b/gcc/config/mips/rtems.h
@@ -0,0 +1,34 @@
+/* Definitions for rtems targeting a MIPS using ELF.
+ Copyright (C) 1996, 1997, 1998, 1999, 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. */
+
+/* Specify predefined symbols in preprocessor. */
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-Dmips -DMIPSEB -D_mips -D_MIPSEB \
+ -Drtems -D__rtems__ -Asystem(rtems)"
+
+/* 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>