On 5/17/23 17:38, Nathan Sidwell via Gcc-patches wrote:
PR 99451 is about the inability to name tree and rtl dumps by plugin name.  And includes a patch.  But then I worked around the problem and forgot about it. Here it is again, retested against trunk.

ok?

nathan
--
Nathan Sidwell

0001-Allow-plugin-dumps.patch

 From e54518bc5e59ef5cdc21c652ceac41bd0c0f436c Mon Sep 17 00:00:00 2001
From: Nathan Sidwell<nat...@acm.org>
Date: Wed, 17 May 2023 19:27:13 -0400
Subject: [PATCH] Allow plugin dumps

Defer dump option parsing until plugins are initialized.  This allows one to
use plugin names for dumps.

        PR other/99451
        gcc/
        * opts.h (handle_deferred_dump_options): Declare.
        * opts-global.cc (handle_common_deferred_options): Do not handle
        dump options here.
        (handle_deferred_dump_options): New.
        * toplev.cc (toplev::main): Call it after plugin init.
OK.
jeff

Reply via email to