public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] opcodes/riscv-dis.c: Make XLEN variable static
@ 2022-10-14  5:23 Tsukasa OI
  0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-10-14  5:23 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45

commit 3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date:   Sat Aug 27 13:33:51 2022 +0000

    opcodes/riscv-dis.c: Make XLEN variable static
    
    Before changing the core disassembler, we take care of minor code clarity
    issues and improve readability.
    
    Since xlen variable is not (and should not) used outside riscv-dis.c,
    this commit makes this variable static.
    
    opcodes/ChangeLog:
    
            * riscv-dis.c (xlen): Make this variable static.

Diff:
---
 opcodes/riscv-dis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
index 608670bed7f..27e1978d428 100644
--- a/opcodes/riscv-dis.c
+++ b/opcodes/riscv-dis.c
@@ -33,7 +33,7 @@
 #include <ctype.h>
 
 /* Current XLEN for the disassembler.  */
-unsigned xlen = 0;
+static unsigned xlen = 0;
 
 /* Default ISA specification version (constant as of now).  */
 static enum riscv_spec_class default_isa_spec = ISA_SPEC_CLASS_DRAFT - 1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-14  5:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14  5:23 [binutils-gdb] opcodes/riscv-dis.c: Make XLEN variable static Tsukasa OI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).