Commit 5667c33d by David Billinghurst Committed by David Billinghurst

class.c (build_utf8_ref): Move declaration of decl_size

2002-02-12  David Billinghurst <Davod.Billinghurst@riotinto.com>

	* class.c(build_utf8_ref): Move declaration of decl_size

From-SVN: r49688
parent a02ac966
2002-02-12 David Billinghurst <Davod.Billinghurst@riotinto.com>
* class.c(build_utf8_ref): Move declaration of decl_size
2002-02-07 Tom Tromey <tromey@redhat.com> 2002-02-07 Tom Tromey <tromey@redhat.com>
* gcj.texi (Input Options): --CLASSPATH does not suppress system * gcj.texi (Input Options): --CLASSPATH does not suppress system
......
...@@ -967,7 +967,7 @@ build_utf8_ref (name) ...@@ -967,7 +967,7 @@ build_utf8_ref (name)
char buf[60]; char buf[60];
tree ctype, field = NULL_TREE, str_type, cinit, string; tree ctype, field = NULL_TREE, str_type, cinit, string;
static int utf8_count = 0; static int utf8_count = 0;
int name_hash, decl_size; int name_hash;
tree ref = IDENTIFIER_UTF8_REF (name); tree ref = IDENTIFIER_UTF8_REF (name);
tree decl; tree decl;
if (ref != NULL_TREE) if (ref != NULL_TREE)
...@@ -1001,6 +1001,8 @@ build_utf8_ref (name) ...@@ -1001,6 +1001,8 @@ build_utf8_ref (name)
TREE_THIS_VOLATILE (decl) = 0; TREE_THIS_VOLATILE (decl) = 0;
DECL_INITIAL (decl) = cinit; DECL_INITIAL (decl) = cinit;
#ifdef HAVE_GAS_SHF_MERGE #ifdef HAVE_GAS_SHF_MERGE
{
int decl_size;
/* Ensure decl_size is a multiple of utf8const_type's alignment. */ /* Ensure decl_size is a multiple of utf8const_type's alignment. */
decl_size = (name_len + 5 + TYPE_ALIGN_UNIT (utf8const_type) - 1) decl_size = (name_len + 5 + TYPE_ALIGN_UNIT (utf8const_type) - 1)
& ~(TYPE_ALIGN_UNIT (utf8const_type) - 1); & ~(TYPE_ALIGN_UNIT (utf8const_type) - 1);
...@@ -1013,6 +1015,7 @@ build_utf8_ref (name) ...@@ -1013,6 +1015,7 @@ build_utf8_ref (name)
named_section_flags (buf, flags); named_section_flags (buf, flags);
DECL_SECTION_NAME (decl) = build_string (strlen (buf), buf); DECL_SECTION_NAME (decl) = build_string (strlen (buf), buf);
} }
}
#endif #endif
TREE_CHAIN (decl) = utf8_decl_list; TREE_CHAIN (decl) = utf8_decl_list;
layout_decl (decl, 0); layout_decl (decl, 0);
......
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