opts.c has

/* What to print when a switch has no documentation.  */
#ifdef ENABLE_CHECKING
static const char undocumented_msg[] = N_("This switch lacks documentation");
#else
static const char undocumented_msg[] = "";
#endif

When gcc is configured with --enable-checking=assert, "gcc --help=undocumented"
won't display

  -E                          This switch lacks documentation

and the will fail like:

FAIL: compiler driver --help=undocumented option(s): This switch lacks
documentation


-- 
           Summary: gcc.misc-tests/help.exp doesn't work when configured
                    with --enable-checking=assert
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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

Reply via email to