https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95027
Bug ID: 95027 Summary: -fdiagnostics-urls generates wrong URLs Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- $ cat test.c int f() { int i; return i; } $ LC_ALL=C gcc-10.1.0 -Wall -c test.c -fdiagnostics-urls=always 2>&1 | cat -v test.c: In function 'f': test.c:3:10: warning: 'i' is used uninitialized in this function [^[]8;;https://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html#index-Wuninitialized^G-Wuninitialized^[]8;;^G] 3 | return i; | ^ Wuninitialized is documented at https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wuninitialized rather than https://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html#index-Wuninitialized. Wuninitialized is present in both gcc/common.opt and gcc/fortran/lang.opt, but only documented in the former, so the former should be used for generating the URL. gcc/opts.c's get_option_html_page contains a hardcoded list of flags that appear in gcc/fortran/lang.opt but are not documented there, but this list is not complete.