From 2adc552cb5ee28d3cf8db2d2a081dfd68178fedc Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 2 Feb 2026 11:30:21 -0500 Subject: [PATCH 56/98] FIXME: add GCC_DIAGNOSTICS_IGNORE_DUMPDIR --- gcc/doc/invoke.texi | 30 +++++++++++++++++++++++++++--- gcc/opts-diagnostic.cc | 6 +++++- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 42040d462368..39c4e6b4e2c3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6343,7 +6343,8 @@ The default is @samp{text}. @cindex diagnostic output formats, sarif-file The @samp{sarif-stderr} and @samp{sarif-file} formats both emit diagnostics in SARIF Version 2.1.0 format, either to stderr, or to a file -named @file{@var{source}.sarif}, respectively. +named @file{@var{source}.sarif}, respectively. See also +@env{GCC_DIAGNOSTICS_IGNORE_DUMPDIR}. @opindex fdiagnostics-add-output @item -fdiagnostics-add-output=@var{DIAGNOSTICS-OUTPUT-SPEC} @@ -6409,7 +6410,7 @@ Supported keys for the @code{sarif} scheme are: @item file=@var{FILENAME} Specify the filename to write the SARIF output to, potentially with a leading absolute or relative path. If not specified, it defaults to -@file{@var{source}.sarif}. +@file{@var{source}.sarif} (see also @env{GCC_DIAGNOSTICS_IGNORE_DUMPDIR}). @item serialization=@r{[}json@r{]} Specify the serialization format to use when writing out the SARIF. @@ -6452,7 +6453,7 @@ Add an embedded