+2002-08-21 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
+ function.
+ (rs6000_xcoff_asm_named_section): Rename.
+ * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
+
2002-08-21 Tom Tromey <tromey@redhat.com>
For PR java/6005 and PR java/7611:
static const char *rs6000_elf_strip_name_encoding PARAMS ((const char *));
#endif
#if TARGET_XCOFF
-static void xcoff_asm_named_section PARAMS ((const char *, unsigned int));
+static void rs6000_xcoff_asm_globalize_label PARAMS ((FILE *, const char *));
+static void rs6000_xcoff_asm_named_section PARAMS ((const char *, unsigned int));
static void rs6000_xcoff_select_section PARAMS ((tree, int,
unsigned HOST_WIDE_INT));
static void rs6000_xcoff_unique_section PARAMS ((tree, int));
#if TARGET_XCOFF
static void
-xcoff_asm_named_section (name, flags)
+rs6000_xcoff_asm_globalize_label (stream, name)
+ FILE *stream;
+ const char *name;
+{
+ fputs (GLOBAL_ASM_OP, stream);
+ RS6000_OUTPUT_BASENAME (stream, name);
+ putc ('\n', stream);
+}
+
+static void
+rs6000_xcoff_asm_named_section (name, flags)
const char *name;
unsigned int flags ATTRIBUTE_UNUSED;
{
#define TARGET_ASM_UNIQUE_SECTION rs6000_xcoff_unique_section
/* Switch into a generic section. */
-#define TARGET_ASM_NAMED_SECTION xcoff_asm_named_section
+#define TARGET_ASM_NAMED_SECTION rs6000_xcoff_asm_named_section
+
+/* Globalize a label. */
+#define TARGET_ASM_GLOBALIZE_LABEL rs6000_xcoff_asm_globalize_label
/* Define the name of the section to use for the EH language specific
data areas (.gcc_except_table on most other systems). */