Skip to content

Commit

Permalink
gas: Copyediting on tc-riscv.c
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a4lg committed Aug 11, 2022
1 parent 2376476 commit 05dd806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gas/config/tc-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 05dd806

Please sign in to comment.