aboutsummaryrefslogtreecommitdiff
path: root/libcpp/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-10-08 12:48:54 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-10-08 12:48:54 +0200
commit7bad794aa005aa3ee52fc9c872051d8346c09a24 (patch)
treedbcbde73147d32631dd626a01571e5964d9ff5fe /libcpp/ChangeLog
parent6dc29c6db124fab32ab9b69cfb283e078cc881fc (diff)
downloadgcc-7bad794aa005aa3ee52fc9c872051d8346c09a24.zip
gcc-7bad794aa005aa3ee52fc9c872051d8346c09a24.tar.gz
gcc-7bad794aa005aa3ee52fc9c872051d8346c09a24.tar.bz2
c-lex.c (c_lex_with_flags): For CPP_COMMENT token with PREV_FALLTHROUGH...
* 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. From-SVN: r240884
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r--libcpp/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 96b9047..faecb16 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