https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114980
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <xry...@gcc.gnu.org>: https://gcc.gnu.org/g:f75806ec63ec1af2d76a194e5fa73e114b2b8857 commit r15-355-gf75806ec63ec1af2d76a194e5fa73e114b2b8857 Author: Xi Ruoyao <xry...@xry111.site> Date: Wed May 8 11:25:57 2024 +0800 driver: Move -fdiagnostics-urls= early like -fdiagnostics-color= [PR114980] 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=.