From: Ivan Maidanski Date: Tue, 5 Feb 2013 20:23:22 +0000 (+0100) Subject: Revert "Prevent load_acquire redefinition in ordered_loads_only.h" X-Git-Tag: libatomic_ops-7_4_0~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=313650b5f9f6524efa717eb82c35eaf7107a0bcf;p=libatomic_ops Revert "Prevent load_acquire redefinition in ordered_loads_only.h" (That change is not needed because the file defines really only load_acquire, and load_read is the same as in generalize-small.h) This reverts commit ad464bf64a139cefa8b6f6e77b5f1f5ea1c51519. --- diff --git a/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h b/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h index 604738a..7852194 100644 --- a/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h +++ b/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.h @@ -31,10 +31,8 @@ } # define AO_HAVE_char_load_read -# ifndef AO_HAVE_char_load_acquire -# define AO_char_load_acquire(addr) AO_char_load_read(addr) -# define AO_HAVE_char_load_acquire -# endif +# define AO_char_load_acquire(addr) AO_char_load_read(addr) +# define AO_HAVE_char_load_acquire #endif /* AO_HAVE_char_load */ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. @@ -69,10 +67,8 @@ } # define AO_HAVE_short_load_read -# ifndef AO_HAVE_short_load_acquire -# define AO_short_load_acquire(addr) AO_short_load_read(addr) -# define AO_HAVE_short_load_acquire -# endif +# define AO_short_load_acquire(addr) AO_short_load_read(addr) +# define AO_HAVE_short_load_acquire #endif /* AO_HAVE_short_load */ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. @@ -107,10 +103,8 @@ } # define AO_HAVE_int_load_read -# ifndef AO_HAVE_int_load_acquire -# define AO_int_load_acquire(addr) AO_int_load_read(addr) -# define AO_HAVE_int_load_acquire -# endif +# define AO_int_load_acquire(addr) AO_int_load_read(addr) +# define AO_HAVE_int_load_acquire #endif /* AO_HAVE_int_load */ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. @@ -145,10 +139,8 @@ } # define AO_HAVE_load_read -# ifndef AO_HAVE_load_acquire -# define AO_load_acquire(addr) AO_load_read(addr) -# define AO_HAVE_load_acquire -# endif +# define AO_load_acquire(addr) AO_load_read(addr) +# define AO_HAVE_load_acquire #endif /* AO_HAVE_load */ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. @@ -183,8 +175,6 @@ } # define AO_HAVE_double_load_read -# ifndef AO_HAVE_double_load_acquire -# define AO_double_load_acquire(addr) AO_double_load_read(addr) -# define AO_HAVE_double_load_acquire -# endif +# define AO_double_load_acquire(addr) AO_double_load_read(addr) +# define AO_HAVE_double_load_acquire #endif /* AO_HAVE_double_load */ diff --git a/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template b/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template index 476bd8c..bc828ce 100644 --- a/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template +++ b/src/atomic_ops/sysdeps/loadstore/ordered_loads_only.template @@ -31,8 +31,6 @@ } # define AO_HAVE_XSIZE_load_read -# ifndef AO_HAVE_XSIZE_load_acquire -# define AO_XSIZE_load_acquire(addr) AO_XSIZE_load_read(addr) -# define AO_HAVE_XSIZE_load_acquire -# endif +# define AO_XSIZE_load_acquire(addr) AO_XSIZE_load_read(addr) +# define AO_HAVE_XSIZE_load_acquire #endif /* AO_HAVE_XSIZE_load */