From: Richard Kenner Date: Mon, 4 Oct 1993 09:51:29 +0000 (-0400) Subject: (build_string): Remove previous change and comment why string text has X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=526a62535a5d36f18fa2769a1b7d1136f0cd3aea;p=gcc.git (build_string): Remove previous change and comment why string text has to be in saveable_obstack. From-SVN: r5589 --- diff --git a/gcc/tree.c b/gcc/tree.c index 859f92d7de3..e1cc1878162 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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; }