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]

gas warning fixes 4


gas/ChangeLog
	* config/tc-openrisc.c (ignore_pseudo): Prototype.
	(md_atof): Remove declaration of atof_ieee.
	* config/tc-or32.c (parse_operand): Prototype non-BFD too.
	(md_apply_fix3): Fix bogus >>='s.
	(md_undefined_symbol): Delete unused var.

Index: gas/config/tc-openrisc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-openrisc.c,v
retrieving revision 1.6
diff -u -p -r1.6 tc-openrisc.c
--- gas/config/tc-openrisc.c	30 Nov 2002 08:39:43 -0000	1.6
+++ gas/config/tc-openrisc.c	12 Dec 2002 12:44:59 -0000
@@ -83,6 +83,8 @@ md_show_usage (stream)
 {
 }
 
+static void ignore_pseudo PARAMS ((int));
+
 static void
 ignore_pseudo (val)
      int val ATTRIBUTE_UNUSED;
@@ -443,7 +445,6 @@ md_atof (type, litP, sizeP)
   int              prec;
   LITTLENUM_TYPE   words [MAX_LITTLENUMS];
   char *           t;
-  char *           atof_ieee ();
 
   switch (type)
     {
Index: gas/config/tc-or32.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-or32.c,v
retrieving revision 1.3
diff -u -p -r1.3 tc-or32.c
--- gas/config/tc-or32.c	5 Sep 2002 00:01:18 -0000	1.3
+++ gas/config/tc-or32.c	12 Dec 2002 12:45:01 -0000
@@ -117,9 +117,7 @@ static unsigned long jalr_r9_opcode;
 
 static int check_invalid_opcode PARAMS ((unsigned long));
 static void encode PARAMS ((const struct machine_opcode *, unsigned long *, signed long, char));
-#ifdef BFD_ASSEMBLER
-static char * parse_operand PARAMS ((char *, expressionS *, int));
-#endif
+static char *parse_operand PARAMS ((char *, expressionS *, int));
 
 /* Set bits in machine opcode according to insn->encoding
    description and passed operand.  */
@@ -352,7 +350,7 @@ parse_operand (s, operandp, opt)
 }
 #else
 
-char *
+static char *
 parse_operand (s, operandp, opt)
      char *s;
      expressionS *operandp;
@@ -1087,7 +1085,7 @@ md_apply_fix3 (fixP, valP, seg)
       break;
 
     case RELOC_WDISP30:
-      val = (val >>= 2) + 1;
+      val = (val >> 2) + 1;
       buf[0] |= (val >> 24) & 0x3f;
       buf[1] = (val >> 16);
       buf[2] = val >> 8;
@@ -1111,7 +1109,7 @@ md_apply_fix3 (fixP, valP, seg)
       break;
 
     case RELOC_WDISP22:
-      val = (val >>= 2) + 1;
+      val = (val >> 2) + 1;
       /* FALLTHROUGH */
     case RELOC_BASE22:
       buf[1] |= (val >> 16) & 0x3f;
@@ -1427,8 +1425,6 @@ md_undefined_symbol (name)
   /* Register name.  */
   if (name[0] == 'r' || name[0] == 'R' || name[0] == 'a' || name[0] == 'b')
     {
-      long maxreg;
-
       /* Parse the number, make sure it has no extra zeroes or
          trailing chars.  */
       regnum = atol (& name[1]);

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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