https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114980
--- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > -fdiagnostics-plain-output does: > /* If you have changed the default diagnostics output, and this new > output is not appropriately "plain" (e.g., the change needs to > be > undone in order for the testsuite to work properly), then > please do > the following: > 1. Add the necessary option to undo the new behavior to > the array below. > 2. Update the documentation for -fdiagnostics-plain-output > in invoke.texi. */ > const char *const expanded_args[] = { > "-fno-diagnostics-show-caret", > "-fno-diagnostics-show-line-numbers", > "-fdiagnostics-color=never", > "-fdiagnostics-urls=never", > "-fdiagnostics-path-format=separate-events", > "-fdiagnostics-text-art-charset=none" > }; The problem is -fdiagnostics-urls=never itself seems not working. Note that if I invoke cc1 directly and put -fdiagnostics-urls=never *before* the offending option: echo "" | LANG= ./gcc/cc1 -fdiagnostics-urls=never -Wtarget-lifetime -x c - cc1: warning: command-line option '-Wtarget-lifetime' is valid for Fortran but not for C It works. But if I put it *after* the offending option: echo "" | LANG= ./gcc/cc1 -Wtarget-lifetime -fdiagnostics-urls=never -x c - cc1: warning: command-line option '-Wtarget-lifetime' is valid for Fortran but not for C -Wtarget-lifetime in the message becomes a link. However if I invoke the driver (xgcc) -fdiagnostics-urls=never just does not work no matter before -Wtarget-lifetime or after it.