Prevent load_acquire redefinition in ordered_loads_only.h
authorIvan Maidanski <ivmai@mail.ru>
Sat, 26 Jan 2013 08:58:34 +0000 (12:58 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 26 Jan 2013 08:58:34 +0000 (12:58 +0400)
* src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template
(AO_XSIZE_load_acquire, AO_HAVE_XSIZE_load_acquire): Do not define
if AO_HAVE_XSIZE_load_acquire already defined.
* src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h: Regenerate.

src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h
src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template

index 7852194..604738a 100644 (file)
   }
 # define AO_HAVE_char_load_read
 
-# define AO_char_load_acquire(addr) AO_char_load_read(addr)
-# define AO_HAVE_char_load_acquire
+# ifndef AO_HAVE_char_load_acquire
+#   define AO_char_load_acquire(addr) AO_char_load_read(addr)
+#   define AO_HAVE_char_load_acquire
+# endif
 #endif /* AO_HAVE_char_load */
 /*
  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
   }
 # define AO_HAVE_short_load_read
 
-# define AO_short_load_acquire(addr) AO_short_load_read(addr)
-# define AO_HAVE_short_load_acquire
+# ifndef AO_HAVE_short_load_acquire
+#   define AO_short_load_acquire(addr) AO_short_load_read(addr)
+#   define AO_HAVE_short_load_acquire
+# endif
 #endif /* AO_HAVE_short_load */
 /*
  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
   }
 # define AO_HAVE_int_load_read
 
-# define AO_int_load_acquire(addr) AO_int_load_read(addr)
-# define AO_HAVE_int_load_acquire
+# ifndef AO_HAVE_int_load_acquire
+#   define AO_int_load_acquire(addr) AO_int_load_read(addr)
+#   define AO_HAVE_int_load_acquire
+# endif
 #endif /* AO_HAVE_int_load */
 /*
  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
   }
 # define AO_HAVE_load_read
 
-# define AO_load_acquire(addr) AO_load_read(addr)
-# define AO_HAVE_load_acquire
+# ifndef AO_HAVE_load_acquire
+#   define AO_load_acquire(addr) AO_load_read(addr)
+#   define AO_HAVE_load_acquire
+# endif
 #endif /* AO_HAVE_load */
 /*
  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
   }
 # define AO_HAVE_double_load_read
 
-# define AO_double_load_acquire(addr) AO_double_load_read(addr)
-# define AO_HAVE_double_load_acquire
+# ifndef AO_HAVE_double_load_acquire
+#   define AO_double_load_acquire(addr) AO_double_load_read(addr)
+#   define AO_HAVE_double_load_acquire
+# endif
 #endif /* AO_HAVE_double_load */
index bc828ce..476bd8c 100644 (file)
@@ -31,6 +31,8 @@
   }
 # define AO_HAVE_XSIZE_load_read
 
-# define AO_XSIZE_load_acquire(addr) AO_XSIZE_load_read(addr)
-# define AO_HAVE_XSIZE_load_acquire
+# ifndef AO_HAVE_XSIZE_load_acquire
+#   define AO_XSIZE_load_acquire(addr) AO_XSIZE_load_read(addr)
+#   define AO_HAVE_XSIZE_load_acquire
+# endif
 #endif /* AO_HAVE_XSIZE_load */