aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2006-06-29 09:28:04 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-06-29 09:28:04 -0700
commit43b50eb2bfbf848d881d32ca8dbdd2aa7de8ecca (patch)
tree735e70a845c17803ce3dbdae3f563a4385df1b65 /gcc/tree.c
parent33792684238fe1f68be7f6f953c9198b9d200f52 (diff)
downloadgcc-43b50eb2bfbf848d881d32ca8dbdd2aa7de8ecca.zip
gcc-43b50eb2bfbf848d881d32ca8dbdd2aa7de8ecca.tar.gz
gcc-43b50eb2bfbf848d881d32ca8dbdd2aa7de8ecca.tar.bz2
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index e0e6716..02e7c7c 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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)