summaryrefslogtreecommitdiff
path: root/gcc/config/dbxelf.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-20 01:54:28 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-20 01:54:28 +0000
commitba3f323bf083fedebd3847d1b9a9e99824c7e109 (patch)
tree329ee7c23d9539a1eed1e520f6f98b6653028d8d /gcc/config/dbxelf.h
parentbe693c86bd0d366172bbfae3b746ef0924a79bfc (diff)
downloadgcc-ba3f323bf083fedebd3847d1b9a9e99824c7e109.tar.gz
* config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
asm_fprintf and %L to generate the label name. * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise. (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/dbxelf.h')
-rw-r--r--gcc/config/dbxelf.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gcc/config/dbxelf.h b/gcc/config/dbxelf.h
index 9472887cc52..3971bc1c9dc 100644
--- a/gcc/config/dbxelf.h
+++ b/gcc/config/dbxelf.h
@@ -80,15 +80,19 @@ while (0)
current function. */
#undef ASM_OUTPUT_SOURCE_LINE
-#define ASM_OUTPUT_SOURCE_LINE(file, line) \
+#define ASM_OUTPUT_SOURCE_LINE(FILE, LINE) \
do \
{ \
static int sym_lineno = 1; \
- fprintf (file, ".stabn 68,0,%d,.LM%d-", \
- line, sym_lineno); \
- assemble_name (file, \
+ char temp[256]; \
+ ASM_GENERATE_INTERNAL_LABEL (temp, "LM", sym_lineno); \
+ fprintf (FILE, ".stabn 68,0,%d,", LINE); \
+ assemble_name (FILE, temp); \
+ putc ('-', FILE); \
+ assemble_name (FILE, \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
- fprintf (file, "\n.LM%d:\n", sym_lineno); \
+ putc ('\n', FILE); \
+ ASM_OUTPUT_INTERNAL_LABEL (FILE, "LM", sym_lineno); \
sym_lineno += 1; \
} \
while (0)
@@ -99,7 +103,7 @@ while (0)
#undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
- fprintf (FILE, \
- "\t.text\n\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO)
+ asm_fprintf (FILE, \
+ "\t.text\n\t.stabs \"\",%d,0,0,%LLetext\n%LLetext:\n", N_SO)
#endif /* __DBX_ELF_H */