From 33af9c08e1e52c20df5c2b7488628c037d03918a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 18 May 2005 13:46:39 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/read-rtl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26c1162dc70a..a112e174ab2a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-18 Ian Lance Taylor + + * read-rtl.c (mode_attr_index): Use obstack_grow0, not + obstack_grow. + 2005-05-18 Daniel Berlin * cfgrtl.c (purge_dead_edges): Don't remove fake edges. diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 4fbfda0f1c37..1b1a329d2ff3 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);