output.h (STRIP_NAME_ENCODING): Provide default definition.
authorJeffrey A Law <law@cygnus.com>
Tue, 25 May 1999 21:32:01 +0000 (21:32 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 25 May 1999 21:32:01 +0000 (15:32 -0600)
        * output.h (STRIP_NAME_ENCODING): Provide default definition.
        * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.

From-SVN: r27151

gcc/ChangeLog
gcc/dwarf2out.c
gcc/output.h

index 11ac9b6180cb3de9d06124ebdd86634c5e9c4066..663c1188e3822e7c9dbebb88c04a6b473e123c3b 100644 (file)
@@ -1,5 +1,8 @@
 Tue May 25 14:06:06 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * output.h (STRIP_NAME_ENCODING): Provide default definition.
+       * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
+
        * flow.c (mark_set_1): Do not record BLKmode stores as dead
        store elimination candidates.
 
index 659b119f4bdffb68e4539f1dfc30698758cdce5e..58cf338e72c9c563ed00dbb0db1b1ea5bda6da44 100644 (file)
@@ -2728,8 +2728,10 @@ static char debug_line_section_label[MAX_ARTIFICIAL_LABEL_BYTES];
        dyn_string_append (STR, NAME + 1);              \
       else                                             \
        {                                               \
+         char *newstr;                                 \
+         STRIP_NAME_ENCODING (newstr, NAME);           \
          dyn_string_append (STR, user_label_prefix);   \
-         dyn_string_append (STR, NAME);                \
+         dyn_string_append (STR, newstr);              \
        }                                               \
   }                                                    \
   while (0)
index e1cf6d82950305060c7f43f737210f15f1272e5a..9456ed8ed3fa981a5afd903f61b03c2d7c1f517d 100644 (file)
@@ -505,3 +505,9 @@ extern FILE *rtl_dump_file;
 
 /* User label prefix in effect for this compilation.  */
 extern const char *user_label_prefix;
+
+/* Define a default version of STRIP_NAME_ENCODING so that we can use
+   it without a mess of #ifdefs.  */
+#ifndef STRIP_NAME_ENCODING
+#define STRIP_NAME_ENCODING(TARGET,SOURCE)  (TARGET = SOURCE)
+#endif