This is the mail archive of the gdb-patches@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]

[committed] 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.
---
 gdb/mips-tdep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

gdb-mips-mask-address-var-static.diff
Index: binutils/gdb/mips-tdep.c
===================================================================
--- binutils.orig/gdb/mips-tdep.c	2018-04-16 13:54:45.000000000 +0100
+++ binutils/gdb/mips-tdep.c	2018-04-16 15:19:15.149150666 +0100
@@ -1122,7 +1122,7 @@ mips_pseudo_register_type (struct gdbarc
 }
 
 /* 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]