summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cfgloop.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7b8107526fa..1b0a2498df1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2001-12-31 Graham Stott <grahams@redhat.com>
+ * cfgloop.c (flow_loop_entry_edges_find): Fix typo.
+ (flow_loop_exit_edges_find): Likewise.
+
+2001-12-31 Graham Stott <grahams@redhat.com>
+
* gcse.c (gcse_main): Fix typos.
(alloc_gcse_mem): Likewise.
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index b4b8eb73fbd..9cb1db9343c 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -266,7 +266,7 @@ flow_loop_entry_edges_find (header, nodes, entry_edges)
if (! num_entries)
abort ();
- *entry_edges = (edge *) xmalloc (num_entries * sizeof (edge *));
+ *entry_edges = (edge *) xmalloc (num_entries * sizeof (edge));
num_entries = 0;
for (e = header->pred; e; e = e->pred_next)
@@ -313,7 +313,7 @@ flow_loop_exit_edges_find (nodes, exit_edges)
if (! num_exits)
return 0;
- *exit_edges = (edge *) xmalloc (num_exits * sizeof (edge *));
+ *exit_edges = (edge *) xmalloc (num_exits * sizeof (edge));
/* Store all exiting edges into an array. */
num_exits = 0;