bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] aligned_alloc: check for GNU behavior with size 0


From: Bruno Haible
Subject: Re: [PATCH 1/2] aligned_alloc: check for GNU behavior with size 0
Date: Thu, 31 Oct 2024 12:10:00 +0100

Paul Eggert wrote:
> +              /* Use paligned_alloc to test; 'volatile' prevents the compiler
> +                 from optimizing the malloc call away.  */

There's no malloc call here.


2024-10-31  Bruno Haible  <bruno@clisp.org>

        aligned_alloc: Fix comment.
        * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Fix typo in comment.

diff --git a/m4/aligned_alloc.m4 b/m4/aligned_alloc.m4
index 1311ea3c97..2d4a377e19 100644
--- a/m4/aligned_alloc.m4
+++ b/m4/aligned_alloc.m4
@@ -1,5 +1,5 @@
 # aligned_alloc.m4
-# serial 7
+# serial 8
 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -25,7 +25,7 @@ AC_DEFUN([gl_FUNC_ALIGNED_ALLOC]
          [AC_LANG_PROGRAM(
             [[#include <stdlib.h>
               /* Use paligned_alloc to test; 'volatile' prevents the compiler
-                 from optimizing the malloc call away.  */
+                 from optimizing the aligned_alloc call away.  */
               void *(*volatile paligned_alloc) (size_t, size_t)
                 = aligned_alloc;]],
             [[void *p = paligned_alloc (2, 18);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]