This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] m32r: make mach_table static and const
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Date: Sat, 14 May 2016 21:07:39 -0400
- Subject: [PATCH] m32r: make mach_table static and const
- Authentication-results: sourceware.org; auth=none
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