* config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.

From-SVN: r54273
This commit is contained in:
Alan Modra 2002-06-05 04:02:27 +00:00 committed by Alan Modra
parent 767f038d6f
commit 712bfd4c5d
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-06-05 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
Tue Jun 4 18:16:50 CEST 2002 Jan Hubicka <jh@suse.cz>
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Do not initialize

View File

@ -308,3 +308,22 @@ do { \
|| (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
&& ! TARGET_NO_FP_IN_TOC)))))
/* This is the same as the dbxelf.h version, except that we need to
use the function code label, not the function descriptor. */
#undef ASM_OUTPUT_SOURCE_LINE
#define ASM_OUTPUT_SOURCE_LINE(FILE, LINE) \
do \
{ \
static int sym_lineno = 1; \
char temp[256]; \
ASM_GENERATE_INTERNAL_LABEL (temp, "LM", sym_lineno); \
fprintf (FILE, "\t.stabn 68,0,%d,", LINE); \
assemble_name (FILE, temp); \
fputs ("-.", FILE); \
assemble_name (FILE, \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
putc ('\n', FILE); \
ASM_OUTPUT_INTERNAL_LABEL (FILE, "LM", sym_lineno); \
sym_lineno += 1; \
} \
while (0)