From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 916E93856DE5 for ; Thu, 11 Aug 2022 07:01:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 916E93856DE5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id E5F43300089; Thu, 11 Aug 2022 07:01:25 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Nelson Chu , Kito Cheng , Palmer Dabbelt Cc: binutils@sourceware.org Subject: [RFC PATCH 2/5] gas: Copyediting on tc-riscv.c Date: Thu, 11 Aug 2022 16:00:50 +0900 Message-Id: <05dd8060b0e65bbe2101b84315ff58bef383e88c.1660201178.git.research_trasio@irq.a4lg.com> In-Reply-To: References: <1659692183-5682-1-git-send-email-nelson.chu@sifive.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2022 07:01:28 -0000 Before applying "RISC-V: Mapping symbols with ISA string on assembler", this commit takes care of some non-functional issues. gas/ChangeLog: * config/tc-riscv.c (make_mapping_symbol): Make indentation consistent. (riscv_mapping_state): Add "period" to a comment. --- gas/config/tc-riscv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 92eabf0cbc7..a09403fbd11 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -473,7 +473,7 @@ make_mapping_symbol (enum riscv_seg_mstate state, following code will have the same value. */ if (value == 0) { - if (frag->tc_frag_data.first_map_symbol != NULL) + if (frag->tc_frag_data.first_map_symbol != NULL) { know (S_GET_VALUE (frag->tc_frag_data.first_map_symbol) == S_GET_VALUE (symbol)); @@ -515,7 +515,7 @@ riscv_mapping_state (enum riscv_seg_mstate to_state, return; /* The mapping symbol should be emitted if not in the right - mapping state */ + mapping state. */ if (from_state == to_state) return; -- 2.34.1