2011-04-18 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2011 11:18:01 +0000 (11:18 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2011 11:18:01 +0000 (11:18 +0000)
PR middle-end/48650
* tree.c (build_string): STRING_CST is now derived from tree_typed.

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

gcc/ChangeLog
gcc/tree.c

index b6f1147..e2c4a01 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-18  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/48650
+       * tree.c (build_string): STRING_CST is now derived from tree_typed.
+
 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR lto/48492
index c233a5c..e36d4d8 100644 (file)
@@ -1521,7 +1521,7 @@ build_string (int len, const char *str)
 
   s = ggc_alloc_tree_node (length);
 
-  memset (s, 0, sizeof (struct tree_common));
+  memset (s, 0, sizeof (struct tree_typed));
   TREE_SET_CODE (s, STRING_CST);
   TREE_CONSTANT (s) = 1;
   TREE_STRING_LENGTH (s) = len;