]> Savannah Git Hosting - gnulib.git/commitdiff
argp: Fix test failure with clang's ASAN.
authorBruno Haible <bruno@clisp.org>
Wed, 8 May 2024 23:25:15 +0000 (01:25 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 23:00:11 +0000 (01:00 +0200)
Reported in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-12/msg00035.html>.

* m4/argp.m4 (gl_ARGP): Rename argp_parse to rpl_argp_parse.

ChangeLog
m4/argp.m4

index 61df52a7121b8ab3a83f6b0dcb48058c96b2a860..0bb947cbcd6fd31ec88f6b2e27ef4af26c0810d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-05-08  Bruno Haible  <bruno@clisp.org>
+
+       argp: Fix test failure with clang's ASAN.
+       Reported in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2023-12/msg00035.html>.
+       * m4/argp.m4 (gl_ARGP): Rename argp_parse to rpl_argp_parse.
+
 2024-05-04  Bruno Haible  <bruno@clisp.org>
 
        readutmp, boot-time: Work around a Cygwin 3.5.3 bug.
index 7afaa06ad6bad38dd3327e86ffac8236d82b7d91..f012fd5025b59109e344c0cc40a22b0b00e1dbd9 100644 (file)
@@ -1,4 +1,4 @@
-# argp.m4 serial 16
+# argp.m4 serial 17
 dnl Copyright (C) 2003-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,
@@ -10,6 +10,12 @@ AC_DEFUN([gl_ARGP],
   AC_REQUIRE([AC_C_RESTRICT])
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
+  dnl Rename argp_parse to another symbol, so that clang's ASAN does not
+  dnl intercept it.
+  dnl See <https://lists.gnu.org/archive/html/bug-gnulib/2023-12/msg00035.html>.
+  AC_DEFINE([argp_parse], [rpl_argp_parse],
+    [Define to the name of argp_parse outside libc.])
+
   AC_CHECK_DECLS([program_invocation_name],
     [],
     [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_NAME], [1],