read-rtl.c (mode_attr_index): Use obstack_grow0, not obstack_grow.

* read-rtl.c (mode_attr_index): Use obstack_grow0, not
	obstack_grow.

From-SVN: r99899
This commit is contained in:
Ian Lance Taylor 2005-05-18 13:46:39 +00:00 committed by Ian Lance Taylor
parent 2afa8dceda
commit 33af9c08e1
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);