OSDN Git Service

2010-09-17 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 2010 14:18:39 +0000 (14:18 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 2010 14:18:39 +0000 (14:18 +0000)
* lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
Properly copy the read string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164371 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/lto-streamer-in.c

index c36b4f0..a900bda 100644 (file)
@@ -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.
index 83315e8..c6d3c9b 100644 (file)
@@ -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);
 }