From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 03/16] gdbsupport: don't check for strstr declaration
Date: Tue, 13 Oct 2026 11:35:49 -0400 [thread overview]
Message-ID: <20261013153657.1610298-4-simon.marchi@efficios.com> (raw)
In-Reply-To: <20261013153657.1610298-1-simon.marchi@efficios.com>
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 <sys/personality.h>])
- 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
next prev parent reply other threads:[~2026-10-13 15:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 15:35 [PATCH 00/16] Cleanup obsolete configure checks Simon Marchi
2026-10-13 15:35 ` [PATCH 01/16] gdb: don't check for sys/debugreg.h Simon Marchi
2026-10-13 15:35 ` [PATCH 02/16] gdb: don't check for sigsetmask and ttrace Simon Marchi
2026-10-13 15:35 ` Simon Marchi [this message]
2026-10-13 15:35 ` [PATCH 04/16] gdbserver, gdbsupport: remove unneeded sys/procfs.h type checks Simon Marchi
2026-10-13 15:35 ` [PATCH 05/16] gdbserver: don't define HAVE_SYNC_BUILTINS Simon Marchi
2026-10-13 15:35 ` [PATCH 06/16] gdb: don't check for long double support Simon Marchi
2026-10-13 15:35 ` [PATCH 07/16] gdbserver: remove leftover Windows CE check in configure.ac Simon Marchi
2026-10-13 15:35 ` [PATCH 08/16] gdbsupport: don't check for memory.h Simon Marchi
2026-10-13 15:35 ` [PATCH 09/16] gdbserver: don't check for string.h Simon Marchi
2026-10-13 15:35 ` [PATCH 10/16] gdb, gdbserver: remove configure checks already done by GDB_AC_COMMON Simon Marchi
2026-10-13 15:35 ` [PATCH 11/16] gdb: remove redundant dlopen library search Simon Marchi
2026-10-13 15:35 ` [PATCH 12/16] gdb: don't check for long long support in the compiler Simon Marchi
2026-10-13 15:35 ` [PATCH 13/16] gdb: remove AC_C_CONST and AC_C_INLINE Simon Marchi
2026-10-13 15:36 ` [PATCH 14/16] gdbserver: remove fallback declarations of perror, vasprintf and vsnprintf Simon Marchi
2026-10-13 15:36 ` [PATCH 15/16] gdb: remove redundant snprintf declaration check Simon Marchi
2026-10-13 15:36 ` [PATCH 16/16] gdbserver, gdbsupport: don't check for signal.h, fcntl.h and locale.h Simon Marchi
2026-10-14 12:08 ` [PATCH 00/16] Cleanup obsolete configure checks Tom Tromey
2026-10-14 12:53 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261013153657.1610298-4-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox