]> Savannah Git Hosting - gnulib.git/commitdiff
Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
authorBruno Haible <bruno@clisp.org>
Sat, 9 May 2020 11:14:24 +0000 (13:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 9 May 2020 11:14:24 +0000 (13:14 +0200)
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.

ChangeLog
lib/eealloc.h
lib/pagealign_alloc.h
lib/xalloc.h

index 7f19e4e9843975892a1df3786c8d342a8091abf8..dff097df28d7be9071c8a9e10227cccea1e5efb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
index 351cbedff6e9a8ba38affb7844ddd145b1a78437..328268ef38fa76838500ebf5f884cb68d7201f7e 100644 (file)
@@ -39,13 +39,6 @@ _GL_INLINE_HEADER_BEGIN
 # 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
index 1459ec4321e7055817fc9fb4c34e41d0c36f3fab..393eb18d6a6952d30469b006dd74c0d71f211da7 100644 (file)
 
 # 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
index 19c64acb4168436124c88d292c7dd915884bf34b..24273ffbe333b4fbbdfba2c11d247dc02ed33612 100644 (file)
@@ -36,13 +36,6 @@ extern "C" {
 #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