]> 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:27:13 +0000 (01:27 +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 b425b2e0c5d02f87c2f345b65b464c1a2df7aa12..f47dcf75eefb83ec74af8ed39b1dad3ab622860f 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-03  Simon Josefsson  <simon@josefsson.org>
 
        maint.mk: Don't fail on ~/.indent.pro, reported by Collin Funk.
index 1f8578bd3a54637132c9ab313c9f07ad6ba13d60..f012fd5025b59109e344c0cc40a22b0b00e1dbd9 100644 (file)
@@ -1,5 +1,5 @@
-# argp.m4 serial 16
-dnl Copyright (C) 2003-2023 Free Software Foundation, Inc.
+# 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,
 dnl with or without modifications, as long as this notice is preserved.
@@ -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],