This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] m32r: make mach_table static and const
- From: Trevor Saunders <tbsaunde at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 16 May 2016 09:07:00 -0000
- Subject: [binutils-gdb] m32r: make mach_table static and const
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7b14583ef0c858dc8f29c127f70b034f7f5d4ad2
commit 7b14583ef0c858dc8f29c127f70b034f7f5d4ad2
Author: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Date: Sat May 14 16:31:45 2016 -0400
m32r: make mach_table static and const
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.
Diff:
---
gas/ChangeLog | 4 ++++
gas/config/tc-m32r.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 82d58b9..eea0f8b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
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;