(build_string): Remove previous change and comment why string text has
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Oct 1993 09:51:29 +0000 (05:51 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Oct 1993 09:51:29 +0000 (05:51 -0400)
to be in saveable_obstack.

From-SVN: r5589

gcc/tree.c

index 859f92d7de3f135fe6482a624f9b6d4685018617..e1cc1878162fc736d9483e5b493ebda837a38efd 100644 (file)
@@ -1252,9 +1252,13 @@ build_string (len, str)
      int len;
      char *str;
 {
+  /* Put the string in saveable_obstack since it will be placed in the RTL
+     for an "asm" statement and will also be kept around a while if
+     deferring constant output in varasm.c.  */
+
   register tree s = make_node (STRING_CST);
   TREE_STRING_LENGTH (s) = len;
-  TREE_STRING_POINTER (s) = obstack_copy0 (expression_obstack, str, len);
+  TREE_STRING_POINTER (s) = obstack_copy0 (saveable_obstack, str, len);
   return s;
 }