diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-08 12:54:27 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-08 12:54:27 +0200 |
commit | ee19ef45ba9dc5a783303e353d538e83dabe3377 (patch) | |
tree | 2bb03fc407441f31957cbe3fcb1f2eeb60783246 /gcc/doc | |
parent | 81b02905b035e7afee46c38186c95434b6d86813 (diff) | |
download | gcc-ee19ef45ba9dc5a783303e353d538e83dabe3377.zip gcc-ee19ef45ba9dc5a783303e353d538e83dabe3377.tar.gz gcc-ee19ef45ba9dc5a783303e353d538e83dabe3377.tar.bz2 |
invoke.texi: Document accepting Else, fallthrough.
* doc/invoke.texi: Document accepting Else, fallthrough.
* lex.c (fallthrough_comment_p): Accept Else, fallthrough.
* c-c++-common/Wimplicit-fallthrough-23.c (foo): Add further tests.
From-SVN: r240886
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 65805ba..8d8fdee 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -4181,11 +4181,11 @@ should match one of the following regular expressions: @item @code{lint -fallthrough ?} -@item @code{[ \t.!]*(ELSE |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?} +@item @code{[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?} -@item @code{[ \t.!]*(Else |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?} +@item @code{[ \t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?} -@item @code{[ \t.!]*([Ee]lse |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?} +@item @code{[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?} @end itemize |