From 4400d04c371e854d11a2c9fb11ca9e8b2630f4d9 Mon Sep 17 00:00:00 2001 From: ivmai Date: Thu, 1 Oct 2009 09:34:52 +0000 Subject: [PATCH] 2009-10-01 Ivan Maidanski * src/atomic_ops/sysdeps/gcc/x86.h: Remove spaces preceding '#' for the preprocessor directives. * src/atomic_ops/sysdeps/sunc/x86.h: Ditto. --- ChangeLog | 6 ++++++ src/atomic_ops/sysdeps/gcc/x86.h | 6 +++--- src/atomic_ops/sysdeps/sunc/x86.h | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ce829d..eef51b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-01 Ivan Maidanski + + * src/atomic_ops/sysdeps/gcc/x86.h: Remove spaces preceding '#' + for the preprocessor directives. + * src/atomic_ops/sysdeps/sunc/x86.h: Ditto. + 2009-09-30 Ivan Maidanski (really Petter Urkedal) * README: Move notes from the hand-edited part of INSTALL which diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h index 10ef02f..a82a2f9 100644 --- a/src/atomic_ops/sysdeps/gcc/x86.h +++ b/src/atomic_ops/sysdeps/gcc/x86.h @@ -141,7 +141,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, AO_t new_val1, AO_t new_val2) { char result; - #if __PIC__ +#if __PIC__ /* If PIC is turned on, we can't use %ebx as it is reserved for the GOT pointer. We can save and restore %ebx because GCC won't be using it for anything else (such as any of the m operands) */ @@ -152,7 +152,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, : "=m"(*addr), "=q"(result) : "m"(*addr), "d" (old_val2), "a" (old_val1), "c" (new_val2), "m" (new_val1) : "memory"); - #else +#else /* We can't just do the same thing in non-PIC mode, because GCC * might be using %ebx as the memory operand. We could have ifdef'd * in a clobber, but there's no point doing the push/pop if we don't @@ -161,7 +161,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, : "=m"(*addr), "=q"(result) : "m"(*addr), "d" (old_val2), "a" (old_val1), "c" (new_val2), "b" (new_val1) : "memory"); - #endif +#endif return (int) result; } diff --git a/src/atomic_ops/sysdeps/sunc/x86.h b/src/atomic_ops/sysdeps/sunc/x86.h index be83b44..a3236b5 100644 --- a/src/atomic_ops/sysdeps/sunc/x86.h +++ b/src/atomic_ops/sysdeps/sunc/x86.h @@ -142,7 +142,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, { char result; /* FIXME: not tested */ - #if __PIC__ +#if __PIC__ /* If PIC is turned on, we can't use %ebx as it is reserved for the GOT pointer. We can save and restore %ebx because GCC won't be using it for anything else (such as any of the m operands) */ @@ -153,7 +153,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, : "=m"(*addr), "=q"(result) : "m"(*addr), "d" (old_val2), "a" (old_val1), "c" (new_val2), "m" (new_val1) : "memory"); - #else +#else /* We can't just do the same thing in non-PIC mode, because GCC * might be using %ebx as the memory operand. We could have ifdef'd * in a clobber, but there's no point doing the push/pop if we don't @@ -162,7 +162,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, : "=m"(*addr), "=q"(result) : /* "m"(*addr), */ "d" (old_val2), "a" (old_val1), "c" (new_val2), "b" (new_val1) : "memory"); - #endif +#endif return (int) result; } -- 2.40.0