diff options
author | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-08 19:17:55 +0000 |
---|---|---|
committer | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-08 19:17:55 +0000 |
commit | 126de59d2705863e14bba860ffadf19c97701fb8 (patch) | |
tree | 34cb18d4d2a890b4e5f456ee33293658c3d2e67d /libffi | |
parent | 143c96ad7c523a2330a83a69086e7740e897ebf4 (diff) | |
download | gcc-126de59d2705863e14bba860ffadf19c97701fb8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 7 | ||||
-rwxr-xr-x | libffi/configure | 2 | ||||
-rw-r--r-- | libffi/configure.ac | 2 | ||||
-rw-r--r-- | libffi/src/mips/ffitarget.h | 8 |
4 files changed, 17 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 53990f48fad..69c9e00ef0e 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -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 diff --git a/libffi/configure b/libffi/configure index a4a4a1932ca..b115511dd6c 100755 --- a/libffi/configure +++ b/libffi/configure @@ -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*) diff --git a/libffi/configure.ac b/libffi/configure.ac index a7e97d5ec71..d16155a40fb 100644 --- a/libffi/configure.ac +++ b/libffi/configure.ac @@ -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*) diff --git a/libffi/src/mips/ffitarget.h b/libffi/src/mips/ffitarget.h index c5f4e056841..d0fc983a74f 100644 --- a/libffi/src/mips/ffitarget.h +++ b/libffi/src/mips/ffitarget.h @@ -29,9 +29,17 @@ #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 |