aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/mkdeps.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d28f9b8..cca4afb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-06 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * mkdeps.c (deps_add_dep): Fix vector re-allocation.
+
Sat Jan 6 00:09:34 2001 J"orn Rennecke <amylaar@redhat.com>
* integrate.c (copy_rtx_and_substitute): When copying
diff --git a/gcc/mkdeps.c b/gcc/mkdeps.c
index a128a6f..b0c62c5 100644
--- a/gcc/mkdeps.c
+++ b/gcc/mkdeps.c
@@ -216,7 +216,7 @@ deps_add_dep (d, t)
if (d->ndeps == d->deps_size)
{
- d->deps_size *= 2 + 8;
+ d->deps_size = d->deps_size * 2 + 8;
d->depv = (const char **)
xrealloc (d->depv, d->deps_size * sizeof (const char *));
}