diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 2 | ||||
-rw-r--r-- | gcc/c/c-typeck.c | 6 |
3 files changed, 13 insertions, 3 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 94f78438..62701f0 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,11 @@ +2016-08-12 Marek Polacek <polacek@redhat.com> + + PR c/7652 + * c-parser.c (c_parser_external_declaration): Add FALLTHRU. + (c_parser_postfix_expression): Likewise. + * c-typeck.c (build_unary_op): Adjust fall through comment. + (c_mark_addressable): Likewise. + 2016-08-11 Jakub Jelinek <jakub@redhat.com> PR c/72816 diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index ec74e0b..c050f64 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -1557,6 +1557,7 @@ c_parser_external_declaration (c_parser *parser) } /* Else fall through, and yield a syntax error trying to parse as a declaration or function definition. */ + /* FALLTHRU */ default: decl_or_fndef: /* A declaration or a function definition (or, in Objective-C, @@ -8174,6 +8175,7 @@ c_parser_postfix_expression (c_parser *parser) break; } /* Else fall through to report error. */ + /* FALLTHRU */ default: c_parser_error (parser, "expected expression"); expr.set_error (); diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index 33c06d40..8456a0c 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -4493,7 +4493,7 @@ build_unary_op (location_t location, return error_mark_node; } - /* ... fall through ... */ + /* fall through */ case ARRAY_REF: if (TYPE_REVERSE_STORAGE_ORDER (TREE_TYPE (TREE_OPERAND (arg, 0)))) @@ -4695,10 +4695,10 @@ c_mark_addressable (tree exp) return false; } - /* drops in */ + /* FALLTHRU */ case FUNCTION_DECL: TREE_ADDRESSABLE (x) = 1; - /* drops out */ + /* FALLTHRU */ default: return true; } |