2006-06-26 Richard Guenther <rguenther@suse.de>
* tree.c (build_string): Do not waste tail padding in
struct tree_string.
From-SVN: r115021
+2006-06-26 Richard Guenther <rguenther@suse.de>
+
+ * tree.c (build_string): Do not waste tail padding in
+ struct tree_string.
+
2006-06-26 Richard Guenther <rguenther@suse.de>
* ggc-page.c (init_ggc): Add missing element to size_lookup
{
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]++;