This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mn10300 gas warning clean-up


This patch fixes some warnings we got while compiling
gas/config/tc-mn10300.c.  I'm checking it in.

Index: gas/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* config/tc-mn10300.c (set_arch_mach): Change argument type to
	avoid warnings.
	(r_register_name, xr_register_name): Add prototype declarations.

Index: gas/config/tc-mn10300.c
===================================================================
RCS file: /cvs/uberbaum/gas/config/tc-mn10300.c,v
retrieving revision 1.39
diff -u -p -r1.39 tc-mn10300.c
--- gas/config/tc-mn10300.c 30 Nov 2002 08:39:43 -0000 1.39
+++ gas/config/tc-mn10300.c 12 Dec 2002 02:52:08 -0000
@@ -92,7 +92,9 @@ static int reg_name_search PARAMS ((cons
 static bfd_boolean data_register_name PARAMS ((expressionS *expressionP));
 static bfd_boolean address_register_name PARAMS ((expressionS *expressionP));
 static bfd_boolean other_register_name PARAMS ((expressionS *expressionP));
-static void set_arch_mach PARAMS ((unsigned int));
+static bfd_boolean r_register_name PARAMS ((expressionS *expressionP));
+static bfd_boolean xr_register_name PARAMS ((expressionS *expressionP));
+static void set_arch_mach PARAMS ((int));
 
 /*  Set linkrelax here to avoid fixups in most sections.  */
 int linkrelax = 1;
@@ -2152,7 +2154,7 @@ check_operand (insn, operand, val)
 
 static void
 set_arch_mach (mach)
-     unsigned int mach;
+     int mach;
 {
   if (!bfd_set_arch_mach (stdoutput, bfd_arch_mn10300, mach))
     as_warn (_("could not set architecture and machine"));
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]