From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id eH8XNM2tzl+TVAAAWB0awg (envelope-from ) for ; Mon, 07 Dec 2020 17:33:49 -0500 Received: by simark.ca (Postfix, from userid 112) id C5D321F071; Mon, 7 Dec 2020 17:33:49 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F17751E590 for ; Mon, 7 Dec 2020 17:33:48 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 55B603857802; Mon, 7 Dec 2020 22:33:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55B603857802 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1607380428; bh=BHtMDKAjnY7+hBwPR3LTF6yUB6+y5NG4ZBpkuDrvCY8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=pzvCChuG36pBDgjRHavoUCQ2k5nFwdJIGI8Ga9iDVXOY9UpYTtzkolpZBq77sxSHh Wod0Zx+svCePFEIPIe5yNOpGyJ8qq/Qj3sOQxYfYvs2A/ZopVxafkYSzdK27d5/Ubo Xz3cvWnqh4XTUMeWFu7CvK/fXA6UiVgsWilT1bgo= Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 9F93E386EC18 for ; Mon, 7 Dec 2020 22:33:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9F93E386EC18 X-ASG-Debug-ID: 1607380423-0c856e67e2100540001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id Ja8RHAMxBST7BFuw (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 07 Dec 2020 17:33:43 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) by smtp.ebox.ca (Postfix) with ESMTP id 87E22441D64; Mon, 7 Dec 2020 17:33:43 -0500 (EST) X-Barracuda-RBL-IP: 173.246.6.90 X-Barracuda-Effective-Source-IP: 173-246-6-90.qc.cable.ebox.net[173.246.6.90] X-Barracuda-Apparent-Source-IP: 173.246.6.90 To: gdb-patches@sourceware.org Subject: [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc Date: Mon, 7 Dec 2020 17:33:41 -0500 X-ASG-Orig-Subj: [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc Message-Id: <20201207223342.1451954-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201207223342.1451954-1-simon.marchi@polymtl.ca> References: <20201207223342.1451954-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1607380423 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1256 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.86369 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" 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. gdbsupport/ChangeLog: * signals.cc: Remove `#ifndef REALTIME_LO`. 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 b9fe9005c6aa..93862bfeae88 100644 --- a/gdbsupport/signals.cc +++ b/gdbsupport/signals.cc @@ -31,14 +31,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.29.2