From 6eb3cadb6394bbc273e45cdb1a6e3d10434d65ea Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 3 Jun 2019 09:00:33 +0200 Subject: [PATCH] Make debug(edge) more verbose. 2019-06-03 Martin Liska * cfg.c (debug): Use TDF_DETAILS for debug and print edge info only once. From-SVN: r271854 --- gcc/ChangeLog | 5 +++++ gcc/cfg.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3563d6dd375..a3b4ffa6bdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-06-03 Martin Liska + + * cfg.c (debug): Use TDF_DETAILS for debug and + print edge info only once. + 2019-06-02 Thomas Koenig PR fortran/90539 diff --git a/gcc/cfg.c b/gcc/cfg.c index 94e68c83e45..983115ee40a 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -546,9 +546,10 @@ dump_edge_info (FILE *file, edge e, dump_flags_t flags, int do_succ) DEBUG_FUNCTION void debug (edge_def &ref) { - /* FIXME (crowl): Is this desireable? */ - dump_edge_info (stderr, &ref, TDF_NONE, false); - dump_edge_info (stderr, &ref, TDF_NONE, true); + fprintf (stderr, " %d)>\n", + ref.src->index, ref.dest->index); + dump_edge_info (stderr, &ref, TDF_DETAILS, false); + fprintf (stderr, "\n"); } DEBUG_FUNCTION void -- 2.30.2