From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 88s1FE+PomYitjEAWB0awg (envelope-from ) for ; Thu, 25 Jul 2024 13:45:51 -0400 Received: by simark.ca (Postfix, from userid 112) id 180971E0D0; Thu, 25 Jul 2024 13:45:51 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 E9A291E0AC for ; Thu, 25 Jul 2024 13:45:48 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A98C93858401 for ; Thu, 25 Jul 2024 17:45:48 +0000 (GMT) Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id DDD75385840C for ; Thu, 25 Jul 2024 17:45:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDD75385840C 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 DDD75385840C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721929519; cv=none; b=g+mtFqljIZqKuguYhAF+Epm3vVbxedak2gkgyJx76LOuOclK5a6sJ8y5xRJzYjnvQJRASiyWqZNwOSwdAfzR4cHlRjOjOfROlMj4oq07msyGnLOsMngfBaAyjtN2W6Jxo9nKpMFA049IRvOaswT+bLrz9F0h7/roGu1vXwwTIco= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721929519; c=relaxed/simple; bh=LVUTEz1uLjCRZ8eI+w6CkE05Yq0FXeKZJigEeDFHnbg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=vG/1ntCEy4a0cinkAl8qZ2kJxY4V7e/+7hau42IBJ8mz1F4Yj8BHW8DoghW8qZanIWtQHwSawjfreZWzbC2bUZaVzoaEjZGHlFNXGWXyD7A5xStoVUK6AOZYluh1H48JV73nBcby7x3XnL9xs8hkMspuU232tjVzfhpAPvHYDfw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (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 ESMTPSA id 83A211E0D0; Thu, 25 Jul 2024 13:45:16 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc Date: Thu, 25 Jul 2024 13:41:36 -0400 Message-ID: <20240725174514.129360-3-simon.marchi@efficios.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240725174514.129360-1-simon.marchi@efficios.com> References: <20240725174514.129360-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1173.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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 From: Simon Marchi REALTIME_LO was only possibly previously defined in config/nm-nto.h, which is now removed. So we can remove the #ifndef protecting against a redefinition of REALTIME_LO in gdbsupport/signals.cc. Change-Id: I021b9518ceaa6223bd480ff1e07e9a978b0b241e --- gdbsupport/signals.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc index 4989b3fc28bd..2cf641bd9e2f 100644 --- a/gdbsupport/signals.cc +++ b/gdbsupport/signals.cc @@ -30,14 +30,12 @@ struct gdbarch; _available_ realtime signal, not the lowest supported; glibc takes several for its own use. */ -#ifndef REALTIME_LO -# if defined(__SIGRTMIN) -# define REALTIME_LO __SIGRTMIN -# define REALTIME_HI (__SIGRTMAX + 1) -# elif defined(SIGRTMIN) -# define REALTIME_LO SIGRTMIN -# define REALTIME_HI (SIGRTMAX + 1) -# endif +#if defined(__SIGRTMIN) +# define REALTIME_LO __SIGRTMIN +# define REALTIME_HI (__SIGRTMAX + 1) +#elif defined(SIGRTMIN) +# define REALTIME_LO SIGRTMIN +# define REALTIME_HI (SIGRTMAX + 1) #endif /* This table must match in order and size the signals in enum -- 2.45.2