OSDN Git Service

* config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2002 01:53:30 +0000 (01:53 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2002 01:53:30 +0000 (01:53 +0000)
        function.
        (rs6000_xcoff_asm_named_section): Rename.
        * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56500 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d9de0a2..adf3fd1 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 1bb6c29..4becedd 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 acc10de..339b25c 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).  */