On Wed, 8 May 2024, Xi Ruoyao wrote: > In GCC 14 we started to emit URLs for "command-line option <option> is > valid for <language> but not <another language>" and "-Werror= argument > '-Werror=<option>' is not valid for <language>" warnings. So we should > have moved -fdiagnostics-urls= early like -fdiagnostics-color=, or > -fdiagnostics-urls= wouldn't be able to control URLs in these warnings. > > No test cases are added because with TERM=xterm-256colors PR114980 > already triggers some test failures. > > gcc/ChangeLog: > > PR driver/114980 > * opts-common.cc (prune_options): Move -fdiagnostics-urls= > early like -fdiagnostics-color=.
OK. -- Joseph S. Myers josmy...@redhat.com