From 1500062c31b5b34b6e002a72a360bd6ac35dc02d Mon Sep 17 00:00:00 2001 From: aoliva Date: Sat, 17 Oct 2009 06:28:58 +0000 Subject: [PATCH] * print-rtl.c (print_rtx): Print locators in asm_operands and asm_input. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152928 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/print-rtl.c | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 212a9e2fd13..156030e720e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2009-10-17 Alexandre Oliva + * print-rtl.c (print_rtx): Print locators in asm_operands + and asm_input. + +2009-10-17 Alexandre Oliva + 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 29d3ab91832..cb3f7dae31f 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 -- 2.11.0