gas/
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Feb 2004 17:15:28 +0000 (17:15 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 19 Feb 2004 17:15:28 +0000 (17:15 +0000)
* stabs.c (generate_asm_file): Avoid warning about use of
uninitialized variable.
binutils/
* objcopy.c (copy_section): Avoid warnings.

binutils/ChangeLog
binutils/objcopy.c
gas/ChangeLog
gas/stabs.c

index 9c9ce85c26af9aee165a599b89fe88a0f1cca080..5b0e33e3fbadac1964b284c359e4fc21e0940369 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * objcopy.c (copy_section): Avoid warnings.
+
 2004-02-14  Andrew Cagney  <cagney@redhat.com>
 
        * ar.c (remove_output): Use bfd_cache_close.
index d31eb8f153a7b65d1b87b444a36831b8fa467fd9..96233986c3e01b5c1ed1e2f4439a0b2e4b619b7f 100644 (file)
@@ -2055,9 +2055,9 @@ copy_section (bfd *ibfd, sec_ptr isection, void *obfdarg)
       if (copy_byte >= 0)
        {
          /* Keep only every `copy_byte'th byte in MEMHUNK.  */
-         char *from = memhunk + copy_byte;
+         char *from = (char *) memhunk + copy_byte;
          char *to = memhunk;
-         char *end = memhunk + size;
+         char *end = (char *) memhunk + size;
 
          for (; from < end; from += interleave)
            *to++ = *from;
index 4f7b48f6d65ba66ac1e7f74a14dd895516aaf7fd..46d96b24b33c6e558c8974977f1e7131fd3bb371 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * stabs.c (generate_asm_file): Avoid warning about use of
+       uninitialized variable.
+
 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
 
        * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
index 3d32729901ba0d8fb4fb1a164f764dac372a0c4d..f8acdc8425754a349f987ca4036be0c863e6408f 100644 (file)
@@ -520,7 +520,7 @@ generate_asm_file (int type, char *file)
   char *buf;
   char *tmp = file;
   char *endp = file + strlen (file);
-  char *bufp = buf;
+  char *bufp;
 
   if (last_file != NULL
       && strcmp (last_file, file) == 0)