m32r: make mach_table static and const
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sat, 14 May 2016 20:31:45 +0000 (16:31 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Mon, 16 May 2016 09:06:48 +0000 (05:06 -0400)
It is only read in tc-m32r.c, so it might as well be static and const, and
that should help the compiler slightly.

gas/ChangeLog:

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

* config/tc-m32r.c (mach_table): Make static and const.

gas/ChangeLog
gas/config/tc-m32r.c

index 82d58b9..eea0f8b 100644 (file)
@@ -1,5 +1,9 @@
 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
+       * config/tc-m32r.c (mach_table): Make static and const.
+
+2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
        * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
        definition.
 
index f77c1f1..3387fe3 100644 (file)
@@ -164,7 +164,7 @@ struct m32r_hi_fixup
 
 static struct m32r_hi_fixup *m32r_hi_fixup_list;
 \f
-struct
+static const struct
 {
   enum bfd_architecture bfd_mach;
   int mach_flags;