summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-05-24 16:21:14 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-05-24 14:21:14 +0000
commit9dbe7947ab75f391620dd69a1e4e500d6da11da3 (patch)
treefa0c13cb0e70d6ed10a21b63a57adb511b304704 /gcc/print-rtl.c
parent7544f94a79e5e9c0683e8d40de919941c9bd5271 (diff)
downloadgcc-9dbe7947ab75f391620dd69a1e4e500d6da11da3.tar.gz
invoke.texi (-fdump-unnumbered): Update docs when line number notes are gone.
* doc/invoke.texi (-fdump-unnumbered): Update docs when line number notes are gone. * print-rtl.c (flag_dump_unnumbered): Update comments. (print_rtl): Fix my previous change. * emit-rtl.c (emit_note_before, emit_note_after): Clear out note specific data. From-SVN: r125026
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 7301b08d03e..a47a02b87fe 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -56,8 +56,8 @@ static void print_rtx (rtx);
the assembly output file. */
const char *print_rtx_head = "";
-/* Nonzero means suppress output of instruction numbers and line number
- notes in debugging dumps.
+/* Nonzero means suppress output of instruction numbers
+ in debugging dumps.
This must be defined here so that programs like gencodes can be linked. */
int flag_dump_unnumbered = 0;
@@ -705,6 +705,8 @@ debug_rtx_find (rtx x, int uid)
void
print_rtl (FILE *outf, rtx rtx_first)
{
+ rtx tmp_rtx;
+
outfile = outf;
sawclose = 0;
@@ -722,6 +724,12 @@ print_rtl (FILE *outf, rtx rtx_first)
case NOTE:
case CODE_LABEL:
case BARRIER:
+ for (tmp_rtx = rtx_first; tmp_rtx != 0; tmp_rtx = NEXT_INSN (tmp_rtx))
+ {
+ fputs (print_rtx_head, outfile);
+ print_rtx (tmp_rtx);
+ fprintf (outfile, "\n");
+ }
break;
default: