diff options
author | Richard Guenther <rguenther@suse.de> | 2006-06-26 18:18:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-06-26 18:18:22 +0000 |
commit | 28df01acc444605ff9f10a74609ee3709a36bcae (patch) | |
tree | 2f9fa8259ba677e7315d47d6b9307abbc50bc29a /gcc/tree.c | |
parent | 49799ad34ff49b5cd5bad788b4f6fafd2ce44d08 (diff) | |
download | gcc-28df01acc444605ff9f10a74609ee3709a36bcae.zip gcc-28df01acc444605ff9f10a74609ee3709a36bcae.tar.gz gcc-28df01acc444605ff9f10a74609ee3709a36bcae.tar.bz2 |
tree.c (build_string): Do not waste tail padding in struct tree_string.
2006-06-26 Richard Guenther <rguenther@suse.de>
* tree.c (build_string): Do not waste tail padding in
struct tree_string.
From-SVN: r115021
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1120,8 +1120,9 @@ build_string (int len, const char *str) { tree s; size_t length; - - length = len + sizeof (struct tree_string); + + /* Do not waste bytes provided by padding of struct tree_string. */ + length = len + offsetof (struct tree_string, str) + 1; #ifdef GATHER_STATISTICS tree_node_counts[(int) c_kind]++; |