This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
FreeBSD Patch ?
- To: java-discuss@sourceware.cygnus.com
- Subject: FreeBSD Patch ?
- From: Amancio Hasty Jr <hasty@netcom.com>
- Date: Sat, 12 Jun 1999 00:04:01 -0700 (PDT)
Any reason why not commit Carlo's patch which was submitted on
5/20?
In trying to build libgcj I stumble upon the same problem
and fixed it locally on my system.
Tnks!
Amancio
----------------------------------------------------------------------
Carlo Dapor <carlo@vis.ethz.ch> :
*** mach_dep.c.orig Wed Apr 7 16:56:05 1999
--- mach_dep.c Thu May 20 17:20:56 1999
*************** void GC_push_regs()
*** 170,176 ****
# if defined(I386) &&!defined(OS2) &&!defined(SVR4) &&!defined(MSWIN32) \
&& !defined(SCO) && !defined(SCO_ELF) && !(defined(LINUX) \
! && defined(__ELF__)) && !defined(DOS4GW)
/* I386 code, generic code does not appear to work */
/* It does appear to work under OS2, and asms dont */
/* This is used for some 38g UNIX variants and for CYGWIN32 */
--- 170,176 ----
# if defined(I386) &&!defined(OS2) &&!defined(SVR4) &&!defined(MSWIN32) \
&& !defined(SCO) && !defined(SCO_ELF) && !(defined(LINUX) \
! && defined(__ELF__)) && !defined(DOS4GW) && !defined(FREEBSD)
/* I386 code, generic code does not appear to work */
/* It does appear to work under OS2, and asms dont */
/* This is used for some 38g UNIX variants and for CYGWIN32 */
*************** void GC_push_regs()
*** 183,190 ****
asm("pushl %ebx"); asm("call _GC_push_one"); asm("addl $4,%esp");
# endif
! # if defined(I386) && defined(LINUX) && defined(__ELF__)
! /* This is modified for Linux with ELF (Note: _ELF_ only) */
asm("pushl %eax"); asm("call GC_push_one"); asm("addl $4,%esp");
asm("pushl %ecx"); asm("call GC_push_one"); asm("addl $4,%esp");
asm("pushl %edx"); asm("call GC_push_one"); asm("addl $4,%esp");
--- 183,190 ----
asm("pushl %ebx"); asm("call _GC_push_one"); asm("addl $4,%esp");
# endif
! # if defined(I386) && (defined(LINUX) || defined(FREEBSD)) && defined(__ELF__)
! /* This is modified for Linux/FreeBSD with ELF (Note: _ELF_ only) */
asm("pushl %eax"); asm("call GC_push_one"); asm("addl $4,%esp");
asm("pushl %ecx"); asm("call GC_push_one"); asm("addl $4,%esp");
asm("pushl %edx"); asm("call GC_push_one"); asm("addl $4,%esp");