diff options
author | ivmai <ivmai> | 2011-01-24 21:43:30 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:06:56 +0400 |
commit | bb4edc16faef98e2be3966eb1f6c9cec45c4ffeb (patch) | |
tree | 49666259893a4bc311454edc2c9d3ed8729bd457 /darwin_stop_world.c | |
parent | ce3582069e602d1e6d1d1b17a2336484150fdef5 (diff) | |
download | bdwgc-bb4edc16faef98e2be3966eb1f6c9cec45c4ffeb.tar.gz |
2011-01-22 Ivan Maidanski <ivmai@mail.ru> (mostly Jean-Claude Beaudoin)
* darwin_stop_world.c (GC_FindTopOfStack): Prefix and suffix
"volatile" keyword with double underscore.
* mach_dep.c (GETCONTEXT_FPU_EXCMASK_BUG): Recognize new macro and
include fenv.h if defined (unless NO_GETCONTEXT or HAVE_PUSH_REGS).
* mach_dep.c (GC_with_callee_saves_pushed): Restore FPU exception
mask corrupted by getcontext if GETCONTEXT_FPU_EXCMASK_BUG.
* include/private/gcconfig.h (GETCONTEXT_FPU_EXCMASK_BUG): Define
for Linux/amd64 (since its GLibc getcontext currently has the bug).
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r-- | darwin_stop_world.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index 6af69184..db462295 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -56,9 +56,9 @@ GC_INNER ptr_t GC_FindTopOfStack(unsigned long stack_start) if (stack_start == 0) { # ifdef POWERPC # if CPP_WORDSZ == 32 - __asm__ volatile("lwz %0,0(r1)" : "=r" (frame)); + __asm__ __volatile__ ("lwz %0,0(r1)" : "=r" (frame)); # else - __asm__ volatile("ld %0,0(r1)" : "=r" (frame)); + __asm__ __volatile__ ("ld %0,0(r1)" : "=r" (frame)); # endif # endif } else { |