(output_constant_def): Copy string as well as string node when
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 3 Oct 1993 20:45:14 +0000 (16:45 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 3 Oct 1993 20:45:14 +0000 (16:45 -0400)
deferring output of constants.

From-SVN: r5568

gcc/varasm.c

index e39f54686d6155a642217c23e3c88b9ca50241f9..fa4147061b255d3d534bf0afa5c66f183e716b8b 100644 (file)
@@ -2481,6 +2481,9 @@ output_constant_def (exp)
          push_obstacks_nochange ();
          suspend_momentary ();
          p->exp = copy_node (exp);
+         TREE_STRING_POINTER (p->exp)
+           = obstack_copy0 (current_obstack, TREE_STRING_POINTER (p->exp),
+                            TREE_STRING_LENGTH (p->exp));
          pop_obstacks ();
          p->reloc = reloc;
          p->labelno = const_labelno++;