aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-streamer-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple-streamer-out.c')
-rw-r--r--gcc/gimple-streamer-out.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gimple-streamer-out.c b/gcc/gimple-streamer-out.c
index 42e7261..d120aa9 100644
--- a/gcc/gimple-streamer-out.c
+++ b/gcc/gimple-streamer-out.c
@@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see
#include "gimple-iterator.h"
#include "cgraph.h"
#include "value-prof.h"
+#include "gimple-pretty-print.h"
/* Output PHI function PHI to the main stream in OB. */
@@ -220,6 +221,11 @@ output_bb (struct output_block *ob, basic_block bb, struct function *fn)
{
int region;
gimple *stmt = gsi_stmt (bsi);
+ if (streamer_dump_file)
+ {
+ fprintf (streamer_dump_file, " Streaming gimple stmt ");
+ print_gimple_stmt (streamer_dump_file, stmt, 0, TDF_SLIM);
+ }
output_gimple_stmt (ob, stmt);