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]

yet more warning fixes


binutils/
	* dlltool.c: Warning fixes.
	* objdump.c: Likewise.
gas/
	* cgen.c: Warning fixes.
	* config/tc-arc.c: Likewise.
	* config/tc-arm.c: Likewise.
	* config/tc-avr.c: Likewise.
	* config/tc-d10v.c: Likewise.
	* config/tc-d30v.c: Likewise.
	* config/tc-frv.c: Likewise.
	* config/tc-frv.h: Likewise.
	* config/tc-h8300.c: Likewise.
	* config/tc-h8500.c: Likewise.
	* config/tc-i370.c: Likewise.
	* config/tc-i960.c: Likewise.
	* config/tc-ia64.c: Likewise.
	* config/tc-ip2k.c: Likewise.
	* config/tc-m68hc11.c: Likewise.
	* config/tc-maxq.c: Likewise.
	* config/tc-mcore.c: Likewise.
	* config/tc-mips.c: Likewise.
	* config/tc-msp430.c: Likewise.
	* config/tc-pj.c: Likewise.
	* config/tc-ppc.c: Likewise.
	* config/tc-ppc.h: Likewise.
	* config/tc-s390.c: Likewise.
	* config/tc-sh.c: Likewise.
	* config/tc-sh64.c: Likewise.
	* config/tc-tic4x.c: Likewise.
	* config/tc-tic80.c: Likewise.
	* config/tc-v850.c: Likewise.
	* config/tc-vax.c: Likewise.
	* config/tc-w65.c: Likewise.
	* config/tc-xstormy16.c: Likewise.
	* config/tc-z8k.c: Likewise.
ld/
	* pe-dll.c: Warning fixes.
	* emultempl/sunos.em: Likewise.

Index: binutils/dlltool.c
===================================================================
RCS file: /cvs/src/src/binutils/dlltool.c,v
retrieving revision 1.58
diff -u -p -r1.58 dlltool.c
--- binutils/dlltool.c	21 Jan 2005 05:40:23 -0000	1.58
+++ binutils/dlltool.c	23 Feb 2005 12:04:05 -0000
@@ -1,6 +1,6 @@
 /* dlltool.c -- tool to generate stuff for PE style DLLs
-   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
-   Free Software Foundation, Inc.
+   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+   2005 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -2417,7 +2417,7 @@ make_one_lib_file (export_type *exp, int
 	      si->data = xmalloc (si->size);
 	      si->data[0] = idx & 0xff;
 	      si->data[1] = idx >> 8;
-	      strcpy (si->data + 2, xlate (exp->import_name));
+	      strcpy ((char *) si->data + 2, xlate (exp->import_name));
 	    }
 	  break;
 	case IDATA7:
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.99
diff -u -p -r1.99 objdump.c
--- binutils/objdump.c	22 Feb 2005 00:50:06 -0000	1.99
+++ binutils/objdump.c	23 Feb 2005 12:04:10 -0000
@@ -1,6 +1,6 @@
 /* objdump.c -- dump information about an object file.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004
+   2000, 2001, 2002, 2003, 2004, 2005
    Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
@@ -2056,7 +2056,8 @@ find_stabs_section (bfd *abfd, asection 
       
       if (strtab)
 	{
-	  stabs = read_section_stabs (abfd, section->name, &stab_size);
+	  stabs = (bfd_byte *) read_section_stabs (abfd, section->name,
+						   &stab_size);
 	  if (stabs)
 	    print_section_stabs (abfd, section->name, &sought->string_offset);
 	}
Index: gas/cgen.c
===================================================================
RCS file: /cvs/src/src/gas/cgen.c,v
retrieving revision 1.25
diff -u -p -r1.25 cgen.c
--- gas/cgen.c	25 Jan 2005 20:22:31 -0000	1.25
+++ gas/cgen.c	23 Feb 2005 12:04:11 -0000
@@ -1,5 +1,5 @@
 /* GAS interface for targets using CGEN: Cpu tools GENerator.
-   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -522,7 +522,7 @@ gas_cgen_finish_insn (insn, buf, length,
   /* If we're recording insns as numbers (rather than a string of bytes),
      target byte order handling is deferred until now.  */
 #if CGEN_INT_INSN_P
-  cgen_put_insn_value (gas_cgen_cpu_desc, f, length, *buf);
+  cgen_put_insn_value (gas_cgen_cpu_desc, (unsigned char *) f, length, *buf);
 #else
   memcpy (f, buf, byte_len);
 #endif
@@ -616,17 +616,19 @@ gas_cgen_md_apply_fix3 (fixP, valP, seg)
 #if CGEN_INT_INSN_P
 	  {
 	    CGEN_INSN_INT insn_value =
-	      cgen_get_insn_value (cd, where, CGEN_INSN_BITSIZE (insn));
+	      cgen_get_insn_value (cd, (unsigned char *) where,
+				   CGEN_INSN_BITSIZE (insn));
 
 	    /* ??? 0 is passed for `pc'.  */
 	    errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields,
 						   &insn_value, (bfd_vma) 0);
-	    cgen_put_insn_value (cd, where, CGEN_INSN_BITSIZE (insn),
-				 insn_value);
+	    cgen_put_insn_value (cd, (unsigned char *) where,
+				 CGEN_INSN_BITSIZE (insn), insn_value);
 	  }
 #else
 	  /* ??? 0 is passed for `pc'.  */
-	  errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields, where,
+	  errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields,
+						 (unsigned char *) where,
 						 (bfd_vma) 0);
 #endif
 	  if (errmsg)
Index: gas/config/tc-arc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.c,v
retrieving revision 1.30
diff -u -p -r1.30 tc-arc.c
--- gas/config/tc-arc.c	17 Feb 2005 13:46:03 -0000	1.30
+++ gas/config/tc-arc.c	23 Feb 2005 12:04:13 -0000
@@ -1121,7 +1121,7 @@ static void
 arc_extinst (ignore)
      int ignore ATTRIBUTE_UNUSED;
 {
-  unsigned char syntax[129];
+  char syntax[129];
   char *name;
   char *p;
   char c;
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.192
diff -u -p -r1.192 tc-arm.c
--- gas/config/tc-arm.c	17 Feb 2005 13:46:03 -0000	1.192
+++ gas/config/tc-arm.c	23 Feb 2005 12:04:18 -0000
@@ -13816,7 +13816,7 @@ create_unwind_entry (int have_data)
 {
   int size;
   addressT where;
-  unsigned char *ptr;
+  char *ptr;
   /* The current word of data.  */
   valueT data;
   /* The number of bytes left in this word.  */
@@ -14025,7 +14025,7 @@ static void
 s_arm_unwind_fnend (int ignored ATTRIBUTE_UNUSED)
 {
   long where;
-  unsigned char *ptr;
+  char *ptr;
   valueT val;
 
   demand_empty_rest_of_line ();
Index: gas/config/tc-avr.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-avr.c,v
retrieving revision 1.24
diff -u -p -r1.24 tc-avr.c
--- gas/config/tc-avr.c	25 Dec 2004 20:34:24 -0000	1.24
+++ gas/config/tc-avr.c	23 Feb 2005 12:04:22 -0000
@@ -1,6 +1,7 @@
 /* tc-avr.c -- Assembler code for the ATMEL AVR
 
-   Copyright 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002, 2004, 2005
+   Free Software Foundation, Inc.
    Contributed by Denis Chertykov <denisc@overta.ru>
 
    This file is part of GAS, the GNU Assembler.
@@ -906,7 +907,7 @@ md_apply_fix3 (fixP, valP, seg)
     {
       /* Fetch the instruction, insert the fully resolved operand
 	 value, and stuff the instruction back again.  */
-      where = fixP->fx_frag->fr_literal + fixP->fx_where;
+      where = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
       insn = bfd_getl16 (where);
 
       switch (fixP->fx_r_type)
Index: gas/config/tc-d10v.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d10v.c,v
retrieving revision 1.33
diff -u -p -r1.33 tc-d10v.c
--- gas/config/tc-d10v.c	21 Nov 2003 00:24:40 -0000	1.33
+++ gas/config/tc-d10v.c	23 Feb 2005 12:04:23 -0000
@@ -1,5 +1,5 @@
 /* tc-d10v.c -- Assembler code for the Mitsubishi D10V
-   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -1313,8 +1313,8 @@ do_assemble (str, opcode)
      char *str;
      struct d10v_opcode **opcode;
 {
-  unsigned char *op_start, *save;
-  unsigned char *op_end;
+  unsigned char *op_start, *op_end;
+  char *save;
   char name[20];
   int nlen = 0;
   expressionS myops[6];
@@ -1325,10 +1325,8 @@ do_assemble (str, opcode)
     str++;
 
   /* Find the opcode end.  */
-  for (op_start = op_end = (unsigned char *) (str);
-       *op_end
-       && nlen < 20
-       && !is_end_of_line[*op_end] && *op_end != ' ';
+  for (op_start = op_end = (unsigned char *) str;
+       *op_end && nlen < 20 && !is_end_of_line[*op_end] && *op_end != ' ';
        op_end++)
     {
       name[nlen] = TOLOWER (op_start[nlen]);
@@ -1345,7 +1343,7 @@ do_assemble (str, opcode)
     as_fatal (_("unknown opcode: %s"), name);
 
   save = input_line_pointer;
-  input_line_pointer = op_end;
+  input_line_pointer = (char *) op_end;
   *opcode = find_opcode (*opcode, myops);
   if (*opcode == 0)
     return -1;
Index: gas/config/tc-d30v.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d30v.c,v
retrieving revision 1.25
diff -u -p -r1.25 tc-d30v.c
--- gas/config/tc-d30v.c	31 Jan 2005 23:18:27 -0000	1.25
+++ gas/config/tc-d30v.c	23 Feb 2005 12:04:23 -0000
@@ -1,5 +1,6 @@
 /* tc-d30v.c -- Assembler code for the Mitsubishi D30V
-   Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2005
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -1428,9 +1429,9 @@ do_assemble (str, opcode, shortp, is_par
      int shortp;
      int is_parallel;
 {
-  unsigned char *op_start;
-  unsigned char *save;
-  unsigned char *op_end;
+  char *op_start;
+  char *save;
+  char *op_end;
   char           name[NAME_BUF_LEN];
   int            cmp_hack;
   int            nlen = 0;
@@ -1443,11 +1444,11 @@ do_assemble (str, opcode, shortp, is_par
     str++;
 
   /* Find the opcode end.  */
-  for (op_start = op_end = (unsigned char *) (str);
+  for (op_start = op_end = str;
        *op_end
        && nlen < (NAME_BUF_LEN - 1)
        && *op_end != '/'
-       && !is_end_of_line[*op_end] && *op_end != ' ';
+       && !is_end_of_line[(unsigned char) *op_end] && *op_end != ' ';
        op_end++)
     {
       name[nlen] = TOLOWER (op_start[nlen]);
Index: gas/config/tc-frv.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-frv.c,v
retrieving revision 1.15
diff -u -p -r1.15 tc-frv.c
--- gas/config/tc-frv.c	17 Feb 2005 13:46:03 -0000	1.15
+++ gas/config/tc-frv.c	23 Feb 2005 12:04:23 -0000
@@ -745,7 +745,7 @@ frv_tomcat_shuffle (this_nop_type, vliw_
 	  /* Set the packing bit on the previous insn.  */
 	  if (pack_prev)
 	    {
-	      unsigned char *buffer = prev_insn->address;
+	      char *buffer = prev_insn->address;
 	      buffer[0] |= 0x80;
 	    }
 	  /* The branch is in the middle.  Split this vliw insn into first
@@ -784,7 +784,7 @@ frv_tomcat_shuffle (this_nop_type, vliw_
 	  /* Set the packing bit on the previous insn.  */
 	  if (pack_prev)
 	    {
-	      unsigned char *buffer = prev_insn->address;
+	      char *buffer = prev_insn->address;
 	      buffer[0] |= 0x80;
 	    }
 
@@ -830,7 +830,7 @@ frv_tomcat_shuffle (this_nop_type, vliw_
 	  /* Set the packing bit on the previous insn.  */
 	  if (pack_prev)
 	    {
-	      unsigned char *buffer = prev_insn->address;
+	      char *buffer = prev_insn->address;
 	      buffer[0] |= 0x80;
 	    }
 
Index: gas/config/tc-frv.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-frv.h,v
retrieving revision 1.6
diff -u -p -r1.6 tc-frv.h
--- gas/config/tc-frv.h	7 May 2004 06:28:04 -0000	1.6
+++ gas/config/tc-frv.h	23 Feb 2005 12:04:23 -0000
@@ -1,5 +1,5 @@
 /* tc-frv.h -- Header file for tc-frv.c.
-   Copyright 2002 Free Software Foundation, Inc.
+   Copyright 2002, 2004, 2005 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -109,7 +109,7 @@ extern void frv_frob_file	PARAMS ((void)
     {									\
       valueT count = ((FRAGP)->fr_next->fr_address			\
 		      - ((FRAGP)->fr_address + (FRAGP)->fr_fix));	\
-      unsigned char *dest = (FRAGP)->fr_literal + (FRAGP)->fr_fix;	\
+      char *dest = (FRAGP)->fr_literal + (FRAGP)->fr_fix;		\
       if ((count & 3) != 0)						\
 	{								\
 	  memset (dest, 0, (count & 3));				\
Index: gas/config/tc-h8300.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8300.c,v
retrieving revision 1.47
diff -u -p -r1.47 tc-h8300.c
--- gas/config/tc-h8300.c	31 Jan 2005 23:18:27 -0000	1.47
+++ gas/config/tc-h8300.c	23 Feb 2005 12:04:23 -0000
@@ -1,6 +1,6 @@
 /* tc-h8300.c -- Assemble code for the Renesas H8/300
    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000,
-   2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -978,7 +978,8 @@ get_mova_operands (char *op_end, struct 
 static void
 get_rtsl_operands (char *ptr, struct h8_op *operand)
 {
-  int mode, num, num2, len, type = 0;
+  int mode, len, type = 0;
+  unsigned int num, num2;
 
   ptr++;
   if (*ptr == '(')
@@ -1004,7 +1005,7 @@ get_rtsl_operands (char *ptr, struct h8_
       ptr += len;
       /* CONST_xxx are used as placeholders in the opcode table.  */
       num = num2 - num;
-      if (num < 0 || num > 3)
+      if (num > 3)
 	{
 	  as_bad (_("invalid register list"));
 	  return;
Index: gas/config/tc-h8500.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8500.c,v
retrieving revision 1.17
diff -u -p -r1.17 tc-h8500.c
--- gas/config/tc-h8500.c	31 Jan 2005 23:18:27 -0000	1.17
+++ gas/config/tc-h8500.c	23 Feb 2005 12:04:24 -0000
@@ -1,5 +1,5 @@
 /* tc-h8500.c -- Assemble code for the Renesas H8/500
-   Copyright 1993, 1994, 1995, 1998, 2000, 2001, 2002, 2003
+   Copyright 1993, 1994, 1995, 1998, 2000, 2001, 2002, 2003, 2005
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -155,7 +155,7 @@ static expressionS absolute;	/* absolute
 typedef struct
 {
   int type;
-  int reg;
+  unsigned int reg;
   expressionS exp;
   int page;
 }
@@ -164,13 +164,13 @@ h8500_operand_info;
 
 /* Try to parse a reg name.  Return the number of chars consumed.  */
 
-static int parse_reg PARAMS ((char *, int *, int *));
+static int parse_reg PARAMS ((char *, int *, unsigned int *));
 
 static int
 parse_reg (src, mode, reg)
      char *src;
      int *mode;
-     int *reg;
+     unsigned int *reg;
 {
   char *end;
   int len;
@@ -372,9 +372,9 @@ parse_reglist (src, op)
      h8500_operand_info *op;
 {
   int mode;
-  int rn;
+  unsigned int rn;
   int mask = 0;
-  int rm;
+  unsigned int rm;
   int idx = 1;			/* skip ( */
 
   while (src[idx] && src[idx] != ')')
Index: gas/config/tc-i370.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i370.c,v
retrieving revision 1.22
diff -u -p -r1.22 tc-i370.c
--- gas/config/tc-i370.c	31 Jan 2005 23:18:27 -0000	1.22
+++ gas/config/tc-i370.c	23 Feb 2005 12:04:26 -0000
@@ -1,7 +1,7 @@
 /* tc-i370.c -- Assembler for the IBM 360/370/390 instruction set.
    Loosely based on the ppc files by Linas Vepstas <linas@linas.org> 1998, 99
-   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-   Free Software Foundation, Inc.
+   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+   2005 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Cygnus Support.
 
    This file is part of GAS, the GNU Assembler.
@@ -2055,7 +2055,7 @@ md_assemble (str)
       /* If there are fewer operands in the line then are called
 	 for by the instruction, we want to skip the optional
 	 operand.  */
-      nwanted = strlen (opcode->operands);
+      nwanted = strlen ((char *) opcode->operands);
       if (have_optional_index)
 	{
 	  if (opcount < nwanted)
Index: gas/config/tc-i960.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i960.c,v
retrieving revision 1.19
diff -u -p -r1.19 tc-i960.c
--- gas/config/tc-i960.c	31 Jan 2005 23:18:29 -0000	1.19
+++ gas/config/tc-i960.c	23 Feb 2005 12:04:28 -0000
@@ -1,6 +1,6 @@
 /* tc-i960.c - All the i80960-specific stuff
    Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003
+   1999, 2000, 2001, 2002, 2003, 2005
    Free Software Foundation, Inc.
 
    This file is part of GAS.
@@ -732,11 +732,11 @@ md_number_to_chars (buf, value, n)
    md_chars_to_number:  convert from target byte order to host byte order.
 
   *************************************************************************** */
-static int md_chars_to_number PARAMS ((unsigned char *, int));
+static int md_chars_to_number PARAMS ((char *, int));
 
 static int
 md_chars_to_number (val, n)
-     unsigned char *val;	/* Value in target byte order */
+     char *val;			/* Value in target byte order */
      int n;			/* Number of bytes in the input */
 {
   int retval;
@@ -744,7 +744,7 @@ md_chars_to_number (val, n)
   for (retval = 0; n--;)
     {
       retval <<= 8;
-      retval |= val[n];
+      retval |= (unsigned char) val[n];
     }
   return retval;
 }
Index: gas/config/tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.146
diff -u -p -r1.146 tc-ia64.c
--- gas/config/tc-ia64.c	18 Feb 2005 01:59:08 -0000	1.146
+++ gas/config/tc-ia64.c	23 Feb 2005 12:04:36 -0000
@@ -1152,7 +1152,7 @@ ia64_cons_align (nbytes)
 }
 
 /* Output COUNT bytes to a memory location.  */
-static unsigned char *vbyte_mem_ptr = NULL;
+static char *vbyte_mem_ptr = NULL;
 
 void
 output_vbyte_mem (count, ptr, comment)
@@ -1329,7 +1329,7 @@ output_P4_format (f, imask, imask_size)
      unsigned long imask_size;
 {
   imask[0] = UNW_P4;
-  (*f) (imask_size, imask, NULL);
+  (*f) (imask_size, (char *) imask, NULL);
 }
 
 static void
@@ -3917,7 +3917,8 @@ static void
 dot_spillreg (dummy)
      int dummy ATTRIBUTE_UNUSED;
 {
-  int sep, ab, xy, reg, treg;
+  int sep;
+  unsigned int ab, xy, reg, treg;
   expressionS e1, e2;
 
   if (!in_procedure ("spillreg"))
@@ -3952,7 +3953,8 @@ dot_spillmem (psprel)
      int psprel;
 {
   expressionS e1, e2;
-  int sep, ab, reg;
+  int sep;
+  unsigned int ab, reg;
 
   if (!in_procedure ("spillmem"))
     return;
@@ -3990,7 +3992,8 @@ static void
 dot_spillreg_p (dummy)
      int dummy ATTRIBUTE_UNUSED;
 {
-  int sep, ab, xy, reg, treg;
+  int sep;
+  unsigned int ab, xy, reg, treg;
   expressionS e1, e2, e3;
   unsigned int qp;
 
@@ -4041,7 +4044,8 @@ dot_spillmem_p (psprel)
      int psprel;
 {
   expressionS e1, e2, e3;
-  int sep, ab, reg;
+  int sep;
+  unsigned int ab, reg;
   unsigned int qp;
 
   if (!in_procedure ("spillmem.p"))
@@ -4361,7 +4365,7 @@ dot_endp (dummy)
      int dummy ATTRIBUTE_UNUSED;
 {
   expressionS e;
-  unsigned char *ptr;
+  char *ptr;
   int bytes_per_address;
   long where;
   segT saved_seg;
@@ -6348,7 +6352,8 @@ build_insn (slot, insnp)
 {
   const struct ia64_operand *odesc, *o2desc;
   struct ia64_opcode *idesc = slot->idesc;
-  bfd_signed_vma insn, val;
+  bfd_vma insn;
+  bfd_signed_vma val;
   const char *err;
   int i;
 
Index: gas/config/tc-ip2k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ip2k.c,v
retrieving revision 1.8
diff -u -p -r1.8 tc-ip2k.c
--- gas/config/tc-ip2k.c	20 Nov 2003 01:36:49 -0000	1.8
+++ gas/config/tc-ip2k.c	23 Feb 2005 12:04:36 -0000
@@ -1,5 +1,5 @@
 /* tc-ip2k.c -- Assembler for the Scenix IP2xxx.
-   Copyright (C) 2000, 2002, 2003 Free Software Foundation.
+   Copyright (C) 2000, 2002, 2003, 2005 Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -173,7 +173,7 @@ md_assemble (str)
        the PCL (pc + 2) >> 1 is odd or even.  */
     {
       enum cgen_parse_operand_result result_type;
-      long value;
+      bfd_vma value;
       const char *curpc_plus_2 = ".+2";
       const char *err;
 
@@ -436,7 +436,7 @@ ip2k_apply_fix3 (fixP, valueP, seg)
       /* Canonical name, since used a lot.  */
       CGEN_CPU_DESC cd = gas_cgen_cpu_desc;
       CGEN_INSN_INT insn_value
-	= cgen_get_insn_value (cd, where,
+	= cgen_get_insn_value (cd, (unsigned char *) where,
 			       CGEN_INSN_BITSIZE (fixP->fx_cgen.insn));
       /* Preserve (DP) or (SP) specification.  */
       *valueP += (insn_value & 0x180);
Index: gas/config/tc-m68hc11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68hc11.c,v
retrieving revision 1.45
diff -u -p -r1.45 tc-m68hc11.c
--- gas/config/tc-m68hc11.c	31 Jan 2005 23:18:30 -0000	1.45
+++ gas/config/tc-m68hc11.c	23 Feb 2005 12:04:36 -0000
@@ -1,5 +1,6 @@
 /* tc-m68hc11.c -- Assembler code for the Motorola 68HC11 & 68HC12.
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
+   Free Software Foundation, Inc.
    Written by Stephane Carrez (stcarrez@nerim.fr)
 
    This file is part of GAS, the GNU Assembler.
@@ -2449,8 +2450,8 @@ md_assemble (char *str)
   struct m68hc11_opcode_def *opc;
   struct m68hc11_opcode *opcode;
 
-  unsigned char *op_start, *save;
-  unsigned char *op_end;
+  unsigned char *op_start, *op_end;
+  char *save;
   char name[20];
   int nlen = 0;
   operand operands[M6811_MAX_OPERANDS];
@@ -2464,7 +2465,7 @@ md_assemble (char *str)
 
   /* Find the opcode end and get the opcode in 'name'.  The opcode is forced
      lower case (the opcode table only has lower case op-codes).  */
-  for (op_start = op_end = (unsigned char *) (str);
+  for (op_start = op_end = (unsigned char *) str;
        *op_end && nlen < 20 && !is_end_of_line[*op_end] && *op_end != ' ';
        op_end++)
     {
@@ -2544,7 +2545,7 @@ md_assemble (char *str)
       return;
     }
   save = input_line_pointer;
-  input_line_pointer = op_end;
+  input_line_pointer = (char *) op_end;
 
   if (opc)
     {
Index: gas/config/tc-maxq.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-maxq.c,v
retrieving revision 1.3
diff -u -p -r1.3 tc-maxq.c
--- gas/config/tc-maxq.c	7 Feb 2005 16:00:08 -0000	1.3
+++ gas/config/tc-maxq.c	23 Feb 2005 12:04:36 -0000
@@ -494,7 +494,7 @@ md_convert_frag (object_headers * header
 		 fragS *          fragP)
 #endif
 {
-  unsigned char *opcode;
+  char *opcode;
   offsetT target_address;
   offsetT opcode_address;
   offsetT displacement_from_opcode_start;
@@ -521,9 +521,7 @@ md_convert_frag (object_headers * header
 	  || fragP->fr_subtype == NO_PREFIX))
     {
       /* Its a displacement.  */
-      char *p = (char *) &opcode[0];
-
-      *p = (char) displacement_from_opcode_start;
+      *opcode = (char) displacement_from_opcode_start;
     }
   else
     {
@@ -542,7 +540,6 @@ md_convert_frag (object_headers * header
       if (fragP->fr_subtype != SHORT_PREFIX)
 	{
 	  RELOC_ENUM reloc_type;
-	  unsigned char *opcode;
 	  int old_fr_fix;
 	  int size = 2;
 
@@ -557,7 +554,6 @@ md_convert_frag (object_headers * header
 	  if (reloc_type == 1)
 	    size = 0;
 	  old_fr_fix = fragP->fr_fix;
-	  opcode = (unsigned char *) fragP->fr_opcode;
 
 	  fragP->fr_fix += (size);
 
Index: gas/config/tc-mcore.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mcore.c,v
retrieving revision 1.35
diff -u -p -r1.35 tc-mcore.c
--- gas/config/tc-mcore.c	17 Feb 2005 13:46:04 -0000	1.35
+++ gas/config/tc-mcore.c	23 Feb 2005 12:04:37 -0000
@@ -1845,10 +1845,10 @@ md_convert_frag (abfd, sec, fragP)
      segT sec ATTRIBUTE_UNUSED;
      register fragS * fragP;
 {
-  unsigned char * buffer;
+  char *buffer;
   int targ_addr = S_GET_VALUE (fragP->fr_symbol) + fragP->fr_offset;
 
-  buffer = (unsigned char *) (fragP->fr_fix + fragP->fr_literal);
+  buffer = fragP->fr_fix + fragP->fr_literal;
 
   switch (fragP->fr_subtype)
     {
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.286
diff -u -p -r1.286 tc-mips.c
--- gas/config/tc-mips.c	22 Feb 2005 23:54:41 -0000	1.286
+++ gas/config/tc-mips.c	23 Feb 2005 12:04:45 -0000
@@ -11075,7 +11075,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
       if (fixP->fx_done)
 	{
 	  if (8 <= sizeof (valueT))
-	    md_number_to_chars (buf, *valP, 8);
+	    md_number_to_chars ((char *) buf, *valP, 8);
 	  else
 	    {
 	      valueT hiv;
@@ -11098,14 +11098,14 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
 	 value now.  This can happen if we have a .word which is not
 	 resolved when it appears but is later defined.   */
       if (fixP->fx_done)
-	md_number_to_chars (buf, *valP, 4);
+	md_number_to_chars ((char *) buf, *valP, 4);
       break;
 
     case BFD_RELOC_16:
       /* If we are deleting this reloc entry, we must fill in the
          value now.  */
       if (fixP->fx_done)
-	md_number_to_chars (buf, *valP, 2);
+	md_number_to_chars ((char *) buf, *valP, 2);
       break;
 
     case BFD_RELOC_LO16:
@@ -11121,7 +11121,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
 			  _("relocation overflow"));
 	  if (target_big_endian)
 	    buf += 2;
-	  md_number_to_chars (buf, *valP, 2);
+	  md_number_to_chars ((char *) buf, *valP, 2);
 	}
       break;
 
@@ -11147,7 +11147,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
       if (*valP + 0x20000 <= 0x3ffff)
 	{
 	  insn |= (*valP >> 2) & 0xffff;
-	  md_number_to_chars (buf, insn, 4);
+	  md_number_to_chars ((char *) buf, insn, 4);
 	}
       else if (mips_pic == NO_PIC
 	       && fixP->fx_done
@@ -11169,7 +11169,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
 	  fixP->fx_done = 0;
 	  fixP->fx_addsy = section_symbol (text_section);
 	  *valP += md_pcrel_from (fixP);
-	  md_number_to_chars (buf, insn, 4);
+	  md_number_to_chars ((char *) buf, insn, 4);
 	}
       else
 	{
@@ -12945,7 +12945,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	  fixp->fx_file = fragp->fr_file;
 	  fixp->fx_line = fragp->fr_line;
 
-	  md_number_to_chars (buf, insn, 4);
+	  md_number_to_chars ((char *) buf, insn, 4);
 	  buf += 4;
 	}
       else
@@ -13017,11 +13017,11 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	  i--;
 	  insn |= i;
 	  /* Branch over the jump.  */
-	  md_number_to_chars (buf, insn, 4);
+	  md_number_to_chars ((char *) buf, insn, 4);
 	  buf += 4;
 
 	  /* Nop */
-	  md_number_to_chars (buf, 0, 4);
+	  md_number_to_chars ((char *) buf, 0, 4);
 	  buf += 4;
 
 	  if (RELAX_BRANCH_LIKELY (fragp->fr_subtype))
@@ -13040,10 +13040,10 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 		 delay slot.  */
 
 	      insn |= i;
-	      md_number_to_chars (buf, insn, 4);
+	      md_number_to_chars ((char *) buf, insn, 4);
 	      buf += 4;
 
-	      md_number_to_chars (buf, 0, 4);
+	      md_number_to_chars ((char *) buf, 0, 4);
 	      buf += 4;
 	    }
 
@@ -13062,7 +13062,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	      fixp->fx_file = fragp->fr_file;
 	      fixp->fx_line = fragp->fr_line;
 
-	      md_number_to_chars (buf, insn, 4);
+	      md_number_to_chars ((char *) buf, insn, 4);
 	      buf += 4;
 	    }
 	  else
@@ -13084,13 +13084,13 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	      fixp->fx_file = fragp->fr_file;
 	      fixp->fx_line = fragp->fr_line;
 
-	      md_number_to_chars (buf, insn, 4);
+	      md_number_to_chars ((char *) buf, insn, 4);
 	      buf += 4;
 
 	      if (mips_opts.isa == ISA_MIPS1)
 		{
 		  /* nop */
-		  md_number_to_chars (buf, 0, 4);
+		  md_number_to_chars ((char *) buf, 0, 4);
 		  buf += 4;
 		}
 
@@ -13102,7 +13102,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	      fixp->fx_file = fragp->fr_file;
 	      fixp->fx_line = fragp->fr_line;
 
-	      md_number_to_chars (buf, insn, 4);
+	      md_number_to_chars ((char *) buf, insn, 4);
 	      buf += 4;
 
 	      /* j(al)r $at.  */
@@ -13111,7 +13111,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 	      else
 		insn = 0x00200008;
 
-	      md_number_to_chars (buf, insn, 4);
+	      md_number_to_chars ((char *) buf, insn, 4);
 	      buf += 4;
 	    }
 	}
@@ -13204,12 +13204,12 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
 
       if (use_extend)
 	{
-	  md_number_to_chars (buf, 0xf000 | extend, 2);
+	  md_number_to_chars ((char *) buf, 0xf000 | extend, 2);
 	  fragp->fr_fix += 2;
 	  buf += 2;
 	}
 
-      md_number_to_chars (buf, insn, 2);
+      md_number_to_chars ((char *) buf, insn, 2);
       fragp->fr_fix += 2;
       buf += 2;
     }
@@ -13605,6 +13605,7 @@ s_mips_end (int x ATTRIBUTE_UNUSED)
   else
     as_warn (_(".end directive missing or unknown symbol"));
 
+#ifdef OBJ_ELF
   /* Create an expression to calculate the size of the function.  */
   if (p && cur_proc_ptr)
     {
@@ -13620,7 +13621,6 @@ s_mips_end (int x ATTRIBUTE_UNUSED)
       cur_proc_ptr->func_end_sym = exp->X_add_symbol;
     }
 
-#ifdef OBJ_ELF
   /* Generate a .pdr section.  */
   if (OUTPUT_FLAVOR == bfd_target_elf_flavour && ! ECOFF_DEBUGGING
       && mips_flag_pdr)
Index: gas/config/tc-msp430.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-msp430.c,v
retrieving revision 1.14
diff -u -p -r1.14 tc-msp430.c
--- gas/config/tc-msp430.c	31 Jan 2005 23:18:32 -0000	1.14
+++ gas/config/tc-msp430.c	23 Feb 2005 12:04:46 -0000
@@ -1887,7 +1887,7 @@ md_apply_fix3 (fixS * fixp, valueT * val
       /* Fetch the instruction, insert the fully resolved operand
 	 value, and stuff the instruction back again.  */
 
-      where = fixp->fx_frag->fr_literal + fixp->fx_where;
+      where = (unsigned char *) fixp->fx_frag->fr_literal + fixp->fx_where;
 
       insn = bfd_getl16 (where);
 
Index: gas/config/tc-pj.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-pj.c,v
retrieving revision 1.11
diff -u -p -r1.11 tc-pj.c
--- gas/config/tc-pj.c	31 Jan 2005 23:18:33 -0000	1.11
+++ gas/config/tc-pj.c	23 Feb 2005 12:04:46 -0000
@@ -1,6 +1,6 @@
 /*-
    tc-pj.c -- Assemble code for Pico Java
-   Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -253,8 +253,8 @@ void
 md_assemble (str)
      char *str;
 {
-  unsigned char *op_start;
-  unsigned char *op_end;
+  char *op_start;
+  char *op_end;
 
   pj_opc_info_t *opcode;
   char *output;
@@ -268,8 +268,9 @@ md_assemble (str)
     str++;
 
   /* Find the op code end.  */
-  for (op_start = op_end = (unsigned char *) (str);
-       *op_end && !is_end_of_line[*op_end] && *op_end != ' ';
+  op_start = str;
+  for (op_end = str;
+       *op_end && !is_end_of_line[*op_end & 0xff] && *op_end != ' ';
        op_end++)
     nlen++;
 
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.93
diff -u -p -r1.93 tc-ppc.c
--- gas/config/tc-ppc.c	2 Oct 2004 00:18:31 -0000	1.93
+++ gas/config/tc-ppc.c	23 Feb 2005 12:04:49 -0000
@@ -1,6 +1,6 @@
 /* tc-ppc.c -- Assemble for the PowerPC or POWER (RS/6000)
    Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-   2004 Free Software Foundation, Inc.
+   2004, 2005 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Cygnus Support.
 
    This file is part of GAS, the GNU Assembler.
@@ -5819,7 +5819,7 @@ md_apply_fix3 (fixP, valP, seg)
 	  if (fixP->fx_pcrel)
 	    abort ();
 	  {
-	    unsigned char *where = fixP->fx_frag->fr_literal + fixP->fx_where;
+	    char *where = fixP->fx_frag->fr_literal + fixP->fx_where;
 	    unsigned long val, mask;
 
 	    if (target_big_endian)
Index: gas/config/tc-ppc.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.h,v
retrieving revision 1.25
diff -u -p -r1.25 tc-ppc.h
--- gas/config/tc-ppc.h	2 Jul 2004 06:40:19 -0000	1.25
+++ gas/config/tc-ppc.h	23 Feb 2005 12:04:49 -0000
@@ -1,6 +1,6 @@
 /* tc-ppc.h -- Header file for tc-ppc.c.
    Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-   2004 Free Software Foundation, Inc.
+   2004, 2005 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Cygnus Support.
 
    This file is part of GAS, the GNU Assembler.
@@ -90,7 +90,7 @@ extern char *ppc_target_format PARAMS ((
 		      - ((FRAGP)->fr_address + (FRAGP)->fr_fix));	\
       if (count != 0 && (count & 3) == 0)				\
 	{								\
-	  unsigned char *dest = (FRAGP)->fr_literal + (FRAGP)->fr_fix;	\
+	  char *dest = (FRAGP)->fr_literal + (FRAGP)->fr_fix;		\
 									\
 	  (FRAGP)->fr_var = 4;						\
 	  if (target_big_endian)					\
Index: gas/config/tc-s390.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-s390.c,v
retrieving revision 1.43
diff -u -p -r1.43 tc-s390.c
--- gas/config/tc-s390.c	17 Feb 2005 13:46:05 -0000	1.43
+++ gas/config/tc-s390.c	23 Feb 2005 12:04:50 -0000
@@ -1602,7 +1602,7 @@ s390_insn (ignore)
 	      && (addressT) exp.X_add_number < (1ULL << 32))
 	  || (   opformat->oplen == 2
 	      && (addressT) exp.X_add_number < (1ULL << 16)))
-	md_number_to_chars (insn, exp.X_add_number, opformat->oplen);
+	md_number_to_chars ((char *) insn, exp.X_add_number, opformat->oplen);
       else
 	as_bad (_("Invalid .insn format\n"));
     }
@@ -1612,9 +1612,9 @@ s390_insn (ignore)
 	  && opformat->oplen == 6
 	  && generic_bignum[3] == 0)
 	{
-	  md_number_to_chars (insn, generic_bignum[2], 2);
-	  md_number_to_chars (&insn[2], generic_bignum[1], 2);
-	  md_number_to_chars (&insn[4], generic_bignum[0], 2);
+	  md_number_to_chars ((char *) insn, generic_bignum[2], 2);
+	  md_number_to_chars ((char *) &insn[2], generic_bignum[1], 2);
+	  md_number_to_chars ((char *) &insn[4], generic_bignum[0], 2);
 	}
       else
 	as_bad (_("Invalid .insn format\n"));
@@ -1992,8 +1992,8 @@ md_apply_fix3 (fixP, valP, seg)
       if (fixP->fx_done)
 	{
 	  /* Insert the fully resolved operand value.  */
-	  s390_insert_operand (where, operand, (offsetT) value,
-			       fixP->fx_file, fixP->fx_line);
+	  s390_insert_operand ((unsigned char *) where, operand,
+			       (offsetT) value, fixP->fx_file, fixP->fx_line);
 	  return;
 	}
 
Index: gas/config/tc-sh.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.c,v
retrieving revision 1.105
diff -u -p -r1.105 tc-sh.c
--- gas/config/tc-sh.c	17 Feb 2005 13:46:05 -0000	1.105
+++ gas/config/tc-sh.c	23 Feb 2005 12:04:55 -0000
@@ -2400,7 +2400,7 @@ find_cooked_opcode (char **str_p)
      The pre-processor will eliminate whitespace in front of
      any '@' after the first argument; we may be called from
      assemble_ppi, so the opcode might be terminated by an '@'.  */
-  for (op_start = op_end = (unsigned char *) (str);
+  for (op_start = op_end = (unsigned char *) str;
        *op_end
        && nlen < 20
        && !is_end_of_line[*op_end] && *op_end != ' ' && *op_end != '@';
@@ -2419,7 +2419,7 @@ find_cooked_opcode (char **str_p)
     }
 
   name[nlen] = 0;
-  *str_p = op_end;
+  *str_p = (char *) op_end;
 
   if (nlen == 0)
     as_bad (_("can't find opcode "));
@@ -2734,7 +2734,7 @@ assemble_ppi (char *op_end, sh_opcode_in
 void
 md_assemble (char *str)
 {
-  unsigned char *op_end;
+  char *op_end;
   sh_operand_info operand[3];
   sh_opcode_info *opcode;
   unsigned int size = 0;
Index: gas/config/tc-sh64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh64.c,v
retrieving revision 1.13
diff -u -p -r1.13 tc-sh64.c
--- gas/config/tc-sh64.c	16 Dec 2004 18:23:24 -0000	1.13
+++ gas/config/tc-sh64.c	23 Feb 2005 12:04:56 -0000
@@ -1,5 +1,5 @@
 /* tc-sh64.c -- Assemble code for the SuperH SH SHcompact and SHmedia.
-   Copyright 2000, 2001, 2002, 2003 Free Software Foundation.
+   Copyright 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -691,7 +691,7 @@ shmedia_md_apply_fix3 (fixS *fixP, value
   if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0)
     {
       /* Emit error for an out-of-range value.  */
-      shmedia_check_limits (valp, fixP->fx_r_type, fixP);
+      shmedia_check_limits ((offsetT *) valp, fixP->fx_r_type, fixP);
 
       switch (fixP->fx_r_type)
 	{
Index: gas/config/tc-tic4x.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tic4x.c,v
retrieving revision 1.13
diff -u -p -r1.13 tc-tic4x.c
--- gas/config/tc-tic4x.c	17 Feb 2005 13:46:05 -0000	1.13
+++ gas/config/tc-tic4x.c	23 Feb 2005 12:04:56 -0000
@@ -157,7 +157,7 @@ static void tic4x_insert_sym
 static char *tic4x_expression
   PARAMS ((char *, expressionS *));
 static char *tic4x_expression_abs
-  PARAMS ((char *, int *));
+  PARAMS ((char *, offsetT *));
 static void tic4x_emit_char
   PARAMS ((char, int));
 static void tic4x_seg_alloc
@@ -747,7 +747,7 @@ tic4x_expression (str, exp)
 static char *
 tic4x_expression_abs (str, value)
      char *str;
-     int *value;
+     offsetT *value;
 {
   char *s;
   char *t;
@@ -843,7 +843,7 @@ tic4x_bss (x)
   char c;
   char *name;
   char *p;
-  int size;
+  offsetT size;
   segT current_seg;
   subsegT current_subseg;
   symbolS *symbolP;
@@ -864,7 +864,7 @@ tic4x_bss (x)
     tic4x_expression_abs (++input_line_pointer, &size);
   if (size < 0)
     {
-      as_bad (".bss size %d < 0!", size);
+      as_bad (".bss size %ld < 0!", (long) size);
       return;
     }
   subseg_set (bss_section, 0);
@@ -1024,7 +1024,7 @@ tic4x_eval (x)
      int x ATTRIBUTE_UNUSED;
 {
   char c;
-  int value;
+  offsetT value;
   char *name;
 
   SKIP_WHITESPACE ();
@@ -1060,7 +1060,7 @@ tic4x_sect (x)
   char *subsection_name;
   char *name;
   segT seg;
-  int num;
+  offsetT num;
 
   SKIP_WHITESPACE ();
   if (*input_line_pointer == '"')
@@ -1163,7 +1163,7 @@ tic4x_usect (x)
   char *name;
   char *section_name;
   segT seg;
-  int size, alignment_flag;
+  offsetT size, alignment_flag;
   segT current_seg;
   subsegT current_subseg;
 
@@ -1226,15 +1226,15 @@ static void 
 tic4x_version (x)
      int x ATTRIBUTE_UNUSED;
 {
-  unsigned int temp;
+  offsetT temp;
 
   input_line_pointer =
     tic4x_expression_abs (input_line_pointer, &temp);
   if (!IS_CPU_TIC3X (temp) && !IS_CPU_TIC4X (temp))
-    as_bad ("This assembler does not support processor generation %d",
-	    temp);
+    as_bad ("This assembler does not support processor generation %ld",
+	    (long) temp);
 
-  if (tic4x_cpu && temp != tic4x_cpu)
+  if (tic4x_cpu && temp != (offsetT) tic4x_cpu)
     as_warn ("Changing processor generation on fly not supported...");
   tic4x_cpu = temp;
   demand_empty_rest_of_line ();
@@ -2675,7 +2675,7 @@ md_atof (type, litP, sizeP)
   int ieee;
   LITTLENUM_TYPE words[MAX_LITTLENUMS];
   LITTLENUM_TYPE *wordP;
-  unsigned char *t;
+  char *t;
 
   switch (type)
     {
@@ -2718,7 +2718,7 @@ md_atof (type, litP, sizeP)
   if (t)
     input_line_pointer = t;
   *sizeP = prec * sizeof (LITTLENUM_TYPE);
-  t = litP;
+
   /* This loops outputs the LITTLENUMs in REVERSE order; in accord with
      little endian byte order.  */
   /* SES: However it is required to put the words (32-bits) out in the
@@ -3072,9 +3072,10 @@ long
 md_pcrel_from (fixP)
      fixS *fixP;
 {
-  unsigned char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
+  unsigned char *buf;
   unsigned int op;
 
+  buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
   op = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
 
   return ((fixP->fx_where + fixP->fx_frag->fr_address) >> 2) +
Index: gas/config/tc-tic80.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tic80.c,v
retrieving revision 1.12
diff -u -p -r1.12 tc-tic80.c
--- gas/config/tc-tic80.c	18 Feb 2005 00:49:03 -0000	1.12
+++ gas/config/tc-tic80.c	23 Feb 2005 12:04:56 -0000
@@ -1,5 +1,6 @@
 /* tc-tic80.c -- Assemble for the TI TMS320C80 (MV)
-   Copyright 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 2000, 2001, 2002, 2005
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -685,7 +686,7 @@ md_assemble (str)
      char *str;
 {
   char *scan;
-  unsigned char *input_line_save;
+  char *input_line_save;
   struct tic80_opcode *opcode;
   expressionS myops[16];
 
Index: gas/config/tc-v850.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.c,v
retrieving revision 1.41
diff -u -p -r1.41 tc-v850.c
--- gas/config/tc-v850.c	31 Jan 2005 23:18:34 -0000	1.41
+++ gas/config/tc-v850.c	23 Feb 2005 12:04:57 -0000
@@ -1,5 +1,5 @@
 /* tc-v850.c -- Assembler code for the NEC V850
-   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -1291,7 +1291,7 @@ md_convert_frag (abfd, sec, fragP)
 
       /* Now create the unconditional branch + fixup to the final
 	 target.  */
-      md_number_to_chars (buffer + 2, 0x00000780, 4);
+      md_number_to_chars ((char *) buffer + 2, 0x00000780, 4);
       fix_new (fragP, fragP->fr_fix + 2, 4, fragP->fr_symbol,
 	       fragP->fr_offset, 1, BFD_RELOC_UNUSED +
 	       (int) fragP->fr_opcode + 1);
Index: gas/config/tc-vax.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-vax.c,v
retrieving revision 1.21
diff -u -p -r1.21 tc-vax.c
--- gas/config/tc-vax.c	17 Feb 2005 13:46:05 -0000	1.21
+++ gas/config/tc-vax.c	23 Feb 2005 12:04:59 -0000
@@ -667,7 +667,8 @@ md_assemble (instruction_string)
   /* Remember where it is, in case we want to modify the op-code later.  */
   opcode_low_byteP = frag_more (v.vit_opcode_nbytes);
   memcpy (opcode_low_byteP, v.vit_opcode, v.vit_opcode_nbytes);
-  opcode_as_number = md_chars_to_number (opcode_as_chars = v.vit_opcode, 4);
+  opcode_as_chars = v.vit_opcode;
+  opcode_as_number = md_chars_to_number ((unsigned char *) opcode_as_chars, 4);
   for (operandP = v.vit_operand,
        expP = exp_of_operand,
        segP = seg_of_operand,
Index: gas/config/tc-w65.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-w65.c,v
retrieving revision 1.15
diff -u -p -r1.15 tc-w65.c
--- gas/config/tc-w65.c	31 Jan 2005 23:18:34 -0000	1.15
+++ gas/config/tc-w65.c	23 Feb 2005 12:05:00 -0000
@@ -1,5 +1,6 @@
 /* tc-w65.c -- Assemble code for the W65816
-   Copyright 1995, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1995, 1998, 2000, 2001, 2002, 2005
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -894,7 +895,7 @@ md_convert_frag (headers, seg, fragP)
 		       fragP->fr_offset);
       int disp = targ_addr - next_inst;
 
-      md_number_to_chars (buffer + inst_size, disp, disp_size);
+      md_number_to_chars ((char *) buffer + inst_size, disp, disp_size);
       fragP->fr_fix += disp_size + inst_size;
       fragP->fr_var = 0;
     }
Index: gas/config/tc-xstormy16.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xstormy16.c,v
retrieving revision 1.16
diff -u -p -r1.16 tc-xstormy16.c
--- gas/config/tc-xstormy16.c	17 Feb 2005 13:46:05 -0000	1.16
+++ gas/config/tc-xstormy16.c	23 Feb 2005 12:05:00 -0000
@@ -517,17 +517,19 @@ xstormy16_md_apply_fix3 (fixP, valueP, s
 #if CGEN_INT_INSN_P
 	  {
 	    CGEN_INSN_INT insn_value =
-	      cgen_get_insn_value (cd, where, CGEN_INSN_BITSIZE (insn));
+	      cgen_get_insn_value (cd, (unsigned char *) where,
+				   CGEN_INSN_BITSIZE (insn));
 
 	    /* ??? 0 is passed for `pc'.  */
 	    errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields,
 						   &insn_value, (bfd_vma) 0);
-	    cgen_put_insn_value (cd, where, CGEN_INSN_BITSIZE (insn),
-				 insn_value);
+	    cgen_put_insn_value (cd, (unsigned char *) where,
+				 CGEN_INSN_BITSIZE (insn), insn_value);
 	  }
 #else
 	  /* ??? 0 is passed for `pc'.  */
-	  errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields, where,
+	  errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields,
+						 (unsigned char *) where,
 						 (bfd_vma) 0);
 #endif
 	  if (errmsg)
Index: gas/config/tc-z8k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-z8k.c,v
retrieving revision 1.33
diff -u -p -r1.33 tc-z8k.c
--- gas/config/tc-z8k.c	31 Jan 2005 23:18:35 -0000	1.33
+++ gas/config/tc-z8k.c	23 Feb 2005 12:05:01 -0000
@@ -203,7 +203,7 @@ static int the_flags;
 static int the_interrupt;
 
 static char *
-whatreg (int *reg, char *src)
+whatreg (unsigned int *reg, char *src)
 {
   if (ISDIGIT (src[1]))
     {
@@ -631,13 +631,14 @@ get_operand (char **ptr, struct z8k_op *
     }
   else
     {
-      int regn;
+      unsigned int regn;
 
       end = parse_reg (src, &mode->mode, &regn);
 
       if (end)
 	{
-	  int nw, nr;
+	  int nw;
+	  unsigned int nr;
 
 	  src = end;
 	  if (*src == '(')
Index: ld/pe-dll.c
===================================================================
RCS file: /cvs/src/src/ld/pe-dll.c,v
retrieving revision 1.75
diff -u -p -r1.75 pe-dll.c
--- ld/pe-dll.c	21 Jan 2005 04:15:59 -0000	1.75
+++ ld/pe-dll.c	23 Feb 2005 12:05:11 -0000
@@ -1,5 +1,5 @@
 /* Routines to help build PEI-format DLLs (Win32 etc)
-   Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
+   Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    Free Software Foundation, Inc.
    Written by DJ Delorie <dj@cygnus.com>
 
@@ -920,7 +920,7 @@ fill_edata (bfd *abfd, struct bfd_link_i
   unsigned char *eaddresses;
   unsigned char *enameptrs;
   unsigned char *eordinals;
-  unsigned char *enamestr;
+  char *enamestr;
   time_t now;
 
   time (&now);
@@ -932,7 +932,7 @@ fill_edata (bfd *abfd, struct bfd_link_i
   eaddresses = edata_d + 40;
   enameptrs = eaddresses + 4 * export_table_size;
   eordinals = enameptrs + 4 * count_exported_byname;
-  enamestr = eordinals + 2 * count_exported_byname;
+  enamestr = (char *) eordinals + 2 * count_exported_byname;
 
 #define ERVA(ptr) (((unsigned char *)(ptr) - edata_d) \
 		   + edata_s->output_section->vma - image_base)
@@ -1671,7 +1671,7 @@ make_tail (bfd *parent)
   bfd_set_section_size (abfd, id7, len);
   d7 = xmalloc (len);
   id7->contents = d7;
-  strcpy (d7, dll_filename);
+  strcpy ((char *) d7, dll_filename);
 
   bfd_set_symtab (abfd, symtab, symptr);
 
@@ -1894,7 +1894,7 @@ make_one (def_file_export *exp, bfd *par
       memset (d6, 0, len);
       d6[0] = exp->hint & 0xff;
       d6[1] = exp->hint >> 8;
-      strcpy (d6 + 2, exp->name);
+      strcpy ((char *) d6 + 2, exp->name);
     }
 
   bfd_set_symtab (abfd, symtab, symptr);
@@ -2427,7 +2427,8 @@ pe_implied_import_dll (const char *filen
   unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
   unsigned long export_rva, export_size, nsections, secptr, expptr;
   unsigned long exp_funcbase;
-  unsigned char *expdata, *erva;
+  unsigned char *expdata;
+  char *erva;
   unsigned long name_rvas, ordinals, nexp, ordbase;
   const char *dll_name;
   /* Initialization with start > end guarantees that is_data
@@ -2537,7 +2538,7 @@ pe_implied_import_dll (const char *filen
   expdata = xmalloc (export_size);
   bfd_seek (dll, (file_ptr) expptr, SEEK_SET);
   bfd_bread (expdata, (bfd_size_type) export_size, dll);
-  erva = expdata - export_rva;
+  erva = (char *) expdata - export_rva;
 
   if (pe_def_file == 0)
     pe_def_file = def_file_empty ();
@@ -2550,7 +2551,7 @@ pe_implied_import_dll (const char *filen
 
   /* Use internal dll name instead of filename
      to enable symbolic dll linking.  */
-  dll_name = pe_as32 (expdata + 12) + erva;
+  dll_name = erva + pe_as32 (expdata + 12);
 
   /* Check to see if the dll has already been added to
      the definition list and if so return without error.
Index: ld/emultempl/sunos.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/sunos.em,v
retrieving revision 1.18
diff -u -p -r1.18 sunos.em
--- ld/emultempl/sunos.em	17 Sep 2004 07:14:33 -0000	1.18
+++ ld/emultempl/sunos.em	23 Feb 2005 12:05:13 -0000
@@ -10,7 +10,7 @@ cat >e${EMULATION_NAME}.c <<EOF
 
 /* SunOS emulation code for ${EMULATION_NAME}
    Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
-   2003, 2004 Free Software Foundation, Inc.
+   2003, 2004, 2005 Free Software Foundation, Inc.
    Written by Steve Chamberlain <sac@cygnus.com>
    SunOS shared library support by Ian Lance Taylor <ian@cygnus.com>
 
@@ -917,7 +917,7 @@ gld${EMULATION_NAME}_set_need (lang_inpu
 	  bfd_put_32 (output_bfd, (bfd_vma) 0, need_pinfo + 4);
 	  bfd_put_16 (output_bfd, (bfd_vma) 0, need_pinfo + 8);
 	  bfd_put_16 (output_bfd, (bfd_vma) 0, need_pinfo + 10);
-	  strcpy (need_pnames, inp->filename);
+	  strcpy ((char *) need_pnames, inp->filename);
 	}
       else
 	{
@@ -932,7 +932,7 @@ gld${EMULATION_NAME}_set_need (lang_inpu
 	    sscanf (verstr, ".so.%d.%d", &maj, &min);
 	  bfd_put_16 (output_bfd, (bfd_vma) maj, need_pinfo + 8);
 	  bfd_put_16 (output_bfd, (bfd_vma) min, need_pinfo + 10);
-	  strcpy (need_pnames, inp->local_sym_name + 2);
+	  strcpy ((char *) need_pnames, inp->local_sym_name + 2);
 	}
 
       c = (need_pinfo - need_contents) / NEED_ENTRY_SIZE;
@@ -943,7 +943,7 @@ gld${EMULATION_NAME}_set_need (lang_inpu
 		    need_pinfo + 12);
 
       need_pinfo += NEED_ENTRY_SIZE;
-      need_pnames += strlen (need_pnames) + 1;
+      need_pnames += strlen ((char *) need_pnames) + 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]