[PATCH] m32r: make mach_table static and const

tbsaunde+binutils@tbsaunde.org tbsaunde+binutils@tbsaunde.org
Sun May 15 01:08:00 GMT 2016


From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>

Hi,

It is only read in tc-m32r.c, so it might as well be static and const, and
that should help the compiler slightly.

built and regtested a cross to m32r-elf, ok?

Trev

gas/ChangeLog:

2016-05-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

	* config/tc-m32r.c (mach_table): Make static and const.
---
 gas/config/tc-m32r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c
index f77c1f1..3387fe3 100644
--- a/gas/config/tc-m32r.c
+++ b/gas/config/tc-m32r.c
@@ -164,7 +164,7 @@ struct m32r_hi_fixup
 
 static struct m32r_hi_fixup *m32r_hi_fixup_list;
 
-struct
+static const struct
 {
   enum bfd_architecture bfd_mach;
   int mach_flags;
-- 
2.7.0



More information about the Binutils mailing list