This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcc::context creation
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, mliska at suse dot cz >> Martin Liška <mliska at suse dot cz>
- Date: Fri, 19 May 2017 11:00:21 +0200
- Subject: Re: [PATCH] gcc::context creation
- Authentication-results: sourceware.org; auth=none
- References: <7f7f64a5-f820-a19a-d4ea-77b05f746499@acm.org>
On Tue, May 16, 2017 at 5:26 PM, Nathan Sidwell <nathan@acm.org> wrote:
> This patch breaks apart the creation of the pass manager from gcc::context's
> ctor. This will allow us to register additional dumps between the dumpfile
> manager creation and the pass manager. As I described in
> https://gcc.gnu.org/ml/gcc-patches/2017-05/msg01164.html when I tried to do
> this for the language-specific dumps, the existing LANG_HOOKS_INIT_OPTIONS
> ran too late, and I had to create a new hook and call it from gcc::context's
> constructor to get it done before the passes were created. That's ugly.
> Calling the hook from toplev seems better.
>
> Also, I noticed that we were passing a pointer to the
> not-yet-fully-constructed context to the pass manager, which smells funny.
>
> ok?
Ok. Might break JIT?
Thanks,
Richard.
> nathan
> --
> Nathan Sidwell