public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gaius at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/113836] gm2 does not dump gimple or quadruples to a file Date: Thu, 08 Feb 2024 17:35:33 +0000 [thread overview] Message-ID: <bug-113836-4-xuqe6MPrLN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113836-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113836 --- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 57363 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57363&action=edit Proposed fix Here is a proposed fix which implements: -fdump-lang-all, -fdump-lang-quad, -fdump-lang-quad=, -fdump-lang-gimple, -fdump-lang-gimple=, -fm2-dump-filter=. The filter must be a comma separated list which can take three forms: the full decl textual name of a procedure, [libname.]module.ident or [filename.]module.ident. Currently it only filters on procedure names and regexp matching is not implemented. It would be straightforward to add regexp if required as a followup also there could be a another option to walk the tree and dump out all dependants possibly. An example of it usage: $ gm2 hello3.mod -fdump-lang-all -fm2-whole-program -fm2-dump-filter=\ m2pim.Storage.ALLOCATE,\ m2pim.SysStorage.ALLOCATE,\ Storage_DEALLOCATE,NumberIO.HexToStr $ ls -1r a-hello3.mod.001l.quad a-hello3.mod.002l.quad a-hello3.mod.003l.quad a-hello3.mod.002l.gimple a-hello3.mod.001l.gimple a-hello3.mod.004l.quad Currently undergoing full bootstrapping testing.
next prev parent reply other threads:[~2024-02-08 17:35 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-08 17:17 [Bug modula2/113836] New: " gaius at gcc dot gnu.org 2024-02-08 17:19 ` [Bug modula2/113836] " gaius at gcc dot gnu.org 2024-02-08 17:35 ` gaius at gcc dot gnu.org [this message] 2024-02-08 20:23 ` gaius at gcc dot gnu.org 2024-02-08 21:32 ` gaius at gcc dot gnu.org 2024-02-11 17:29 ` gaius at gcc dot gnu.org 2024-02-12 12:34 ` gaius at gcc dot gnu.org 2024-02-12 13:47 ` gaius at gcc dot gnu.org 2024-03-21 19:39 ` cvs-commit at gcc dot gnu.org 2024-05-02 10:38 ` gaius at gcc dot gnu.org 2024-05-02 12:16 ` cvs-commit at gcc dot gnu.org 2024-05-02 12:18 ` gaius at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113836-4-xuqe6MPrLN@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).