aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-17 14:18:39 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-17 14:18:39 +0000
commit0982fd6497be2ef3879b60443b657efad1966835 (patch)
treec87afd35f62c03faeaf802bc1a261ffe9ee8e540
parente90afde6fe471ff16c06e00709fe51421d073724 (diff)
downloadgcc-0982fd6497be2ef3879b60443b657efad1966835.zip
gcc-0982fd6497be2ef3879b60443b657efad1966835.tar.gz
gcc-0982fd6497be2ef3879b60443b657efad1966835.tar.bz2
lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers): Properly copy the read string.
2010-09-17 Richard Guenther <rguenther@suse.de> * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers): Properly copy the read string. From-SVN: r164371
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lto-streamer-in.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c36b4f0..a900bda 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-17 Richard Guenther <rguenther@suse.de>
+
+ * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
+ Properly copy the read string.
+
2010-09-17 Joseph Myers <joseph@codesourcery.com>
* doc/options.texi (Variable): Document.
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 83315e8..c6d3c9b 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -2241,7 +2241,7 @@ lto_input_ts_translation_unit_decl_tree_pointers (struct lto_input_block *ib,
struct data_in *data_in,
tree expr)
{
- TRANSLATION_UNIT_LANGUAGE (expr) = input_string (data_in, ib);
+ TRANSLATION_UNIT_LANGUAGE (expr) = xstrdup (input_string (data_in, ib));
VEC_safe_push (tree, gc, all_translation_units, expr);
}