diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d9de0a2da47..adf3fd1011c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-08-21 David Edelsohn + + * 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 For PR java/6005 and PR java/7611: diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1bb6c29a960..4becedd80d9 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -205,7 +205,8 @@ static void rs6000_elf_encode_section_info PARAMS ((tree, int)); 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)); @@ -13096,7 +13097,17 @@ rs6000_elf_asm_out_destructor (symbol, priority) #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; { diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h index acc10def748..339b25c243a 100644 --- a/gcc/config/rs6000/xcoff.h +++ b/gcc/config/rs6000/xcoff.h @@ -417,7 +417,10 @@ toc_section () \ #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). */