public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] m32r: make mach_table static and const
@ 2016-05-15  1:08 tbsaunde+binutils
  2016-05-16  6:45 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: tbsaunde+binutils @ 2016-05-15  1:08 UTC (permalink / raw)
  To: binutils

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;
 \f
-struct
+static const struct
 {
   enum bfd_architecture bfd_mach;
   int mach_flags;
-- 
2.7.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] m32r: make mach_table static and const
  2016-05-15  1:08 [PATCH] m32r: make mach_table static and const tbsaunde+binutils
@ 2016-05-16  6:45 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2016-05-16  6:45 UTC (permalink / raw)
  To: tbsaunde+binutils; +Cc: binutils

On Sat, May 14, 2016 at 09:07:39PM -0400, tbsaunde+binutils@tbsaunde.org wrote:
> 	* config/tc-m32r.c (mach_table): Make static and const.

OK.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-16  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-15  1:08 [PATCH] m32r: make mach_table static and const tbsaunde+binutils
2016-05-16  6:45 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).