public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7448] cfg: Dump goto_locus if -fdump-*-*-blocks-details
@ 2022-03-02 9:49 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-03-02 9:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:58394373a70f4381bcc6d86423cffa05759b699c
commit r12-7448-g58394373a70f4381bcc6d86423cffa05759b699c
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 2 10:48:55 2022 +0100
cfg: Dump goto_locus if -fdump-*-*-blocks-details
When debugging the PR104589 issue, I've run into a problem that
goto_locus doesn't show up in the logs, so it wasn't clear if
the bug hasn't been introduced far earlier just by divergence
in goto_locus of some edge.
2022-03-02 Jakub Jelinek <jakub@redhat.com>
* cfg.cc (dump_edge_info): Dump goto_locus if present.
Diff:
---
gcc/cfg.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/cfg.cc b/gcc/cfg.cc
index e4ce360bd87..da781ba2da8 100644
--- a/gcc/cfg.cc
+++ b/gcc/cfg.cc
@@ -555,6 +555,10 @@ dump_edge_info (FILE *file, edge e, dump_flags_t flags, int do_succ)
fputc (')', file);
}
+
+ if (do_details && LOCATION_LOCUS (e->goto_locus) > BUILTINS_LOCATION)
+ fprintf (file, " %s:%d:%d", LOCATION_FILE (e->goto_locus),
+ LOCATION_LINE (e->goto_locus), LOCATION_COLUMN (e->goto_locus));
}
DEBUG_FUNCTION void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-02 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 9:49 [gcc r12-7448] cfg: Dump goto_locus if -fdump-*-*-blocks-details Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).