diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-06-02 08:07:13 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-06-02 08:07:13 +0000 |
commit | 2aa7c49bff5319f17ba438cc45c360f6843687e4 (patch) | |
tree | 72b532c126174f4c3c49ea0d6b46a48ab1487ed1 /gcc/print-rtl.c | |
parent | 55b2829b99458634704698462459784bd324aea8 (diff) | |
download | gcc-2aa7c49bff5319f17ba438cc45c360f6843687e4.tar.gz |
common.opt (fdump-unnumbered-links): New.
* common.opt (fdump-unnumbered-links): New.
* doc/invoke.texi (-fdump-unnumbered-links): Document it.
* print-rtl.c (flag_dump_unnumbered_links): New.
(print_rtx): Test it.
From-SVN: r148074
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 393ffe94e20..e519728abff 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -60,6 +60,11 @@ const char *print_rtx_head = ""; This must be defined here so that programs like gencodes can be linked. */ int flag_dump_unnumbered = 0; +/* Nonzero means suppress output of instruction numbers for previous + and next insns in debugging dumps. + This must be defined here so that programs like gencodes can be linked. */ +int flag_dump_unnumbered_links = 0; + /* Nonzero means use simplified format without flags, modes, etc. */ int flag_simple = 0; @@ -493,7 +498,10 @@ print_rtx (const_rtx in_rtx) goto do_e; } - if (flag_dump_unnumbered) + if (flag_dump_unnumbered + || (flag_dump_unnumbered_links && (i == 1 || i == 2) + && (INSN_P (in_rtx) || NOTE_P (in_rtx) + || LABEL_P (in_rtx) || BARRIER_P (in_rtx)))) fputs (" #", outfile); else fprintf (outfile, " %d", INSN_UID (sub)); |