tree-pretty-print.c (dump_function_header): Add flags.
* tree-pretty-print.c (dump_function_header): Add flags. Don't dump decl_uid with nouid. * tree-pretty-print.h (dump_function_header): Adjust. * final.c (rest_of_clean_state): Pass dump_flags on, with nouid. * passes.c (pass_init_dump_file): Pass dump_flags on. * tree-cfg.c (gimple_dump_cfg): Pass flags on. From-SVN: r174698
This commit is contained in:
parent
f75e1f1ee3
commit
6d8402ac13
@ -1,3 +1,12 @@
|
||||
2011-06-06 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* tree-pretty-print.c (dump_function_header): Add flags.
|
||||
Don't dump decl_uid with nouid.
|
||||
* tree-pretty-print.h (dump_function_header): Adjust.
|
||||
* final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
|
||||
* passes.c (pass_init_dump_file): Pass dump_flags on.
|
||||
* tree-cfg.c (gimple_dump_cfg): Pass flags on.
|
||||
|
||||
2011-06-06 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR bootstrap/49270
|
||||
|
@ -4361,10 +4361,11 @@ rest_of_clean_state (void)
|
||||
}
|
||||
else
|
||||
{
|
||||
dump_function_header (final_output, current_function_decl);
|
||||
flag_dump_noaddr = flag_dump_unnumbered = 1;
|
||||
if (flag_compare_debug_opt || flag_compare_debug)
|
||||
dump_flags |= TDF_NOUID;
|
||||
dump_function_header (final_output, current_function_decl,
|
||||
dump_flags);
|
||||
final_insns_dump_p = true;
|
||||
|
||||
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
|
||||
|
@ -1638,7 +1638,7 @@ pass_init_dump_file (struct opt_pass *pass)
|
||||
dump_file_name = get_dump_file_name (pass->static_pass_number);
|
||||
dump_file = dump_begin (pass->static_pass_number, &dump_flags);
|
||||
if (dump_file && current_function_decl)
|
||||
dump_function_header (dump_file, current_function_decl);
|
||||
dump_function_header (dump_file, current_function_decl, dump_flags);
|
||||
return initializing_dump;
|
||||
}
|
||||
else
|
||||
|
@ -2052,7 +2052,7 @@ gimple_dump_cfg (FILE *file, int flags)
|
||||
{
|
||||
if (flags & TDF_DETAILS)
|
||||
{
|
||||
dump_function_header (file, current_function_decl);
|
||||
dump_function_header (file, current_function_decl, flags);
|
||||
fprintf (file, ";; \n%d basic blocks, %d edges, last basic block %d.\n\n",
|
||||
n_basic_blocks, n_edges, last_basic_block);
|
||||
|
||||
|
@ -3018,7 +3018,7 @@ pp_base_tree_identifier (pretty_printer *pp, tree id)
|
||||
function dump. */
|
||||
|
||||
void
|
||||
dump_function_header (FILE *dump_file, tree fdecl)
|
||||
dump_function_header (FILE *dump_file, tree fdecl, int flags)
|
||||
{
|
||||
const char *dname, *aname;
|
||||
struct cgraph_node *node = cgraph_get_node (fdecl);
|
||||
@ -3032,11 +3032,13 @@ dump_function_header (FILE *dump_file, tree fdecl)
|
||||
else
|
||||
aname = "<unset-asm-name>";
|
||||
|
||||
fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d",
|
||||
dname, aname, fun->funcdef_no);
|
||||
if (!(flags & TDF_NOUID))
|
||||
fprintf (dump_file, ", decl_uid=%d", DECL_UID (fdecl));
|
||||
if (node)
|
||||
{
|
||||
fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d, decl_uid=%d, cgraph_uid=%d)",
|
||||
dname, aname, fun->funcdef_no, DECL_UID(fdecl), node->uid);
|
||||
fprintf (dump_file, "%s\n\n",
|
||||
fprintf (dump_file, ", cgraph_uid=%d)%s\n\n", node->uid,
|
||||
node->frequency == NODE_FREQUENCY_HOT
|
||||
? " (hot)"
|
||||
: node->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED
|
||||
@ -3046,6 +3048,5 @@ dump_function_header (FILE *dump_file, tree fdecl)
|
||||
: "");
|
||||
}
|
||||
else
|
||||
fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d, decl_uid = %d)",
|
||||
dname, aname, fun->funcdef_no, DECL_UID(fdecl));
|
||||
fprintf (dump_file, ")\n\n");
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ extern void debug_generic_expr (tree);
|
||||
extern void debug_generic_stmt (tree);
|
||||
extern void debug_tree_chain (tree);
|
||||
extern void percent_K_format (text_info *);
|
||||
extern void dump_function_header (FILE *, tree);
|
||||
extern void dump_function_header (FILE *, tree, int);
|
||||
|
||||
/* In toplev.c */
|
||||
extern bool default_tree_printer (pretty_printer *, text_info *, const char *,
|
||||
|
Loading…
Reference in New Issue
Block a user