This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Use static in cpu-i386.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 24 Mar 2009 11:06:49 -0700
- Subject: PATCH: Use static in cpu-i386.c
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I am checking in this patch to use static in cpu-i386.c.
H.J.
----
2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x86_64_arch): Likewise.
Index: cpu-i386.c
===================================================================
--- cpu-i386.c (revision 5430)
+++ cpu-i386.c (working copy)
@@ -23,7 +23,7 @@
#include "bfd.h"
#include "libbfd.h"
-const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
+static const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
{
64, /* 64 bits in a word */
64, /* 64 bits in an address */
@@ -39,7 +39,7 @@ const bfd_arch_info_type bfd_x86_64_arch
0
};
-const bfd_arch_info_type bfd_i386_arch_intel_syntax =
+static const bfd_arch_info_type bfd_i386_arch_intel_syntax =
{
32, /* 32 bits in a word */
32, /* 32 bits in an address */
@@ -55,7 +55,7 @@ const bfd_arch_info_type bfd_i386_arch_i
&bfd_x86_64_arch_intel_syntax
};
-const bfd_arch_info_type i8086_arch =
+static const bfd_arch_info_type i8086_arch =
{
32, /* 32 bits in a word */
32, /* 32 bits in an address (well, not really) */
@@ -71,7 +71,7 @@ const bfd_arch_info_type i8086_arch =
&bfd_i386_arch_intel_syntax
};
-const bfd_arch_info_type bfd_x86_64_arch =
+static const bfd_arch_info_type bfd_x86_64_arch =
{
64, /* 32 bits in a word */
64, /* 32 bits in an address */