This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libffi and embedded mips


Hi,

I am trying to turn on libffi for mips-rtems and ran into this
piece of code in libffi/include/ffi_mips.h

#if !defined(_MIPS_SIM)
-- something is very wrong --
#else
#  if _MIPS_SIM==_ABIN32 && defined(_ABIN32)
#    define FFI_MIPS_N32
#  else
#    if defined(__GNUC__)
#      define FFI_MIPS_O32
#    else
#      if _MIPS_SIM==_ABIO32
#        define FFI_MIPS_O32
#      else
-- this is an unsupported platform --
#      endif 
#    endif
#  endif
#endif 

It looks like the unix mips platforms go to great pains to define
this based upon gcc arguments.  

I have no idea how it should be set for a generic mips-elf
embedded target.  Suggestions appreciated.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]