aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-05-25 21:32:01 +0000
committerJeff Law <law@gcc.gnu.org>1999-05-25 15:32:01 -0600
commit98577d038cb1781b3d3ff5050a279a1aae9cb592 (patch)
treeba48d849e176d8ad496a6a0c37d60074113ae8a9
parentb962215a470d8d20aa8512153726c96e63deef3e (diff)
downloadgcc-98577d038cb1781b3d3ff5050a279a1aae9cb592.zip
gcc-98577d038cb1781b3d3ff5050a279a1aae9cb592.tar.gz
gcc-98577d038cb1781b3d3ff5050a279a1aae9cb592.tar.bz2
output.h (STRIP_NAME_ENCODING): Provide default definition.
* output.h (STRIP_NAME_ENCODING): Provide default definition. * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING. From-SVN: r27151
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/dwarf2out.c4
-rw-r--r--gcc/output.h6
3 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 11ac9b6..663c118 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 659b119..58cf338 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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)
diff --git a/gcc/output.h b/gcc/output.h
index e1cf6d8..9456ed8 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -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