dwarf2out.c (dwarf2out_line): Include filename in -dA output.
* dwarf2out.c (dwarf2out_line): Include filename in -dA output. and improve comments. From-SVN: r39542
This commit is contained in:
parent
dd248abd80
commit
00a42e2160
@ -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>
|
Thu Feb 8 11:21:28 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
* rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
|
* rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
|
||||||
|
@ -57,10 +57,10 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
/* DWARF2 Abbreviation Glossary:
|
/* DWARF2 Abbreviation Glossary:
|
||||||
CFA = Canonical Frame Address
|
CFA = Canonical Frame Address
|
||||||
an abstract idea representing a fixed stack address
|
a fixed address on the stack which identifies a call frame.
|
||||||
identifying a stack call frame. The CFA register and
|
We define it to be the value of SP just before the call insn.
|
||||||
offset, whose value may change, keeps track of its value at
|
The CFA register and offset, which may change during the course
|
||||||
runtime.
|
of the function, are used to calculate its value at runtime.
|
||||||
CFI = Call Frame Instruction
|
CFI = Call Frame Instruction
|
||||||
an instruction for the DWARF2 abstract machine
|
an instruction for the DWARF2 abstract machine
|
||||||
CIE = Common Information Entry
|
CIE = Common Information Entry
|
||||||
@ -1547,12 +1547,14 @@ dwarf2out_frame_debug_expr (expr, label)
|
|||||||
if (GET_CODE (XEXP (src, 0)) == REG
|
if (GET_CODE (XEXP (src, 0)) == REG
|
||||||
&& REGNO (XEXP (src, 0)) == cfa.reg
|
&& REGNO (XEXP (src, 0)) == cfa.reg
|
||||||
&& GET_CODE (XEXP (src, 1)) == CONST_INT)
|
&& GET_CODE (XEXP (src, 1)) == CONST_INT)
|
||||||
/* Setting the FP (or a scratch that will be copied into the FP
|
/* Setting a temporary CFA register that will be copied
|
||||||
later on) from SP + const. */
|
into the FP later on. */
|
||||||
cfa.reg = REGNO (dest);
|
cfa.reg = REGNO (dest);
|
||||||
/* Rule 5 */
|
/* Rule 5 */
|
||||||
else
|
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)
|
if (XEXP (src, 1) != stack_pointer_rtx)
|
||||||
abort ();
|
abort ();
|
||||||
if (GET_CODE (XEXP (src, 0)) != REG
|
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,
|
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, SEPARATE_LINE_CODE_LABEL,
|
||||||
separate_line_info_table_in_use);
|
separate_line_info_table_in_use);
|
||||||
if (flag_debug_asm)
|
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);
|
fputc ('\n', asm_out_file);
|
||||||
|
|
||||||
/* expand the line info table if necessary */
|
/* 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,
|
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, LINE_CODE_LABEL,
|
||||||
line_info_table_in_use);
|
line_info_table_in_use);
|
||||||
if (flag_debug_asm)
|
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);
|
fputc ('\n', asm_out_file);
|
||||||
|
|
||||||
/* Expand the line info table if necessary. */
|
/* Expand the line info table if necessary. */
|
||||||
|
Loading…
Reference in New Issue
Block a user