X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fgimple-pretty-print.c;h=70ab4e1b8006af4f9c179e5869a3e6ad35f6a39e;hp=ec366f86f4235ead417921c567ed4641e28fdd34;hb=c1c059f06e7624a2e6bba56427f2f985e2ac7349;hpb=2a3ebafa45c591f2c37dcc249816c71c7930245b diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index ec366f86f42..70ab4e1b800 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -508,7 +508,7 @@ dump_gimple_call (pretty_printer *buffer, gimple gs, int spc, int flags) pp_space (buffer); } - dump_generic_node (buffer, gimple_call_fn (gs), spc, flags, false); + print_call_name (buffer, gimple_call_fn (gs), flags); pp_string (buffer, " ("); dump_gimple_call_args (buffer, gs, flags); pp_character (buffer, ')'); @@ -1150,6 +1150,22 @@ dump_gimple_phi (pretty_printer *buffer, gimple phi, int spc, int flags) } for (i = 0; i < gimple_phi_num_args (phi); i++) { + if ((flags & TDF_LINENO) && gimple_phi_arg_has_location (phi, i)) + { + expanded_location xloc; + + xloc = expand_location (gimple_phi_arg_location (phi, i)); + pp_character (buffer, '['); + if (xloc.file) + { + pp_string (buffer, xloc.file); + pp_string (buffer, " : "); + } + pp_decimal_int (buffer, xloc.line); + pp_string (buffer, ":"); + pp_decimal_int (buffer, xloc.column); + pp_string (buffer, "] "); + } dump_generic_node (buffer, gimple_phi_arg_def (phi, i), spc, flags, false); pp_character (buffer, '('); @@ -1379,9 +1395,18 @@ dump_gimple_stmt (pretty_printer *buffer, gimple gs, int spc, int flags) pp_string (buffer, " : "); } pp_decimal_int (buffer, xloc.line); + pp_string (buffer, ":"); + pp_decimal_int (buffer, xloc.column); pp_string (buffer, "] "); } + if (flags & TDF_EH) + { + int eh_region = lookup_stmt_eh_region_fn (cfun, gs); + if (eh_region >= 0) + pp_printf (buffer, "[EH #%d] ", eh_region); + } + if ((flags & (TDF_VOPS|TDF_MEMSYMS)) && gimple_has_mem_ops (gs)) dump_gimple_mem_ops (buffer, gs, spc, flags); @@ -1558,6 +1583,12 @@ dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags) pp_decimal_int (buffer, get_lineno (gsi_stmt (gsi))); break; } + + if (bb->discriminator) + { + pp_string (buffer, ", discriminator "); + pp_decimal_int (buffer, bb->discriminator); + } } newline_and_indent (buffer, indent); @@ -1724,6 +1755,8 @@ dump_implicit_edges (pretty_printer *buffer, basic_block bb, int indent, pp_string (buffer, " : "); } pp_decimal_int (buffer, goto_xloc.line); + pp_string (buffer, " : "); + pp_decimal_int (buffer, goto_xloc.column); pp_string (buffer, "] "); }