This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] MIPS: Make `mask_address_var' static


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

commit ea33cd9290063d977fb2c31ea6a8567da585ab88
Author: Maciej W. Rozycki <macro@mips.com>
Date:   Tue May 15 16:02:59 2018 +0100

    MIPS: Make `mask_address_var' static
    
    Make the `mask_address_var' variable static, it is not used outside
    mips-tdep.c and having no target name embedded within it causes a risk
    of a namespace clash.
    
    	gdb/
    	* mips-tdep.c (mask_address_var): Make variable static.

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/mips-tdep.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d795b4a..1d42c30 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-05-15  Maciej W. Rozycki  <macro@mips.com>
+
+	* mips-tdep.c (mask_address_var): Make variable static.
+
 2018-05-14  Tom Tromey  <tom@tromey.com>
 
 	* dwarf2read.c (rust_union_quirks): Clear rust_unions.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index f9f84c4..cc67cd3 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1122,7 +1122,7 @@ mips_pseudo_register_type (struct gdbarch *gdbarch, int regnum)
 }
 
 /* Should the upper word of 64-bit addresses be zeroed?  */
-enum auto_boolean mask_address_var = AUTO_BOOLEAN_AUTO;
+static enum auto_boolean mask_address_var = AUTO_BOOLEAN_AUTO;
 
 static int
 mips_mask_address_p (struct gdbarch_tdep *tdep)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]