On 03/31/2017 09:06 AM, David Malcolm wrote:
As noted in the PR, c.opt's description of -Wendif-labels erroneously
refers to #elif, rather than #else.
warn_endif_labels is used by:
libcpp/directives.c: do_else
libcpp/directives.c: do_endif
in which they use it to guard calls to check_eol_endif_labels.
It's not used by do_elif.
doc/cppwarnopts.texi gets this right:
Do not warn whenever an @code{#else} or an @code{#endif} are followed by text.
This sometimes happens in older programs with code of the form
This patch fixes the description in c.opt.
Successfully bootstrapped®rtested on x86_64-pc-linux-gnu.
Committed to trunk as obvious (r246616).
gcc/c-family/ChangeLog:
PR documentation/78732
* c.opt (Wendif-labels): Fix description to refer to
#else rather than #elif.
OK.
jeff