rs6000.c (rs6000_xcoff_asm_globalize_label): New function.
authorDavid Edelsohn <edelsohn@gnu.org>
Thu, 22 Aug 2002 01:53:30 +0000 (01:53 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 22 Aug 2002 01:53:30 +0000 (21:53 -0400)
        * 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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/xcoff.h

index d9de0a2da47f6bd0280de1258a9dbf2ffc6d1d58..adf3fd1011c02d76367b8071811c7bc30d903912 100644 (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:
index 1bb6c29a96013770a0d8feef04ccc65e6db7f193..4becedd80d965975da7e339cb4f0e2587e3debf1 100644 (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;
 {
index acc10def7482dc7c5f6f82c8e2cc617842bb8038..339b25c243a07391af95e690bdd65aa49d42843f 100644 (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).  */