+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.
# 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,
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],