From b218117881fafbef884595762b4a059436e1e4d3 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 2 Dec 2009 19:37:22 -0700 Subject: [PATCH] fix continuations=true build for Cygwin --- src/compile-x86.S | 8 ++++---- src/continuations-x86.S | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compile-x86.S b/src/compile-x86.S index 7248b02b52..ad4c9e3d3d 100644 --- a/src/compile-x86.S +++ b/src/compile-x86.S @@ -22,7 +22,7 @@ #ifdef __x86_64__ -#ifdef __MINGW32__ +#if defined __MINGW32__ || defined __CYGWIN32__ #define CALLEE_SAVED_REGISTER_FOOTPRINT 64 @@ -154,7 +154,7 @@ LOCAL(vmJumpAndInvoke_argumentTest): int3 #endif // not AVIAN_CONTINUATIONS -#else // not __MINGW32__ +#else // not __MINGW32__ ||__CYGWIN32__ #define CALLEE_SAVED_REGISTER_FOOTPRINT 48 @@ -279,7 +279,7 @@ LOCAL(vmJumpAndInvoke_argumentTest): int3 #endif // not AVIAN_CONTINUATIONS -#endif // not __MINGW32__ +#endif // not __MINGW32__ || __CYGWIN32__ #elif defined __i386__ @@ -396,7 +396,7 @@ GLOBAL(vmJumpAndInvoke): movl 4(%esp),%ebx // set return address -#ifdef __MINGW32__ +#if defined __MINGW32__ || defined __CYGWIN32__ movl $vmInvoke_returnAddress,%esi #else call LOCAL(getPC) diff --git a/src/continuations-x86.S b/src/continuations-x86.S index f9d6ad1732..d2c7126c51 100644 --- a/src/continuations-x86.S +++ b/src/continuations-x86.S @@ -131,7 +131,7 @@ LOCAL(vmInvoke_continuationTest): // set the return address to vmInvoke_returnAddress movl CONTINUATION_RETURN_ADDRESS_OFFSET(%ecx),%edi -#ifdef __MINGW32__ +#if defined __MINGW32__ || defined __CYGWIN32__ movl $vmInvoke_returnAddress,%esi #else call LOCAL(getPC)