public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed 0/7] diagnostics: remove "tree" dependency from diagnostic paths
@ 2024-06-18 15:08 David Malcolm
  2024-06-18 15:08 ` [PATCH 1/7] diagnostics: move simple_diagnostic_{path,thread,event} to their own .h/cc David Malcolm
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: David Malcolm @ 2024-06-18 15:08 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Malcolm

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


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

end of thread, other threads:[~2024-06-18 18:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-18 15:08 [pushed 0/7] diagnostics: remove "tree" dependency from diagnostic paths David Malcolm
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

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