]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fix -fdump-unnumbered-links
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 21 Aug 2015 20:03:33 +0000 (20:03 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 21 Aug 2015 20:03:33 +0000 (20:03 +0000)
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
gcc/print-rtl.c

index 11f616a705e8ea735fb2c25e42c0e1fb72302c34..3f1150ba75a37d25f54b8b961ef41e63d6539a50 100644 (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.
index aacadbb9b4490954a64eece2d7f97317dcd6bc4e..b541d838057c4130e4bab0640ff32a89b40d0cc5 100644 (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);