summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/atomic_ops/sysdeps/gcc/x86.h6
-rw-r--r--src/atomic_ops/sysdeps/sunc/x86.h6
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 <ivmai@mail.ru>
+
+ * 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 <ivmai@mail.ru> (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;
}