diff options
author | GCC Administrator <gccadmin@gcc.gnu.org> | 2020-09-20 00:16:23 +0000 |
---|---|---|
committer | GCC Administrator <gccadmin@gcc.gnu.org> | 2020-09-20 00:16:23 +0000 |
commit | 2fe5b7d1f66457c637b8bd2543a60a5faff34c40 (patch) | |
tree | 80992f090abad40686c27d62c089fa59064fe465 /gcc/c | |
parent | 3f9a497d1b0dd9da87908a11b59bf364ad40ddca (diff) | |
download | gcc-2fe5b7d1f66457c637b8bd2543a60a5faff34c40.zip gcc-2fe5b7d1f66457c637b8bd2543a60a5faff34c40.tar.gz gcc-2fe5b7d1f66457c637b8bd2543a60a5faff34c40.tar.bz2 |
Daily bump.
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index eb68b12..839bfa1 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,59 @@ +2020-09-19 Martin Sebor <msebor@redhat.com> + + PR c/50584 + * c-decl.c (lookup_last_decl): Define new function. + (c_decl_attributes): Call it. + (start_decl): Add argument and use it. + (finish_decl): Call build_attr_access_from_parms and decl_attributes. + (get_parm_array_spec): Define new function. + (push_parm_decl): Call get_parm_array_spec. + (start_function): Call warn_parm_array_mismatch. Build attribute + access and add it to current function. + * c-parser.c (c_parser_declaration_or_fndef): Diagnose mismatches + in forms of array parameters. + * c-tree.h (start_decl): Add argument. + +2020-09-19 Sandra Loosemore <sandra@codesourcery.com> + + * c-decl.c (c_break_label, c_cont_label): Delete, and replace + with... + (in_statement): New. + (start_function): Adjust for above change. + (c_push_function_context, c_pop_function_context): Likewise. + * c-lang.h (struct language_function): Likewise. + * c-objc-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define. + * c-parser.c (objc_foreach_break_label, objc_foreach_continue_label): + New. + (c_parser_statement_after_labels): Adjust calls to c_finish_bc_stmt. + (c_parser_switch_statement): Adjust break/switch context handling + and calls to renamed functions. + (c_parser_while_statement): Adjust break/switch context handling and + build a WHILE_STMT. + (c_parser_do_statement): Ditto, with DO_STMT respectively. + (c_parser_for_statement): Ditto, with FOR_STMT respectively. + (c_parser_omp_for_loop): Adjust break/switch context handling. + * c-tree.h (c_break_label, c_cont_label): Delete. + (IN_SWITCH_STMT, IN_ITERATION_STMT): Define. + (IN_OMP_BLOCK, IN_OMP_FOR, IN_OBJC_FOREACH): Define. + (in_statement, switch_statement_break_seen_p): Declare. + (c_start_case, c_finish_case): Renamed to... + (c_start_switch, c_finish_switch). + (c_finish_bc_stmt): Adjust arguments. + * c-typeck.c (build_function_call_vec): Don't try to print + statements with %qE format. + (struct c_switch): Rename switch_expr field to switch_stmt. + Add break_stmt_seen_p field. + (c_start_case): Rename to c_start_switch. Build a SWITCH_STMT + instead of a SWITCH_EXPR. Update for changes to struct c_switch. + (do_case): Update for changes to struct c_switch. + (c_finish_case): Rename to c_finish_switch. Update for changes to + struct c_switch and change of representation from SWITCH_EXPR to + SWITCH_STMT. + (c_finish_loop): Delete. + (c_finish_bc_stmt): Update to reflect changes to break/continue + state representation. Build a BREAK_STMT or CONTINUE_STMT instead + of a GOTO_EXPR except for objc foreach loops. + 2020-09-01 Jakub Jelinek <jakub@redhat.com> PR c++/96867 |