+2020-05-09 Bruno Haible <bruno@clisp.org>
+
+ Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
+ Reported by Akim Demaille in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
+ * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
+ * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
+ * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
+
2020-05-09 Bruno Haible <bruno@clisp.org>
stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
# define EEALLOC_INLINE _GL_INLINE
#endif
-#if ! defined __clang__ && \
- (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
-#else
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
-#endif
-
#if MALLOC_0_IS_NONNULL
# define eemalloc malloc
#else
# include <stddef.h>
-#if ! defined __clang__ && \
- (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
-#else
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
-#endif
-
/* Allocate a block of memory of SIZE bytes, aligned on a system page
boundary.
If SIZE is not a multiple of the system page size, it will be rounded up
#endif
-#if ! defined __clang__ && \
- (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
-#else
-# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
-#endif
-
/* This function is always triggered when memory is exhausted.
It must be defined by the application, either explicitly
or by using gnulib's xalloc-die module. This is the