summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgloop.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8a79b784f68..9a56b8105d4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-20 Graham Stott <grahams@redhat.com>
+
+ * cfgloop.c (flow_loop_preheader_scan): Fix typo.
+
2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
* config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index 9cb1db9343c..2bd0d4c44bf 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -414,7 +414,7 @@ flow_loop_pre_header_scan (loop)
num++)
ebb = ebb->pred->src;
- loop->pre_header_edges = (edge *) xmalloc (num * sizeof (edge *));
+ loop->pre_header_edges = (edge *) xmalloc (num * sizeof (edge));
loop->num_pre_header_edges = num;
/* Store edges in order that they are followed. The source of the first edge