[patch] gas/config/tc-h8300.c: make things more static

Kazu Hirata kazu@hxi.com
Tue Jun 27 11:42:00 GMT 2000


Hi,

Attached is a patch to put "static" appropriately.

Thanks,

Kazu

===File ~/gnu/binutils/ChangeLog-tc-h8300===================
2000-06-27  Kazu Hirata  <kazu@hxi.com>

	* h8300/tc-h8300.c (Hmode): Make the variable static.
	(Smode): Likewise.
	(h8300hmode): Make the function static.
	(h8300smode): Likewise.

============================================================

===File ~/gnu/binutils/tc-h8300.patch=======================
Index: gas/config/tc-h8300.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8300.c,v
retrieving revision 1.7
diff -u -r1.7 tc-h8300.c
--- tc-h8300.c	2000/06/25 16:49:47	1.7
+++ tc-h8300.c	2000/06/27 16:54:56
@@ -46,21 +46,21 @@
 
 void cons ();
 
-int Hmode;
-int Smode;
+static int Hmode;
+static int Smode;
 #define PSIZE (Hmode ? L_32 : L_16)
 #define DMODE (L_16)
 #define DSYMMODE (Hmode ? L_24 : L_16)
 int bsize = L_8;		/* default branch displacement */
 
-void
+static void
 h8300hmode ()
 {
   Hmode = 1;
   Smode = 0;
 }
 
-void
+static void
 h8300smode ()
 {
   Smode = 1;
@@ -730,7 +730,7 @@
 		}
 	      else if ((op & (KBIT | DBIT)) && (x & IMM))
 		{
-		  /* This is ok if the immediate value is sensible.  */
+		  /* This is OK if the immediate value is sensible.  */
 		}
 	      else if (op & PCREL)
 		{
============================================================



More information about the Binutils mailing list