diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-08 10:48:54 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-08 10:48:54 +0000 |
commit | ad0c1decc996ebbb1807dc4d1f7f944ab0ba23da (patch) | |
tree | dbcbde73147d32631dd626a01571e5964d9ff5fe /libcpp/ChangeLog | |
parent | 4bace277962b4ea5cef7c55a258fdbbbe439cf03 (diff) | |
download | gcc-ad0c1decc996ebbb1807dc4d1f7f944ab0ba23da.tar.gz |
* c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
* doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
FALLTHRU comment styles.
* lex.c (fallthrough_comment_p): Fix off-by-one size comparison
errors, cleanup.
(_cpp_lex_direct): Allow arbitrary comments in between
fallthrough_comment_p comment and following token.
* c-c++-common/Wimplicit-fallthrough-23.c: New test.
* c-c++-common/Wimplicit-fallthrough-24.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 96b9047501b..faecb162caf 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,10 @@ +2016-10-08 Jakub Jelinek <jakub@redhat.com> + + * lex.c (fallthrough_comment_p): Fix off-by-one size comparison + errors, cleanup. + (_cpp_lex_direct): Allow arbitrary comments in between + fallthrough_comment_p comment and following token. + 2016-10-04 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/77847 |