Commit 43b50eb2 by Andrew Pinski Committed by Andrew Pinski

tree.c (tree_size): Do not waste tail padding in struct tree_string and make the…

tree.c (tree_size): Do not waste tail padding in struct tree_string and make the size be the same...

2006-06-28  Andrew Pinski  <pinskia@gmail.com>

        * tree.c (tree_size): Do not waste tail padding in
        struct tree_string and make the size be the same as
        build_string will generate.

From-SVN: r115072
parent 33792684
2006-06-28 Andrew Pinski <pinskia@gmail.com>
* tree.c (tree_size): Do not waste tail padding in
struct tree_string and make the size be the same as
build_string will generate.
2006-06-28 Jason Merrill <jason@redhat.com>
PR c++/27768
......
......@@ -419,7 +419,7 @@ tree_size (tree node)
+ (TREE_VEC_LENGTH (node) - 1) * sizeof(char *));
case STRING_CST:
return sizeof (struct tree_string) + TREE_STRING_LENGTH (node) - 1;
return TREE_STRING_LENGTH (node) + offsetof (struct tree_string, str) + 1;
case OMP_CLAUSE:
return (sizeof (struct tree_omp_clause)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment