diff options
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 10 | ||||
-rw-r--r-- | libcpp/lex.c | 4 | ||||
-rw-r--r-- | libcpp/macro.c | 1 | ||||
-rw-r--r-- | libcpp/pch.c | 4 |
4 files changed, 16 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index f7cc1c4..c049599 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,13 @@ +2016-08-12 Marek Polacek <polacek@redhat.com> + + PR c/7652 + * lex.c (search_line_fast): Add FALLTHRU. + (_cpp_lex_direct): Likewise. + (cpp_token_val_index): Adjust fall through comment. + * macro.c (parse_params): Add FALLTHRU. + * pch.c (count_defs): Adjust fall through comment. + (write_defs): Likewise. + 2016-08-06 David Malcolm <dmalcolm@redhat.com> PR bootstrap/72823 diff --git a/libcpp/lex.c b/libcpp/lex.c index 4e71965..6254ed6 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -610,6 +610,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) if (l != 0) break; s += sizeof(unsigned long); + /* FALLTHRU */ case 2: l = u.l[i++]; if (l != 0) @@ -2717,6 +2718,7 @@ _cpp_lex_direct (cpp_reader *pfile) } buffer->cur++; } + /* FALLTHRU */ default: create_literal (pfile, result, buffer->cur - 1, 1, CPP_OTHER); @@ -3322,7 +3324,7 @@ cpp_token_val_index (const cpp_token *tok) return CPP_TOKEN_FLD_SOURCE; else if (tok->type == CPP_PRAGMA) return CPP_TOKEN_FLD_PRAGMA; - /* else fall through */ + /* fall through */ default: return CPP_TOKEN_FLD_NONE; } diff --git a/libcpp/macro.c b/libcpp/macro.c index a3b8348..147fcf5 100644 --- a/libcpp/macro.c +++ b/libcpp/macro.c @@ -2886,6 +2886,7 @@ parse_params (cpp_reader *pfile, cpp_macro *macro) return true; /* Fall through to pick up the error. */ + /* FALLTHRU */ case CPP_COMMA: if (!prev_ident) { diff --git a/libcpp/pch.c b/libcpp/pch.c index aa5ed6b..fb9696d 100644 --- a/libcpp/pch.c +++ b/libcpp/pch.c @@ -230,7 +230,7 @@ count_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) if (hn->flags & NODE_BUILTIN) return 1; - /* else fall through. */ + /* fall through. */ case NT_VOID: { @@ -269,7 +269,7 @@ write_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) if (hn->flags & NODE_BUILTIN) return 1; - /* else fall through. */ + /* fall through. */ case NT_VOID: { |