summaryrefslogtreecommitdiff
path: root/src/atomic_ops
diff options
context:
space:
mode:
Diffstat (limited to 'src/atomic_ops')
-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