From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QbRsF0FQzmoCoQIAWB0awg (envelope-from ) for ; Tue, 13 Oct 2026 11:37:37 -0400 Received: by simark.ca (Postfix, from userid 112) id 568581E051; Tue, 13 Oct 2026 11:37:37 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 23C331E04E for ; Tue, 13 Oct 2026 11:37:34 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 941814BA2E39 for ; Tue, 13 Oct 2026 15:37:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 941814BA2E39 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 8A9CF4BA23E8 for ; Tue, 13 Oct 2026 15:37:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A9CF4BA23E8 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A9CF4BA23E8 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905828; cv=none; b=XGVbK/seUWlOTgj4u3NgOOUDlDgqkS6wyFlHWdPsK3wcIlznWVqN5NMBzGHUBJnKhhTH8jxmsITgfnq20BriySB1ljqoOYuj7C4nEW3edzizGAUJ4Po8FO7IBk1MVuNFZ3oqxDL+LeqIIVy0Wo82OclTE4dws6O6uJkRzuP5Wv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905828; c=relaxed/simple; bh=Nx/nczJycbwEfGh/su22KRjDX8WbnRHMWOeDQPO4g6w=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=m3FYSKOHpvwm4hqzVC+y1KLjwofYNr3LRagjJvYoPB4/eG1qnpowgzKH1NHWLtQUdZ9HPfR1fja9YRSiT8HC5r8wdJ5Mkv1beWl9V6efMv/9SwiBm+LHjo3KVz3k0XkUXZEosbwrN1/oYnn+DqmYnsNMaKTp4syCzVXZHhMY/bU= ARC-Authentication-Results: i=1; sourceware.org Received: by simark.ca (Postfix) id C14171E06B; Tue, 13 Oct 2026 11:37:06 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 03/16] gdbsupport: don't check for strstr declaration Date: Tue, 13 Oct 2026 11:35:49 -0400 Message-ID: <20261013153657.1610298-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261013153657.1610298-1-simon.marchi@efficios.com> References: <20261013153657.1610298-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Nothing uses HAVE_DECL_STRSTR. Remove the check from common.m4. Regenerate config.in and configure in gdb, gdbserver and gdbsupport. Change-Id: Ia5174a670e7ba6313b9a71e9c3269d3f50285d2c --- gdb/config.in | 4 ---- gdb/configure | 12 ------------ gdbserver/config.in | 4 ---- gdbserver/configure | 12 ------------ gdbsupport/common.m4 | 2 -- gdbsupport/config.in | 4 ---- gdbsupport/configure | 12 ------------ 7 files changed, 50 deletions(-) diff --git a/gdb/config.in b/gdb/config.in index 32ffc4f849ef..07af8d32acb3 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -155,10 +155,6 @@ don't. */ #undef HAVE_DECL_SNPRINTF -/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. - */ -#undef HAVE_DECL_STRSTR - /* Define to 1 if you have the declaration of `strtol', and to 0 if you don't. */ #undef HAVE_DECL_STRTOL diff --git a/gdb/configure b/gdb/configure index b859b401dab8..7d1a906eaff1 100755 --- a/gdb/configure +++ b/gdb/configure @@ -20360,18 +20360,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF - ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" -if test "x$ac_cv_have_decl_strstr" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRSTR $ac_have_decl -_ACEOF - - # ----------------------- # # Checks for structures. # # ----------------------- # diff --git a/gdbserver/config.in b/gdbserver/config.in index ead66ce7a574..daad1ec02a25 100644 --- a/gdbserver/config.in +++ b/gdbserver/config.in @@ -66,10 +66,6 @@ don't. */ #undef HAVE_DECL_SNPRINTF -/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. - */ -#undef HAVE_DECL_STRSTR - /* Define to 1 if you have the declaration of `strtol', and to 0 if you don't. */ #undef HAVE_DECL_STRTOL diff --git a/gdbserver/configure b/gdbserver/configure index dd749fcb55bc..1eac3d01669a 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -8564,18 +8564,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF - ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" -if test "x$ac_cv_have_decl_strstr" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRSTR $ac_have_decl -_ACEOF - - # ----------------------- # # Checks for structures. # # ----------------------- # diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index 6bf15fff670d..4de9710c41f0 100644 --- a/gdbsupport/common.m4 +++ b/gdbsupport/common.m4 @@ -88,8 +88,6 @@ AC_CHECK_HEADERS([ \ # only in linux/personality.h. AC_CHECK_DECLS([ADDR_NO_RANDOMIZE],,, [#include ]) - AC_CHECK_DECLS([strstr]) - # ----------------------- # # Checks for structures. # # ----------------------- # diff --git a/gdbsupport/config.in b/gdbsupport/config.in index 2957ee0f0301..4b152c67cae7 100644 --- a/gdbsupport/config.in +++ b/gdbsupport/config.in @@ -62,10 +62,6 @@ don't. */ #undef HAVE_DECL_SNPRINTF -/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. - */ -#undef HAVE_DECL_STRSTR - /* Define to 1 if you have the declaration of `strtol', and to 0 if you don't. */ #undef HAVE_DECL_STRTOL diff --git a/gdbsupport/configure b/gdbsupport/configure index 0bc9ff1db9a1..998130c29cfa 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -11463,18 +11463,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF - ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" -if test "x$ac_cv_have_decl_strstr" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRSTR $ac_have_decl -_ACEOF - - # ----------------------- # # Checks for structures. # # ----------------------- # -- 2.56.0