aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6f1147..e2c4a01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree.c b/gcc/tree.c
index c233a5c..e36d4d8 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;