Commit 3cd252c3 by Richard Kenner

(build_string): Make lifetime of string the same as tree node.

From-SVN: r5558
parent 65c42379
...@@ -1254,7 +1254,7 @@ build_string (len, str) ...@@ -1254,7 +1254,7 @@ build_string (len, str)
{ {
register tree s = make_node (STRING_CST); register tree s = make_node (STRING_CST);
TREE_STRING_LENGTH (s) = len; TREE_STRING_LENGTH (s) = len;
TREE_STRING_POINTER (s) = obstack_copy0 (saveable_obstack, str, len); TREE_STRING_POINTER (s) = obstack_copy0 (expression_obstack, str, len);
return s; return s;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment