This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add dotfn
- From: Richard Biener <rguenther at suse dot de>
- To: Tom de Vries <Tom_deVries at mentor dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 3 Jul 2017 09:05:13 +0200 (CEST)
- Subject: Re: [PATCH] Add dotfn
- Authentication-results: sourceware.org; auth=none
- References: <fb19b52c-0eb4-558c-08f6-099a3982f639@mentor.com>
On Mon, 3 Jul 2017, Tom de Vries wrote:
> Hi,
>
> this patch adds a debug function dotfn and a convenience macro DOTFN similar
> to dot-fn in gdbhooks.py.
>
> It can be used to have the compiler:
> - dump a control flow graph, or
> - pop up a control flow graph window
> at specific moments in the compilation flow, for debugging purposes.
>
> Bootstrapped and reg-tested on x86_64.
>
> Used for debugging PR81192.
>
> OK for trunk?
Why's dot-fn not enough? I'd rather extend stuff in gdbhooks.py than
adding this kind of stuff to gcc itself.
Thanks,
Richard.