diff options
author | Richard Guenther <rguenther@suse.de> | 2011-04-18 11:18:01 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-04-18 11:18:01 +0000 |
commit | d25a79eae6570f26000cadd9b25459d7d234dd33 (patch) | |
tree | 03e6dee4a586454580db599f720c4217e3eb3690 /gcc/tree.c | |
parent | 7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a (diff) | |
download | gcc-d25a79eae6570f26000cadd9b25459d7d234dd33.zip gcc-d25a79eae6570f26000cadd9b25459d7d234dd33.tar.gz gcc-d25a79eae6570f26000cadd9b25459d7d234dd33.tar.bz2 |
re PR c/48650 (valgrind: Invalid write of size 8 in build_string (tree.c:1524))
2011-04-18 Richard Guenther <rguenther@suse.de>
PR middle-end/48650
* tree.c (build_string): STRING_CST is now derived from tree_typed.
From-SVN: r172642
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |