class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT from ctype's sizes.
* class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT from ctype's sizes. From-SVN: r138252
This commit is contained in:
parent
ef5b0e6eb8
commit
8452fee78f
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-07-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT
|
||||
from ctype's sizes.
|
||||
|
||||
* class.c (build_utf8_ref): Pad initializer string to utf8const_type's
|
||||
alignment.
|
||||
|
||||
|
|
|
@ -990,6 +990,8 @@ build_utf8_ref (tree name)
|
|||
|
||||
TREE_CHAIN (decl) = utf8_decl_list;
|
||||
layout_decl (decl, 0);
|
||||
DECL_SIZE (decl) = TYPE_SIZE (ctype);
|
||||
DECL_SIZE_UNIT (decl) = TYPE_SIZE_UNIT (ctype);
|
||||
pushdecl (decl);
|
||||
rest_of_decl_compilation (decl, global_bindings_p (), 0);
|
||||
varpool_mark_needed_node (varpool_node (decl));
|
||||
|
|
Loading…
Add table
Reference in a new issue