From 00a42e216052d5015c2f5c68d368e9d9af2a922f Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 8 Feb 2001 12:09:18 -0500 Subject: [PATCH] dwarf2out.c (dwarf2out_line): Include filename in -dA output. * dwarf2out.c (dwarf2out_line): Include filename in -dA output. and improve comments. From-SVN: r39542 --- gcc/ChangeLog | 4 ++++ gcc/dwarf2out.c | 20 ++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 586785725e7..e8a9876fe7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-02-08 Jason Merrill + + * dwarf2out.c (dwarf2out_line): Include filename in -dA output. + Thu Feb 8 11:21:28 2001 Richard Kenner * rtlanal.c (remove_node_from_expr_list): Correctly update PREV. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2ca66203a76..d8b33703b26 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -57,10 +57,10 @@ Boston, MA 02111-1307, USA. */ /* DWARF2 Abbreviation Glossary: CFA = Canonical Frame Address - an abstract idea representing a fixed stack address - identifying a stack call frame. The CFA register and - offset, whose value may change, keeps track of its value at - runtime. + a fixed address on the stack which identifies a call frame. + We define it to be the value of SP just before the call insn. + The CFA register and offset, which may change during the course + of the function, are used to calculate its value at runtime. CFI = Call Frame Instruction an instruction for the DWARF2 abstract machine CIE = Common Information Entry @@ -1547,12 +1547,14 @@ dwarf2out_frame_debug_expr (expr, label) if (GET_CODE (XEXP (src, 0)) == REG && REGNO (XEXP (src, 0)) == cfa.reg && GET_CODE (XEXP (src, 1)) == CONST_INT) - /* Setting the FP (or a scratch that will be copied into the FP - later on) from SP + const. */ + /* Setting a temporary CFA register that will be copied + into the FP later on. */ cfa.reg = REGNO (dest); /* Rule 5 */ else { + /* Setting a scratch register that we will use instead + of SP for saving registers to the stack. */ if (XEXP (src, 1) != stack_pointer_rtx) abort (); if (GET_CODE (XEXP (src, 0)) != REG @@ -11665,7 +11667,8 @@ dwarf2out_line (filename, line) ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, SEPARATE_LINE_CODE_LABEL, separate_line_info_table_in_use); if (flag_debug_asm) - fprintf (asm_out_file, "\t%s line %d", ASM_COMMENT_START, line); + fprintf (asm_out_file, "\t%s %s:%d", ASM_COMMENT_START, + filename, line); fputc ('\n', asm_out_file); /* expand the line info table if necessary */ @@ -11694,7 +11697,8 @@ dwarf2out_line (filename, line) ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, LINE_CODE_LABEL, line_info_table_in_use); if (flag_debug_asm) - fprintf (asm_out_file, "\t%s line %d", ASM_COMMENT_START, line); + fprintf (asm_out_file, "\t%s %s:%d", ASM_COMMENT_START, + filename, line); fputc ('\n', asm_out_file); /* Expand the line info table if necessary. */ -- 2.30.2