From patchwork Sat May 4 20:11:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 32551 Received: (qmail 94174 invoked by alias); 4 May 2019 20:11:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 94139 invoked by uid 89); 4 May 2019 20:11:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.140) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 May 2019 20:11:51 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 4E768400C95C0 for ; Sat, 4 May 2019 15:11:50 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id N10gh5mQS2PzON10ghYl5p; Sat, 04 May 2019 15:11:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E6ef/kVf57B1lxrf5QDhwnrlF883/qKKuMSvmKqLwJg=; b=KBB9ISulzw2DyTPxUkLu/XK3d3 rczC7d+93bbXhTMOq5ePHbY6jGdY3gfPhVfg2aGfoILqgCv5rvY3jSYminNVGQOZLjt/nNaQZu/r2 qKjSuM7q2LxnIkSsACxjWmSgb; Received: from 97-122-168-123.hlrn.qwest.net ([97.122.168.123]:39978 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hN10g-004Jf3-42; Sat, 04 May 2019 15:11:50 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI 4/7] Use bool, true, and false in arc-tdep.c Date: Sat, 4 May 2019 14:11:44 -0600 Message-Id: <20190504201147.3095-5-tom@tromey.com> In-Reply-To: <20190504201147.3095-1-tom@tromey.com> References: <20190504201147.3095-1-tom@tromey.com> This changes arc-tdep.c to use bool, true, and false. gdb/ChangeLog 2019-05-04 Tom Tromey * arc-tdep.c (arc_tdesc_init): Use bool. --- gdb/ChangeLog | 4 ++++ gdb/arc-tdep.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 009af1190a5..9c0296083d5 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -1746,7 +1746,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc, tag. */ /* Cannot use arc_mach_is_arcv2 (), because gdbarch is not created yet. */ const int is_arcv2 = (info.bfd_arch_info->mach == bfd_mach_arc_arcv2); - int is_reduced_rf; + bool is_reduced_rf; const char *const *core_regs; const char *core_feature_name; @@ -1806,7 +1806,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc, return FALSE; } - is_reduced_rf = FALSE; + is_reduced_rf = false; core_feature_name = core_v2_feature_name; core_regs = core_v2_register_names; } @@ -1822,7 +1822,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc, return FALSE; } - is_reduced_rf = TRUE; + is_reduced_rf = true; core_feature_name = core_reduced_v2_feature_name; core_regs = core_v2_register_names; } @@ -1839,7 +1839,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc, return FALSE; } - is_reduced_rf = FALSE; + is_reduced_rf = false; core_feature_name = core_arcompact_feature_name; core_regs = core_arcompact_register_names; }