diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-10-31 12:25:36 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-10-31 12:25:36 -0400 |
commit | da9772be0ceee9b9a3f6f8ff20df939ce8063660 (patch) | |
tree | 3162c1a58725fc3a1a6572a91e71eb9ac49e78ed /gcc/config/nds32/nds32-n13.md | |
parent | a91569d47d68cfe2b53b97b743c8b936d58b1658 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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