boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / libatomic_ops-1.2 / src / atomic_ops / sysdeps / read_ordered.h
index e928881ff03e42d7e5085cdf09f98e71b726b41f..922f5ea507dcc5b28cfbffb3f28daa59d9783670 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 AO_INLINE void
-AO_nop_read()
+AO_nop_read(void)
 {
   AO_compiler_barrier();
 }
@@ -38,7 +38,7 @@ AO_nop_read()
 #ifdef AO_HAVE_load
 
 AO_INLINE AO_t
-AO_load_read(volatile AO_t *addr)
+AO_load_read(const volatile AO_t *addr)
 {
   AO_t result = AO_load(addr);
   AO_compiler_barrier();
@@ -54,7 +54,7 @@ AO_load_read(volatile AO_t *addr)
 #ifdef AO_HAVE_char_load
 
 AO_INLINE AO_t
-AO_char_load_read(volatile unsigned char *addr)
+AO_char_load_read(const volatile unsigned char *addr)
 {
   AO_t result = AO_char_load(addr);
   AO_compiler_barrier();
@@ -70,7 +70,7 @@ AO_char_load_read(volatile unsigned char *addr)
 #ifdef AO_HAVE_short_load
 
 AO_INLINE AO_t
-AO_short_load_read(volatile unsigned short *addr)
+AO_short_load_read(const volatile unsigned short *addr)
 {
   AO_t result = AO_short_load(addr);
   AO_compiler_barrier();
@@ -86,7 +86,7 @@ AO_short_load_read(volatile unsigned short *addr)
 #ifdef AO_HAVE_int_load
 
 AO_INLINE AO_t
-AO_int_load_read(volatile unsigned int *addr)
+AO_int_load_read(const volatile unsigned int *addr)
 {
   AO_t result = AO_int_load(addr);
   AO_compiler_barrier();