aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-10-17 06:28:58 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-10-17 06:28:58 +0000
commitda1e15032764791617e73850e9732d18222cd47c (patch)
tree1cee895f113bc390215c1aed43606c51a7cadca6 /gcc
parentf49b295a191729400b3cbb9bf9e8d1dffedde666 (diff)
downloadgcc-da1e15032764791617e73850e9732d18222cd47c.zip
gcc-da1e15032764791617e73850e9732d18222cd47c.tar.gz
gcc-da1e15032764791617e73850e9732d18222cd47c.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/print-rtl.c16
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 212a9e2..156030e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
* sched-deps.c (depl_on_debug_p): New.
(attach_dep_link): Reject debug deps before nondebug deps.
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 29d3ab9..cb3f7da 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -385,6 +385,22 @@ print_rtx (const_rtx 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))
{
/* This field is only used for NOTE_INSN_DELETED_LABEL, and