diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 15:20:04 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 15:20:04 +0000 |
commit | 1d7dabcf751bc68cb630d0c52d7008fc95f3f02d (patch) | |
tree | 3de7eb08094805d14eb2779bfcf6e4cca4a51604 /gcc/gimple-pretty-print.c | |
parent | e9a597fe457cc2062847d037eff33da8eed5dbc7 (diff) | |
download | gcc-1d7dabcf751bc68cb630d0c52d7008fc95f3f02d.tar.gz |
2009-06-22 Basile Starynkevitch <basile@starynkevitch.net>
* basilys.c (struct ppbasilysflushdata_st): removed.
(meltppbuffer, meltppbufsiz, meltppfile, meltppfilename): added
static variables.
(open_meltpp_file, close_meltpp_file): added new functions.
(basilysgc_ppstrbuf_gimple) renamed as (basilysgc_ppout_gimple)
using above meltpp stuff.
(basilysgc_ppstrbuf_gimpleseq) renamed
as (basilysgc_ppout_gimpleseq) using above meltpp stuff.
(basilysgc_ppstrbuf_tree) renamed as (basilysgc_ppout_tree) using
above meltpp stuff.
(basilysgc_ppstrbuf_basicblock) renamed
as (basilysgc_ppout_basicblock) using above meltpp stuff.
(basilysgc_ppstrbuf_mpz) renamed as (basilysgc_ppout_mpz) using
above meltpp stuff.
(basilysgc_ppstrbuf_mixbigint) renamed
as (basilysgc_ppout_mixbigint) using above meltpp stuff.
* basilys.h (basilysgc_ppstrbuf_gimple)
(basilysgc_ppstrbuf_gimple_seq, basilysgc_ppstrbuf_tree)
(basilysgc_ppstrbuf_basicblock, basilysgc_ppstrbuf_mpz)
(basilysgc_ppstrbuf_mixbigint): renamed and provided as macros.
(basilysgc_ppout_gimple)
(basilysgc_ppout_gimple_seq, basilysgc_ppout_tree)
(basilysgc_ppout_basicblock, basilysgc_ppout_mpz)
(basilysgc_ppout_mixbigint): added.
* pretty-print.c: reverted to trunk.
* pretty-print.h: reverted to trunk.
* gimple-pretty-print.c: reverted to trunk.
* configure: regenerated.
* configure.ac: testing for open_memstream.
* cfg.c: reverted to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@148805 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index f3f3b1af611..be10de1f568 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -1580,7 +1580,7 @@ dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags) else pp_decimal_int (buffer, e->src->index); } - else if (buffer->buffer->stream) + else dump_edge_info (buffer->buffer->stream, e, 0); pp_newline (buffer); } @@ -1597,8 +1597,7 @@ dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags) } } pp_write_text_to_stream (buffer); - if (buffer->buffer->stream) - check_bb_profile (bb, buffer->buffer->stream); + check_bb_profile (bb, buffer->buffer->stream); } @@ -1623,7 +1622,7 @@ dump_bb_end (pretty_printer *buffer, basic_block bb, int indent, int flags) else pp_decimal_int (buffer, e->dest->index); } - else if (buffer->buffer->stream) + else dump_edge_info (buffer->buffer->stream, e, 1); pp_newline (buffer); } @@ -1759,8 +1758,7 @@ gimple_dump_bb_buff (pretty_printer *buffer, basic_block bb, int indent, label_indent = 0; dump_bb_header (buffer, bb, indent, flags); - if (phi_nodes (bb)) - dump_phi_nodes (buffer, bb, indent, flags); + dump_phi_nodes (buffer, bb, indent, flags); for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { @@ -1773,8 +1771,7 @@ gimple_dump_bb_buff (pretty_printer *buffer, basic_block bb, int indent, INDENT (curr_indent); dump_gimple_stmt (buffer, stmt, curr_indent, flags); pp_newline (buffer); - if (buffer->buffer->stream) - dump_histograms_for_stmt (cfun, buffer->buffer->stream, stmt); + dump_histograms_for_stmt (cfun, buffer->buffer->stream, stmt); } dump_implicit_edges (buffer, bb, indent, flags); |