aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2003-06-20 14:08:35 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2003-06-20 14:08:35 +0000
commitb5adda7307d2e14decc45803c3f4f3dcce16d713 (patch)
treef0fe27a4a11458c21ac0d0e57570cf0efc29e6c0 /gcc/config/pa
parent807ca3d4c4398bd001a26f80923c18590d603e54 (diff)
downloadgcc-b5adda7307d2e14decc45803c3f4f3dcce16d713.zip
gcc-b5adda7307d2e14decc45803c3f4f3dcce16d713.tar.gz
gcc-b5adda7307d2e14decc45803c3f4f3dcce16d713.tar.bz2
som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to strip name encoding.
* som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to strip name encoding. From-SVN: r68267
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/som.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h
index db31c60..6d34bf9 100644
--- a/gcc/config/pa/som.h
+++ b/gcc/config/pa/som.h
@@ -30,16 +30,20 @@ Boston, MA 02111-1307, USA. */
/* We make the first line stab special to avoid adding several
gross hacks to GAS. */
#undef ASM_OUTPUT_SOURCE_LINE
-#define ASM_OUTPUT_SOURCE_LINE(file, line, counter) \
- { static tree last_function_decl = NULL; \
- if (current_function_decl == last_function_decl) \
- fprintf (file, "\t.stabn 68,0,%d,L$M%d-%s\nL$M%d:\n", \
- line, counter, \
- XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0) + 1, \
- counter); \
- else \
- fprintf (file, "\t.stabn 68,0,%d,0\n", line); \
- last_function_decl = current_function_decl; \
+#define ASM_OUTPUT_SOURCE_LINE(file, line, counter) \
+ { static tree last_function_decl = NULL; \
+ if (current_function_decl == last_function_decl) \
+ { \
+ rtx func = DECL_RTL (current_function_decl); \
+ const char *name = XSTR (XEXP (func, 0), 0); \
+ fprintf (file, "\t.stabn 68,0,%d,L$M%d-%s\nL$M%d:\n", \
+ line, counter, \
+ (* targetm.strip_name_encoding) (name), \
+ counter); \
+ } \
+ else \
+ fprintf (file, "\t.stabn 68,0,%d,0\n", line); \
+ last_function_decl = current_function_decl; \
}
/* gdb needs a null N_SO at the end of each file for scattered loading. */