From b0c38aeafa4c346f9810bbe42d69c88dfd50bb20 Mon Sep 17 00:00:00 2001 From: hboehm Date: Sun, 19 Mar 2006 06:02:13 +0000 Subject: [PATCH] 2006-03-18 Hans Boehm * mach_dep.c: Remove x86 assembly code to allow thread support. * doc/README.win32: add cygwin threads reminder. --- doc/README.win32 | 1 + mach_dep.c | 38 -------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/doc/README.win32 b/doc/README.win32 index 6f57db11..8ea02b1e 100644 --- a/doc/README.win32 +++ b/doc/README.win32 @@ -76,6 +76,7 @@ DATASTART and DATAEND in gcconfig.h. The collector should also be buildable under Cygwin with either the old standard Makefile, or with the "configure;make" machinery. +(For the latter use --enable-threads=posix for thread support.) Borland Tools ------------- diff --git a/mach_dep.c b/mach_dep.c index 13947868..11599c7a 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -149,44 +149,6 @@ void GC_push_regs() # define HAVE_PUSH_REGS # endif /* __MWERKS__ */ # endif /* MACOS */ - -# if defined(I386) && (defined(__MINGW32__) || defined(CYGWIN32)) - 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"); - asm("pushl %ebp"); asm("call _GC_push_one"); asm("addl $4,%esp"); - asm("pushl %esi"); asm("call _GC_push_one"); asm("addl $4,%esp"); - asm("pushl %edi"); asm("call _GC_push_one"); asm("addl $4,%esp"); - asm("pushl %ebx"); asm("call _GC_push_one"); asm("addl $4,%esp"); -# define HAVE_PUSH_REGS -# endif - -# if defined(I386) && defined(MSWIN32) && !defined(__MINGW32__) \ - && !defined(CYGWIN32) - /* I386 code, Microsoft variant */ - __asm push eax - __asm call GC_push_one - __asm add esp,4 - __asm push ebx - __asm call GC_push_one - __asm add esp,4 - __asm push ecx - __asm call GC_push_one - __asm add esp,4 - __asm push edx - __asm call GC_push_one - __asm add esp,4 - __asm push ebp - __asm call GC_push_one - __asm add esp,4 - __asm push esi - __asm call GC_push_one - __asm add esp,4 - __asm push edi - __asm call GC_push_one - __asm add esp,4 -# define HAVE_PUSH_REGS -# endif } #endif /* !USE_ASM_PUSH_REGS */ -- 2.49.0