configure.ac: Add mips*-*-rtems* support.
authorJoel Sherrill <joel.sherrill@oarcorp.com>
Tue, 8 Feb 2011 19:17:55 +0000 (19:17 +0000)
committerJoel Sherrill <joel@gcc.gnu.org>
Tue, 8 Feb 2011 19:17:55 +0000 (19:17 +0000)
2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>

* configure.ac: Add mips*-*-rtems* support.
* configure: Regenerate.
* src/mips/ffitarget.h: Ensure needed constants are available
for targets which do not have sgidefs.h.

From-SVN: r169936

libffi/ChangeLog
libffi/configure
libffi/configure.ac
libffi/src/mips/ffitarget.h

index 53990f48fad76545d82f4f551cc2e8f15dbc363b..69c9e00ef0e75c10dfc924181ea37499f85ded23 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * configure.ac: Add mips*-*-rtems* support.
+       * configure: Regenerate.
+       * src/mips/ffitarget.h: Ensure needed constants are available
+       for targets which do not have sgidefs.h.
+
 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        PR target/40125
index a4a4a1932cacb35f706de7718f2b35cbb1980b27..b115511dd6c85911e9f3eb95b8235270339571ce 100755 (executable)
@@ -11391,7 +11391,7 @@ case "$host" in
        TARGET=M68K; TARGETDIR=m68k
        ;;
 
-  mips-sgi-irix5.* | mips-sgi-irix6.*)
+  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
        TARGET=MIPS; TARGETDIR=mips
        ;;
   mips*-*-linux*)
index a7e97d5ec7130e0b87baa88ae109806588235d13..d16155a40fb839f8a6e23a27e7a098f7e101d153 100644 (file)
@@ -114,7 +114,7 @@ case "$host" in
        TARGET=M68K; TARGETDIR=m68k
        ;;
 
-  mips-sgi-irix5.* | mips-sgi-irix6.*)
+  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
        TARGET=MIPS; TARGETDIR=mips
        ;;
   mips*-*-linux*)
index c5f4e0568416434f9246d69f0332b5acce2856ee..d0fc983a74f8fab84426e127d289a63517f24e6e 100644 (file)
 
 #ifdef linux
 # include <asm/sgidefs.h>
+#elif defined(__rtems__)
+/*
+ * Subprogram calling convention - copied from sgidefs.h
+ */
+#define _MIPS_SIM_ABI32                1
+#define _MIPS_SIM_NABI32       2
+#define _MIPS_SIM_ABI64                3
 #else
 # include <sgidefs.h>
 #endif
+
 #  ifndef _ABIN32
 #    define _ABIN32 _MIPS_SIM_NABI32
 #  endif