From: Bruno Haible Date: Wed, 8 May 2024 23:25:15 +0000 (+0200) Subject: argp: Fix test failure with clang's ASAN. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=911c899e2f924fc5e14c2961dd7688695f254692;p=gnulib.git argp: Fix test failure with clang's ASAN. Reported in . * m4/argp.m4 (gl_ARGP): Rename argp_parse to rpl_argp_parse. --- diff --git a/ChangeLog b/ChangeLog index b425b2e0c5..f47dcf75ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-05-08 Bruno Haible + + argp: Fix test failure with clang's ASAN. + Reported in + . + * m4/argp.m4 (gl_ARGP): Rename argp_parse to rpl_argp_parse. + 2024-05-03 Simon Josefsson maint.mk: Don't fail on ~/.indent.pro, reported by Collin Funk. diff --git a/m4/argp.m4 b/m4/argp.m4 index 1f8578bd3a..f012fd5025 100644 --- a/m4/argp.m4 +++ b/m4/argp.m4 @@ -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 . + 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],