https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92830

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I have a rather hackish patch which checks for CL_Fortran and uses a different
page:

+      const cl_option *cl_opt = &cl_options[option_index];
+
+      const char *html_page = "gcc/Warning-Options.html";
+#ifdef CL_Fortran
+      if (cl_opt->flags & CL_Fortran)
+       html_page = "gfortran/Error-and-Warning-Options.html";
+#endif

which, as a first iteration, fixes most of these.

But some of the options have e.g.:

Wopenmp-simd
Fortran
; Documented in C

which got me thinking we could have an opt*-gen.awk flag for "documented in C",
or perhaps an enum of pages?  Or a script to cross-check between the .texi
files and the options, or between the generated .html files and the options.

Reply via email to