aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/symtab.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 8be42e9..c4742ff 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-31 Alan Modra <alan@linuxcare.com.au>
+
+ * symtab.c (symtab_finalize): Don't use post-increment on
+ structure copy to work around a ppc gcc bug.
+
1999-09-29 Mark Kettenis <kettenis@gnu.org>
* hertz.h [MACH] (hertz): Remove macro. The
diff --git a/gprof/symtab.c b/gprof/symtab.c
index 53b261a..e4fda46 100644
--- a/gprof/symtab.c
+++ b/gprof/symtab.c
@@ -132,7 +132,8 @@ DEFUN (symtab_finalize, (tab), Sym_Table * tab)
/* retain sym only if it has a non-empty address range: */
if (!src->end_addr || src->addr <= src->end_addr)
{
- *dst++ = *src;
+ *dst = *src;
+ dst++;
prev_addr = src->addr;
}
}