(build_string): Make lifetime of string the same as tree node.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 2 Oct 1993 18:03:56 +0000 (14:03 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 2 Oct 1993 18:03:56 +0000 (14:03 -0400)
From-SVN: r5558

gcc/tree.c

index 7fd8296f229b87481f8fd14d0d2d802ee5f5ac67..c348bf8af22885ca8d06b987b94ad5a1bd418e4d 100644 (file)
@@ -1254,7 +1254,7 @@ build_string (len, str)
 {
   register tree s = make_node (STRING_CST);
   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;
 }