[Bug c++/99451] New: [plugin] cannot enable dumps for plugin passes

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 7 15:05:21 GMT 2021


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?


More information about the Gcc-bugs mailing list