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
* [Bug c++/99451] [plugin] cannot enable specific dump for plugin passes
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 ` rguenth at gcc dot gnu.org
2023-05-19 22:48 ` cvs-commit at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-08 9:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99451
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yeah.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99451] [plugin] cannot enable specific dump for plugin passes
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
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-19 22:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99451
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:
https://gcc.gnu.org/g:97a36b466ba1420210294f0a1dd7002054ba3b7e
commit r14-1004-g97a36b466ba1420210294f0a1dd7002054ba3b7e
Author: Nathan Sidwell <nathan@acm.org>
Date: Wed May 17 19:27:13 2023 -0400
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.
^ 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).