aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nds32/nds32-n13.md
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-10-31 12:25:36 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-10-31 12:25:36 -0400
commitda9772be0ceee9b9a3f6f8ff20df939ce8063660 (patch)
tree3162c1a58725fc3a1a6572a91e71eb9ac49e78ed /gcc/config/nds32/nds32-n13.md
parenta91569d47d68cfe2b53b97b743c8b936d58b1658 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
diagnostics: add class lazy_diagnostic_pathHEADtrunkmaster
This patch adds a new class lazy_diagnostic_path for use when creating rich_location instances, to allow deferring expensive computations until the path is actually used (when a diagnostic using the rich_location is emitted). gcc/ChangeLog: * Makefile.in (OBJS): Add lazy-diagnostic-path.o. * lazy-diagnostic-path.cc: New file. * lazy-diagnostic-path.h: New file. * selftest-diagnostic.cc: Include "diagnostic-format.h". (test_diagnostic_context::test_diagnostic_context): Turn off flushing for the output format's printer. * selftest-run-tests.cc (selftest::run_tests): Call selftest::lazy_diagnostic_path_cc_tests. * selftest.h (selftest::lazy_diagnostic_path_cc_tests): New decl. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/config/nds32/nds32-n13.md')
0 files changed, 0 insertions, 0 deletions