]> 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>
Wed, 8 May 2024 23:25:15 +0000 (01:25 +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 f61d05a90f7e60df48b6c8b68f080cabecfa6bdd..5166fe99ded52d2e4df52baee52f78604e9a5a03 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-08  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Make --megatest behaviour more similar to shell impl.
index 3df651b270a246bda2a84a371e48e92d6045cd14..a093c4d7451edf565a4f65e64902664c5e5bb1dc 100644 (file)
@@ -1,5 +1,5 @@
 # argp.m4
-# serial 16
+# 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,
@@ -11,6 +11,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],