aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-rtems.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel@OARcorp.com>2002-02-13 22:49:03 +0000
committerJoel Sherrill <joel@gcc.gnu.org>2002-02-13 22:49:03 +0000
commitf22b4bc43d0fb8af1928d6a702dae4121cf138c2 (patch)
treedb76c89c06b96d7cdc2ea6c1b734a02afec534fa /gcc/gthr-rtems.h
parent8686336f51b1197f22304f92b63780169be7c54b (diff)
downloadgcc-f22b4bc43d0fb8af1928d6a702dae4121cf138c2.zip
gcc-f22b4bc43d0fb8af1928d6a702dae4121cf138c2.tar.gz
gcc-f22b4bc43d0fb8af1928d6a702dae4121cf138c2.tar.bz2
config.gcc (a29k-*-rtems): General cleanup across all RTEMS targets...
2002-02-13 Joel Sherrill <joel@OARcorp.com> * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across all RTEMS targets including removal of #includes from config/*/rtems*.h file and adding them to tm_file setting. Added xm_defines=POSIX to many targets. * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto. * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto. * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto. * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto. * config.gcc (m68k-*-rtems*), config/m68k/rtems.h, config/m68k/rtemself.h: Ditto. * config.gcc (mips*-*-rtems*), config/mips/rtems.h, config/mips/rtems64.h: Ditto. * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto. * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h: Ditto. * config.gcc (sparc-*-rtems*), config/sparc/rtems.h, config/sparc/rtemself.h: Ditto. * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto. * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved arm-rtems stanza closer to other arm-elf targets and made arm-rtems more like arm-elf. * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h, config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself target made more similar to i386-elf. * config/i386/t-rtems-i386: Added soft float support and multilibs. * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to be similar to config/m68k/t-m68kelf. * gthr-rtems.h: Encapsulate with extern "C" for C++. From-SVN: r49749
Diffstat (limited to 'gcc/gthr-rtems.h')
-rw-r--r--gcc/gthr-rtems.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/gthr-rtems.h b/gcc/gthr-rtems.h
index eca281e..7a2264b 100644
--- a/gcc/gthr-rtems.h
+++ b/gcc/gthr-rtems.h
@@ -1,7 +1,7 @@
/* RTEMS threads compatibily routines for libgcc2 and libobjc.
by: Rosimildo da Silva( rdasilva@connecttel.com ) */
/* Compile this one with gcc. */
-/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of GCC.
@@ -30,6 +30,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_GTHR_RTEMS_H
#define GCC_GTHR_RTEMS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#define __GTHREADS 1
@@ -124,4 +127,8 @@ __gthread_mutex_unlock (__gthread_mutex_t *mutex)
return rtems_gxx_mutex_unlock( mutex );
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ! GCC_GTHR_RTEMS_H */