diff options
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index fb0c0d4..dae3218 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -991,7 +991,7 @@ build_utf8_ref (tree name) | SECTION_MERGE | (SECTION_ENTSIZE & decl_size)); sprintf (buf, ".rodata.jutf8.%d", decl_size); switch_to_section (get_section (buf, flags, NULL)); - set_decl_section_name (decl, build_string (strlen (buf), buf)); + set_decl_section_name (decl, buf); } } @@ -2815,8 +2815,7 @@ emit_register_classes_in_jcr_section (void) DECL_ARTIFICIAL (cdecl) = 1; DECL_IGNORED_P (cdecl) = 1; DECL_PRESERVE_P (cdecl) = 1; - set_decl_section_name (cdecl, build_string (strlen (JCR_SECTION_NAME), - JCR_SECTION_NAME)); + set_decl_section_name (cdecl, JCR_SECTION_NAME); pushdecl_top_level (cdecl); relayout_decl (cdecl); rest_of_decl_compilation (cdecl, 1, 0); |