From: Alexandre Oliva Date: Fri, 21 Aug 2015 20:03:33 +0000 (+0000) Subject: fix -fdump-unnumbered-links X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27294e9f02f9752a842d2ebb615f222aaef3a7a7;p=gcc.git 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 --- 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);