diff options
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 6f724f4..fbf5ed2 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -915,7 +915,7 @@ build_utf8_ref (tree name) int flags = (SECTION_OVERRIDE | SECTION_MERGE | (SECTION_ENTSIZE & decl_size)); sprintf (buf, ".rodata.jutf8.%d", decl_size); - named_section_flags (buf, flags); + switch_to_section (get_section (buf, flags, NULL)); DECL_SECTION_NAME (decl) = build_string (strlen (buf), buf); } } @@ -2434,7 +2434,7 @@ emit_register_classes (tree *list_p) int i; #ifdef JCR_SECTION_NAME - named_section_flags (JCR_SECTION_NAME, SECTION_WRITE); + switch_to_section (get_section (JCR_SECTION_NAME, SECTION_WRITE, NULL)); #else /* A target has defined TARGET_USE_JCR_SECTION, but doesn't have a JCR_SECTION_NAME. */ |