aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-07-31 11:48:56 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-07-31 11:48:56 +0000
commit8c503f0dd33d2521a1a64f5687f2033569a46c43 (patch)
tree5d52b76e3a224ba07efb9f5620abc987ed68ed5b /gcc/final.c
parent0d4acd9048026979bbf8b69a5fc73340908b543c (diff)
downloadgcc-8c503f0dd33d2521a1a64f5687f2033569a46c43.zip
gcc-8c503f0dd33d2521a1a64f5687f2033569a46c43.tar.gz
gcc-8c503f0dd33d2521a1a64f5687f2033569a46c43.tar.bz2
sched-vis.c (dump_insn_slim): Print print_rtx_head at the start of each new line.
* sched-vis.c (dump_insn_slim): Print print_rtx_head at the start of each new line. * final.c (final_scan_insn): If the final dump is requested as slim RTL, dump slim RTL to the assembly file also. From-SVN: r190006
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 095d608..cdae011 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -2747,11 +2747,16 @@ final_scan_insn (rtx insn, FILE *file, int optimize_p ATTRIBUTE_UNUSED,
insn_code_number = recog_memoized (insn);
cleanup_subreg_operands (insn);
- /* Dump the insn in the assembly for debugging. */
+ /* Dump the insn in the assembly for debugging (-dAP).
+ If the final dump is requested as slim RTL, dump slim
+ RTL to the assembly file also. */
if (flag_dump_rtl_in_asm)
{
print_rtx_head = ASM_COMMENT_START;
- print_rtl_single (asm_out_file, insn);
+ if (! (dump_flags & TDF_SLIM))
+ print_rtl_single (asm_out_file, insn);
+ else
+ dump_insn_slim (asm_out_file, insn);
print_rtx_head = "";
}