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
This commit is contained in:
Alexandre Oliva 2015-08-21 20:03:33 +00:00 committed by Alexandre Oliva
parent 2d88904a41
commit 27294e9f02
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2015-08-21 Alexandre Oliva <aoliva@redhat.com>
* 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.

View File

@ -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);