OSDN Git Service

* include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2003 19:18:35 +0000 (19:18 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2003 19:18:35 +0000 (19:18 +0000)
FFI_MIPS_O32 for O32 ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72161 138bc75d-0d04-0410-961f-82ee72b054a4

libffi/ChangeLog
libffi/include/ffi_mips.h

index 29f4ec6..8e41e95 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
+       FFI_MIPS_O32 for O32 ABI.
+
 2003-10-01  Andreas Tobler  <a.tobler@schweiz.ch>
 
        * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
index 6fd5647..c54224c 100644 (file)
 #if !defined(_MIPS_SIM)
 -- something is very wrong --
 #else
-#  if _MIPS_SIM==_ABIN32 && defined(_ABIN32)
+#  if (_MIPS_SIM==_ABIN32 && defined(_ABIN32)) || (_MIPS_SIM==_ABI64 && defined(_ABI64))
 #    define FFI_MIPS_N32
 #  else
-#    if defined(__GNUC__)
+#    if _MIPS_SIM==_ABIO32 && defined(_ABIO32)
 #      define FFI_MIPS_O32
 #    else
-#      if _MIPS_SIM==_ABIO32
-#        define FFI_MIPS_O32
-#      else
 -- this is an unsupported platform --
-#      endif
 #    endif
 #  endif
 #endif