[Patch libgcj] sgi-mips-irix-6.5 port

Gilles Zunino Gilles.Zunino@hei.fupl.asso.fr
Wed May 5 05:42:00 GMT 1999


	Hello

        Here is a patch to enable libgcj on sgi-mips-irix6.5.
        This requires to modify configure.in in boehm-gc directory
        to set machdep to the correct file for this machine and
        define some macros for compilation. On Irix 6.5, we use
        the posix threads. The file configure.in in libjava has been
        modified to use posix threads for Irix 6.5

        I was not able to fully test the new library because egcs
lastest
        snapshot refuses to compile libjava/java/lang/natMath.cc :

       
http://sourceware.cygnus.com/ml/java-discuss/1999-q2/msg00192.html

        The boehm GC seemed to build correctly. OK to install ?


        1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>

        For boehm-gc directory :

        * configure.in : Switch from irix threads to posix threads
        Defined IRIX_THREADS. Put mips_sgi_mach_dep.lo into machdep
        for mips architecture.
        * configure : Regenerate.

        For libjava directory :

        * configure.in : Switch from irix threads to posix threads
        * configure : Regenerate.


cvs -d :pserver:anoncvs@sourceware.cygnus.com:/cvs/java diff -c3p libgcj
cvs server: Diffing libgcj
cvs server: Diffing libgcj/boehm-gc
Index: libgcj/boehm-gc/configure.in
===================================================================
RCS file: /cvs/java/libgcj/boehm-gc/configure.in,v
retrieving revision 1.5
diff -c -3 -p -r1.5 configure.in
*** configure.in        1999/04/26 14:15:03     1.5
--- configure.in        1999/05/05 12:08:28
*************** if test "$THREADS" = yes; then
*** 44,50 ****
         THREADS=win32
         ;;
      *-*-irix*)
!        THREADS=irix
         ;;
      *-*-solaris*)
         # FIXME: for now, choose POSIX, because we implement that.
--- 44,52 ----
         THREADS=win32
         ;;
      *-*-irix*)
!        # FIXME: for now, choose POSIX, because we implement that.
!        # Later, choose irix threads.
!        THREADS=posix
         ;;
      *-*-solaris*)
         # FIXME: for now, choose POSIX, because we implement that.
*************** case "$THREADS" in
*** 74,86 ****
        AC_DEFINE(SOLARIS_THREADS)
        AC_DEFINE(_SOLARIS_PTHREADS)
        ;;
      esac
      ;;
   qt)
      AC_DEFINE(QUICK_THREADS)
      INCLUDES="-I${boehm_gc_basedir}/../qthreads"
      ;;
!  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
      AC_MSG_ERROR(thread package $THREADS not yet supported)
      ;;
   *)
--- 76,91 ----
        AC_DEFINE(SOLARIS_THREADS)
        AC_DEFINE(_SOLARIS_PTHREADS)
        ;;
+      *-*-irix*)
+       AC_DEFINE(IRIX_THREADS)
+         ;;
      esac
      ;;
   qt)
      AC_DEFINE(QUICK_THREADS)
      INCLUDES="-I${boehm_gc_basedir}/../qthreads"
      ;;
!  decosf1 | mach | os2 | solaris | win32 | dce | vxworks)
      AC_MSG_ERROR(thread package $THREADS not yet supported)
      ;;
   *)
*************** machdep=
*** 131,136 ****
--- 136,145 ----
  case "$host" in
   alpha-*-*)
      machdep="alpha_mach_dep.lo"
+     ;;
+  mips-*-*)
+     machdep="mips_sgi_mach_dep.lo"
+     AC_DEFINE(NO_EXECUTE_PERMISSION)
      ;;
   mipstx39-*-elf*)
      machdep="mips_ultrix_mach_dep.lo"

===================================================================
RCS file: /cvs/java/libgcj/libjava/configure.in,v
retrieving revision 1.4
diff -c -3 -p -r1.4 configure.in
*** configure.in        1999/04/26 14:50:15     1.4
--- configure.in        1999/05/05 12:08:30
*************** if test "$THREADS" = yes; then
*** 140,146 ****
         THREADS=win32
         ;;
      *-*-irix*)
!        THREADS=irix
         ;;
      *-*-solaris*)
         # FIXME: for now, choose POSIX, because we implement that.
--- 140,148 ----
         THREADS=win32
         ;;
      *-*-irix*)
!        # FIXME: for now, choose POSIX, because we implement that.
!        # Later, choose irix threads.
!        THREADS=posix
         ;;
      *-*-solaris*)
         # FIXME: for now, choose POSIX, because we implement that.
*************** case "$THREADS" in
*** 168,174 ****
      ;;
   qt)
      ;;
!  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
      AC_MSG_ERROR(thread package $THREADS not yet supported)
      ;;
   *)
--- 170,176 ----
      ;;
   qt)
      ;;
!  decosf1 | mach | os2 | solaris | win32 | dce | vxworks)
      AC_MSG_ERROR(thread package $THREADS not yet supported)
      ;;
   *)
_________________________________________________________________
Gilles Zunino - (Gilles.Zunino@hei.fupl.asso.fr)   (A 506)  7636

HEI, 13 rue de Toul, 59 046 LILLE CEDEX FRANCE
Phone : (+33) 3 28.38.48.58  Fax : (+33) 3 28.38.48.04


More information about the Java mailing list