From: Jakub Jelinek Date: Tue, 29 Jul 2008 16:31:18 +0000 (+0200) Subject: class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT from ctype's sizes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8452fee78f5a1a48f2404590f76bb1a02b6b8538;p=gcc.git 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 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 9fad3209130..5811a224cda 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,8 @@ 2008-07-29 Jakub Jelinek + * 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. diff --git a/gcc/java/class.c b/gcc/java/class.c index fecd962b8b6..2d8a1c21999 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -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));