summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-07-07 17:13:02 -0700
committerRichard Henderson <rth@gcc.gnu.org>2011-07-07 17:13:02 -0700
commit2867fa7cbdb7d75597ed0b28b257b1d76c014838 (patch)
tree0056030cf44469f5fbaa6a33544b15d4d682bd59 /gcc/print-rtl.c
parent7644b3c7f08daeec085f4dc2ba180dab5bc29d28 (diff)
downloadgcc-2867fa7cbdb7d75597ed0b28b257b1d76c014838.tar.gz
Dump NOTE_INSN_CFI notes.
* dwarf2out.c (output_cfi_directive): Export. Add FILE parameter. Handle some opcodes specially for debugging. * print-rtl.c: Include dwarf2out.h (print_rtx): Handle NOTE_INSN_CFI. * Makefile.in (print-rtl.o): Update. From-SVN: r176020
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index c20ff6c0c5f..d7fd73bb90c 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -43,6 +43,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-pretty-print.h"
#include "cselib.h"
#include "tree-pass.h"
+#include "dwarf2out.h"
#endif
static FILE *outfile;
@@ -309,6 +310,14 @@ print_rtx (const_rtx in_rtx)
#endif
break;
+ case NOTE_INSN_CFI:
+#ifndef GENERATOR_FILE
+ fputc ('\n', outfile);
+ output_cfi_directive (outfile, NOTE_CFI (in_rtx));
+ fputc ('\t', outfile);
+#endif
+ break;
+
default:
break;
}