diff options
author | Alan Modra <amodra@gmail.com> | 2000-03-31 02:57:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-03-31 02:57:38 +0000 |
commit | ccb57eba1ca293d5bb5ec62d4f38a3f709cc73bf (patch) | |
tree | 8800caa2cf5db525c66d33365dafa5b72bee9912 /gprof/symtab.c | |
parent | 65d7f9a691c4456707cca1d794addcc9fab2b42a (diff) | |
download | binutils-gdb-ccb57eba1ca293d5bb5ec62d4f38a3f709cc73bf.tar.gz |
Don't use post-increment on structure copy to work around a ppc gcc bug.
Diffstat (limited to 'gprof/symtab.c')
-rw-r--r-- | gprof/symtab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c index 53b261a70ef..e4fda46533f 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; } } |