print-rtl.c (print_rtx): Print locators in asm_operands and asm_input.

* print-rtl.c (print_rtx): Print locators in asm_operands
and asm_input.

From-SVN: r152928
This commit is contained in:
Alexandre Oliva 2009-10-17 06:28:58 +00:00 committed by Alexandre Oliva
parent f49b295a19
commit da1e150327
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-17 Alexandre Oliva <aoliva@redhat.com>
* print-rtl.c (print_rtx): Print locators in asm_operands
and asm_input.
2009-10-17 Alexandre Oliva <aoliva@redhat.com>
PR debug/41535

View File

@ -383,6 +383,22 @@ print_rtx (const_rtx in_rtx)
when there is no location information available. */
if (INSN_LOCATOR (in_rtx) && insn_file (in_rtx))
fprintf(outfile, " %s:%i", insn_file (in_rtx), insn_line (in_rtx));
#endif
}
else if (i == 6 && GET_CODE (in_rtx) == ASM_OPERANDS)
{
#ifndef GENERATOR_FILE
fprintf (outfile, " %s:%i",
locator_file (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)),
locator_line (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)));
#endif
}
else if (i == 1 && GET_CODE (in_rtx) == ASM_INPUT)
{
#ifndef GENERATOR_FILE
fprintf (outfile, " %s:%i",
locator_file (ASM_INPUT_SOURCE_LOCATION (in_rtx)),
locator_line (ASM_INPUT_SOURCE_LOCATION (in_rtx)));
#endif
}
else if (i == 6 && NOTE_P (in_rtx))