+2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
+ Jeff Law <law@redhat.com>
+
+ * gengtype-state.c (read_a_state_token): Fix argument to
+ obstack_free.
+ * gengtype.c (matching_file_name_substitute): Likewise.
+
2011-04-21 Richard Guenther <rguenther@suse.de>
PR lto/48703
obstack_1grow (&id_obstack, (char) 0);
ids = XOBFINISH (&id_obstack, char *);
sid = state_ident_by_name (ids, INSERT);
- obstack_free (&id_obstack, ids);
+ obstack_free (&id_obstack, NULL);
ids = NULL;
tk = XCNEW (struct state_token_st);
tk->stok_kind = STOK_NAME;
tk->stok_file = state_path;
tk->stok_next = NULL;
strcpy (tk->stok_un.stok_string, cstr);
- obstack_free (&bstring_obstack, cstr);
+ obstack_free (&bstring_obstack, NULL);
return tk;
}
obstack_1grow (&str_obstack, '\0');
rawstr = XOBFINISH (&str_obstack, char *);
str = xstrdup (rawstr);
- obstack_free (&str_obstack, rawstr);
+ obstack_free (&str_obstack, NULL);
DBGPRINTF ("matched replacement %s", str);
rawstr = NULL;
return str;