When an option is present in multiple front ends, the gcc -v --help output
assumes that the documentation is the same in all of the front ends for which
the option is present, and only reports the documentation string for the first
front end for which it appears.

For example, in 4.2, the Ada output has
-------------------------------
  -Wall                       This switch lacks documentation
-------------------------------
and then, in the C output, we have
-------------------------------
  -I, -Wall, -Wlong-long, -Wmissing-format-attribute, -Wmissing-prototypes,
-------------------------------
rather than giving the documentation string for -Wall that's present in c.opt.

Currently, I _think_ this is only affecting the Ada options that lack
documentation (and are thus bug #31351), but it seems unfortunate for the
future as well, since some options may have different interpretations in
different langauges.


-- 
           Summary: gcc -v --help doesn't notice when front-ends
                    documentation differs for same option
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brooks at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31352

Reply via email to