]> gcc.gnu.org Git - gcc.git/commit
driver: Move -fdiagnostics-urls= early like -fdiagnostics-color= [PR114980]
authorXi Ruoyao <xry111@xry111.site>
Wed, 8 May 2024 03:25:57 +0000 (11:25 +0800)
committerXi Ruoyao <xry111@xry111.site>
Fri, 10 May 2024 03:20:21 +0000 (11:20 +0800)
commitf75806ec63ec1af2d76a194e5fa73e114b2b8857
tree14ad90a739a9274f9a97f7bed7c99d766c633060
parentbfb88b1406cdd8d3f97e280b0d63529aa925f18a
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=.
gcc/opts-common.cc
This page took 0.064878 seconds and 6 git commands to generate.