diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:21:14 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:21:14 +0000 |
commit | 60ad3b0ebe854dee275302eb74126ceaa8ce9b16 (patch) | |
tree | fa0c13cb0e70d6ed10a21b63a57adb511b304704 /gcc/print-rtl.c | |
parent | 639eef5b9d68b45e3579d67bd4146a4efe088c57 (diff) | |
download | gcc-60ad3b0ebe854dee275302eb74126ceaa8ce9b16.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 12 |
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: |