rs6000.c (rs6000_xcoff_asm_globalize_label): New function.

* 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.

From-SVN: r56500
This commit is contained in:
David Edelsohn 2002-08-22 01:53:30 +00:00 committed by David Edelsohn
parent 79a3cb1885
commit b275d0886c
3 changed files with 24 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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:

View File

@ -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;
{

View File

@ -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). */