public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99451] New: [plugin] cannot enable dumps for plugin passes
@ 2021-03-07 15:05 nathan at gcc dot gnu.org
  2021-03-08  9:54 ` [Bug c++/99451] [plugin] cannot enable specific dump " rguenth at gcc dot gnu.org
  2023-05-19 22:48 ` cvs-commit at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-07 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99451

            Bug ID: 99451
           Summary: [plugin] cannot enable dumps for plugin passes
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nathan at gcc dot gnu.org
  Target Milestone: ---

Created attachment 50324
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50324&action=edit
patch

the -fdump-FOO-BAR options are parsed before plugins have been initialized,
this means that one cannot name a pass created with a plugin.

Here's a patch to defer the dump option processing until later (we cannot just
swap the order, as the plugin options themselves need parsing before we
initialize the plugins).

-fdump-FOO-all will enable the dump, so we have a workaround

I don't think this is a regression, so stage 1 I guess?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-19 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-07 15:05 [Bug c++/99451] New: [plugin] cannot enable dumps for plugin passes nathan at gcc dot gnu.org
2021-03-08  9:54 ` [Bug c++/99451] [plugin] cannot enable specific dump " rguenth at gcc dot gnu.org
2023-05-19 22:48 ` cvs-commit at gcc dot gnu.org

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).