From ccb57eba1ca293d5bb5ec62d4f38a3f709cc73bf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 31 Mar 2000 02:57:38 +0000 Subject: Don't use post-increment on structure copy to work around a ppc gcc bug. --- gprof/symtab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gprof/symtab.c') 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; } } -- cgit v1.1