From d3328f5500cdf3334c05a54cb7b9f447b32b80d8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 3 Oct 1993 16:45:14 -0400 Subject: [PATCH] (output_constant_def): Copy string as well as string node when deferring output of constants. From-SVN: r5568 --- gcc/varasm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/varasm.c b/gcc/varasm.c index e39f54686d6..fa4147061b2 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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++; -- 2.30.2