[Bug driver/104614] New: "Undocumented" option flag ignored with --help=target

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 21 17:19:43 GMT 2022


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

            Bug ID: 104614
           Summary: "Undocumented" option flag ignored with --help=target
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rearnsha at gcc dot gnu.org
  Target Milestone: ---

I don't know if this applies to other --help varieties, but in the Arm backend
we have some 'internal' options which we don't want the user to be using. 
However, --help=target is still printing these out even though the manual
suggests these should be suppressed.  For example, in arm.opt we have:

; Set to the name of target architecture which is required for
; multilib linking.  This option is undocumented because it
; should not be used by the users.
mlibarch=
Target RejectNegative JoinedOrMissing NoDWARFRecord DriverOnly Undocumented

But the output of --help=target contains:

  -mlibarch=                  This option lacks documentation.

Which is wrong.

Is there something else that needs to be done to suppress this output?


More information about the Gcc-bugs mailing list