Make debug(edge) more verbose.

2019-06-03  Martin Liska  <mliska@suse.cz>

	* cfg.c (debug): Use TDF_DETAILS for debug and
	print edge info only once.

From-SVN: r271854
This commit is contained in:
Martin Liska 2019-06-03 09:00:33 +02:00 committed by Martin Liska
parent 467e9f383c
commit 6eb3cadb63
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2019-06-03 Martin Liska <mliska@suse.cz>
* cfg.c (debug): Use TDF_DETAILS for debug and
print edge info only once.
2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/90539

View File

@ -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, "<edge (%d -> %d)>\n",
ref.src->index, ref.dest->index);
dump_edge_info (stderr, &ref, TDF_DETAILS, false);
fprintf (stderr, "\n");
}
DEBUG_FUNCTION void