From 9dbe7947ab75f391620dd69a1e4e500d6da11da3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 24 May 2007 16:21:14 +0200 Subject: 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 --- gcc/print-rtl.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gcc/print-rtl.c') 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: -- cgit v1.2.1