public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95027] New: -fdiagnostics-urls generates wrong URLs
@ 2020-05-09 22:18 harald at gigawatt dot nl
2020-05-09 22:36 ` [Bug c/95027] " harald at gigawatt dot nl
0 siblings, 1 reply; 2+ messages in thread
From: harald at gigawatt dot nl @ 2020-05-09 22:18 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-09 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 22:18 [Bug c/95027] New: -fdiagnostics-urls generates wrong URLs harald at gigawatt dot nl
2020-05-09 22:36 ` [Bug c/95027] " harald at gigawatt dot nl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).