summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-11-29 20:36:56 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-11-29 20:36:56 +0400
commitf414d5d67dea1662cd2479364e318f6db9a4747e (patch)
tree41afdea3c75da1d2399a6ade49e672cc01be07f0
parentd29ec9d4cfbf3f45ddd4b658ced174be444f2970 (diff)
downloadlibatomic_ops-f414d5d67dea1662cd2479364e318f6db9a4747e.tar.gz
Fix generalization for IA-64, Hexagon (include generalize.h before
ao_t_is_int.h to have AO_or, AO_..._read/write and some other int-derived primitives got defined) * src/atomic_ops/sysdeps/gcc/hexagon.h: Include generalize.h file before ao_t_is_int.h one. * src/atomic_ops/sysdeps/gcc/ia64.h: Likewise. * src/atomic_ops/sysdeps/hpc/ia64.h: Likewise.
-rw-r--r--src/atomic_ops/sysdeps/gcc/hexagon.h3
-rw-r--r--src/atomic_ops/sysdeps/gcc/ia64.h2
-rw-r--r--src/atomic_ops/sysdeps/hpc/ia64.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/hexagon.h b/src/atomic_ops/sysdeps/gcc/hexagon.h
index fdc9e56..62ad0da 100644
--- a/src/atomic_ops/sysdeps/gcc/hexagon.h
+++ b/src/atomic_ops/sysdeps/gcc/hexagon.h
@@ -92,4 +92,7 @@ AO_compare_and_swap(volatile AO_t *addr, AO_t old, AO_t new_val)
}
#define AO_HAVE_compare_and_swap
+/* Generalize first to define more AO_int_... primitives. */
+#include "../../generalize.h"
+
#include "../ao_t_is_int.h"
diff --git a/src/atomic_ops/sysdeps/gcc/ia64.h b/src/atomic_ops/sysdeps/gcc/ia64.h
index 60c7a7e..6c5e221 100644
--- a/src/atomic_ops/sysdeps/gcc/ia64.h
+++ b/src/atomic_ops/sysdeps/gcc/ia64.h
@@ -279,5 +279,7 @@ AO_int_compare_and_swap_release(volatile unsigned int *addr,
/* FIXME: Add compare_double_and_swap_double for the _ILP32 case. */
#ifdef _ILP32
+ /* Generalize first to define more AO_int_... primitives. */
+# include "../../generalize.h"
# include "../ao_t_is_int.h"
#endif
diff --git a/src/atomic_ops/sysdeps/hpc/ia64.h b/src/atomic_ops/sysdeps/hpc/ia64.h
index b793fcb..3c538fd 100644
--- a/src/atomic_ops/sysdeps/hpc/ia64.h
+++ b/src/atomic_ops/sysdeps/hpc/ia64.h
@@ -160,5 +160,7 @@ AO_short_compare_and_swap_release(volatile unsigned short *addr,
#define AO_HAVE_short_compare_and_swap_release
#ifndef __LP64__
+ /* Generalize first to define more AO_int_... primitives. */
+# include "../../generalize.h"
# include "../ao_t_is_int.h"
#endif