From 911c899e2f924fc5e14c2961dd7688695f254692 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 9 May 2024 01:25:15 +0200 Subject: [PATCH] argp: Fix test failure with clang's ASAN. Reported in . * m4/argp.m4 (gl_ARGP): Rename argp_parse to rpl_argp_parse. --- ChangeLog | 7 +++++++ m4/argp.m4 | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) 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], -- 2.39.5