summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/read-rtl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26c1162dc70..a112e174ab2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-18 Ian Lance Taylor <ian@airs.com>
+
+ * read-rtl.c (mode_attr_index): Use obstack_grow0, not
+ obstack_grow.
+
2005-05-18 Daniel Berlin <dberlin@dberlin.org>
* cfgrtl.c (purge_dead_edges): Don't remove fake edges.
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 4fbfda0f1c3..1b1a329d2ff 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -320,7 +320,7 @@ mode_attr_index (struct map_value **mode_maps, const char *string)
/* Copy the attribute string into permanent storage, without the
angle brackets around it. */
- obstack_grow (&string_obstack, string + 1, strlen (string) - 2);
+ obstack_grow0 (&string_obstack, string + 1, strlen (string) - 2);
p = (char *) obstack_finish (&string_obstack);
mv = XNEW (struct map_value);