From 27294e9f02f9752a842d2ebb615f222aaef3a7a7 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 21 Aug 2015 20:03:33 +0000 Subject: [PATCH] fix -fdump-unnumbered-links for gcc/ChangeLog * print-rtl.c (print_rtx): Check the correct range for flag_dump_unnumbered_links to behave as documented. From-SVN: r227086 --- gcc/ChangeLog | 3 +++ gcc/print-rtl.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11f616a705e..3f1150ba75a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-08-21 Alexandre Oliva + * print-rtl.c (print_rtx): Check the correct range for + flag_dump_unnumbered_links to behave as documented. + PR rtl-optimization/67227 PR rtl-optimization/64164 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better. diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index aacadbb9b44..b541d838057 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -550,7 +550,7 @@ print_rtx (const_rtx in_rtx) } if (flag_dump_unnumbered - || (flag_dump_unnumbered_links && (i == 1 || i == 2) + || (flag_dump_unnumbered_links && i <= 1 && (INSN_P (in_rtx) || NOTE_P (in_rtx) || LABEL_P (in_rtx) || BARRIER_P (in_rtx)))) fputs (" #", outfile); -- 2.30.2