summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/objcopy.c4
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/stabs.c2
4 files changed, 12 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9c9ce85c26a..5b0e33e3fba 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index d31eb8f153a..96233986c3e 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -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;
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4f7b48f6d65..46d96b24b33 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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,
diff --git a/gas/stabs.c b/gas/stabs.c
index 3d32729901b..f8acdc84257 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -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)