From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SfrqLENQzmoCoQIAWB0awg (envelope-from ) for ; Tue, 13 Oct 2026 11:37:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 9568C1E04E; Tue, 13 Oct 2026 11:37:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 60FC21E04E for ; Tue, 13 Oct 2026 11:37:38 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4F36A4BA799E for ; Tue, 13 Oct 2026 15:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F36A4BA799E Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 7C60C4BA23F6 for ; Tue, 13 Oct 2026 15:37:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C60C4BA23F6 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 7C60C4BA23F6 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=1791905831; cv=none; b=xqB84lFzcCnmxL2FSgKpxHgxXyNCJqfCIFz5B96JDzAndv0fz0yeFFVMQLcIFGG5YGQsLUiOkS+thWiX/fK5gfi6GyP6Vf6agjqc8EQqZYWsbpqwrjzz4SQo59NEkbYo3S3LyqyO48lDFFTGWOKHCM8ZusNE/IBvgosztZVDRb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905831; c=relaxed/simple; bh=RGZG9smWlDZFRsLe5w5FMc00KjEugLcYS3rp1BwHFj8=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=lcOgvrM0QohjCaFkid62uLNHniruj7jfY/7oGuGtByRIZmt64/vqDUs1MUhREUXUzSU6kVbI+8NesZbLgKwYQE3MUrUek7rs9YFJevytKDiryvvsqF2geTmpJ3JbzyK5YG9EpM81cMQvNteGWObXBheB/2rv9666CC3tySTlgWI= ARC-Authentication-Results: i=1; sourceware.org Received: by simark.ca (Postfix) id DF2F61E091; Tue, 13 Oct 2026 11:37:07 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 05/16] gdbserver: don't define HAVE_SYNC_BUILTINS Date: Tue, 13 Oct 2026 11:35:51 -0400 Message-ID: <20261013153657.1610298-6-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_SYNC_BUILTINS. Remove the AC_DEFINE from configure.ac. The check itself stays, since its result decides whether the in-process agent is built. Regenerate config.in and configure. Change-Id: Iaee9ff65662b41cd6574f065ddabd040aef8ac76 --- gdbserver/config.in | 3 --- gdbserver/configure | 5 ----- gdbserver/configure.ac | 4 ---- 3 files changed, 12 deletions(-) diff --git a/gdbserver/config.in b/gdbserver/config.in index 5b2e60260154..d0b609003800 100644 --- a/gdbserver/config.in +++ b/gdbserver/config.in @@ -302,9 +302,6 @@ /* Define to 1 if `st_blocks' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLOCKS -/* Define to 1 if the target supports __sync_*_compare_and_swap */ -#undef HAVE_SYNC_BUILTINS - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FILE_H diff --git a/gdbserver/configure b/gdbserver/configure index 68a1f59d675a..01318a6cf122 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -13988,11 +13988,6 @@ rm -f core conftest.err conftest.$ac_objext \ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } -if test "$gdbsrv_cv_have_sync_builtins" = yes; then - -$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h - -fi saved_cflags="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac index 87d0fc6dec9a..3ecd8fef2be3 100644 --- a/gdbserver/configure.ac +++ b/gdbserver/configure.ac @@ -335,10 +335,6 @@ AC_CACHE_CHECK( [gdbsrv_cv_have_sync_builtins=no] )] ) -if test "$gdbsrv_cv_have_sync_builtins" = yes; then - AC_DEFINE(HAVE_SYNC_BUILTINS, 1, - [Define to 1 if the target supports __sync_*_compare_and_swap]) -fi dnl Check for -fvisibility=hidden support in the compiler. saved_cflags="$CFLAGS" -- 2.56.0