aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2001-02-08 12:09:18 -0500
committerJason Merrill <jason@gcc.gnu.org>2001-02-08 12:09:18 -0500
commit00a42e216052d5015c2f5c68d368e9d9af2a922f (patch)
tree5d57942b9ff247bb6f30af6a1e58b4f8c340840a /gcc
parentdd248abd801eb0a3940e31f7b867ff454a735de3 (diff)
downloadgcc-00a42e216052d5015c2f5c68d368e9d9af2a922f.zip
gcc-00a42e216052d5015c2f5c68d368e9d9af2a922f.tar.gz
gcc-00a42e216052d5015c2f5c68d368e9d9af2a922f.tar.bz2
dwarf2out.c (dwarf2out_line): Include filename in -dA output.
* dwarf2out.c (dwarf2out_line): Include filename in -dA output. and improve comments. From-SVN: r39542
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2out.c20
2 files changed, 16 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5867857..e8a9876 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-02-08 Jason Merrill <jason@redhat.com>
+
+ * dwarf2out.c (dwarf2out_line): Include filename in -dA output.
+
Thu Feb 8 11:21:28 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 2ca6620..d8b3370 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. */