aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 28 Oct 2001 21:45:46 +0000 (21:45 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 28 Oct 2001 21:45:46 +0000 (16:45 -0500)
        * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
        * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
        (ASM_GLOBALIZE_LABEL): Use assemble_name.
        (ASM_OUTPUT_COMMON): Likewise.
        * config/rs6000/rs6000.c (print_operand): Use assemble_name.
        (rs6000_output_function_epilogue): Likewise.
        (output_mi_thunk): Fix typo.
        (rs6000_output_symbol_ref): Use assemble_name.
        (output_toc): Likewise.
        * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
        * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
        assemble_name calls STRIP_NAME_ENCODING.
        (ASM_OUTPUT_LABEL): Use assemble_name.
        (ASM_GLOBALIZE_LABEL): Likewise.
        (ASM_DECLARE_FUNCTION_NAME): Likewise.
        (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
        (ASM_OUTPUT_LOCAL): Likewise.

From-SVN: r46600

gcc/ChangeLog
gcc/config/rs6000/aix31.h
gcc/config/rs6000/darwin.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/sysv4.h
gcc/config/rs6000/xcoff.h

index e6d48285cafe2f37c2383ae34836cac3722ebba4..a97d1d25233b249904000315f1707c5c05fc0e14 100644 (file)
@@ -1,3 +1,23 @@
+2001-10-28  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
+       * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
+       (ASM_GLOBALIZE_LABEL): Use assemble_name.
+       (ASM_OUTPUT_COMMON): Likewise.
+       * config/rs6000/rs6000.c (print_operand): Use assemble_name.
+       (rs6000_output_function_epilogue): Likewise.
+       (output_mi_thunk): Fix typo.
+       (rs6000_output_symbol_ref): Use assemble_name.
+       (output_toc): Likewise.
+       * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
+       * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
+       assemble_name calls STRIP_NAME_ENCODING.
+       (ASM_OUTPUT_LABEL): Use assemble_name.
+       (ASM_GLOBALIZE_LABEL): Likewise.
+       (ASM_DECLARE_FUNCTION_NAME): Likewise.
+       (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
+       (ASM_OUTPUT_LOCAL): Likewise.
+
 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
index 1156b1eb0d4314d7d4b6ffda4ae19f25334dc69e..8915292f40fb4d46eabebeca696a9dbd526c25b9 100644 (file)
@@ -45,7 +45,7 @@ Boston, MA 02111-1307, USA.  */
   if (TREE_CODE (DECL) == FUNCTION_DECL)       \
     {                                          \
       fputs ("\n\t.extern .", FILE);           \
-      RS6000_OUTPUT_BASENAME (FILE, XSTR (_symref, 0));        \
+      assemble_name (FILE, XSTR (_symref, 0)); \
     }                                          \
   putc ('\n', FILE);                           \
 }
index 768f4d77e27cb7102a9cdc497f812cc4508c8190..fe192b58d70b8fb495083e9562e76f63a9d96e3e 100644 (file)
@@ -79,12 +79,6 @@ Boston, MA 02111-1307, USA.  */
 #undef REGISTER_NAMES
 #define REGISTER_NAMES DEBUG_REGISTER_NAMES
 
-/* This outputs NAME to FILE.  */
-
-#undef  RS6000_OUTPUT_BASENAME
-#define RS6000_OUTPUT_BASENAME(FILE, NAME)     \
-    assemble_name (FILE, NAME);
-
 /* Output before instructions.  */
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
@@ -98,7 +92,7 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_GLOBALIZE_LABEL
 #define ASM_GLOBALIZE_LABEL(FILE,NAME) \
   do { fputs ("\t.globl ", FILE);      \
-       RS6000_OUTPUT_BASENAME (FILE, NAME); putc ('\n', FILE);} while (0)
+       assemble_name (FILE, NAME); putc ('\n', FILE);} while (0)
 
 /* This is how to output an internal label prefix.  rs6000.c uses this
    when generating traceback tables.  */
@@ -122,7 +116,7 @@ Boston, MA 02111-1307, USA.  */
 #undef  ASM_OUTPUT_ALIGNED_COMMON
 #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)   \
   do { fputs (".comm ", (FILE));                       \
-       RS6000_OUTPUT_BASENAME ((FILE), (NAME));                \
+       assemble_name ((FILE), (NAME));         \
        fprintf ((FILE), ",%d\n", (SIZE)); } while (0)
 
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
index 803d4e0d4c9b47010490b92c86dac8127254c0c9..b699edac8d94ca7875afaf7ef76698aa4a4d2e72 100644 (file)
@@ -4691,11 +4691,7 @@ print_operand (file, x, code)
              break;
            }
        }
-#if TARGET_AIX
-      RS6000_OUTPUT_BASENAME (file, XSTR (x, 0));
-#else
       assemble_name (file, XSTR (x, 0));
-#endif
       return;
 
     case 'Z':
@@ -7049,17 +7045,9 @@ rs6000_output_function_epilogue (file, size)
       /* Offset from start of code to tb table.  */
       fputs ("\t.long ", file);
       ASM_OUTPUT_INTERNAL_LABEL_PREFIX (file, "LT");
-#if TARGET_AIX
-      RS6000_OUTPUT_BASENAME (file, fname);
-#else
       assemble_name (file, fname);
-#endif
       fputs ("-.", file);
-#if TARGET_AIX
-      RS6000_OUTPUT_BASENAME (file, fname);
-#else
       assemble_name (file, fname);
-#endif
       putc ('\n', file);
 
       /* Interrupt handler mask.  */
@@ -7230,7 +7218,7 @@ output_mi_thunk (file, thunk_fndecl, delta, function)
          assemble_name (file, buf);
          putc ('\n', file);
          text_section ();
-         asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s", r12);
+         asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12);
          assemble_name (file, buf);
          asm_fprintf (file, "(%s)\n", reg_names[2]);
          asm_fprintf (file,
@@ -7476,13 +7464,7 @@ rs6000_output_symbol_ref (file, x)
      we emit the TOC reference to reference the symbol and not the
      section.  */
   const char *name = XSTR (x, 0);
-
-  if (VTABLE_NAME_P (name)) 
-    {
-      RS6000_OUTPUT_BASENAME (file, name);
-    }
-  else
-    assemble_name (file, name);
+  assemble_name (file, name);
 }
 
 /* Output a TOC entry.  We derive the entry name from what is being
@@ -7715,7 +7697,7 @@ output_toc (file, x, labelno, mode)
      section.  */
   if (VTABLE_NAME_P (name))
     {
-      RS6000_OUTPUT_BASENAME (file, name);
+      assemble_name (file, name);
       if (offset < 0)
        fprintf (file, "%d", offset);
       else if (offset > 0)
index 0a24cc30be4849d083a407d3c55d2189b9f2217f..f319fb43d82c8cab0580d5445eec930b85a25077 100644 (file)
@@ -886,11 +886,6 @@ do {                                                                       \
 #undef ENCODE_SECTION_INFO
 #define        ENCODE_SECTION_INFO(DECL) rs6000_encode_section_info (DECL)
 
-/* The ELF version doesn't encode [DS] or whatever at the end of symbols.  */
-
-#define        RS6000_OUTPUT_BASENAME(FILE, NAME)      \
-    assemble_name (FILE, NAME)
-
 /* This macro gets just the user-specified name
    out of the string in a SYMBOL_REF.  Discard
    a leading * or @.  */
index 758a95b30fb59278bf869436ad5993f1f49f07ec..d2e58c53b3b39c71cc02ef82709a38452f47f915 100644 (file)
@@ -231,28 +231,18 @@ toc_section ()                                            \
 #define RS6000_ITRUNC "__itrunc"
 #define RS6000_UITRUNC "__uitrunc"
 
-/* This outputs NAME to FILE up to the first null or '['.  */
-
-#define RS6000_OUTPUT_BASENAME(FILE, NAME)     \
-  {                                            \
-    const char *_p;                            \
-                                               \
-    STRIP_NAME_ENCODING (_p, (NAME));          \
-    assemble_name ((FILE), _p);                        \
-  }
-
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
 
 #define ASM_OUTPUT_LABEL(FILE,NAME)    \
-  do { RS6000_OUTPUT_BASENAME (FILE, NAME); fputs (":\n", FILE); } while (0)
+  do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
 
 /* This is how to output a command to make the user-level label named NAME
    defined for reference from other files.  */
 
 #define ASM_GLOBALIZE_LABEL(FILE,NAME) \
   do { fputs ("\t.globl ", FILE);      \
-       RS6000_OUTPUT_BASENAME (FILE, NAME); putc ('\n', FILE);} while (0)
+       assemble_name (FILE, NAME); putc ('\n', FILE);} while (0)
 
 /* Remove any trailing [DS] or the like from the symbol name.  */
 
@@ -343,27 +333,27 @@ toc_section ()                                            \
   if (TREE_PUBLIC (DECL))                                      \
     {                                                          \
       fputs ("\t.globl .", FILE);                              \
-      RS6000_OUTPUT_BASENAME (FILE, NAME);                     \
+      assemble_name (FILE, NAME);                              \
       putc ('\n', FILE);                                       \
     }                                                          \
   else                                                         \
     {                                                          \
       fputs ("\t.lglobl .", FILE);                             \
-      RS6000_OUTPUT_BASENAME (FILE, NAME);                     \
+      assemble_name (FILE, NAME);                              \
       putc ('\n', FILE);                                       \
     }                                                          \
   fputs ("\t.csect ", FILE);                                   \
-  RS6000_OUTPUT_BASENAME (FILE, NAME);                         \
+  assemble_name (FILE, NAME);                                  \
   fputs (TARGET_32BIT ? "[DS]\n" : "[DS],3\n", FILE);          \
-  RS6000_OUTPUT_BASENAME (FILE, NAME);                         \
+  assemble_name (FILE, NAME);                                  \
   fputs (":\n", FILE);                                         \
   fputs (TARGET_32BIT ? "\t.long ." : "\t.llong .", FILE);     \
-  RS6000_OUTPUT_BASENAME (FILE, NAME);                         \
+  assemble_name (FILE, NAME);                                  \
   fputs (", TOC[tc0], 0\n", FILE);                             \
   in_section = no_section;                                     \
   function_section(DECL);                                      \
   putc ('.', FILE);                                            \
-  RS6000_OUTPUT_BASENAME (FILE, NAME);                         \
+  assemble_name (FILE, NAME);                                  \
   fputs (":\n", FILE);                                         \
   if (write_symbols == XCOFF_DEBUG)                            \
     xcoffout_declare_function (FILE, DECL, NAME);              \
@@ -430,8 +420,8 @@ toc_section ()                                              \
    to define a global common symbol.  */
 
 #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGNMENT) \
-  do { fputs (".comm ", (FILE));                       \
-       RS6000_OUTPUT_BASENAME ((FILE), (NAME));                \
+  do { fputs ("\t.comm ", (FILE));                     \
+       assemble_name ((FILE), (NAME));                 \
        if ( (SIZE) > 4)                                        \
          fprintf ((FILE), ",%d,3\n", (SIZE));          \
        else                                            \
@@ -448,8 +438,8 @@ toc_section ()                                              \
    for 64-bit mode.  */
 
 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)    \
-  do { fputs (".lcomm ", (FILE));                      \
-       RS6000_OUTPUT_BASENAME ((FILE), (NAME));                \
+  do { fputs ("\t.lcomm ", (FILE));                    \
+       assemble_name ((FILE), (NAME));                 \
        fprintf ((FILE), ",%d,%s\n", (TARGET_32BIT ? (SIZE) : (ROUNDED)), \
                xcoff_bss_section_name);                \
      } while (0)