public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm <dmalcolm@redhat.com>
Subject: [pushed 0/7] diagnostics: remove "tree" dependency from diagnostic paths
Date: Tue, 18 Jun 2024 11:08:12 -0400	[thread overview]
Message-ID: <20240618150819.946820-1-dmalcolm@redhat.com> (raw)

This patch kit removes the dependency on "tree" from diagnostic paths,
renaming tree-diagnostic-path.cc to diagnostic-path.cc.

I have an updated prototype of libdiagnostics that uses this to support
execution paths.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Successful run of analyzer integration tests on x86_64-pc-linux-gnu.
Pushed to trunk as r15-1410-gf89f9c7ae7190c through
r15-1416-g524cdf4dab610e.

David Malcolm (7):
  diagnostics: move simple_diagnostic_{path,thread,event} to their own
    .h/cc
  diagnostics: eliminate "tree" from diagnostic_{event,path}
  diagnostics: remove tree usage from tree-diagnostic-path.cc
  diagnostics: eliminate diagnostic_context::m_make_json_for_path
  diagnostics: introduce diagnostic-macro-unwinding.h/cc
  diagnostics: eliminate diagnostic_context::m_print_path callback
  diagnostics: rename tree-diagnostic-path.cc to diagnostic-path.cc

 gcc/Makefile.in                               |   6 +-
 gcc/analyzer/checker-event.h                  |   2 +-
 gcc/analyzer/checker-path.cc                  |   8 +
 gcc/analyzer/checker-path.h                   |   5 +
 gcc/c-family/c-opts.cc                        |   2 +-
 gcc/diagnostic-format-json.cc                 |  41 ++-
 gcc/diagnostic-format-sarif.cc                |   4 +-
 gcc/diagnostic-macro-unwinding.cc             | 221 ++++++++++++
 gcc/diagnostic-macro-unwinding.h              |  29 ++
 ...-diagnostic-path.cc => diagnostic-path.cc} | 317 ++++++------------
 gcc/diagnostic-path.h                         | 114 +------
 gcc/diagnostic.cc                             | 199 +++--------
 gcc/diagnostic.h                              |   6 +-
 gcc/logical-location.h                        |  10 +-
 gcc/selftest-diagnostic-path.cc               | 233 +++++++++++++
 gcc/selftest-diagnostic-path.h                | 163 +++++++++
 gcc/selftest-logical-location.cc              |  71 ++++
 gcc/selftest-logical-location.h               |  58 ++++
 gcc/selftest-run-tests.cc                     |   3 +-
 gcc/selftest.h                                |   3 +-
 gcc/simple-diagnostic-path.cc                 | 237 +++++++++++++
 gcc/simple-diagnostic-path.h                  | 139 ++++++++
 .../plugin/diagnostic_plugin_test_paths.c     |   1 +
 gcc/tree-diagnostic.cc                        | 197 -----------
 gcc/tree-diagnostic.h                         |  10 -
 gcc/tree-logical-location.cc                  |  25 ++
 gcc/tree-logical-location.h                   |   3 +
 27 files changed, 1410 insertions(+), 697 deletions(-)
 create mode 100644 gcc/diagnostic-macro-unwinding.cc
 create mode 100644 gcc/diagnostic-macro-unwinding.h
 rename gcc/{tree-diagnostic-path.cc => diagnostic-path.cc} (89%)
 create mode 100644 gcc/selftest-diagnostic-path.cc
 create mode 100644 gcc/selftest-diagnostic-path.h
 create mode 100644 gcc/selftest-logical-location.cc
 create mode 100644 gcc/selftest-logical-location.h
 create mode 100644 gcc/simple-diagnostic-path.cc
 create mode 100644 gcc/simple-diagnostic-path.h

-- 
2.26.3


             reply	other threads:[~2024-06-18 15:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 15:08 David Malcolm [this message]
2024-06-18 15:08 ` [PATCH 1/7] diagnostics: move simple_diagnostic_{path,thread,event} to their own .h/cc David Malcolm
2024-06-18 15:08 ` [PATCH 2/7] diagnostics: eliminate "tree" from diagnostic_{event,path} David Malcolm
2024-06-18 15:08 ` [PATCH 3/7] diagnostics: remove tree usage from tree-diagnostic-path.cc David Malcolm
2024-06-18 15:08 ` [PATCH 4/7] diagnostics: eliminate diagnostic_context::m_make_json_for_path David Malcolm
2024-06-18 15:08 ` [PATCH 5/7] diagnostics: introduce diagnostic-macro-unwinding.h/cc David Malcolm
2024-06-18 15:08 ` [PATCH 6/7] diagnostics: eliminate diagnostic_context::m_print_path callback David Malcolm
2024-06-18 18:22   ` David Malcolm
2024-06-18 15:08 ` [PATCH 7/7] diagnostics: rename tree-diagnostic-path.cc to diagnostic-path.cc David Malcolm

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=20240618150819.946820-1-dmalcolm@redhat.com \
    --to=dmalcolm@redhat.com \
    --cc=gcc-patches@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: link
Be 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).