Add prefixed insn support for stack_protect_setdi & stack_protect_testdi
[official-gcc.git] / gcc / c / ChangeLog
blobe3a5120ae98beb5647534b281785f30f1d9a0f0f
1 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
3         * c-parser.c (c_parser_translation_unit): Diagnose declare target
4         without corresponding end declare target.
6 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
8         * c-convert.c (convert): Only handle vector conversions if one of
9         the types satisfies gnu_vector_type_p or if -flax-vector-conversions
10         allows it.
11         * c-typeck.c (build_array_ref): Only allow vector indexing if the
12         vectors satisfy gnu_vector_type_p.
13         (build_unary_op): Only allow unary operators to be applied to
14         vectors if they satisfy gnu_vector_type_p.
15         (digest_init): Only allow by-element initialization of vectors
16         if they satisfy gnu_vector_type_p.
17         (really_start_incremental_init): Likewise.
18         (push_init_level): Likewise.
19         (pop_init_level): Likewise.
20         (process_init_element): Likewise.
21         (build_binary_op): Only allow binary operators to be applied to
22         vectors if they satisfy gnu_vector_type_p.
24 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
26         * c-decl.c (grokparms): Convert () in a function definition to
27         (void) for C2x.
28         (store_parm_decls_oldstyle): Pedwarn for C2x.
29         (store_parm_decls): Update comment about () not generating a
30         prototype.
32 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
34         * c-parser.c (c_parser_attribute_arguments): New function.
35         Factored out of c_parser_gnu_attribute.
36         (c_parser_gnu_attribute): Use c_parser_attribute_arguments.
37         (c_parser_balanced_token_sequence, c_parser_std_attribute)
38         (c_parser_std_attribute_specifier): New functions.
39         (c_parser_transaction_attributes): Use
40         c_parser_std_attribute_specifier.
42 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
44         * c-parser.c (c_parser): Remove lex_untranslated_string.  Add
45         lex_joined_string and translate_strings_p.
46         (c_lex_one_token): Pass 0 or C_LEX_STRING_NO_JOIN to
47         c_lex_with_flags.
48         (c_parser_string_literal): New function.
49         (c_parser_static_assert_declaration_no_semi): Use
50         c_parser_string_literal.  Do not set lex_untranslated_string.
51         (c_parser_asm_string_literal): Use c_parser_string_literal.
52         (c_parser_simple_asm_expr): Do not set lex_untranslated_string.
53         (c_parser_gnu_attributes): Set and restore translate_strings_p
54         instead of lex_untranslated_string.
55         (c_parser_asm_statement): Do not set lex_untranslated_string.
56         (c_parser_asm_operands): Likewise.
57         (c_parser_has_attribute_expression): Set and restore
58         translate_strings_p instead of lex_untranslated_string.
59         (c_parser_postfix_expression): Use c_parser_string_literal.
60         (pragma_lex): Likewise.
61         (c_parser_pragma_pch_preprocess): Set lex_joined_string.
62         (c_parse_file): Set translate_strings_p.
63         * gimple-parser.c (c_parser_gimple_postfix_expression)
64         (c_parser_gimple_or_rtl_pass_list): Use c_parser_string_literal.
65         * c-parser.c (c_parser_string_literal): Declare function.
67 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
69         * c-parser.c (c_finish_omp_declare_variant): Use
70         omp_get_context_selector instead of c_omp_get_context_selector.
72 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
74         * c-tree.h (c_simulate_enum_decl): Declare.
75         * c-decl.c (c_simulate_enum_decl): New function.
76         * c-objc-common.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define to the above.
78 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
80         * c-tree.h (c_simulate_builtin_function_decl): Declare.
81         * c-decl.c (c_simulate_builtin_function_decl): New function.
82         * c-objc-common.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define
83         to the above.
85 2019-10-28  Martin Sebor  <msebor@redhat.com>
87         PR c/66970
88         * c-decl.c (names_builtin_p): Define a new function.
90 2019-10-28  Richard Biener  <rguenther@suse.de>
92         PR c/92249
93         * gimple-parser.c (c_parser_parse_gimple_body): Make
94         current_bb the entry block initially to easier recover
95         from errors.
96         (c_parser_gimple_compound_statement): Adjust.
98 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
100         * c-parser.c (c_finish_omp_declare_variant): Use
101         omp_context_selector_matches instead of
102         c_omp_context_selector_matches.
103         * c-decl.c (c_decl_attributes): Add "omp declare target block"
104         attribute in between declare target and end declare target
105         pragmas.
107 2019-10-15  Joseph Myers  <joseph@codesourcery.com>
109         * c-parser.c (c_parser_attribute_any_word): Rename to
110         c_parser_gnu_attribute_any_word.  All callers changed.
111         (c_parser_attribute): Rename to c_parser_gnu_attribute.  All
112         callers changed.
113         (c_parser_attributes): Rename to c_parser_gnu_attributes.  All
114         callers changed.
115         (c_parser_declaration_or_fndef, c_parser_declspecs)
116         (c_parser_enum_specifier, c_parser_struct_or_union_specifier)
117         (c_parser_struct_declaration, c_parser_declarator)
118         (c_parser_gnu_attribute, c_parser_compound_statement)
119         (c_parser_label, c_parser_statement, c_parser_objc_method_decl)
120         (c_parser_transaction_attributes): Add "gnu-" prefix to names of
121         attribute-related syntax productions.
123 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
125         * c-objc-common.c (useful_aka_type_p): Replace with...
126         (get_aka_type): ...this new function.  Given the original type,
127         decide which aka type to print (if any).  Only look through typedefs
128         if user_facing_original_type_p.
129         (print_type): Update accordingly.
131 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
133         * c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument
134         into int NESTED, if it is 2, diagnose missing commas in between
135         clauses.
136         (c_parser_omp_context_selector): Pass 2 as last argument to
137         c_parser_omp_all_clauses.
139 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
141         * c-parser.c (c_parser_omp_context_selector): Improve error recovery.
142         For simd properties, put them directly into TREE_VALUE.
143         (c_finish_omp_declare_variant): Call c_omp_mark_declare_variant.
144         If c_omp_context_selector_matches is 0, don't add attribute, otherwise
145         add "omp declare variant base" attribute rather than
146         "omp declare variant".
148 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
150         * c-decl.c (declspecs_add_type): Use pedwarn_c11 for DFP types.
152 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
154         * c-parser.c (c_parser_omp_all_clauses): Add NESTED_P argument, if
155         true, terminate processing on closing paren and don't skip to end of
156         pragma line.
157         (c_parser_omp_declare_simd): Handle also declare variant.
158         (omp_construct_selectors, omp_device_selectors,
159         omp_implementation_selectors, omp_user_selectors): New variables.
160         (c_parser_omp_context_selector,
161         c_parser_omp_context_selector_specification,
162         c_finish_omp_declare_variant): New functions.
163         (c_finish_omp_declare_simd): Handle both declare simd and
164         declare variant.
165         (c_parser_omp_declare): Handle declare variant.
167 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
169         * c-parser.c (c_parser_asm_statement): Handle CPP_SCOPE like two
170         CPP_COLON tokens.
172 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
174         * c-objc-common.c (useful_aka_type_p): New function.
175         (print_type): Use it to decide whether an aka type is worth printing.
177 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
179         PR c++/88203
180         * c-parser.c (c_parser_predefined_identifier): New function.
181         (c_parser_postfix_expression): Use it.
182         (c_parser_omp_variable_list): Parse predefined identifiers.
183         * c-typeck.c (c_finish_omp_clauses): Allow predefined variables
184         in shared and firstprivate clauses, even when they are predetermined
185         shared.
187 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
189         * c-typeck.c (build_function_call_vec): Take the original function
190         decl as an optional final parameter.  Pass all built-in calls to
191         check_builtin_function_arguments.
193 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
195         PR c/91815
196         * c-decl.c (pushdecl): In C detect duplicate declarations across scopes
197         of identifiers in the external scope only for variables and functions.
199 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
201         PR c/78736
202         * c-typeck.c (convert_for_assignment): Handle Wenum-conversion.
204 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
206         PR pch/61250
207         * c-parser.c (c_parse_file): Call c_common_no_more_pch ()
208         after determining that the first token is not
209         PRAGMA_GCC_PCH_PREPROCESS.
211 2019-08-22  Eric Botcazou  <ebotcazou@adacore.com>
213         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_ARGUMENTS of a
214         FUNCTION_DECL to the right value in the presence of nested declarators.
216 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
218         PR middle-end/91421
219         * c-decl.c (merge_decls): Use copy_decl_built_in_function.
221 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
223         PR middle-end/91421
224         * c-decl.c (header_for_builtin_fn): Take a FUNCTION_DECL instead
225         of a built_in_function.
226         (diagnose_mismatched_decls, implicitly_declare): Update accordingly.
228 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
230         * c-parser.c (c_parser_omp_clause_name): Parse device_type.
231         (c_parser_omp_clause_device_type): New function.
232         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
233         (OMP_DECLARE_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
234         (c_parser_omp_declare_target): Handle device_type clauses.  Remove
235         diagnostics for declare target with clauses nested in clause-less
236         declare target declaration-definition-seq.
237         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_DEVICE_TYPE.
239 2019-08-09  Jakub Jelinek  <jakub@redhat.com>
241         * c-parser.c (check_no_duplicate_clause): Simplify using
242         omp_find_clause.
243         (c_parser_omp_clause_if): Fix up printing of target {enter,exit} data
244         directive name modifiers.
245         (c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause.
247         PR c/91401
248         * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the
249         check_no_duplicate_clause call.  Comment it out, instead emit a
250         warning for duplicate dist_schedule clauses.
252 2019-08-08  Richard Sandiford  <richard.sandiford@arm.com>
254         * c-decl.c (finish_enum): Clear C_TYPE_BEING_DEFINED.
256 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
258         * c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP
259         OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap
260         instead of generic_head to track duplicates.
262 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
264         * c-parser.c (c_parser_omp_clause_name): Parse use_device_addr clause.
265         (c_parser_omp_clause_use_device_addr): New function.
266         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.
267         (OMP_TARGET_DATA_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.
268         (c_parser_omp_target_data): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR
269         like PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR, adjust diagnostics about no
270         map or use_device_* clauses.
271         * c-typeck.c (c_finish_omp_clauses): For OMP_CLAUSE_USE_DEVICE_PTR
272         in OpenMP, require pointer type rather than pointer or array type.
273         Handle OMP_CLAUSE_USE_DEVICE_ADDR.
275 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
277         PR c/91192
278         * c-parser.c (c_parser_sizeof_expression): Call set_c_expr_source_range
279         even if finish is UNKNOWN_LOCATION, just use start as finish in that
280         case.
282 2019-07-25  Martin Liska  <mliska@suse.cz>
283             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
285         PR c++/23383
286         * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag.
288 2019-07-25  Martin Liska  <mliska@suse.cz>
290         * c-decl.c (merge_decls): Use new macros
291         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
293 2019-07-23  Richard Biener  <rguenther@suse.de>
295         PR tree-optimization/83518
296         * gimple-parser.c (c_parser_parse_gimple_body): When we have
297         a CFG also rebuild cgraph edges.
299 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
301         * c-parser.c (c_parser_omp_clause_name): Handle bind clause.
302         (c_parser_omp_clause_bind): New function.
303         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_BIND.
304         (OMP_LOOP_CLAUSE_MASK): Define.
305         (c_parser_omp_loop): New function.
306         (c_parser_omp_parallel, c_parser_omp_teams): Handle parsing of
307         loop combined with parallel or teams.
308         (c_parser_omp_construct): Handle PRAGMA_OMP_LOOP.
309         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_BIND.
311 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
313         PR c/53633
314         * c-decl.c (finish_function): Check targetm.warn_func_return
315         before issuing a -Wreturn-type warning.
317 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
319         * gimple-parser.c (c_parser_gimple_try_stmt): New.
320         (c_parser_compound_statement): Call it.
322 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
324         * c-parser.c (c_parser_omp_clause_name): Handle order clause.
325         (c_parser_omp_clause_order): New function.
326         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ORDER.
327         (OMP_SIMD_CLAUSE_MASK, OMP_FOR_CLAUSE_MASK): Add
328         PRAGMA_OMP_CLAUSE_ORDER.
329         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ORDER.
331 2019-07-10  Richard Biener  <rguenther@suse.de>
333         * gimple-parser.c (c_parser_gimple_postfix_expression): Support
334         _Literal (int *) &x for address literals.
336 2019-07-09  Martin Sebor  <msebor@redhat.com>
338         PR c++/61339
339         * c-decl.c (xref_tag): Change class-key of PODs to struct and others
340         to class.
341         (field_decl_cmp): Same.
342         * c-parser.c (c_parser_struct_or_union_specifier): Same.
343         * c-tree.h: Same.
344         * gimple-parser.c (c_parser_gimple_compound_statement): Same.
346 2019-07-09  Martin Sebor  <msebor@redhat.com>
348         PR c++/61339
349         * c-decl.c: Change class-key from class to struct and vice versa
350         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
351         * gimple-parser.c: Same.
353 2019-07-01  Richard Biener  <rguenther@suse.de>
355         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
356         _Literal (char *) &"foo" for address literals pointing to
357         STRING_CSTs.
359 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
361         * c-parser.c (c_parse_init): Create keyword for "__intN__" type.
362         * c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
363         C incompatibility if alternate "__intN__" form is used.
365 2019-06-24  Martin Sebor  <msebor@redhat.com>
367         * c-typeck.c (build_binary_op): Hyphenate floating-point.
369 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
371         * c-parser.c (c_parser_pragma): Reject PRAGMA_OMP_SCAN.
372         (c_parser_omp_clause_reduction): Don't sorry_at on inscan reductions.
373         (c_parser_omp_scan_loop_body): New function.
374         (c_parser_omp_for_loop): Call c_parser_omp_scan_loop_body if there are
375         inscan reduction clauses.
376         * c-typeck.c (c_finish_omp_clauses): Reject mixing inscan with
377         non-inscan reductions on the same construct, or inscan reductions with
378         ordered or schedule clauses, or inscan array reductions.
380 2019-06-05  Martin Sebor  <msebor@redhat.com>
382         PR c/90737
383         * c-typeck.c (c_finish_return): Only consider functions returning
384         pointers as candidates for -Wreturn-local-addr.
386 2019-06-05  Martin Sebor  <msebor@redhat.com>
388         * c-decl.c (start_decl): Adjust quoting and hyphenation
389         in diagnostics.
390         (finish_decl): Same.
391         (finish_enum): Same.
392         (start_function): Same.
393         (declspecs_add_type): Same.
394         * c-parser.c (warn_for_abs): Same.
395         * c-typeck.c (build_binary_op): Same.
397 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
399         PR c/89433
400         * c-parser.c (c_finish_oacc_routine): Rework checking if already
401         marked with an OpenACC 'routine' directive.
403         PR c/89433
404         * c-parser.c (c_parser_oacc_routine): Normalize order of clauses.
405         (c_finish_oacc_routine): Call oacc_verify_routine_clauses.
407         PR c/89433
408         * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine'
409         clauses from "omp declare target" attribute.
411 2019-05-16  Martin Sebor  <msebor@redhat.com>
413         * c-decl.c (start_decl): Quote keywords, operators, and
414         types in diagnostics.
415         (finish_decl): Same.
416         * c-parser.c (c_parser_asm_statement): Same.
417         (c_parser_conditional_expression): Same.
418         (c_parser_transaction_cancel): Same.
419         * c-typeck.c (c_common_type): Same.
420         (build_conditional_expr): Same.
421         (digest_init): Same.
422         (process_init_element): Same.
423         (build_binary_op): Same.
425 2019-05-17  Richard Biener  <rguenther@suse.de>
427         * gimple-parser.c (c_parser_gimple_statement): Handle __VEC_PERM.
428         (c_parser_gimple_unary_expression): Likewise.
429         (c_parser_gimple_parentized_ternary_expression): New function.
431 2019-05-16  Richard Biener  <rguenther@suse.de>
433         * gimple-parser.c (c_parser_gimple_statement): Handle __BIT_INSERT.
434         (c_parser_gimple_unary_expression): Likewise.
436 2019-05-15  Richard Biener  <rguenther@suse.de>
438         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
439         __BIT_FIELD_REF.
441 2019-05-14  Richard Biener  <rguenther@suse.de>
443         * gimple-parser.c (c_parser_gimple_statement): Remove
444         questionable auto-promotion to VIEW_CONVERT_EXPR.
445         (c_parser_gimple_typespec): Split out from __MEM parsing.
446         (c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT.
447         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
448         as __VIEW_CONVERT with -gimple.
450 2019-05-09  Martin Liska  <mliska@suse.cz>
452         * gimple-parser.c (c_parser_gimple_statement): Support __MIN and
453         __MAX.
454         (c_parser_gimple_unary_expression): Parse also binary expression
455         __MIN and __MAX.
456         (c_parser_gimple_parentized_binary_expression): New function.
458 2019-05-09  Martin Liska  <mliska@suse.cz>
460         * gimple-parser.c (struct gimple_parser): Add probability.
461         for gimple_parser_edge.
462         (gimple_parser::push_edge): Add new argument probability.
463         (c_parser_gimple_parse_bb_spec): Parse also probability
464         if present.
465         (c_parser_parse_gimple_body): Set edge probability.
466         (c_parser_gimple_compound_statement): Consume token
467         before calling c_parser_gimple_goto_stmt.
468         Parse BB counts.
469         (c_parser_gimple_statement): Pass new argument.
470         (c_parser_gimple_goto_stmt): Likewise.
471         (c_parser_gimple_if_stmt): Likewise.
472         (c_parser_gimple_or_rtl_pass_list): Parse hot_bb_threshold.
473         * c-parser.c (c_parser_declaration_or_fndef): Pass
474         hot_bb_threshold argument.
475         * c-tree.h (struct c_declspecs): Add hot_bb_threshold
476         field.
477         (c_parser_gimple_parse_bb_spec_edge_probability): New.
479 2019-04-26  Jakub Jelinek  <jakub@redhat.com>
481         PR debug/90197
482         * c-tree.h (c_finish_loop): Add 2 further location_t arguments.
483         * c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller.
484         (c_parser_do_statement): Likewise.
485         (c_parser_for_statement): Likewise.  Formatting fixes.
486         * c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments,
487         emit DEBUG_BEGIN_STMTs if needed.
489 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
491         PR c/89888
492         * c-typeck.c (struct c_switch): Remove outside_range_p member.
493         (c_start_case): Don't clear it.
494         (do_case): Adjust c_add_case_label caller.
495         (c_finish_case): Adjust c_do_switch_warnings caller.
497         PR c++/90108
498         * c-decl.c (merge_decls): If remove is main variant and
499         DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE
500         variant that has newdecl as TYPE_NAME if any.
502 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
504         PR c/89933
505         * c-decl.c (merge_decls): When newdecl's type is its main variant,
506         don't try to remove it from the variant list, but instead assert
507         it has no variants.
509 2019-04-01  Richard Biener  <rguenther@suse.de>
511         PR c/71598
512         * c-tree.h (c_get_alias_set): Declare.
513         * c-objc-common.h (LANG_HOOKS_GET_ALIAS_SET): Use c_get_alias_set.
514         * c-objc-common.c (c_get_alias_set): Treat enumeral types
515         as the underlying integer type.
517 2019-03-19  Martin Sebor  <msebor@redhat.com>
519         PR tree-optimization/89688
520         * c-decl.c (finish_decl): Call braced_lists_to_string for more
521         kinds of initializers.
523 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
525         PR c/89734
526         * c-decl.c (grokdeclarator): Call c_build_qualified_type on function
527         return type even if quals_used is 0.  Formatting fixes.
529 2019-03-14  Richard Biener  <rguenther@suse.de>
531         * c-tree.h (enum c_declspec_il): New.
532         (struct c_declspecs): Merge gimple_p and rtl_p into declspec_il
533         enum bitfield.
534         * c-parser.c (c_parser_declaration_or_fndef): Adjust accordingly.
535         Pass start pass and declspec_il to c_parser_parse_gimple_body.
536         (c_parser_declspecs): Adjust.
537         * gimple-parser.c: Include cfg.h, cfghooks.h, cfganal.h, tree-cfg.h,
538         gimple-iterator.h, cfgloop.h, tree-phinodes.h, tree-into-ssa.h
539         and bitmap.h.
540         (struct gimple_parser): New.
541         (gimple_parser::push_edge): New method.
542         (c_parser_gimple_parse_bb_spec): New helper.
543         (c_parser_parse_gimple_body): Get start pass and IL specification.
544         Initialize SSA and CFG.
545         (c_parser_gimple_compound_statement): Handle CFG and SSA build.
546         Build a gimple_parser parsing state and pass it along.
547         (c_parser_gimple_statement): Change intermittend __PHI internal
548         function argument for the edge.
549         (c_parser_gimple_or_rtl_pass_list): Handle ssa, cfg flags.
550         (c_parser_gimple_goto_stmt): Record edges to build.
551         (c_parser_gimple_if_stmt): Likewise.
552         * gimple-parser.h (c_parser_parse_gimple_body): Adjust.
553         (c_parser_gimple_or_rtl_pass_list): Likewise.
555 2019-03-11  Martin Liska  <mliska@suse.cz>
557         * c-decl.c (check_for_loop_decls): Wrap an option name
558         in a string format message and fix GNU coding style.
559         * c-parser.c (c_parser_declspecs): Likewise.
561 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
563         PR tree-optimization/89550
564         * c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at
565         returned true.
566         (c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn
567         or warning returned true.
569 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
571         PR c/89525
572         * c-typeck.c (convert_arguments): Call inform_declaration only if
573         the previous warning_at call returned true.
575 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
577         * c-parser.c (c_parser_oacc_shape_clause): Add loc formal
578         parameter.  Adjust all users.
579         (c_parser_oacc_simple_clause): Replace parser with loc formal
580         parameter.  Adjust all users.
582 2019-02-19  Chung-Lin Tang  <cltang@codesourcery.com>
584         PR c/87924
585         * c-parser.c (c_parser_oacc_clause_wait): Add representation of wait
586         clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments.
588 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
590         PR c/89340
591         * c-decl.c (start_function): Clear TREE_PUBLIC on nested functions
592         before c_decl_attributes rather than after it.
594 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
596         PR c/89211
597         * c-parser.c (c_parser_declaration_or_fndef): Don't update
598         DECL_ARGUMENTS of d if it has been defined already.  Use a single if
599         instead of 3 nested ifs.
601 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
603         PR c/88584
604         * c-decl.c (finish_decl): Do not complete array types for arrays
605         with external linkage not at file scope.
607 2019-02-05  Richard Biener  <rguenther@suse.de>
609         PR c/88606
610         * c-decl.c (finish_struct): Reset TYPE_TRANSPARENT_AGGR on
611         all type variants when not supported.
613 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
615         PR c/89061
616         * c-tree.h (C_DECL_COMPOUND_LITERAL_P): Define.
617         * c-decl.c (decl_jump_unsafe): Return false for
618         C_DECL_COMPOUND_LITERAL_P decls.
619         (build_compound_literal): Set C_DECL_COMPOUND_LITERAL_P.
621 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
623         PR c/89045
624         * c-decl.c (build_compound_literal): Don't pushdecl if in parameter
625         scope.
627         PR c/86125
628         * c-decl.c (last_fileptr_type): Remove.
629         (last_structptr_types): New variable.
630         (match_builtin_function_types): Compare TYPE_MAIN_VARIANT of
631         {old,new}rettype instead of the types themselves.  Assert
632         last_structptr_types array has the same number of elements
633         as builtin_structptr_types array.  Use TYPE_MAIN_VARIANT for
634         argument oldtype and newtype.  Instead of handling
635         just fileptr_type_node specially, handle all builtin_structptr_types
636         pointer nodes.  Formatting fix.
638 2019-01-24  Martin Sebor  <msebor@redhat.com>
640         PR c/86125
641         PR c/88886
642         PR middle-end/86308
643         * c-decl.c (match_builtin_function_types): Add arguments.
644         (diagnose_mismatched_decls): Diagnose mismatched declarations
645         of built-ins more strictly.
647 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
649         PR c++/88976
650         * c-typeck.c (c_finish_omp_cancel): Diagnose more than one if
651         on #pragma omp cancel with different modifiers.
653 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
655         PR c/51628
656         PR c/88664
657         * c-typeck.c (convert_for_assignment): Upate the
658         warn_for_address_or_pointer_of_packed_member call.
660 2019-01-16  Tom Honermann  <tom@honermann.net>
661             Jason Merrill  <jason@redhat.com>
663         * c-typeck.c (digest_init): Revised the error message produced for
664         ill-formed cases of array initialization with a string literal.
665         (error_init): Make variadic.
667 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
669         * c-typeck.c (convert_for_assignment): Fix a comment typo.
671 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
673         PR c/88701
674         * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl
675         if current_function_decl is non-NULL.
677 2019-01-07  Joseph Myers  <joseph@codesourcery.com>
679         PR c/88720
680         PR c/88726
681         * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
682         whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
683         functions declared but never defined only for external scope, not
684         for other scopes.
686 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
688         PR c++/85052
689         * c-parser.c (c_parser_postfix_expression): Parse
690         __builtin_convertvector.
692 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
694         Update copyright years.
696 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
698         PR c/51628
699         * c-typeck.c (convert_for_assignment): Call
700         warn_for_address_or_pointer_of_packed_member.
702 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
704         * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give
705         a more specific error message (instead of just falling through).
707 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
709         * c-parser.c (c_parser_asm_statement): Keep track of the location each
710         asm qualifier is first seen; use that to give nicer "duplicate asm
711         qualifier" messages.  Delete 'quals" variable, instead pass the
712         "is_volatile_ flag to build_asm_stmt directly.
713         * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree.
714         * c-typeck.c (build_asm_stmt): Ditto; adjust.
716 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
718         * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without
719         "done" boolean variable.
721 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
723         PR c++/87504
724         * c-typeck.c (class maybe_range_label_for_tree_type_mismatch):
725         Move from here to gcc-rich-location.h and gcc-rich-location.c.
726         (build_binary_op): Use struct op_location_t and
727         class binary_op_rich_location.
729 2018-12-11  Jakub Jelinek  <jakub@redhat.com>
731         PR sanitizer/88426
732         * c-convert.c (convert): Call c_fully_fold before calling
733         ubsan_instrument_float_cast.
735 2018-12-08  Segher Boessenkool  <segher@kernel.crashing.org>
737         * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line
738         setting "quals".
740 2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
742         * c-parser.c (c_parser_asm_statement): Detect the inline keyword
743         after asm.  Pass a flag for it to build_asm_expr.
744         * c-tree.h (build_asm_expr): Update declaration.
745         * c-typeck.c (build_asm_stmt): Add is_inline parameter.  Use it to
746         set ASM_INLINE_P.
748 2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
750         PR inline-asm/55681
751         * c-parser.c (c_parser_asm_statement): Update grammar.  Allow any
752         combination of volatile and goto, in any order, without repetitions.
754 2018-12-04  James Norris  <jnorris@codesourcery.com>
755             Cesar Philippidis  <cesar@codesourcery.com>
756             Julian Brown  <julian@codesourcery.com>
758         * c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic
759         code.
761 2018-11-30  Richard Biener  <rguenther@suse.de>
763         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
764         _Literal (type) { ... } as empty aggregate or vector constructor.
766 2018-11-29  Martin Sebor  <msebor@redhat.com>
768         PR c/88091
769         * c-typeck.c (convert_argument): Add a parameter.  Adjust indentation.
770         (convert_arguments): Add comments.  Pass additional argument to
771         the function above.
773 2018-11-29  Martin Sebor  <msebor@redhat.com>
775         PR c/88172
776         PR testsuite/88208
777         * c-decl.c (declspec_add_alignas): Adjust call to check_user_alignment.
779 2018-11-23  Martin Sebor  <msebor@redhat.com>
781         PR testsuite/88098
782         * c-typeck.c (convert_arguments): Call builtin_decl_explicit instead.
783         (maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion.
785 2018-11-20  Martin Sebor  <msebor@redhat.com>
787         * c-parser.c (c_parser_has_attribute_expression): New function.
788         (c_parser_attribute): New function.
789         (c_parser_attributes): Move code into c_parser_attribute.
790         (c_parser_unary_expression): Handle RID_HAS_ATTRIBUTE_EXPRESSION.
792 2018-11-15  Martin Sebor  <msebor@redhat.com>
794         PR c/83656
795         * c-decl.c (header_for_builtin_fn): Declare.
796         (diagnose_mismatched_decls): Diagnose declarations of built-in
797         functions without a prototype.
798         * c-typeck.c (maybe_warn_builtin_no_proto_arg): New function.
799         (convert_argument): Same.
800         (convert_arguments): Factor code out into convert_argument.
801         Detect mismatches between built-in formal arguments in calls
802         to built-in without prototype.
803         (build_conditional_expr): Same.
804         (type_or_builtin_type): New function.
805         (convert_for_assignment): Add argument.  Conditionally issue
806         warnings instead of errors for mismatches.
808 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
810         * c-decl.c: Replace "source_location" with "location_t".
811         * c-tree.h: Likewise.
812         * c-typeck.c: Likewise.
813         * gimple-parser.c: Likewise.
815 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
817         * c-parser.c (c_parser_omp_clause_final): Use
818         c_parser_expr_no_commas, convert_lvalue_to_rvalue,
819         c_objc_common_truthvalue_conversion, c_fully_fold and parentheses
820         parsing instead of c_parser_paren_condition.
821         (c_parser_omp_clause_if): Use c_parser_expr_no_commas,
822         convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and
823         c_fully_fold instead of c_parser_condition.
824         (c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks,
825         c_parser_omp_clause_grainsize, c_parser_omp_clause_priority,
826         c_parser_omp_clause_hint, c_parser_omp_clause_num_teams,
827         c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use
828         c_parser_expr_no_commas instead of c_parser_expression.
830         * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on
831         reduction clause with inscan modifier.
833         * c-parser.c (c_parser_omp_requires): Call sorry_at on requires
834         clauses other than atomic_default_mem_order.
836 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
838         * c-parser.c: Include memmode.h.
839         (c_parser_omp_depobj, c_parser_omp_requires): New functions.
840         (c_parser_pragma): Handle PRAGMA_OMP_DEPOBJ and PRAGMA_OMP_REQUIRES.
841         (c_parser_omp_clause_name): Handle nontemporal, in_reduction and
842         task_reduction clauses.
843         (c_parser_omp_variable_list): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION.
844         For OMP_CLAUSE_DEPEND, parse clause operands as either an array
845         section, or lvalue assignment expression.
846         (c_parser_omp_clause_if): Handle cancel and simd modifiers.
847         (c_parser_omp_clause_lastprivate): Parse optional
848         conditional: modifier.
849         (c_parser_omp_clause_hint): Require constant integer expression rather
850         than just integer expression.
851         (c_parser_omp_clause_defaultmap): Parse new kinds of defaultmap
852         clause.
853         (c_parser_omp_clause_reduction): Add IS_OMP and KIND arguments.
854         Parse reduction modifiers.  Pass KIND to c_parser_omp_variable_list.
855         (c_parser_omp_clause_nontemporal, c_parser_omp_iterators): New
856         functions.
857         (c_parser_omp_clause_depend): Parse iterator modifier and handle
858         iterators.  Parse mutexinoutset and depobj kinds.
859         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction
860         callers.
861         (c_parser_omp_all_clauses): Likewise.  Handle
862         PRAGMA_OMP_CLAUSE_NONTEMPORAL and
863         PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
864         (c_parser_omp_atomic): Parse hint and memory order clauses.  Handle
865         default memory order from requires directive if any.  Adjust
866         c_finish_omp_atomic caller.
867         (c_parser_omp_critical): Allow comma in between (name) and hint clause.
868         (c_parser_omp_flush): Parse flush with memory-order-clause.
869         (c_parser_omp_for_loop): Allow NE_EXPR even in
870         OpenMP loops, adjust c_finish_omp_for caller.
871         (OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses.
872         (c_parser_omp_master): Add p_name, mask and cclauses arguments.
873         Allow to be called while parsing combined parallel master.
874         Parse combined master taskloop{, simd}.
875         (c_parser_omp_parallel): Parse combined
876         parallel master{, taskloop{, simd}} constructs.
877         (OMP_TASK_CLAUSE_MASK): Add in_reduction clause.
878         (OMP_TASKGROUP_CLAUSE_MASK): Define.
879         (c_parser_omp_taskgroup): Add LOC argument.  Parse taskgroup clauses.
880         (OMP_TASKWAIT_CLAUSE_MASK): Define.
881         (c_parser_omp_taskwait): Handle taskwait with depend clauses.
882         (c_parser_omp_teams): Force a BIND_EXPR with BLOCK
883         around teams body.  Use SET_EXPR_LOCATION.
884         (c_parser_omp_target_data): Allow target data
885         with only use_device_ptr clauses.
886         (c_parser_omp_target): Use SET_EXPR_LOCATION.  Set
887         OMP_REQUIRES_TARGET_USED bit in omp_requires_mask.
888         (c_parser_omp_requires): New function.
889         (c_finish_taskloop_clauses): New function.
890         (OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses.
891         (c_parser_omp_taskloop): Use c_finish_taskloop_clauses.  Add forward
892         declaration.  Disallow in_reduction clause when combined with parallel
893         master.
894         (c_parser_omp_construct): Adjust c_parser_omp_master and
895         c_parser_omp_taskgroup callers.
896         * c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier
897         other than cancel.
898         (handle_omp_array_sections_1): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION
899         like OMP_CLAUSE_REDUCTION.
900         (handle_omp_array_sections): Likewise.  Call save_expr on array
901         reductions before calling build_index_type.  Handle depend clauses
902         with iterators.
903         (struct c_find_omp_var_s): New type.
904         (c_find_omp_var_r, c_omp_finish_iterators): New functions.
905         (c_finish_omp_clauses): Don't diagnose nonmonotonic clause
906         with static, runtime or auto schedule kinds.  Call save_expr for whole
907         array reduction sizes.  Diagnose reductions with zero sized elements
908         or variable length structures.  Diagnose nogroup clause used with
909         reduction clause(s).  Handle depend clause with
910         OMP_CLAUSE_DEPEND_DEPOBJ.  Diagnose bit-fields.  Require
911         omp_depend_t type for OMP_CLAUSE_DEPEND_DEPOBJ kinds and
912         some different type for other kinds.  Use build_unary_op with
913         ADDR_EXPR and build_indirect_ref instead of c_mark_addressable.
914         Handle depend clauses with iterators.  Remove no longer needed special
915         case that predetermined const qualified vars may be specified in
916         firstprivate clause.  Complain if const qualified vars are mentioned
917         in data-sharing clauses other than firstprivate or shared.  Use
918         error_at with OMP_CLAUSE_LOCATION (c) as first argument instead of
919         error.  Formatting fix.  Handle OMP_CLAUSE_NONTEMPORAL and
920         OMP_CLAUSE_{IN,TASK}_REDUCTION.  Allow any lvalue as
921         OMP_CLAUSE_DEPEND operand (besides array section), adjust diagnostics.
923 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
925         * c-decl.c (implicit_decl_warning): Update "is there a suggestion"
926         logic for change to name_hint::operator bool.
927         (undeclared_variable): Likewise.
928         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
929         (c_parser_parameter_declaration): Likewise.
931 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
933         * c-errors.c (pedwarn_c11): New function.
934         * c-parser.c (disable_extension_diagnostics): Save
935         warn_c11_c2x_compat and set it to 0.
936         (restore_extension_diagnostics): Restore warn_c11_c2x_compat.
937         (c_parser_static_assert_declaration_no_semi): Handle
938         _Static_assert without string constant.
939         * c-tree.h (pedwarn_c11): New prototype.
941 2018-10-17  David Malcolm  <dmalcolm@redhat.com>
943         * Make-lang.in (selftest-c): New.
944         (C_SELFTEST_FLAGS, C_SELFTEST_DEPS, s-selftest-c, selftest-c-gdb)
945         (selftest-gdb, selftest-c-valgrind, selftest-valgrind): Move here
946         from gcc/Makefile.in.
948 2018-10-02  Richard Biener  <rguenther@suse.de>
950         * c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE.
952 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
954         PR c/87390
955         * c-typeck.c (build_binary_op): Use excess precision for
956         comparisons of integers and floating-point for C11 and later.
958 2018-09-26  Martin Jambor  <mjambor@suse.cz>
960         PR c/87347
961         * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL.  Fix
962         comment.
964 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
966         * c-objc-common.c (range_label_for_type_mismatch::get_text):
967         Update for new param.
968         * c-typeck.c (maybe_range_label_for_tree_type_mismatch::get_text):
969         Likewise.
971 2018-09-17  Martin Jambor  <mjambor@suse.cz>
973         PR c/63886
974         * c-parser.c: (warn_for_abs): New function.
975         (c_parser_postfix_expression_after_primary): Call it.
977 2018-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
979         * c-typeck.c (digest_init): Shorten overlength strings.
981 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
983         * c-decl.c (finish_decl): Call complete_flexible_array_elts.
985 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
987         * c-decl.c (finish_decl): Call braced_list_to_string here ...
988         * c-parser.c (c_parser_declaration_or_fndef): ... instead of here.
990 2018-08-30  Alexander Monakov  <amonakov@ispras.ru>
992         * gimple-parser.c (c_parser_gimple_binary_expression): Accept infix
993         "__MULT_HIGHPART" for MULT_HIGHPART_EXPR.
995 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
997         PR 87091
998         * c-decl.c (implicitly_declare): Update call to
999         maybe_add_include_fixit to suggest overriding the location, as it
1000         is for a note.
1001         * c-objc-common.c (c_tree_printer): Update for conversion of
1002         show_caret_p to a tri-state.
1004 2018-08-27  Martin Liska  <mliska@suse.cz>
1006         * c-decl.c (locate_old_decl): Use new function
1007         fndecl_built_in_p and remove check for FUNCTION_DECL if
1008         possible.
1009         (diagnose_mismatched_decls): Likewise.
1010         (merge_decls): Likewise.
1011         (warn_if_shadowing): Likewise.
1012         (pushdecl): Likewise.
1013         (implicitly_declare): Likewise.
1014         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1015         * c-tree.h (C_DECL_ISNT_PROTOTYPE): Likewise.
1016         * c-typeck.c (build_function_call_vec): Likewise.
1017         (convert_arguments): Likewise.
1019 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
1021         PR other/84889
1022         * c-decl.c (pushtag): Add auto_diagnostic_group instance.
1023         (diagnose_mismatched_decls): Likewise, in various places.
1024         (warn_if_shadowing): Likewise.
1025         (implicit_decl_warning): Likewise.
1026         (implicitly_declare): Likewise.
1027         (undeclared_variable): Likewise.
1028         (declare_label): Likewise.
1029         (grokdeclarator): Likewise.
1030         (start_function): Likewise.
1031         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
1032         (c_parser_parameter_declaration): Likewise.
1033         (c_parser_binary_expression): Likewise.
1034         * c-typeck.c (c_expr_sizeof_expr): Likewise.
1035         (parser_build_binary_op): Likewise.
1036         (build_unary_op): Likewise.
1037         (error_init): Likewise.
1038         (pedwarn_init): Likewise.
1039         (warning_init): Likewise.
1040         (convert_for_assignment): Likewise.
1042 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
1044         * c-objc-common.c: Include "gcc-rich-location.h".
1045         (c_tree_printer): Move implemenation of '%T' to...
1046         (print_type): ...this new function.
1047         (range_label_for_type_mismatch::get_text): New function.
1048         * c-typeck.c (convert_for_assignment): Add type labels to the rhs
1049         range for the various ic_argpass cases.
1050         (class maybe_range_label_for_tree_type_mismatch): New class.
1051         (build_binary_op): Use it when calling binary_op_error.
1053 2018-08-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1055         * c-decl.c (start_decl): Do not warn if variables is named as main
1056         and is a local variable.
1058 2018-08-15  Iain Sandoe  <iain@sandoe.co.uk>
1060         PR c/19315
1061         * c-decl.c (finish_decl): Don't add the 'extern' storage class to
1062         objects of unknown size.
1064 2018-08-13  Martin Sebor  <msebor@redhat.com>
1066         PR tree-optimization/71625
1067         * c-parser.c (c_parser_declaration_or_fndef): Call
1068         braced_list_to_string.
1070 2018-08-03  Bogdan Harjoc  <harjoc@gmail.com>
1072         PR c/86690
1073         * c-typeck.c (lookup_field): Do not use TYPE_LANG_SPECIFIC after
1074         errors.
1076 2018-08-01  Martin Sebor  <msebor@redhat.com>
1078         PR tree-optimization/86650
1079         * c-objc-common.c (c_tree_printer): Move usage of EXPR_LOCATION (t)
1080         and TREE_BLOCK (t) from within percent_K_format to this callsite.
1082 2018-08-01  Jakub Jelinek  <jakub@redhat.com>
1084         PR c/85704
1085         * c-typeck.c (init_field_decl_cmp): New function.
1086         (output_pending_init_elements): Use it for field comparisons
1087         instead of pure bit_position comparisons.
1089 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
1091         * c-decl.c (c_decl_attributes): Don't diagnose vars without mappable
1092         type here, instead add "omp declare target implicit" attribute.
1093         (finish_decl): Diagnose vars without mappable type here.
1095 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
1096             Thomas Schwinge  <thomas@codesourcery.com>
1097             Cesar Philippidis  <cesar@codesourcery.com>
1099         * c-parser.c (c_parser_omp_clause_name): Add support for finalize
1100         and if_present. Make present_or_{copy,copyin,copyout,create} aliases
1101         to their non-present_or_* counterparts. Make 'self' an alias to
1102         PRAGMA_OACC_CLAUSE_HOST.
1103         (c_parser_oacc_data_clause): Update GOMP mappings for
1104         PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove
1105         PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}.
1106         (c_parser_oacc_all_clauses): Handle finalize and if_present clauses.
1107         Remove support for present_or_* clauses.
1108         (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
1109         (OACC_PARALLEL_CLAUSE_MASK): Likewise.
1110         (OACC_DECLARE_CLAUSE_MASK): Likewise.
1111         (OACC_DATA_CLAUSE_MASK): Likewise.
1112         (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
1113         (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause.
1114         (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT.
1115         (c_parser_oacc_declare): Remove PRESENT_OR_* clauses.
1116         * c-typeck.c (c_finish_omp_clauses): Handle IF_PRESENT and FINALIZE.
1118 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
1120         * c-typeck.c (build_unary_op): Handle ABSU_EXPR;
1121         * gimple-parser.c (c_parser_gimple_statement): Likewise.
1122         (c_parser_gimple_unary_expression): Likewise.
1124 2018-06-15  Jakub Jelinek  <jakub@redhat.com>
1126         PR c/86093
1127         * c-typeck.c (pointer_diff): Cast both pointers to unqualified types
1128         before doing POINTER_DIFF_EXPR.
1130 2018-06-07  Marek Polacek  <polacek@redhat.com>
1132         PR c/85318
1133         * c-decl.c (check_for_loop_decls): Add -Wc90-c99-compat warning about
1134         for loop initial declarations.
1136 2018-05-30  David Pagan  <dave.pagan@oracle.com>
1138         PR c/55976
1139         * c-decl.c (grokdeclarator): Update check for return type warnings.
1140         (start_function): Likewise.
1141         (finish_function): Likewise.
1142         * c-typeck.c (c_finish_return): Update check for return type warnings.
1143         Pass OPT_Wreturn_type to pedwarn when appropriate.
1145 2018-05-18  Richard Sandiford  <richard.sandiford@linaro.org>
1147         * gimple-parser.c (c_parser_gimple_postfix_expression): Remove
1148         __FMA_EXPR handlng.
1150 2018-05-17  Richard Sandiford  <richard.sandiford@linaro.org>
1152         * gimple-parser.c: Include internal-fn.h.
1153         (c_parser_gimple_statement): Treat a leading CPP_DOT as a call.
1154         (c_parser_gimple_call_internal): New function.
1155         (c_parser_gimple_postfix_expression): Use it to handle CPP_DOT.
1156         Fix typos in comment.
1158 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
1160         PR c++/85662
1161         * c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than
1162         fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the
1163         fold_convert_loc.
1164         * c-typeck.c (build_unary_op): Use fold_offsetof rather than
1165         fold_offsetof_1, pass argtype as TYPE to it and drop the
1166         fold_convert_loc.
1168 2018-05-02  David Pagan  <dave.pagan@oracle.com>
1170         PR c/30552
1171         * c-decl.c (old_style_parameter_scope): New function.
1172         * c-parser.c (c_parser_postfix_expression): Check for statement
1173         expressions in old-style function parameter list declarations.
1174         * c-parser.h (old_style_parameter_scope): New extern declaration.
1176 2018-04-25  Jakub Jelinek  <jakub@redhat.com>
1178         PR sanitizer/84307
1179         * c-decl.c (build_compound_literal): Call pushdecl (decl) even when
1180         it is not TREE_STATIC.
1181         * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark
1182         not just the COMPOUND_LITERAL_EXPR node itself addressable, but also
1183         its COMPOUND_LITERAL_EXPR_DECL.
1185 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
1187         * c-parser.c (c_parser_postfix_expression): For __builtin_tgmath
1188         where all functions return the same _FloatN or _FloatNx type,
1189         treat integer types as _Float64 instead of double.
1191 2018-03-21  Jakub Jelinek  <jakub@redhat.com>
1193         PR c/84999
1194         * c-typeck.c (build_binary_op): If c_common_type_for_size fails when
1195         building vector comparison, diagnose it and return error_mark_node.
1197 2018-03-15  Jakub Jelinek  <jakub@redhat.com>
1199         PR c/84853
1200         * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>:
1201         If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has
1202         INTEGER_TYPE element type.
1204 2018-03-13  David Pagan  <dave.pagan@oracle.com>
1206         PR c/46921
1207         * c-typeck.c (output_init_element): Ensure field initializer
1208         expression is always evaluated if there are side effects.
1210 2018-03-06  Jakub Jelinek  <jakub@redhat.com>
1212         PR c/84721
1213         * c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if
1214         !building_stmt_list_p ().
1216 2018-02-13  Richard Sandiford  <richard.sandiford@linaro.org>
1218         PR c/84305
1219         * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL
1220         in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR
1221         and include the BIND_EXPR in the list of things that need to be
1222         pre-evaluated.
1224 2018-02-09  Nathan Sidwell  <nathan@acm.org>
1226         PR c/84293
1227         * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location
1228         to strict_aliasing_warning.
1230 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
1232         * c-typeck.c (really_start_incremental_init, push_init_level,
1233         set_nonincremental_init, output_init_element, process_init_element):
1234         Use DECL_UNNAMED_BIT_FIELD.
1236 2018-01-31  Marek Polacek  <polacek@redhat.com>
1238         PR c/81779
1239         * c-parser.c (c_parser_compound_statement_nostart): Call
1240         expansion_point_location_if_in_system_header.
1242 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
1244         PR c++/83814
1245         * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just
1246         the C part.
1248 2018-01-13  Jakub Jelinek  <jakub@redhat.com>
1250         PR c/83801
1251         * c-tree.h (decl_constant_value_1): Add a bool argument.
1252         * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow
1253         returning a CONSTRUCTOR if it is true.  Use error_operand_p.
1254         (decl_constant_value): Adjust caller.
1255         * c-fold.c (c_fully_fold_internal): If in_init, pass true to
1256         decl_constant_value_1 as IN_INIT.  Otherwise, punt if
1257         decl_constant_value returns initializer that has BLKmode or
1258         array type.
1259         (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval.
1261 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
1262             Alan Hayward  <alan.hayward@arm.com>
1263             David Sherwood  <david.sherwood@arm.com>
1265         * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial
1266         TYPE_VECTOR_SUBPARTS.
1268 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
1270         Update copyright years.
1272 2018-01-01  Jakub Jelinek  <jakub@redhat.com>
1274         PR c/83595
1275         * c-parser.c (c_parser_braced_init, c_parser_initelt,
1276         c_parser_conditional_expression, c_parser_cast_expression,
1277         c_parser_sizeof_expression, c_parser_alignof_expression,
1278         c_parser_postfix_expression, c_parser_omp_declare_reduction,
1279         c_parser_transaction_expression): Use set_error () method instead
1280         of setting value member to error_mark_node.
1282 2017-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1284         * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N>
1285         and _Float<N>X built-in functions.
1287 2017-12-22  Jakub Jelinek  <jakub@redhat.com>
1289         PR debug/83550
1290         * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on
1291         TYPE_STUB_DECL and call rest_of_type_compilation before processing
1292         incomplete vars rather than after it.
1294         PR debug/83547
1295         * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as
1296         indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first,
1297         and consider empty ones if there are no other stmts.  For
1298         -Wunused-value walk all statements before the one only followed by
1299         DEBUG_BEGIN_STMTs.
1301 2017-12-22  Mike Stump  <mikestump@comcast.net>
1302             Eric Botcazou  <ebotcazou@adacore.com>
1304         * c-parser.c (c_parser_while_statement): Add unroll parameter and
1305         build ANNOTATE_EXPR if present.  Add 3rd operand to ANNOTATE_EXPR.
1306         (c_parser_do_statement): Likewise.
1307         (c_parser_for_statement): Likewise.
1308         (c_parser_statement_after_labels): Adjust calls to above.
1309         (c_parse_pragma_ivdep): New static function.
1310         (c_parser_pragma_unroll): Likewise.
1311         (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll.
1312         <PRAGMA_UNROLL>: New case.
1314 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
1316         * c-typeck.c (comptypes_internal, function_types_compatible_p,
1317         perform_integral_promotions, digest_init): Replace Yoda conditions
1318         with typical order conditions.
1319         * c-decl.c (check_bitfield_type_and_width): Likewise.
1321 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1323         * c-typeck.c (c_safe_arg_type_equiv_p,
1324         c_safe_function_type_cast_p): New function.
1325         (build_c_cast): Implement -Wcast-function-type.
1327 2017-12-14  Richard Biener  <rguenther@suse.de>
1329         PR c/83415
1330         * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR
1331         like REALPART_EXPR for the behavior of whether its operand
1332         is an lvalue.
1334 2017-12-12  Marek Polacek  <polacek@redhat.com>
1336         PR c/82679
1337         * c-decl.c (grokdeclarator): Check declspecs insted of atomicp.
1339 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
1341         * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true.
1342         * c-parser.c (add_debug_begin_stmt): New.
1343         (c_parser_declaration_or_fndef): Call it.
1344         (c_parser_compound_statement_nostart): Likewise.
1345         (c_parser_statement_after_labels): Likewise.
1346         * c-typeck (c_finish_stmt_expr): Skip begin stmts markers.
1348 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
1350         * c-decl.c (build_compound_literal): Add parameter alignas_align
1351         and set alignment of decl if nonzero.
1352         * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS.
1353         (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a
1354         qualifier.
1355         (c_parser_struct_declaration): Update syntax comment.
1356         (c_parser_type_name): Add alignas_ok argument and pass it to
1357         c_parser_declspecs.
1358         (c_parser_cast_expression): Pass true to c_parser_type_name and
1359         give error if a cast used an _Alignas specifier.
1360         (c_parser_sizeof_expression): Pass true to c_parser_type_name and
1361         give error if sizeof (type-name) used an _Alignas specifier.
1362         (c_parser_alignof_expression): Pass true to c_parser_type_name and
1363         give error if _Alignof (type-name) used an _Alignas specifier.
1364         (c_parser_postfix_expression_after_paren_type): Check specified
1365         alignment for a compound literal and pass it to
1366         build_compound_literal.
1367         * c-parser.h (c_parser_type_name): Update prototype.
1368         * c-tree.h (build_compound_literal): Update prototype.
1370 2017-12-07  Martin Sebor  <msebor@redhat.com>
1372         PR c/81544
1373         * c-decl.c (c_decl_attributes): Look up existing declaration and
1374         pass it to decl_attributes.
1376 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1378         PR c/83236
1379         * c-decl.c (lookup_name_fuzzy): Don't suggest names that are
1380         reserved for use by the implementation.
1382 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1384         * c-decl.c: Include "c-family/c-spellcheck.h".
1386 2017-12-05  Martin Liska  <mliska@suse.cz>
1387             Jakub Jelinek  <jakub@redhat.com>
1389         * c-typeck.c (pointer_diff): Add new argument and instrument
1390         pointer subtraction.
1391         (build_binary_op): Similar for pointer comparison.
1393 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
1395         PR c/79153
1396         * c-parser.c: Include tree-iterator.h.
1397         (c_parser_switch_statement): Emit LABEL_EXPR for the break label
1398         into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P
1399         on it.
1401         PR c/83222
1402         * c-tree.h (decl_constant_value_1): Declare.
1403         * c-typeck.c (decl_constant_value_1): New function.
1404         (decl_constant_value): Use it.
1405         * c-fold.c (c_fully_fold_internal): If in_init, use
1406         decl_constant_value_1 instead of decl_constant_value.
1408 2017-11-30  Jakub Jelinek  <jakub@redhat.com>
1410         * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;.
1412 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
1414         PR sanitizer/81275
1415         * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if
1416         c_switch_covers_all_cases_p returns true.
1418 2017-11-28  Julia Koval  <julia.koval@intel.com>
1419             Sebastian Peryt  <sebastian.peryt@intel.com>
1421         * Make-lang.in (c/c-array-notation.o): Remove.
1422         * c-array-notation.c: Delete.
1423         * c-decl.c: Remove cilkplus condition.
1424         * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for,
1425         c_parser_cilk_verify_simd, c_parser_array_notation,
1426         c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize,
1427         c_parser_cilk_simd_fn_vector_attrs,
1428         c_finish_cilk_simd_fn_tokens): Delete.
1429         (c_parser_declaration_or_fndef): Remove cilkplus condition.
1430         (c_parser_direct_declarator_inner): Ditto.
1431         (CILK_SIMD_FN_CLAUSE_MASK): Delete.
1432         (c_parser_attributes, c_parser_compound_statement,
1433         c_parser_statement_after_labels, c_parser_if_statement,
1434         c_parser_switch_statement, c_parser_while_statement,
1435         c_parser_do_statement, c_parser_for_statement,
1436         c_parser_unary_expression, c_parser_postfix_expression,
1437         c_parser_postfix_expression_after_primary,
1438         c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses,
1439         c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus
1440         support.
1441         * c-typeck.c (build_array_ref, build_function_call_vec,
1442         convert_arguments,
1443         lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt,
1444         c_finish_loop, build_binary_op): Remove cilkplus support.
1446 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
1448         * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead
1449         of build3.
1451 2017-11-14  Boris Kolpackov  <boris@codesynthesis.com>
1453         * Make-lang.in (c.install-plugin): Install backend import library.
1455 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
1457         * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in
1458         pragma_stmt context.
1460 2017-11-23  Mike Stump  <mikestump@comcast.net>
1461             Eric Botcazou  <ebotcazou@adacore.com>
1463         * c-parser.c (c_parser_while_statement): Pass 3rd operand to
1464         ANNOTATE_EXPR.
1465         (c_parser_do_statement): Likewise.
1466         (c_parser_for_statement): Likewise.
1468 2017-11-22  David Malcolm  <dmalcolm@redhat.com>
1470         PR c++/62170
1471         * c-objc-common.c (c_tree_printer): Convert penultimate param from
1472         bool to bool *.  Within '%T' handling, if showing an "aka", use
1473         "quoted" param to add appropriate quoting.
1475 2017-11-22  Marek Polacek  <polacek@redhat.com>
1477         PR c++/60336
1478         PR middle-end/67239
1479         PR target/68355
1480         * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields.
1482 2017-11-21  David Malcolm  <dmalcolm@redhat.com>
1484         PR c/83056
1485         * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from
1486         earlier failed lookups.
1488 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
1490         * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR.
1491         * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR.
1493 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1495         PR c/81404
1496         * c-decl.c: Include "c-family/known-headers.h".
1497         (get_c_name_hint): Rename to get_stdlib_header_for_name and move
1498         to known-headers.cc.
1499         (class suggest_missing_header): Move to known-header.h.
1500         (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather
1501         than get_c_name_hint.
1503 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1505         * c-decl.c (get_c_name_hint): New function.
1506         (class suggest_missing_header): New class.
1507         (lookup_name_fuzzy): Call get_c_name_hint and use it to
1508         suggest missing headers to the user.
1510 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1512         * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h.
1513         Include "c-family/name-hint.h"
1514         (implicit_decl_warning): Convert "hint" from
1515         const char * to name_hint.  Pass location to
1516         lookup_name_fuzzy.  Suppress any deferred diagnostic if the
1517         warning was not printed.
1518         (undeclared_variable): Likewise for "guessed_id".
1519         (lookup_name_fuzzy): Convert return type from const char *
1520         to name_hint.  Add location_t param.
1521         * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h.
1522         Include "c-family/name-hint.h"
1523         (c_parser_declaration_or_fndef): Convert "hint" from
1524         const char * to name_hint.  Pass location to lookup_name_fuzzy.
1525         (c_parser_parameter_declaration): Likewise.
1527 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
1529         PR c/66618
1530         PR c/69960
1531         * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold
1532         where needed.
1533         * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr,
1534         handle_omp_array_sections): Likewise.
1535         (digest_init): Don't call decl_constant_value_for_optimization.
1536         * c-tree.h (decl_constant_value_for_optimization): Removed.
1537         * c-fold.c (c_fold_array_ref): New function.
1538         (c_fully_fold_internal): Add LVAL argument, propagate it through
1539         recursive calls.  For VAR_P call decl_constant_value and
1540         unshare if not LVAL and either optimizing or IN_INIT.  Remove
1541         decl_constant_value_for_optimization calls.  If IN_INIT and not LVAL,
1542         fold ARRAY_REF with STRING_CST and INTEGER_CST operands.
1543         (c_fully_fold): Add LVAL argument, pass it through to
1544         c_fully_fold_internal.
1545         (decl_constant_value_for_optimization): Removed.
1547 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
1549         PR c/81156
1550         * c-parser.c (check_tgmath_function): New function.
1551         (enum tgmath_parm_kind): New enum.
1552         (c_parser_postfix_expression): Handle __builtin_tgmath.
1554 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
1556         * c-decl.c (implicit_decl_warning): Update for renaming of
1557         pedwarn_at_rich_loc and warning_at_rich_loc.
1558         (implicitly_declare): Likewise for renaming of inform_at_rich_loc.
1559         (undeclared_variable): Likewise for renaming of error_at_rich_loc.
1560         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
1561         (c_parser_struct_or_union_specifier): Likewise for renaming of
1562         pedwarn_at_rich_loc.
1563         (c_parser_parameter_declaration): Likewise for renaming of
1564         error_at_rich_loc.
1565         * c-typeck.c (build_component_ref): Likewise.
1566         (build_unary_op): Likewise for renaming of inform_at_rich_loc.
1567         (pop_init_level): Likewise for renaming of warning_at_rich_loc.
1568         (set_init_label): Likewise for renaming of error_at_rich_loc.
1570 2017-10-30  Richard Biener  <rguenther@suse.de>
1572         * gimple-parser.c (c_parser_gimple_statement): Parse conditional
1573         stmts.
1575 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
1577         * c-decl.c (header_for_builtin_fn): Add support for copysign, fma,
1578         fmax, fmin, and sqrt _Float<N> and _Float<N>X variants.
1580 2017-10-25  David Malcolm  <dmalcolm@redhat.com>
1582         PR c/7356
1583         * c-parser.c (c_parser_declaration_or_fndef): Detect missing
1584         semicolons.
1586 2017-10-25  Jakub Jelinek  <jakub@redhat.com>
1588         PR libstdc++/81706
1589         * c-decl.c (merge_decls): Copy "omp declare simd" attributes from
1590         newdecl to corresponding __builtin_ if any.
1592 2017-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
1594         PR c++/82466
1595         * c-decl.c (diagnose_mismatched_decls): Use
1596         OPT_Wbuiltin_declaration_mismatch.
1598 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
1600         * c-parser.c (c_parser_require): Add "type_is_unique" param and
1601         use it to guard calls to maybe_suggest_missing_token_insertion.
1602         (c_parser_parms_list_declarator): Override default value of new
1603         "type_is_unique" param to c_parser_require.
1604         (c_parser_asm_statement): Likewise.
1605         * c-parser.h (c_parser_require): Add "type_is_unique" param,
1606         defaulting to true.
1608 2017-10-11  Nathan Sidwell  <nathan@acm.org>
1610         * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too.
1612 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1614         * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when
1615         operating on trees as wide_ints.
1616         * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise.
1617         (c_tree_equal): Likewise.
1619 2017-10-04  David Malcolm  <dmalcolm@redhat.com>
1621         * c-decl.c (push_parm_decl): Store c_parm's location into the
1622         PARAM_DECL.
1623         (build_c_parm): Add "loc" param and store it within the c_parm.
1624         * c-parser.c (struct c_parser): Add "last_token_location" field.
1625         (c_parser_consume_token): Store location of the token into the
1626         new field.
1627         (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS
1628         when handling a FUNCTION_DECL, if it doesn't already have them.
1629         (c_parser_parameter_declaration): Generate a location for the
1630         parameter, and pass it to the call to build_c_parm.
1631         * c-tree.h (struct c_parm): Add field "loc".
1632         (build_c_parm): Add location_t param.
1633         * c-typeck.c (get_fndecl_argument_location): New function.
1634         (inform_for_arg): New function.
1635         (convert_for_assignment): Use inform_for_arg when dealing with
1636         ic_argpass.
1638 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
1640         * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if
1641         width is non-NULL.
1642         (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL,
1643         don't SET_DECL_C_BIT_FIELD here.
1645         PR c/82340
1646         * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
1647         instead of trying to set just TREE_READONLY manually.
1649 2017-09-16  Tom de Vries  <tom@codesourcery.com>
1651         PR c/81875
1652         * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
1653         cond itself.
1655 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
1657         PR c/82071
1658         * c-typeck.c (ep_convert_and_check): Just call convert_and_check
1659         for C11.
1660         (build_conditional_expr): For C11, generate result with excess
1661         precision when one argument is an integer and the other is of a
1662         type using excess precision.
1664 2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1666         * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.
1668 2017-09-13  Marek Polacek  <polacek@redhat.com>
1670         PR c/82167
1671         * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
1672         than expr.original_type.
1674 2017-09-12  Nathan Sidwell  <nathan@acm.org>
1676         * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
1677         resort_sorted_fields): Moved from c-family/c-common.c.
1678         * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h.
1680 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
1682         PR c/82071
1683         * c-typeck.c (build_atomic_assign): Handle argument with excess
1684         precision.  Ensure any EXCESS_PRECISION_EXPR is present in
1685         argument passed to build_binary_op and convert_for_assignment but
1686         not for call to c_fully_fold.
1687         (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early.
1688         Ensure build_binary_op is called with argument with original
1689         semantic type.  Avoid calling c_fully_fold with an
1690         EXCESS_PRECISION_EXPR from build_binary_op.
1692 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
1694         PR c/81887
1695         * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
1697 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1698             Alan Hayward  <alan.hayward@arm.com>
1699             David Sherwood  <david.sherwood@arm.com>
1701         * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE.
1702         (c_common_type): Likewise.  Use as_a <scalar_mode> when setting
1703         m1 and m2 to the signed equivalent of a fixed-point
1704         SCALAR_TYPE_MODE.
1706 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
1708         * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather
1709         than CAN_HAVE_LOCATION_P when determining whether to use the
1710         location_t value within "value".
1712 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
1714         * c-parser.c (c_parser_expr_list): Use c_expr::get_location ()
1715         rather than peeking the location of the first token.
1716         * c-tree.h (c_expr::get_location): New method.
1718 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
1720         * c-typeck.c (build_function_call_vec): Pass arg_loc to call
1721         to check_function_arguments.
1723 2017-08-18  Marek Polacek  <polacek@redhat.com>
1725         * c-parser.c (c_parser_postfix_expression): Remove unused code.  Update
1726         commentary.
1728 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1730         PR c/53037
1731         * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
1732         (check_bitfield_type_and_width): Don't allow bit-field with
1733         warn_if_not_aligned type.
1735 2017-08-14  Martin Sebor  <msebor@redhat.com>
1737         PR c/81117
1738         * c-objc-common.c (c_objc_common_init): Handle 'G'.
1740 2017-08-11  Marek Polacek  <polacek@redhat.com>
1742         PR c/81795
1743         * c-decl.c (pushtag): Only print inform if the warning was printed.
1744         (grokdeclarator): Likewise.
1746 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
1748         * c-parser.c (c_parser_error): Rename to...
1749         (c_parser_error_richloc): ...this, making static, and adding
1750         "richloc" parameter, passing it to the c_parse_error call,
1751         rather than calling c_parser_set_source_position_from_token.
1752         (c_parser_error): Reintroduce, reimplementing in terms of the
1753         above, converting return type from void to bool.
1754         (class token_pair): New class.
1755         (struct matching_paren_traits): New struct.
1756         (matching_parens): New typedef.
1757         (struct matching_brace_traits): New struct.
1758         (matching_braces): New typedef.
1759         (get_matching_symbol): New function.
1760         (c_parser_require): Add param MATCHING_LOCATION, using it to
1761         highlight matching "opening" tokens for missing "closing" tokens.
1762         (c_parser_skip_until_found): Likewise.
1763         (c_parser_static_assert_declaration_no_semi): Convert explicit
1764         parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
1765         class matching_parens, so that the pertinent open parenthesis is
1766         highlighted when there are problems locating the close
1767         parenthesis.
1768         (c_parser_struct_or_union_specifier): Likewise.
1769         (c_parser_typeof_specifier): Likewise.
1770         (c_parser_alignas_specifier): Likewise.
1771         (c_parser_simple_asm_expr): Likewise.
1772         (c_parser_braced_init): Likewise, for matching_braces.
1773         (c_parser_paren_condition): Likewise, for matching_parens.
1774         (c_parser_switch_statement): Likewise.
1775         (c_parser_for_statement): Likewise.
1776         (c_parser_asm_statement): Likewise.
1777         (c_parser_asm_operands): Likewise.
1778         (c_parser_cast_expression): Likewise.
1779         (c_parser_sizeof_expression): Likewise.
1780         (c_parser_alignof_expression): Likewise.
1781         (c_parser_generic_selection): Likewise.
1782         (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
1783         RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
1784         RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
1785         In case CPP_OPEN_PAREN, pass loc_open_paren to the
1786         c_parser_skip_until_found call.
1787         (c_parser_objc_class_definition): Use class matching_parens as
1788         above.
1789         (c_parser_objc_method_decl): Likewise.
1790         (c_parser_objc_try_catch_finally_statement): Likewise.
1791         (c_parser_objc_synchronized_statement): Likewise.
1792         (c_parser_objc_at_property_declaration): Likewise.
1793         (c_parser_oacc_wait_list): Likewise.
1794         (c_parser_omp_var_list_parens): Likewise.
1795         (c_parser_omp_clause_collapse): Likewise.
1796         (c_parser_omp_clause_default): Likewise.
1797         (c_parser_omp_clause_if): Likewise.
1798         (c_parser_omp_clause_num_threads): Likewise.
1799         (c_parser_omp_clause_num_tasks): Likewise.
1800         (c_parser_omp_clause_grainsize): Likewise.
1801         (c_parser_omp_clause_priority): Likewise.
1802         (c_parser_omp_clause_hint): Likewise.
1803         (c_parser_omp_clause_defaultmap): Likewise.
1804         (c_parser_oacc_single_int_clause): Likewise.
1805         (c_parser_omp_clause_ordered): Likewise.
1806         (c_parser_omp_clause_reduction): Likewise.
1807         (c_parser_omp_clause_schedule): Likewise.
1808         (c_parser_omp_clause_num_teams): Likewise.
1809         (c_parser_omp_clause_thread_limit): Likewise.
1810         (c_parser_omp_clause_aligned): Likewise.
1811         (c_parser_omp_clause_linear): Likewise.
1812         (c_parser_omp_clause_safelen): Likewise.
1813         (c_parser_omp_clause_simdlen): Likewise.
1814         (c_parser_omp_clause_depend): Likewise.
1815         (c_parser_omp_clause_map): Likewise.
1816         (c_parser_omp_clause_device): Likewise.
1817         (c_parser_omp_clause_dist_schedule): Likewise.
1818         (c_parser_omp_clause_proc_bind): Likewise.
1819         (c_parser_omp_clause_uniform): Likewise.
1820         (c_parser_omp_for_loop): Likewise.
1821         (c_parser_cilk_clause_vectorlength): Likewise.
1822         (c_parser_cilk_clause_linear): Likewise.
1823         (c_parser_transaction_expression): Likewise.
1824         * c-parser.h (c_parser_require): Add param matching_location with
1825         default UNKNOWN_LOCATION.
1826         (c_parser_error): Convert return type from void to bool.
1827         (c_parser_skip_until_found): Add param matching_location with
1828         default UNKNOWN_LOCATION.
1830 2017-08-09  Marek Polacek  <polacek@redhat.com>
1832         * c-decl.c (build_enumerator): Use true/false instead of 1/0.
1833         * c-tree.h (build_external_ref): Update declaration.
1834         * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
1835         (build_external_ref): Change the type of a parameter to bool.
1836         (parser_build_binary_op): Use true/false instead of 1/0.
1837         (pointer_diff): Likewise.
1838         (build_modify_expr): Likewise.
1839         (set_designator): Change the type of a parameter to bool.
1840         (set_init_index): Use true/false instead of 1/0.
1841         (set_init_label): Likewise.
1842         (output_init_element): Change the type of a parameter to bool.
1843         (output_pending_init_elements): Use true/false instead of 1/0.
1844         (process_init_element): Likewise.
1845         (build_binary_op): Change the type of a parameter to bool.
1847 2017-08-09  Marek Polacek  <polacek@redhat.com>
1849         PR c/81233
1850         * c-typeck.c (pedwarn_init): Make the function take a variable list.
1851         Call emit_diagnostic_valist instead of pedwarn.
1852         (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
1853         Print the relevant types in diagnostics.
1855 2017-08-09  Marek Polacek  <polacek@redhat.com>
1857         PR c/81417
1858         * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
1859         build_conditional_expr.
1860         * c-parser.c (c_parser_conditional_expression): Create locations for
1861         EXP1 and EXP2 from their source ranges.  Pass the locations down to
1862         build_conditional_expr.
1863         * c-tree.h (build_conditional_expr): Update declaration.
1864         * c-typeck.c (build_conditional_expr): Add location_t parameters.
1865         For -Wsign-compare, also print the types.
1867 2017-08-08  Martin Liska  <mliska@suse.cz>
1869         * c-convert.c: Include header files.
1870         * c-typeck.c: Likewise.
1872 2017-08-07  Martin Liska  <mliska@suse.cz>
1874         * c-parser.c (c_parser_attributes): Canonicalize name of an
1875         attribute.
1877 2017-08-02  Marek Polacek  <polacek@redhat.com>
1879         PR c/81289
1880         * c-parser.c (c_parser_unary_expression): Use set_error.
1882         PR c/81448
1883         PR c/81306
1884         * c-warn.c (warn_for_multistatement_macros): Prevent bogus
1885         warnings.  Avoid walking MACRO_MAP_LOCATIONS.
1887 2017-07-31  Jan Hubicka  <hubicka@ucw.cz>
1888             Martin Liska  <mliska@suse.cz>
1890         * c-typeck.c (c_finish_goto_label): Build gimple predict
1891         statement.
1893 2017-07-31  Martin Liska  <mliska@suse.cz>
1895         PR sanitize/81530
1896         * c-convert.c (convert): Guard condition with flag_sanitize_p
1897         also with current_function_decl non-null equality.
1898         * c-decl.c (grokdeclarator): Likewise.
1899         * c-typeck.c (build_binary_op): Likewise.
1901 2017-07-25  Marek Polacek  <polacek@redhat.com>
1903         * c-decl.c (grokfield): Remove local variable.
1905 2017-07-25  Marek Polacek  <polacek@redhat.com>
1907         PR c/81364
1908         * c-parser.c (c_parser_else_body): Don't warn about multistatement
1909         macro expansion if the body is in { }.
1910         (c_parser_while_statement): Likewise.
1911         (c_parser_for_statement): Likewise.
1913 2017-07-18  Nathan Sidwell  <nathan@acm.org>
1915         * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
1917 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
1919         * c-decl.c (implicitly_declare): When suggesting a missing
1920         #include, provide a fix-it hint.
1922 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
1924         * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
1925         and call that instead.
1926         * c-tree.h (selftest::run_c_tests): New decl.
1928 2017-06-26  Marek Polacek  <polacek@redhat.com>
1930         PR c/80116
1931         * c-parser.c (c_parser_if_body): Set the location of the
1932         body of the conditional after parsing all the labels.  Call
1933         warn_for_multistatement_macros.
1934         (c_parser_else_body): Likewise.
1935         (c_parser_switch_statement): Likewise.
1936         (c_parser_while_statement): Likewise.
1937         (c_parser_for_statement): Likewise.
1938         (c_parser_statement): Add a default argument.  Save the location
1939         after labels have been parsed.
1940         (c_parser_c99_block_statement): Likewise.
1942 2017-06-19  Richard Biener  <rguenther@suse.de>
1944         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
1945         negated _Literals to parse _Literal (int) -1.
1947 2017-06-13  Martin Liska  <mliska@suse.cz>
1949         PR sanitize/78204
1950         * c-convert.c (convert): Use sanitize_flags_p.
1951         * c-decl.c (grokdeclarator): Likewise.
1952         * c-typeck.c (convert_for_assignment): Likewise.
1953         (c_finish_return): Likewise.
1954         (build_binary_op): Likewise.
1956 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
1958         PR c/81006
1959         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
1960         to sizetype before size_binop.
1962 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
1964         * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
1965         of TDI_generic.
1967 2017-06-06  Marek Polacek  <polacek@redhat.com>
1969         PR c/79983
1970         * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
1971         ref.
1972         (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
1974 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1976         * c-parser.c (c_parser_binary_expression): Implement the
1977         -Wsizeof_pointer_div warning.
1978         (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
1979         from a parenthesized expression.
1980         (c_parser_expr_list): Use c_last_sizeof_loc.
1981         * c-tree.h (c_last_sizeof_loc): New external.
1982         * c-typeck.c (c_last_sizeof_loc): New variable.
1983         (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
1985 2017-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
1987         PR testsuite/80580
1988         * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
1990 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
1992         * c-objc-common.c (c_tree_printer): Gain bool and const char **
1993         parameters.
1995 2017-05-24  Martin Sebor  <msebor@redhat.com>
1997         PR c/80731
1998         * c-fold.c (c_fully_fold_internal): Adjust.
1999         * c-typeck.c (parser_build_unary_op): Adjust.
2001 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
2003         * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
2004         "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
2005         "VECTOR_LENGTH".
2007 2017-05-23  Marek Polacek  <polacek@redhat.com>
2009         * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
2010         quotes.
2012 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
2014         * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
2015         result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
2016         it returned invariant.  Call tree_invariant_p unconditionally
2017         afterwards to decide whether to return expr or op0.
2019 2017-05-22  Nathan Sidwell  <nathan@acm.org>
2021         * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
2023 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
2025         * c-parser.c (c_parser_omp_clause_default): Handle
2026         "OMP_CLAUSE_DEFAULT_PRESENT".
2028 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2030         * config-lang.in (gtfiles): Add c-family/c-format.c.
2032 2017-05-18  Nathan Sidwell  <nathan@acm.org>
2034         * c-decl.c (pushdecl_top_level): Delete unused function.
2036 2017-05-18  Marek Polacek  <polacek@redhat.com>
2038         * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
2039         (check_earlier_gotos): Likewise.
2040         (define_label): Likewise.
2041         (pending_xref_error): Likewise.
2042         (smallest_type_quals_location): Likewise.
2043         (grokdeclarator): Likewise.
2044         (grokparms): Likewise.
2045         (identifier_global_value): Likewise.
2046         * c-typeck.c (set_nonincremental_init_from_string): Likewise.
2047         (find_init_member): Likewise.
2049 2017-05-18  Marek Polacek  <polacek@redhat.com>
2051         * c-decl.c (start_decl): Use false/true instead of 0/1.
2052         (grokdeclarator): Likewise.
2053         (finish_struct): Likewise.
2054         (start_function): Change the return type to bool.  Use false/true
2055         instead of 0/1.
2056         (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
2057         * c-tree.h (start_function): Update.
2058         * c-typeck.c (same_translation_unit_p): Change the return type to bool.
2059         (set_designator): Change the return type to bool.  Use false/true
2060         instead of 0/1.
2062 2017-05-17  Marek Polacek  <polacek@redhat.com>
2064         * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
2065         * c-typeck.c: Likewise.
2067 2017-05-17  Marek Polacek  <polacek@redhat.com>
2069         PR sanitizer/80659
2070         * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
2071         DECL_IGNORED_P even for non-static compound literals.
2073 2017-05-17  Martin Liska  <mliska@suse.cz>
2075         * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
2076         use it instead of int type.
2078 2017-05-17  Marek Polacek  <polacek@redhat.com>
2080         * c-convert.c (convert): Replace c_save_expr with save_expr.  Don't
2081         call c_fully_fold.
2082         (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
2083         * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr.
2084         * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
2085         * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
2086         save_expr.
2087         (c_parser_conditional_expression): Likewise.
2088         * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
2089         * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
2090         (process_init_element): Likewise.
2091         (build_binary_op): Likewise.
2092         (handle_omp_array_sections_1): Likewise.
2094 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2096         * c-parser.c (c_parser_omp_clause_num_gangs)
2097         (c_parser_omp_clause_num_workers)
2098         (c_parser_omp_clause_vector_length): Merge functions into...
2099         (c_parser_oacc_single_int_clause): ... this new function.  Adjust
2100         all users.
2102 2017-05-11  Nathan Sidwell  <nathan@acm.org>
2104         * gimple-parser.c: Don't #include tree-dump.h.
2106 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2108         PR testsuite/80580
2109         * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
2111 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2113         PR testsuite/80580
2114         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
2115         incorrect __MEM syntax.
2117 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2119         PR testsuite/80580
2120         * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
2121         type of unary '*'.
2123 2017-05-09  Nathan Sidwell  <nathan@acm.org>
2125         * c-tree.h (pushdecl): Declare.
2127 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2129         * c-decl.c (warn_defaults_to): Replace report_diagnostic
2130         with diagnostic_report_diagnostic.
2131         * c-errors.c (pedwarn_c99): Likewise.
2132         (pedwarn_c90): Likewise.
2134 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2136         PR c++/80038
2137         * c-gimplify.c (c_gimplify_expr): Remove calls to
2138         cilk_gimplifY_call_params_in_spawned_fn.
2140 2017-04-25  David Malcolm  <dmalcolm@redhat.com>
2142         * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
2143         hint for removing extra semicolon.
2145 2017-04-21  Jakub Jelinek  <jakub@redhat.com>
2147         PR c/80468
2148         * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
2149         enabled, set specs->type to integer_type_node.
2151 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
2153         * c-array-notation.c: Fix typo in comment.
2155 2017-03-29  Marek Polacek  <polacek@redhat.com>
2157         PR c/79730
2158         * c-decl.c (finish_decl): Check VAR_P.
2160 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
2162         PR middle-end/80162
2163         * c-tree.h (c_mark_addressable): Add array_ref_p argument.
2164         * c-typeck.c (c_mark_addressable): Likewise.  Look through
2165         VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
2166         to ARRAY_TYPE.
2167         (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
2169 2017-03-23  Marek Polacek  <polacek@redhat.com>
2171         * c-tree.h: Remove a C_RID_YYCODE reference.
2173 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
2175         PR c/80097
2176         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
2177         optional COMPOUND_EXPR with ubsan instrumentation.
2179 2017-03-17  Marek Polacek  <polacek@redhat.com>
2181         * c-parser.c: Add C11 references.
2183 2017-03-15  Marek Polacek  <polacek@redhat.com>
2185         * c-parser.c (c_parser_enum_specifier): Remove redundant line.
2187 2017-03-11  Marek Polacek  <polacek@redhat.com>
2189         * c-decl.c (implicit_decl_warning): Add a comment.  Fix formatting.
2191 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2193         PR translation/79848
2194         * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
2195         "%qs".
2196         * c-parser.c (c_parser_oacc_shape_clause): Likewise.
2198 2017-03-09  Marek Polacek  <polacek@redhat.com>
2200         PR sanitizer/79757
2201         * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
2202         parameter declarations with initializers.
2204 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
2206         PR c/79969
2207         * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
2208         TYPE_STUB_DECL.
2210 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
2212         PR c/79834
2213         * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
2214         for "may only be used in compound statements" diagnostics, change it
2215         such that the same translatable string is used for all pragmas.  For
2216         PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
2217         diagnostics.
2218         (c_parser_omp_cancellation_point, c_parser_omp_target_update,
2219         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
2220         "may only be used in compound statements" diagnostics, such that the
2221         same translatable string is used for all pragmas.
2223 2017-03-04  Marek Polacek  <polacek@redhat.com>
2225         PR c/79847
2226         * c-decl.c (implicit_decl_warning): Add missing space.
2228 2017-03-03  Marek Polacek  <polacek@redhat.com>
2230         PR c/79758
2231         * c-decl.c (store_parm_decls_oldstyle): Check if the element of
2232         current_function_prototype_arg_types is error_mark_node.  Fix
2233         formatting.  Use TREE_VALUE instead of TREE_TYPE.
2235 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2237         PR c/79837
2238         * c-parser.c (c_parser_omp_clause_reduction): Don't mention
2239         %<min%> or %<max%> in the diagnostics, instead mention identifier.
2240         (c_parser_omp_declare_reduction): Don't mention %<min%> in the
2241         diagnostics.
2243         PR c/79836
2244         * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
2245         instead of %<_Generic>.
2246         (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
2247         (c_parser_omp_target_exit_data): Use %<release%> instead of
2248         %<release>.
2250 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2252         * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
2253         instead of just cond ? "..." : "...".
2254         (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
2255         for "enter"/"exit" keyword.
2256         (c_finish_oacc_routine): Don't use %s to supply portions of the
2257         message.
2259 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
2261         PR c++/79588
2262         * c-parser.c (c_parser_postfix_expression_after_primary): Don't
2263         handle -Wrestrict here.
2264         * c-typeck.c (build_function_call_vec): Adjust
2265         check_function_arguments caller.
2267 2017-02-23  Richard Biener  <rguenther@suse.de>
2269         PR c/79684
2270         * gimple-parser.c (c_parser_gimple_statement): Use set_error
2271         to initialize c_exprs to return.
2272         (c_parser_gimple_binary_expression): Likewise.
2273         (c_parser_gimple_unary_expression): Likewise.
2274         (c_parser_gimple_postfix_expression): Likewise.
2276 2017-02-22  Marek Polacek  <polacek@redhat.com>
2278         PR c/79662
2279         * c-typeck.c (convert_arguments): Handle error_mark_node.
2281 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2283         * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
2284         value of c_parser_parse_ssa_name against error_mark_node and emit
2285         error if ssa name is anonymous and written as default definition.
2287 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2289         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
2290         FMA_EXPR.
2292 2017-02-16  Jakub Jelinek  <jakub@redhat.com>
2294         PR c++/79512
2295         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
2296         ignore #pragma omp target even when not followed by identifier.
2298 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2300         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
2301         (c_parser_gimple_unary_expression): Likewise.
2303 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
2305         * c-parser.c (c_parser_oacc_declare): Add missing space in
2306         diagnostics.
2308 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2310         PR c/79478
2311         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
2312         set_c_expr_source_range when parsing ssa-name.
2314 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
2315             Richard Biener  <rguenther@suse.de>
2317         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
2318         building IL when arguments are error_mark_node.
2319         (c_parser_gimple_unary_expression): Likewise.
2320         (c_parser_gimple_if_stmt): Likewise.
2321         (c_parser_gimple_switch_stmt): Likewise.
2322         (c_parser_gimple_return_stmt): Likewise.
2323         (c_parser_parse_ssa_name): When name lookup fails do not build
2324         an SSA name.  Use undeclared rather than not declared in error
2325         reporting.
2327 2017-02-09  Marek Polacek  <polacek@redhat.com>
2329         PR c/79428
2330         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
2331         instead of c_parser_skip_until_found.
2333 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
2335         PR c/79431
2336         * c-parser.c (c_parser_omp_declare_target): Don't invoke
2337         symtab_node::get on automatic variables.
2339 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2340             Chung-Lin Tang  <cltang@codesourcery.com>
2342         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
2343         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
2344         semantic checking.
2345         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
2347 2017-02-07  Richard Biener  <rguenther@suse.de>
2349         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
2350         (c_parser_gimple_postfix_expression_after_primary):
2351         Do not use c_build_function_call_vec to avoid folding and promotion.
2352         Simplify.
2354 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
2356         PR lto/79061
2357         * c-decl.c (pop_scope): Pass main_input_filename to
2358         build_translation_unit_decl.
2360 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
2362         * c-parser.c: Include "read-rtl-function.h" and
2363         "run-rtl-passes.h".
2364         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
2365         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
2366         production.  Update for renaming of field "gimple_pass" to
2367         "gimple_or_rtl_pass".  If __RTL was seen, call
2368         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
2369         to an auto_timevar, to cope with early exit.
2370         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
2371         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
2372         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
2373         Handle RID_RTL.
2374         (c_parser_parse_rtl_body): New function.
2375         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
2376         (struct c_declspecs): Rename field "gimple_pass" to
2377         "gimple_or_rtl_pass".  Add field "rtl_p".
2378         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
2379         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
2380         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
2381         (c_parser_gimple_or_rtl_pass_list): ...this.
2383 2017-01-20  Marek Polacek  <polacek@redhat.com>
2385         PR c/64279
2386         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
2388 2017-01-13  Richard Biener  <rguenther@suse.de>
2390         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
2391         nops.
2393 2017-01-13  Richard Biener  <rguenther@suse.de>
2395         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
2396         _Literal ( type-name ) number.
2398 2017-01-12  Richard Biener  <rguenther@suse.de>
2400         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
2401         __MEM.
2403 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
2405         PR c++/72813
2406         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
2407         PCH file.
2409 2017-01-11  Richard Biener  <rguenther@suse.de>
2411         PR bootstrap/79052
2412         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
2413         returns on parse errors.
2415 2017-01-04  Marek Polacek  <polacek@redhat.com>
2417         PR c++/64767
2418         * c-parser.c (c_parser_postfix_expression): Mark zero character
2419         constants by setting original_type in c_expr.
2420         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
2421         with a zero character constant.
2422         (char_type_p): New function.
2424 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
2426         * c-parser.c (c_parser_declaration_or_fndef): Create a
2427         rich_location at init_loc and parse it to start_init.
2428         (last_init_list_comma): New global.
2429         (c_parser_braced_init): Update last_init_list_comma when parsing
2430         commas.  Pass it to pop_init_level.  Pass location of closing
2431         brace to pop_init_level.
2432         (c_parser_postfix_expression_after_paren_type): Create a
2433         rich_location at type_loc and parse it to start_init.
2434         (c_parser_omp_declare_reduction): Likewise for loc.
2435         * c-tree.h (start_init): Add rich_location * param.
2436         (pop_init_level): Add location_t param.
2437         * c-typeck.c (struct initializer_stack): Add field
2438         "missing_brace_richloc".
2439         (start_init): Add richloc param, use it to initialize
2440         the stack node's missing_brace_richloc.
2441         (last_init_list_comma): New decl.
2442         (finish_implicit_inits): Pass last_init_list_comma to
2443         pop_init_level.
2444         (push_init_level): When finding missing open braces, add fix-it
2445         hints to the richloc.
2446         (pop_init_level): Add "insert_before" param and pass it
2447         when calling pop_init_level.  Add fixits about missing
2448         close braces to any richloc.  Use the richloc for the
2449         -Wmissing-braces warning.
2450         (set_designator): Pass last_init_list_comma to pop_init_level.
2451         (process_init_element): Likewise.
2453 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2455         Update copyright years.
2457 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
2459         PR bootstrap/78817
2460         * c-typeck.c (build_function_call_vec): If check_function_arguments
2461         returns true, set TREE_NO_WARNING on CALL_EXPR.
2463         PR c/77767
2464         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
2465         to *expr instead of overwriting it.
2467 2016-12-20  Richard Biener  <rguenther@suse.de>
2469         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
2470         error recovery.
2471         (c_parser_gimple_statement): Only build assigns for non-error
2472         stmts.
2473         (c_parser_gimple_postfix_expression_after): Improve error recovery.
2475 2016-12-14  Martin Jambor  <mjambor@suse.cz>
2477         * c-parser.c: Include omp-general.h and omp-offload.h instead of
2478         omp-low.h.
2479         (c_finish_oacc_routine): Adjusted call to
2480         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
2481         to use their new names.
2482         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
2483         use its new name.
2484         (c_parser_oacc_update): Likewise.
2485         (c_parser_omp_simd): Likewise.
2486         (c_parser_omp_target_update): Likewise.
2487         * c-typeck.c: Include omp-general.h instead of omp-low.h.
2488         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
2489         name.
2490         (c_finish_omp_cancellation_point): Likewise.
2491         * gimple-parser.c: Do not include omp-low.h
2493 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
2494             James Norris  <jnorris@codesourcery.com>
2496         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
2497         EXIT_DATA,WAIT} are not used in compound statements.
2498         (c_parser_oacc_enter_exit_data): Update diagnostics.
2500 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2502         PR c++/71973
2503         * c-decl.c (diagnose_mismatched_decls): Use
2504         OPT_Wbuiltin_declaration_mismatch here too.
2506 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2507             Alan Hayward  <alan.hayward@arm.com>
2508             David Sherwood  <david.sherwood@arm.com>
2510         * c-decl.c (merge_decls): Use SET_DECL_MODE.
2511         (make_label, finish_struct): Likewise.
2513 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
2514             Richard Biener  <rguenther@suse.de>
2516         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
2517         * config-lang.in (gtfiles): Add c/c-parser.h.
2518         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
2519         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
2520         * c-parser.c (enum c_id_kind, struct c_token,
2521         c_parser_next_token_is, c_parser_next_token_is_not,
2522         c_parser_next_token_is_keyword,
2523         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
2524         Split out to ...
2525         * c-parser.h: ... new header.
2526         * c-parser.c: Include c-parser.h and gimple-parser.h.
2527         (c_parser_peek_token, c_parser_peek_2nd_token,
2528         c_token_starts_typename, c_parser_next_token_starts_declspecs,
2529         c_parser_next_tokens_start_declaration, c_parser_consume_token,
2530         c_parser_error, c_parser_require, c_parser_skip_until_found,
2531         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
2532         c_parser_type_name): Export.
2533         (c_parser_tokens_buf): New function.
2534         (c_parser_error): Likewise.
2535         (c_parser_set_error): Likewise.
2536         (c_parser_declspecs): Handle RID_GIMPLE.
2537         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
2538         via c_parser_parse_gimple_body.
2539         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
2540         c_token_starts_typename, c_parser_next_token_starts_declspecs,
2541         c_parser_next_tokens_start_declaration, c_parser_consume_token,
2542         c_parser_error, c_parser_require, c_parser_skip_until_found,
2543         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
2544         c_parser_type_name): Declare.
2545         (struct c_parser): Declare forward.
2546         (c_parser_tokens_buf): Declare.
2547         (c_parser_error): Likewise.
2548         (c_parser_set_error): Likewise.
2549         * gimple-parser.c: New file.
2550         * gimple-parser.h: Likewise.
2552 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2554         PR c/35503
2555         * c-parser.c (c_parser_postfix_expression_after_primary): Call
2556         warn_for_restrict.
2558 2016-09-11  Le-Chun Wu  <lcwu@google.com>
2559             Mark Wielaard  <mjw@redhat.com>
2561         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
2562         to the given -Wshadow= variant.
2564 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2566         * c-typeck.c: Include memmodel.h.
2568 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
2570         PR target/77957
2571         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
2572         instead of lhd_return_null_tree_v.
2574 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
2576         PR c++/69733
2577         * c-decl.c (smallest_type_quals_location): New static function.
2578         (grokdeclarator): Try to find the correct location for an ignored
2579         qualifier.
2581 2016-09-26  Marek Polacek  <polacek@redhat.com>
2583         PR c/7652
2584         * c-decl.c (pop_scope): Add gcc_fallthrough.
2586 2016-09-26  Marek Polacek  <polacek@redhat.com>
2588         PR c/7652
2589         * c-parser.c (struct c_token): Add flags field.
2590         (c_lex_one_token): Pass it to c_lex_with_flags.
2591         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
2592         into IFN_FALLTHROUGH.
2593         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
2594         attribute fallthrough after a case label or default label.
2595         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
2597 2016-09-24  Marek Polacek  <polacek@redhat.com>
2599         PR c/77490
2600         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
2601         have boolean value.  Warn about ++/-- on booleans.
2603 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2605         * c-parser.c (incomplete_record_decls): Remove unnecessary
2606         = vNULL initialization of file scope vec.
2608 2016-09-16  Marek Polacek  <polacek@redhat.com>
2610         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
2612 2016-09-14  Marek Polacek  <polacek@redhat.com>
2614         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
2615         (fix_array_notation_expr): Likewise.
2616         * c-decl.c (finish_decl): Likewise.
2617         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2618         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
2619         (function_to_pointer_conversion): Use false instead of 0.
2620         (convert_lvalue_to_rvalue): Likewise.
2621         (parser_build_unary_op): Likewise.
2622         (build_atomic_assign): Likewise.
2623         (build_unary_op): Change nonconvert parameter type to bool, use
2624         true/false instead of 1/0.
2625         (build_binary_op): Use true instead of 1.
2627 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2629         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
2630         of add_fixit_insert to add_fixit_insert_before.
2632 2016-09-13  Marek Polacek  <polacek@redhat.com>
2634         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
2635         it.
2637 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2639         PR c++/77496
2640         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
2641         COMPOUND_EXPR to warn_for_omitted_condop.
2643 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2645         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
2646         c_get_substring_location for this new langhook.
2648 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2650         PR c/65467
2651         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
2652         flag_openmp.
2653         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
2654         instead of mark_exp_read on low_bound/length expression.
2655         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
2656         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
2657         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
2658         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
2659         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
2660         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
2661         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
2662         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
2663         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
2664         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
2665         instead of mark_expr_read.
2666         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
2667         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
2668         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
2669         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
2670         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
2671         array section bases outside of depend clause, for depend clause
2672         use convert_lvalue_to_rvalue on the base.
2673         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
2674         linear, aligned, map, to and from clauses.
2675         (c_omp_clause_copy_ctor): New function.
2677 2016-09-01  Marek Polacek  <polacek@redhat.com>
2679         PR c/7652
2680         * c-typeck.c (composite_type): Add FALLTHRU comment.
2682 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
2684         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
2685         to the insertion fixits for "struct", "union", and "enum".
2687 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2689         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
2690         rather than add_fixit_misspelled_id.
2691         (undeclared_variable): Likewise.
2692         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
2693         now-redundant "here" params from add_fixit_insert method calls.
2694         (c_parser_parameter_declaration): Likewise.
2695         * c-typeck.c (build_component_ref): Remove now-redundant range
2696         param from add_fixit_replace method calls.
2698 2016-08-25  Marek Polacek  <polacek@redhat.com>
2700         * c-typeck.c (parser_build_binary_op): Pass LHS to
2701         warn_logical_not_parentheses.
2703 2016-08-25  Marek Polacek  <polacek@redhat.com>
2705         PR c/77323
2706         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
2707         or _FloatN or _FloatNx is not supported.
2708         (finish_declspecs): Set type to integer_type_node when _FloatN or
2709         _FloatNx is not supported.
2711 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
2713         PR c/32187
2714         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
2715         (struct c_declspecs): Add field floatn_nx_idx.
2716         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
2717         and _FloatNx type specifiers.
2718         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
2719         (c_parser_declspecs, c_parser_attribute_any_word)
2720         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
2721         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
2722         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
2723         narrower than double.
2725 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
2726             Martin Liska  <mliska@suse.cz>
2728         PR c/67410
2729         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
2730         % to determine val element to change.  Assert that
2731         wchar_bytes * charwidth fits into val array.
2733 2016-08-12  Marek Polacek  <polacek@redhat.com>
2735         PR c/7652
2736         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
2737         (c_parser_postfix_expression): Likewise.
2738         * c-typeck.c (build_unary_op): Adjust fall through comment.
2739         (c_mark_addressable): Likewise.
2741 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
2743         PR c/72816
2744         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
2745         array member through typedef, for orig_qual_indirect == 0 clear
2746         orig_qual_type.
2748 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2750         PR c/64955
2751         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
2752         this up to selftest::run_c_tests.
2753         (selftest::run_c_tests): New function.
2755 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
2757         * c-parser.c (struct oacc_routine_data): Add error_seen and
2758         fndecl_seen members.
2759         (c_finish_oacc_routine): Use these.
2760         (c_parser_declaration_or_fndef): Adjust.
2761         (c_parser_oacc_routine): Likewise.  Support more C language
2762         constructs, and improve diagnostics.  Move pragma context
2763         checking...
2764         (c_parser_pragma): ... here.
2766         * c-parser.c (struct oacc_routine_data): New.
2767         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
2768         Simplify code.
2769         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
2770         declare target" attribute.
2772 2016-08-01  Jan Beulich  <jbeulich@suse.com>
2774         * c-fold.c (c_fully_fold_internal): Also emit shift count
2775         warnings for vector types.
2776         * c-typeck.c (build_binary_op): Likewise.
2778 2016-07-29  Marek Polacek  <polacek@redhat.com>
2780         PR c/71742
2781         * c-decl.c (finish_struct): Rephrase an error message.
2783         PR c/71853
2784         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
2785         to error node for invalid code.
2787         PR c/71573
2788         * c-decl.c (implicitly_declare): Return decl early not only for
2789         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
2791 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
2793         PR c/71969
2794         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
2795         on GNU extern inline functions.
2797 2016-07-29  Marek Polacek  <polacek@redhat.com>
2799         PR c/71583
2800         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
2801         check expr.value.
2803 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
2805         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
2807 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
2809         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
2810         spellcheck-tree.h
2811         (best_macro_match): Likewise, converting from a typedef to a
2812         subclass.
2813         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
2814         (lookup_name_fuzzy): Update for change of best_macro_match to a
2815         subclass with a ctor that calls cpp_forall_identifiers.
2817 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
2819         * c-decl.c (implicit_decl_warning): Update for conversion of
2820         return type of lookup_name_fuzzy to const char *.
2821         (undeclared_variable): Likewise.
2822         (lookup_name_fuzzy): Convert return type from tree to
2823         const char *.
2824         * c-parser.c (c_parser_declaration_or_fndef): Update for
2825         conversion of return type of lookup_name_fuzzy to const char *.
2826         (c_parser_parameter_declaration): Likewise.
2828 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
2830         * c-parser.c (c_parser_oacc_declare): Don't scan for
2831         GOMP_MAP_POINTER.
2832         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
2833         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
2834         zero-length subarrays.
2836 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
2838         PR c/71858
2839         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
2840         instead of FUZZY_LOOKUP_NAME.
2841         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
2842         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
2844 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
2846         PR c/71858
2847         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
2849 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2851         * c-parser.c (c_parser_generic_selection): Make type of variable
2852         auto_vec.
2853         (c_parser_omp_declare_simd): Likewise.
2855 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2857         * c-decl.c (struct c_struct_parse_info): Change member types
2858         from vec to auto_vec.
2859         (start_struct): Adjust.
2860         (finish_struct): Likewise.
2862 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
2864         PR c/71719
2865         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
2867 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
2869         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
2870         Move pragma context checking into...
2871         (c_parser_omp_cancellation_point): ... here, and improve
2872         diagnostic messages.
2873         * c-typeck.c (c_finish_omp_cancel)
2874         (c_finish_omp_cancellation_point): Improve diagnostic messages.
2876 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
2878         PR c/71685
2879         * c-typeck.c (c_build_qualified_type): Don't clear
2880         C_TYPE_INCOMPLETE_VARS for the main variant.
2882 2016-06-28  Martin Sebor  <msebor@redhat.com>
2884         PR c/71552
2885         * c-typeck.c (output_init_element): Diagnose incompatible types
2886         before non-constant initializers.
2888 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2890         * Make-lang.in: Don't cat ../stage_current if it does not exist.
2892 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2894         * Make-lang.in: Add support for autofdo.
2896 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2898         PR c/70339
2899         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
2900         (implicit_decl_warning): When issuing warnings for implicit
2901         declarations, attempt to provide a suggestion via
2902         lookup_name_fuzzy.
2903         (undeclared_variable): Likewise when issuing errors.
2904         (lookup_name_in_scope): Likewise.
2905         (struct edit_distance_traits<cpp_hashnode *>): New struct.
2906         (best_macro_match): New typedef.
2907         (find_closest_macro_cpp_cb): New function.
2908         (lookup_name_fuzzy): New function.
2909         * c-parser.c: Include gcc-rich-location.h.
2910         (c_token_starts_typename): Split out case CPP_KEYWORD into...
2911         (c_keyword_starts_typename): ...this new function.
2912         (c_parser_declaration_or_fndef): When issuing errors about
2913         missing "struct" etc, add a fixit.  For other kinds of errors,
2914         attempt to provide a suggestion via lookup_name_fuzzy.
2915         (c_parser_parms_declarator): When looking ahead to detect typos in
2916         type names, also reject CPP_KEYWORD.
2917         (c_parser_parameter_declaration): When issuing errors about
2918         unknown type names, attempt to provide a suggestion via
2919         lookup_name_fuzzy.
2920         * c-tree.h (c_keyword_starts_typename): New prototype.
2922 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
2924         PR c/71601
2925         * c-typeck.c (build_conditional_expr): Return error_mark_node if
2926         c_common_type returns error_mark_node.
2928 2016-06-19  Martin Sebor  <msebor@redhat.com>
2930         PR c/69507
2931         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
2932         __alignof__ (expression).
2934 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2936         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
2938 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2940         * c-typeck.c (build_component_ref): Simplify fixit code by
2941         using gcc_rich_location::add_fixit_misspelled_id.
2942         (set_init_label): Likewise.
2944 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2946         * c-parser.c (c_parser_initelt): Provide location of name for new
2947         location_t param of set_init_label.
2948         * c-tree.h (set_init_label): Add location_t param.
2949         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
2950         param and use it when issuing error messages about unrecognized
2951         field names.  Attempt to provide a fixit hint if appropriate,
2952         otherwise update the error message to provide the type name.
2954 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2956         PR c/71381
2957         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
2958         Loosen checking.
2960 2016-06-08  Martin Sebor  <msebor@redhat.com>
2961             Jakub Jelinek  <jakub@redhat.com>
2963         PR c++/70507
2964         PR c/68120
2965         * c-typeck.c (convert_arguments): Don't promote last argument
2966         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2968 2016-06-08  Marek Polacek  <polacek@redhat.com>
2970         PR c/71418
2971         * c-decl.c (grokdeclarator): Check TYPE_P.
2973         PR c/71426
2974         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
2975         code.
2977 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
2979         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
2980         and structure element reference, capture the location of the
2981         element name token and pass it to build_component_ref.
2982         (c_parser_postfix_expression_after_primary): Likewise for
2983         structure element dereference.
2984         (c_parser_omp_variable_list): Likewise for
2985         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
2986         * c-tree.h (build_component_ref): Add location_t param.
2987         * c-typeck.c (build_component_ref): Add location_t param
2988         COMPONENT_LOC.  Use it, if available, when issuing hints about
2989         mispelled member names to provide a fixit replacement hint.
2991 2016-06-06  Marek Polacek  <polacek@redhat.com>
2993         PR c/71362
2994         * c-parser.c (c_parser_direct_declarator): Set location.
2996 2016-06-06  Marek Polacek  <polacek@redhat.com>
2998         * c-typeck.c (comptypes_internal): Handle comparisons of
2999         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
3000         TYPE_REF_CAN_ALIAS_ALL.
3002 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
3004         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
3005         arguments as addressable when async clause exists.
3007 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
3009         PR c++/71349
3010         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
3011         when combined with target construct.
3013 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
3015         * c-parser.c (c_parser_omp_clause_schedule): Warn if
3016         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
3018 2016-05-25  Marek Polacek  <polacek@redhat.com>
3020         PR c/71265
3021         * c-decl.c (c_make_fname_decl): Don't check seen_error.
3023         PR c/71266
3024         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
3026 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3028         * c-parser.c (c_parser_oacc_declare): Add support for
3029         GOMP_MAP_FIRSTPRIVATE_POINTER.
3030         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
3031         argument with enum c_omp_region_type ort.
3032         (handle_omp_array_sections): Likewise.  Update call to
3033         handle_omp_array_sections_1.
3034         (c_finish_omp_clauses): Add specific errors and warning messages for
3035         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
3036         call to handle_omp_array_sections.
3038 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
3040         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
3042 2016-05-24  Richard Biener  <rguenther@suse.de>
3044         PR middle-end/70434
3045         PR c/69504
3046         * c-typeck.c (build_array_ref): Do not complain about indexing
3047         non-lvalue vectors.  Adjust for function name change.
3049 2016-05-20  Martin Sebor  <msebor@redhat.com>
3051         PR c/71115
3052         * c-typeck.c (error_init): Use
3053         expansion_point_location_if_in_system_header.
3054         (warning_init): Same.
3056 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
3058         PR c/71171
3059         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
3060         in error-handling.
3061         (c_parser_postfix_expression): Likewise.
3062         * c-tree.h (c_expr::set_error): New method.
3063         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
3064         that result's range is initialized.
3066 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3068         * c-typeck.c (parser_build_unary_op): Fix formatting.
3070 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
3072         * c-decl.c (grokdeclarator): Remove errmsg and use of
3073         targetm.invalid_return_type.
3074         (grokparms): Remove errmsg and use of
3075         targetm.invalid_parameter_type.
3077 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
3079         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
3080         function return type.
3082 2016-05-12  Marek Polacek  <polacek@redhat.com>
3084         PR c/70756
3085         * c-decl.c (build_compound_literal): Pass LOC down to
3086         c_incomplete_type_error.
3087         * c-tree.h (require_complete_type): Adjust declaration.
3088         (c_incomplete_type_error): Likewise.
3089         * c-typeck.c (require_complete_type): Add location parameter, pass it
3090         down to c_incomplete_type_error.
3091         (c_incomplete_type_error): Add location parameter, pass it down to
3092         error_at.
3093         (build_component_ref): Pass location down to c_incomplete_type_error.
3094         (default_conversion): Pass location down to require_complete_type.
3095         (build_array_ref): Likewise.
3096         (build_function_call_vec): Likewise.
3097         (convert_arguments): Likewise.
3098         (build_unary_op): Likewise.
3099         (build_c_cast): Likewise.
3100         (build_modify_expr): Likewise.
3101         (convert_for_assignment): Likewise.
3102         (c_finish_omp_clauses): Likewise.
3104 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3106         PR c/43651
3107         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
3108         is enabled.
3109         * c-errors.c (pedwarn_c90): Return true if warned.
3110         * c-tree.h (pedwarn_c90): Change return type to bool.
3111         (enum c_declspec_word): Add new enumerator cdw_atomic.
3113 2016-05-11  Marek Polacek  <polacek@redhat.com>
3115         PR c++/71024
3116         * c-decl.c (diagnose_mismatched_decls): Factor out code to
3117         diagnose_mismatched_attributes and call it.
3119 2016-05-10  Marek Polacek  <polacek@redhat.com>
3121         PR c/70255
3122         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
3123         on a declaration following the definition.
3125 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
3127         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
3128         parse it through to c_parser_c99_block_statement.
3129         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
3130         caller.
3132 2016-05-04  Marek Polacek  <polacek@redhat.com>
3134         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
3135         OPT_Wdangling_else.
3137 2016-05-04  Marek Polacek  <polacek@redhat.com>
3139         PR c/48778
3140         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
3141         for macro expansions.
3143 2016-05-03  Marek Polacek  <polacek@redhat.com>
3145         PR c/70859
3146         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
3147         check_builtin_function_arguments.
3149 2016-05-03  Richard Biener  <rguenther@suse.de>
3151         * Make-lang.in (cc1-checksum.c): For stage-final re-use
3152         the checksum from the previous stage.
3154 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
3156         * c-parser.c (c_parser_oacc_all_clauses): Update call to
3157         c_finish_omp_clauses.
3158         (c_parser_omp_all_clauses): Likewise.
3159         (c_parser_oacc_cache): Likewise.
3160         (c_parser_oacc_loop): Likewise.
3161         (omp_split_clauses): Likewise.
3162         (c_parser_omp_declare_target): Likewise.
3163         (c_parser_cilk_all_clauses): Likewise.
3164         (c_parser_cilk_for): Likewise.
3165         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
3166         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
3168 2016-05-02  Marek Polacek  <polacek@redhat.com>
3170         PR c/70851
3171         * c-decl.c (grokdeclarator): Diagnose when array's size has an
3172         incomplete type.
3174 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
3176         PR middle-end/70626
3177         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
3178         OACC_LOOP_CLAUSE_MASK.
3179         (c_parser_oacc_kernels_parallel): Update call to
3180         c_oacc_split_loop_clauses.
3182 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
3184         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
3185         argument to build_modify_expr in two cases.
3187 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
3189         * c-parser.c (c_parser_postfix_expression_after_primary): Call
3190         warn_for_memset instead of warning directly here.
3192 2016-04-26  Marek Polacek  <polacek@redhat.com>
3194         PR c/67784
3195         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
3196         out of ...
3197         (c_parser_for_statement): ... here.
3198         (c_parser_if_statement): Use it.
3199         (c_parser_switch_statement): Use it.
3200         (c_parser_while_statement): Use it.
3202         PR c/70791
3203         * c-decl.c (pushdecl): Pass LOCUS down to warning.
3205 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
3207         PR c++/69363
3208         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
3209         instead of c_finish_cilk_clauses.
3210         * c-tree.h (c_finish_omp_clauses): Add new default argument.
3211         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
3212         floating-point variables in the linear clause for Cilk Plus.
3214 2016-04-18  Michael Matz  <matz@suse.de>
3216         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
3217         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
3219 2016-04-15  Marek Polacek  <polacek@redhat.com>
3221         PR c/70671
3222         * c-typeck.c (build_unary_op): Pass location down to error and
3223         warning call.
3225 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
3227         PR c/70436
3228         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
3229         where needed.
3230         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
3231         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
3232         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
3233         Adjust c_parser_pragma callers.
3234         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
3235         caller.
3236         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
3237         c_parser_statement.
3238         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
3239         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
3240         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
3241         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
3242         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
3243         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
3244         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
3245         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
3246         down where needed.
3247         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
3248         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
3249         calls.
3251 2016-04-13  Marek Polacek  <polacek@redhat.com>
3253         PR c/70436
3254         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
3255         adjust callers.
3256         (c_parser_statement): Likewise.
3257         (c_parser_c99_block_statement): Likewise.
3258         (c_parser_while_statement): Likewise.
3259         (c_parser_for_statement): Likewise.
3260         (c_parser_if_body): Don't set IF_P here.
3261         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
3262         about dangling else here.
3263         * c-tree.h (c_finish_if_stmt): Adjust declaration.
3264         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
3265         warn about dangling else here.
3267 2016-04-04  Marek Polacek  <polacek@redhat.com>
3269         PR c/70307
3270         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
3272 2016-03-31  Marek Polacek  <polacek@redhat.com>
3274         PR c/70297
3275         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
3277 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
3279         PR c/70281
3280         * c-parser.c (c_parser_postfix_expression): Set the source range
3281         for uses of "__builtin_types_compatible_p".
3283 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3285         PR c/70280
3286         * c-typeck.c (composite_type): Don't count void_list_node
3287         into len, if the list is terminated by void_list_node, start
3288         with void_list_node instead of NULL for newargs.  Stop
3289         at void_list_node.
3291 2016-03-16  Marek Polacek  <polacek@redhat.com>
3293         PR c/70093
3294         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
3295         nested functions returning VM types.
3297 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
3299         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
3300         when calling c_finish_omp_clauses.
3302 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
3304         PR c/69824
3305         * c-decl.c (get_parm_info): Don't queue implicit function declarations
3306         for later.
3308 2016-03-04  Marek Polacek  <polacek@redhat.com>
3310         PR c/69798
3311         * c-parser.c (c_parser_postfix_expression): Call
3312         c_parser_cast_expression rather than c_parser_postfix_expression.
3314 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
3316         PR c/69796
3317         PR c/69974
3318         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
3319         of incomplete decls to error_mark_node.
3321 2016-02-24  Marek Polacek  <polacek@redhat.com>
3323         PR c/69819
3324         * c-decl.c (finish_decl): Don't update the copy of the type of a
3325         different decl type.
3327 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
3329         PR objc/69844
3330         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
3331         in id_kind reclassification.
3333 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3335         PR c/69835
3336         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
3338 2016-02-16  James Norris  <jnorris@codesourcery.com>
3340         PR c/64748
3341         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
3343 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
3345         * c-decl.c (build_null_declspecs): Zero the entire struct.
3347         PR c/69522
3348         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
3349         callers changed.  If nested_p is true, use it to call
3350         finish_implicit_inits.
3351         * c-tree.h (finish_implicit_inits): Declare.
3352         * c-typeck.c (finish_implicit_inits): New function.  Move code
3353         from ...
3354         (push_init_level): ... here.
3355         (set_designator, process_init_element): Call finish_implicit_inits.
3357 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
3359         PR c/69768
3360         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
3361         arguments for -Waddress warning.
3363 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
3365         PR c/69669
3366         * c-decl.c (finish_enum): When honoring mode attribute,
3367         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
3369 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
3371         PR debug/69518
3372         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
3373         all type variants, not just TYPE_MAIN_VARIANT.
3375 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3377         PR debug/66869
3378         * c-decl.c (c_write_global_declarations_1): Warn with
3379         warn_unused_function if static prototype without definition
3380         is not C_DECL_USED.
3382 2016-01-27  Marek Polacek  <polacek@redhat.com>
3384         PR c/68062
3385         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
3386         to unsigned, if needed.  Add -Wsign-compare warning.
3388 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3390         PR tree-optimization/69483
3391         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
3393 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3395         PR c/24293
3396         * c-tree.h (incomplete_record_decls): Declare.
3397         * c-parser.c (incomplete_record_decls): Define.
3398         (c_parser_translation_unit): Iterate through incomplete_record_decls and
3399         report error if any decl has zero size.
3400         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
3401         or enum type to incomplete_record_decls.
3403 2016-01-14  Tom de Vries  <tom@codesourcery.com>
3405         PR tree-optimization/68773
3406         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
3407         set force_output.
3409 2016-01-14  Marek Polacek  <polacek@redhat.com>
3411         PR c/69262
3412         * c-decl.c (grokdeclarator): Provide more information for invalid
3413         array declarations.
3415 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
3417         * c-parser.c (c_parser_unary_expression): For dereferences, build
3418         a combined location before calling build_indirect_ref, so that
3419         error reports cover the full range, manually updating the c_expr
3420         src_range.
3422 2016-01-06  Marek Polacek  <polacek@redhat.com>
3424         PR sanitizer/69099
3425         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
3426         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
3427         NULL.
3429 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
3431         Update copyright years.
3433 2016-01-04  Marek Polacek  <polacek@redhat.com>
3435         PR c/68908
3436         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
3437         optimization to use __atomic_fetch_* built-in if possible.
3439 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
3441         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
3442         into...
3443         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
3444         all users.
3446 2015-12-22  Marek Polacek  <polacek@redhat.com>
3448         PR c/69002
3449         * c-typeck.c (build_component_ref): Warn when acessing elements of
3450         atomic structures or unions.
3452 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
3454         * c-typeck.c: Include "gcc-rich-location.h".
3455         (build_binary_op): In the two places that call binary_op_error,
3456         create a gcc_rich_location and populate it with the location of
3457         the binary op and its two operands.
3459 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
3461         * c-parser.c (c_parser_statement_after_labels): When calling
3462         c_finish_return, Use the return expression's location if it has
3463         one, falling back to the location of the first token within it.
3464         * c-typeck.c (c_finish_return): When issuing warnings about
3465         the incorrect presence/absence of a return value, issue a note
3466         showing the declaration of the function.
3468 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
3470         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
3471         to 4.
3472         (c_parser_peek_nth_token): New function.
3473         (c_parser_peek_conflict_marker): New function.
3474         (c_parser_error): Detect conflict markers and report them as such.
3476 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
3478         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
3479         to preserve range information for the primary expression
3480         in the call to c_parser_postfix_expression_after_primary.
3482 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
3484         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
3485         expression location, falling back on the first token location,
3486         rather than always using the latter.
3488 2015-12-16  Marek Polacek  <polacek@redhat.com>
3490         PR c/64637
3491         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
3492         available.
3494 2015-12-15  Marek Polacek  <polacek@redhat.com>
3496         PR c/68907
3497         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
3498         artificial decl.
3500 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
3502         * c-parser.c (c_parser_alignof_expression): Capture location of
3503         closing parenthesis (if any), or of end of unary expression, and
3504         use it to build a src_range for the expression.
3506 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
3508         PR c/68757
3509         * c-parser.c (c_parser_get_builtin_args): Add
3510         "out_close_paren_loc" param, and write back to it.
3511         (c_parser_postfix_expression): Capture the closing
3512         parenthesis location for RID_CHOOSE_EXPR,
3513         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
3514         RID_BUILTIN_SHUFFLE and use it to set the source range
3515         for such expressions; within RID_BUILTIN_COMPLEX set
3516         the underlying location.
3518 2015-12-07  Marek Polacek  <polacek@redhat.com>
3520         PR c/68668
3521         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
3522         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
3524 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
3526         * c-tree.h (c_build_va_arg): Adjust prototype.
3527         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
3528         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
3529         parameter, adjust throughout and issue an error if EXPR is a component
3530         with reverse storage order.
3532 2015-12-02  Jason Merrill  <jason@redhat.com>
3534         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3535         (c_fully_fold_internal, decl_constant_value_for_optimization):
3536         Move from c-common.c.
3537         * c-tree.h: Declare decl_constant_value_for_optimization.
3538         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
3540 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
3542         PR c/68162
3543         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
3544         following link from declarator to next declarator.  Track original
3545         qualified type and pass it to c_build_qualified_type.
3546         * c-typeck.c (c_build_qualified_type): Add arguments
3547         orig_qual_type and orig_qual_indirect.
3549 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
3551         * c-parser.c (c_parser_omp_clause_name)
3552         (c_parser_oacc_all_clauses): Alphabetical sorting.
3554 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
3556         PR c/68533
3557         * c-decl.c (get_parm_info): Use b->locus instead of input_location
3558         for diagnostics.
3560 2015-12-01  Julian Brown  <julian@codesourcery.com>
3561             Cesar Philippidis  <cesar@codesourcery.com>
3562             James Norris  <James_Norris@mentor.com>
3564         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
3565         (c_parser_oacc_clause_use_device): New function.
3566         (c_parser_oacc_all_clauses): Add use_device support.
3567         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
3568         (c_parser_oacc_host_data): New function.
3569         (c_parser_omp_construct): Add host_data support.
3570         * c-tree.h (c_finish_oacc_host_data): Add prototype.
3571         * c-typeck.c (c_finish_oacc_host_data): New function.
3572         (c_finish_omp_clauses): Add use_device support.
3574 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
3576         PR c/67106
3577         * c-decl.c: Set TYPE_PACKED in variants.
3579 2015-11-27  Martin Liska  <mliska@suse.cz>
3581         PR c++/68312
3582         * c-array-notation.c (fix_builtin_array_notation_fn):
3583         Use release_vec_vec instead of vec::release.
3584         (build_array_notation_expr): Likewise.
3585         (fix_conditional_array_notations_1): Likewise.
3586         (fix_array_notation_expr): Likewise.
3587         (fix_array_notation_call_expr): Likewise.
3589 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
3591         PR c/63326
3592         * c-parser.c (c_parser_compound_statement_nostart): If
3593         last_label is true, use pragma_stmt instead of pragma_compound
3594         as second c_parser_pragma argument.
3595         (c_parser_omp_ordered, c_parser_omp_target_update,
3596         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
3597         false as second argument to c_parser_skip_to_pragma_eol after
3598         diagnosing standalone directives used in pragma_stmt context.
3600 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
3602         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
3603         with "if (ENABLE_OFFLOADING)".
3605 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
3607         PR objc/68438
3608         * c-parser.c (c_parser_postfix_expression): Set up source ranges
3609         for various Objective-C constructs: Class.name syntax,
3610         @selector(), @protocol(), @encode(), and [] message syntax.
3612 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
3614         PR 62314
3615         * c-typeck.c (should_suggest_deref_p): New function.
3616         (build_component_ref): Special-case POINTER_TYPE when
3617         generating a "not a structure of union"  error message, and
3618         suggest a "->" rather than a ".", providing a fix-it hint.
3620 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
3622         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
3623         candidate into a new function, find_closest_identifier.
3625 2015-11-19  Marek Polacek  <polacek@redhat.com>
3627         PR c/68412
3628         * c-typeck.c (parser_build_binary_op): Properly handle
3629         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
3631 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
3633         * c-parser.c (set_c_expr_source_range): Bulletproof both
3634         overloaded implementations against NULL expr->value.
3635         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
3636         values.
3637         (c_parser_unary_expression): Likewise when handling addresses of
3638         labels.
3639         (c_parser_postfix_expression): Likewise for statement expressions,
3640         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
3641         __builtin_va_arg, and for __builtin_offset_of.
3642         (c_parser_postfix_expression_after_paren_type): Initialize expr's
3643         src_range using the range of the braced initializer.
3644         (c_parser_transaction_expression): Set src_range for "ret" to a
3645         sane pair of values.
3647 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
3649         * c-parser.c (c_finish_omp_declare_simd): Look for
3650         "simd" attribute as well. Update error message.
3652 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3654         * c-parser.c (c_parser_omp_declare_target): Adjust.
3656 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
3658         * c-typeck.c (c_finish_omp_clauses): Don't mark
3659         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
3661 2015-11-14  Marek Polacek  <polacek@redhat.com>
3663         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
3664         * c-typeck.c: Likewise.
3666 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3668         * c-decl.c (warn_defaults_to): Pass line_table to
3669         rich_location ctor.
3670         * c-errors.c (pedwarn_c99): Likewise.
3671         (pedwarn_c90): Likewise.
3672         * c-parser.c (set_c_expr_source_range): New functions.
3673         (c_token::get_range): New method.
3674         (c_token::get_finish): New method.
3675         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
3676         based on the range from the start of the LHS to the end of the
3677         RHS.
3678         (c_parser_conditional_expression): Likewise, based on the range
3679         from the start of the cond.value to the end of exp2.value.
3680         (c_parser_binary_expression): Call set_c_expr_source_range on
3681         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
3682         (c_parser_cast_expression): Call set_c_expr_source_range on ret
3683         based on the cast_loc through to the end of the expr.
3684         (c_parser_unary_expression): Likewise, based on the
3685         op_loc through to the end of op.
3686         (c_parser_sizeof_expression) Likewise, based on the start of the
3687         sizeof token through to either the closing paren or the end of
3688         expr.
3689         (c_parser_postfix_expression): Likewise, using the token range,
3690         or from the open paren through to the close paren for
3691         parenthesized expressions.
3692         (c_parser_postfix_expression_after_primary): Likewise, for
3693         various kinds of expression.
3694         * c-tree.h (struct c_expr): Add field "src_range".
3695         (c_expr::get_start): New method.
3696         (c_expr::get_finish): New method.
3697         (set_c_expr_source_range): New decls.
3698         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
3699         on ret for prefix unary ops.
3700         (parser_build_binary_op): Likewise, running from the start of
3701         arg1.value through to the end of arg2.value.
3703 2015-11-13  Marek Polacek  <polacek@redhat.com>
3705         PR c/68320
3706         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
3708 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3710         * c-typeck.c: Include spellcheck.h.
3711         (lookup_field_fuzzy_find_candidates): New function.
3712         (lookup_field_fuzzy): New function.
3713         (build_component_ref): If the field was not found, try using
3714         lookup_field_fuzzy and potentially offer a suggestion.
3716 2015-11-12  James Norris  <jnorris@codesourcery.com>
3717             Joseph Myers  <joseph@codesourcery.com>
3719         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
3720         (c_parser_omp_clause_name): Handle 'device_resident' clause.
3721         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
3722         and PRAGMA_OMP_CLAUSE_LINK.
3723         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
3724         and PRAGMA_OACC_CLAUSE_LINK.
3725         (OACC_DECLARE_CLAUSE_MASK): New definition.
3726         (c_parser_oacc_declare): New function.
3728 2015-11-12  Marek Polacek  <polacek@redhat.com>
3730         PR c/67784
3731         * c-parser.c (c_parser_for_statement): Reclassify the token in
3732         a correct scope.
3734 2015-11-11  Marek Polacek  <polacek@redhat.com>
3736         PR c/68107
3737         PR c++/68266
3738         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
3739         checking the size of an array.
3741 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
3743         * c-array-notation.c: Remove unused header files.
3744         * c-aux-info.c: Likewise.
3745         * c-convert.c: Likewise.
3746         * c-decl.c: Likewise.
3747         * c-errors.c: Likewise.
3748         * c-lang.c: Likewise.
3749         * c-objc-common.c: Likewise.
3750         * c-parser.c: Likewise.
3751         * c-typeck.c: Likewise.
3752         * gccspec.c: Likewise.
3754 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3755             Cesar Philippidis  <cesar@codesourcery.com>
3756             James Norris  <jnorris@codesourcery.com>
3757             Julian Brown  <julian@codesourcery.com>
3758             Nathan Sidwell  <nathan@codesourcery.com>
3760         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
3761         routine arg.
3762         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
3763         (c_parser_pragma): Parse 'acc routine'.
3764         (OACC_ROUTINE_CLAUSE_MARK): Define.
3765         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
3767 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3769         PR debug/67192
3770         * c-typeck.c (c_finish_loop): For unconditional loops, set the
3771         location of the backward-goto to the start of the loop body.
3773 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3775         PR debug/67192
3776         * c-parser.c (c_parser_while_statement): Finish the loop before
3777         parsing ahead for misleading indentation.
3778         (c_parser_for_statement): Likewise.
3780 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3782         * c-decl.c (finish_struct): If the structure has reverse storage
3783         order, rewrite the type of array fields with scalar component.  Call
3784         maybe_apply_pragma_scalar_storage_order on entry.
3785         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
3786         errors on bit-fields and reverse SSO here and not...
3787         (c_mark_addressable): ...here.
3788         (output_init_element): Adjust call to initializer_constant_valid_p.
3789         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
3791 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3793         * c-decl.c (warn_defaults_to): Update for change in signature
3794         of diagnostic_set_info.
3795         * c-errors.c (pedwarn_c99): Likewise.
3796         (pedwarn_c90): Likewise.
3797         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
3798         for textinfo::set_location.
3800 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
3801             Thomas Schwinge  <thomas@codesourcery.com>
3802             James Norris  <jnorris@codesourcery.com>
3804         * c-parser.c (c_parser_omp_clause_name): Add support for
3805         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
3806         (c_parser_omp_clause_default): Add is_oacc argument. Handle
3807         default(none) in OpenACC.
3808         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
3809         arguments.
3810         (c_parser_oacc_clause_tile): New function.
3811         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
3812         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
3813         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
3814         TILE}.
3815         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
3816         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
3817         FIRSTPRIVATE}.
3818         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
3819         (c_parser_oacc_update): Update the error message for missing clauses.
3820         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
3821         and OMP_CLAUSE_INDEPENDENT.
3823 2015-11-05  Marek Polacek  <polacek@redhat.com>
3825         PR c/68090
3826         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
3827         deal with pre-evaluation on invalid types.
3829 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
3830             Ilya Verbin  <ilya.verbin@intel.com>
3832         * c-parser.c: Include context.h and gimple-expr.h.
3833         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
3834         monotonic together with nonmonotonic.
3835         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
3836         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
3837         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
3838         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
3839         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
3840         expressions on combined target teams before the target.
3841         (c_parser_omp_declare_target): If decl has "omp declare target" or
3842         "omp declare target link" attribute, and cgraph or varpool node already
3843         exists, then set corresponding flags.  Call c_finish_omp_clauses
3844         in the parenthesized extended-list syntax case.
3845         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
3846         declare target.
3847         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
3848         on OMP_CLAUSE_REDUCTION array sections.
3849         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
3850         into the constant offset, or for variable low-bound using
3851         POINTER_PLUS_EXPR.  For structure element based array sections use
3852         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
3853         (c_finish_omp_clauses): Drop generic_field_head, structure
3854         elements are now always mapped even as array section bases,
3855         diagnose same var in data sharing and mapping clauses.  Diagnose if
3856         linear step on declare simd is neither a constant nor a uniform
3857         parameter.  Look through POINTER_PLUS_EXPR for array section
3858         reductions.  Diagnose the same var or function appearing multiple
3859         times on the same directive.  Fix up wording for the to clause if t
3860         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
3861         modifier on kinds other than dynamic or guided or nonmonotonic
3862         modifier together with ordered clause.
3864 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3865             Chung-Lin Tang  <cltang@codesourcery.com>
3867         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
3869 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3871         * c-array-notation.c: Reorder #include's and remove duplicates.
3872         * c-aux-info.c: Likewise.
3873         * c-convert.c: Likewise.
3874         * c-decl.c: Likewise.
3875         * c-errors.c: Likewise.
3876         * c-lang.c: Likewise.
3877         * c-objc-common.c: Likewise.
3878         * c-parser.c: Likewise.
3879         * c-typeck.c: Likewise.
3881 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
3883         PR debug/66068
3884         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
3885         after calling build_qualified_type.
3887 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
3888             Thomas Schwinge  <thomas@codesourcery.com>
3889             James Norris  <jnorris@codesourcery.com>
3890             Joseph Myers  <joseph@codesourcery.com>
3891             Julian Brown  <julian@codesourcery.com>
3892             Bernd Schmidt  <bschmidt@redhat.com>
3894         * c-parser.c (c_parser_oacc_shape_clause): New.
3895         (c_parser_oacc_simple_clause): New.
3896         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
3897         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
3899 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3900             James Norris  <jnorris@codesourcery.com>
3901             Cesar Philippidis  <cesar@codesourcery.com>
3903         PR c/64765
3904         PR c/64880
3905         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
3906         parameters, and handle these.  Adjust all users.
3907         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
3908         into...
3909         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
3910         all users.
3911         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
3912         declare functions.
3913         (c_finish_omp_construct): Declare function.
3914         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
3915         Merge functions into...
3916         (c_finish_omp_construct): ... this new function.
3918 2015-10-22  Richard Biener  <rguenther@suse.de>
3920         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
3921         before folding a MINUS_EXPR.
3923 2015-10-21  Marek Polacek  <polacek@redhat.com>
3925         PR c/68024
3926         * c-decl.c (start_function): Warn about vararg functions without
3927         a prototype.
3929 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
3931         * c-typeck.c (build_conditional_expr): Use boolean vector
3932         type for vector comparison.
3933         (build_vec_cmp): New.
3934         (build_binary_op): Use build_vec_cmp for comparison.
3936 2015-10-20  Marek Polacek  <polacek@redhat.com>
3938         * c-parser.c (is_cilkplus_vector_p): Don't define here.
3940 2015-10-20  Marek Polacek  <polacek@redhat.com>
3942         PR c/67964
3943         * c-parser.c (c_parser_attributes): Break out of the loop if the
3944         token after an attribute isn't a comma.
3946 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
3947             Aldy Hernandez  <aldyh@redhat.com>
3949         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
3950         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
3951         (c_parser_omp_variable_list): Handle structure elements for
3952         map, to and from clauses.  Handle array sections in reduction
3953         clause.  Formatting fixes.
3954         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
3955         if clause modifiers.
3956         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
3957         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
3958         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
3959         c_parser_omp_clause_is_device_ptr): New functions.
3960         (c_parser_omp_clause_ordered): Parse optional parameter.
3961         (c_parser_omp_clause_reduction): Handle array reductions.
3962         (c_parser_omp_clause_schedule): Parse optional simd modifier.
3963         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
3964         functions.
3965         (c_parser_omp_clause_linear): Parse linear clause modifiers.
3966         (c_parser_omp_clause_depend_sink): New function.
3967         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
3968         (c_parser_omp_clause_map): Parse release/delete map kinds and
3969         optional always modifier.
3970         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
3971         and c_finish_omp_clauses callers.
3972         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
3973         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
3974         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
3975         (OMP_CRITICAL_CLAUSE_MASK): Define.
3976         (c_parser_omp_critical): Parse critical clauses.
3977         (c_parser_omp_for_loop): Handle doacross loops, adjust
3978         c_finish_omp_for and c_finish_omp_clauses callers.
3979         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
3980         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
3981         (OMP_FOR_CLAUSE_MASK): Add linear clause.
3982         (c_parser_omp_for): Disallow ordered clause when combined with
3983         distribute.  Disallow linear clause when combined with distribute
3984         and not combined with simd.
3985         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
3986         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
3987         parse clauses and if depend clause is found, don't parse a body.
3988         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
3989         Allow target parallel without for after it.
3990         (OMP_TASK_CLAUSE_MASK): Add priority clause.
3991         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
3992         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
3993         invalid kinds.
3994         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
3995         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
3996         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
3997         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
3998         functions.
3999         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
4000         defaultmap and is_device_ptr clauses.
4001         (c_parser_omp_target): Parse target parallel and target simd.  Set
4002         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
4003         and target exit data.  Diagnose invalid map kinds.
4004         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
4005         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
4006         construct.
4007         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
4008         &omp_priv.
4009         (OMP_TASKLOOP_CLAUSE_MASK): Define.
4010         (c_parser_omp_taskloop): New function.
4011         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
4012         handle PRAGMA_OMP_TASKLOOP.
4013         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
4014         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
4015         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
4016         Add IS_OMP argument, handle structure element bases, diagnose
4017         bitfields, pass IS_OMP recursively, diagnose known zero length
4018         array sections in depend clauses, handle array sections in reduction
4019         clause, diagnose negative length even for pointers.
4020         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
4021         types, pass IS_OMP down to handle_omp_array_sections_1, handle
4022         array sections in reduction clause, set
4023         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
4024         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
4025         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
4026         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
4028 2015-10-06  Marek Polacek  <polacek@redhat.com>
4030         * c-parser.c (c_parser_statement_after_labels): Use
4031         protected_set_expr_location.
4032         (c_parser_omp_clause_num_gangs): Likewise.
4033         (c_parser_omp_clause_num_threads): Likewise.
4034         (c_parser_omp_clause_num_workers): Likewise.
4035         (c_parser_omp_clause_vector_length): Likewise.
4036         (c_parser_omp_clause_num_teams): Likewise.
4037         (c_parser_omp_clause_thread_limit): Likewise.
4038         * c-typeck.c (build_c_cast): Likewise.
4039         (c_cast_expr): Likewise.
4041 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
4043         * c-typeck.c (c_tree_equal): Use real_equal instead of
4044         REAL_VALUES_EQUAL.
4046 2015-10-04  Jason Merrill  <jason@redhat.com>
4048         * c-parser.c (c_lex_one_token): Handle @synchronized.
4049         * c-decl.c (match_builtin_function_types): A declaration of a built-in
4050         can change whether the function is transaction_safe.
4052 2015-10-02  Marek Polacek  <polacek@redhat.com>
4054         PR c/67730
4055         * c-typeck.c (convert_for_assignment): Use the expansion point
4056         location throughout.
4058 2015-10-02  Marek Polacek  <polacek@redhat.com>
4060         PR c/64249
4061         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
4062         and pass it down to c_parser_if_statement.
4063         (c_parser_else_body): Add CHAIN parameter and pass it down to
4064         c_parser_statement_after_labels.
4065         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
4066         duplicated if-else-if conditions.
4068 2015-10-01  Marek Polacek  <polacek@redhat.com>
4070         * c-typeck.c (convert_for_assignment): Improve commentary.
4072 2015-09-30  Marek Polacek  <polacek@redhat.com>
4074         PR c/67730
4075         * c-typeck.c (c_finish_return): Use the expansion point location for
4076         certain "return with value" warnings.
4078 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4080         * c-parser.c (pragma_lex): Add loc argument.
4082 2015-09-15  Marek Polacek  <polacek@redhat.com>
4084         PR c/67580
4085         * c-decl.c (tag_exists_p): New function.
4086         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
4087         struct/union/enum keywords are missing.
4088         * c-tree.h (tag_exists_p): Declare.
4090 2015-09-15  Marek Polacek  <polacek@redhat.com>
4092         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
4093         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
4094         Return NULL_TREE instead of 0.
4095         (lookup_name): Return NULL_TREE instead of 0.
4096         (lookup_name_in_scope): Likewise.
4097         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
4098         (parser_xref_tag): Use false instead of 0.
4099         (start_struct): Use true instead of 1.
4100         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
4102 2015-09-14  Marek Polacek  <polacek@redhat.com>
4104         * c-typeck.c (set_nonincremental_init_from_string): Use
4105         HOST_WIDE_INT_M1U when shifting a negative value.
4107 2015-09-09  Mark Wielaard  <mjw@redhat.com>
4109         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
4110         parm against NULL.
4112 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
4114         PR c/67502
4115         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
4116         into OMP_FOR_PRE_BODY rather than before the loop.
4118 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
4120         PR c/67501
4121         * c-parser.c (c_parser_oacc_all_clauses,
4122         c_parser_omp_all_clauses): Remove invalid clause from
4123         list of clauses even if parser->error is set.
4125         PR c/67500
4126         * c-parser.c (c_parser_omp_clause_aligned,
4127         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
4128         test for errors.
4129         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
4130         error_mark_node.
4132         PR c/67495
4133         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
4134         instead of c_parser_unary_expression.  If the result is !lvalue_p,
4135         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
4137 2015-09-04  Marek Polacek  <polacek@redhat.com>
4139         PR sanitizer/67279
4140         * c-typeck.c (build_binary_op): Don't instrument static initializers.
4142 2015-09-03  Martin Sebor  <msebor@redhat.com>
4144         PR c/66516
4145         * c-typeck.c (convert_arguments, parser_build_unary_op,
4146         build_conditional_expr, c_cast_expr, convert_for_assignment,
4147         build_binary_op, _objc_common_truthvalue_conversion): Call
4148         reject_gcc_builtin.
4149         (c_decl_implicit): Define.
4151 2015-09-02  Marek Polacek  <polacek@redhat.com>
4153         PR c/67432
4154         * c-parser.c (c_parser_enum_specifier): Give a better error for
4155         an empty enum.
4157 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
4159         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
4161 2015-08-12  Marek Polacek  <polacek@redhat.com>
4163         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
4164         LOC to it.
4166 2015-08-03  Marek Polacek  <polacek@redhat.com>
4168         PR c/67088
4169         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
4170         Use it.
4171         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
4173 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4175         * c-parser.c (c_parser_if_body): Take token_indent_info
4176         argument. Call warn_for_misleading_indentation even when the
4177         body is a semicolon.  Extract token_indent_infos corresponding
4178         to the guard, body and next tokens.  Adjust call to
4179         warn_for_misleading_indentation accordingly.
4180         (c_parser_else_body): Likewise.
4181         (c_parser_if_statement): Likewise.
4182         (c_parser_while_statement): Likewise.
4183         (c_parser_for_statement): Likewise.
4185 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
4186             Manuel López-Ibáñez  <manu@gcc.gnu.org>
4188         * c-decl.c (get_parm_info): Remove static var. Update warning
4189         message.
4191 2015-07-27  Marek Polacek  <polacek@redhat.com>
4193         PR c++/66555
4194         PR c/54979
4195         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
4197 2015-07-20  Marek Polacek  <polacek@redhat.com>
4199         PR c++/55095
4200         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
4201         (build_binary_op): Warn about left shift overflows.
4203 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4205         * c-array-notation.c: Adjust includes for flags.h changes.
4206         * c-objc-common.c: Likewise.
4208 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4210         * c-array-notation.c: Adjust includes.
4211         * c-aux-info.c: Likewise.
4212         * c-convert.c: Likewise.
4213         * c-decl.c: Likewise.
4214         * c-errors.c: Likewise.
4215         * c-lang.c: Likewise.
4216         * c-objc-common.c: Likewise.
4217         * c-parser.c: Likewise.
4218         * c-typeck.c: Likewise.
4220 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4222         PR fortran/66605
4223         * c-decl.c (finish_function): Call do_warn_unused_parameter.
4225 2015-06-29  Marek Polacek  <polacek@redhat.com>
4227         PR c/66322
4228         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
4229         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
4230         about -Wswitch-bool here.
4231         (do_case): Update c_add_case_label call.
4232         (c_finish_case): Update c_do_switch_warnings call.
4234 2015-06-27  Marek Polacek  <polacek@redhat.com>
4236         * c-typeck.c: Use VECTOR_TYPE_P throughout.
4238 2015-06-26  Marek Polacek  <polacek@redhat.com>
4240         * c-array-notation.c (fix_builtin_array_notation_fn): Use
4241         INDIRECT_REF_P.
4242         * c-typeck.c (array_to_pointer_conversion): Likewise.
4243         (build_unary_op): Likewise.
4244         (c_finish_return): Likewise.
4246 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4248         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
4249         * c-parser.c: Likewise.
4251 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4253         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
4254         instead of pointer_hash.
4255         (detect_field_duplicates): Likewise.
4257 2015-06-25  Marek Polacek  <polacek@redhat.com>
4259         * c-array-notation.c: Use VAR_P throughout.
4260         * c-decl.c: Likewise.
4261         * c-objc-common.c: Likewise.
4262         * c-parser.c: Likewise.
4263         * c-typeck.c: Likewise.
4265 2015-06-25  Marek Polacek  <polacek@redhat.com>
4267         * c-decl.c: Use is_global_var throughout.
4268         * c-parser.c: Likewise.
4269         * c-typeck.c: Likewise.
4271 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
4273         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
4274         * c-aux-info.c: Likewise.
4275         * c-convert.c: Likewise.
4276         * c-decl.c: Likewise.
4277         * c-errors.c: Likewise.
4278         * c-lang.c: Likewise.
4279         * c-objc-common.c: Likewise.
4280         * c-parser.c: Likewise.
4281         * c-typeck.c: Likewise.
4283 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
4285         PR middle-end/66325
4286         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
4287         variants.
4289 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
4291         * c-decl.c (pop_scope): Register the main translation unit
4292         through the new debug hook.
4294 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
4296         * c-array-notation.c : Adjust include files.
4297         * c-aux-info.c : Likewise.
4298         * c-convert.c : Likewise.
4299         * c-decl.c : Likewise.
4300         * c-errors.c : Likewise.
4301         * c-lang.c : Likewise.
4302         * c-lang.h : Likewise.
4303         * c-objc-common.c : Likewise.
4304         * c-parser.c : Likewise.
4305         * c-typeck.c : Likewise.
4307 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
4309         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
4310         immediately clobber it.
4311         (c_write_global_declarations_1): Remove call to
4312         check_global_declaration_1.
4313         (c_write_global_declarations_2): Remove.
4314         (c_write_final_cleanups): Rename from c_write_global_declarations.
4315         Remove call to finalize_compilation_unit.
4316         Remove calls to debugging hooks.
4317         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
4318         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
4319         * c-tree.h: Remove c_write_global_declarations.
4321 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
4323         * c-array-notation.c: Adjust includes for restructured coretypes.h.
4324         * c-aux-info.c: Likewise.
4325         * c-convert.c: Likewise.
4326         * c-decl.c: Likewise.
4327         * c-errors.c: Likewise.
4328         * c-lang.c: Likewise.
4329         * c-objc-common.c: Likewise.
4330         * c-parser.c: Likewise.
4331         * c-typeck.c: Likewise.
4333 2015-06-04  Marek Polacek  <polacek@redhat.com>
4335         PR c/66341
4336         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
4337         it is a lvalue.
4339 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4341         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
4342         Warn for empty struct.
4343         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
4345 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
4347         * c-decl.c (start_function): Call plugin before parsing.
4348         (finish_function): Call plugin after parsing.
4350 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4352         PR c/49551
4353         * c-decl.c (merge_decls): Merge DECL_COMMON.
4355 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
4357         * Make-lang.in (check_gcc_pallelize): Define.
4359 2015-05-22  Marek Polacek  <polacek@redhat.com>
4361         PR c/47043
4362         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
4363         attributes.
4365 2015-05-21  Marek Polacek  <polacek@redhat.com>
4367         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
4368         DECL_BUILT_IN.
4370 2015-05-20  Marek Polacek  <polacek@redhat.com>
4372         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4373         * c-typeck.c: Likewise.
4375 2015-05-19  Marek Polacek  <polacek@redhat.com>
4377         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
4379 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
4381         PR middle-end/66199
4382         * c-parser.c (c_parser_omp_for_loop): Don't add
4383         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
4384         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
4385         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
4386         constructs.
4388 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
4390         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
4391         swaps.
4393 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4395         PR fortran/44054
4396         * c-objc-common.c (c_tree_printer): Replace locus pointer with
4397         accessor function.
4399 2015-05-14  Marek Polacek  <polacek@redhat.com>
4401         PR c/66066
4402         PR c/66127
4403         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
4404         rather than with 0.
4406 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
4408         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
4409         to add a call to warn_for_misleading_indentation.
4410         (c_parser_else_body): Likewise, adding param "else_loc".
4411         (c_parser_if_statement): Check for misleading indentation.
4412         (c_parser_while_statement): Likewise.
4413         (c_parser_for_statement): Likewise.
4415 2015-05-08  Marek Polacek  <polacek@redhat.com>
4417         PR c/64918
4418         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
4419         (output_init_element): Likewise.
4421 2015-05-07  Marek Polacek  <polacek@redhat.com>
4423         PR c/65179
4424         * c-typeck.c (build_binary_op): Warn when left shifting a negative
4425         value.
4427 2015-04-30  Marek Polacek  <polacek@redhat.com>
4429         * c-typeck.c (set_init_label): Call error_at instead of error and
4430         pass LOC to it.
4432         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
4433         the type of a decl.
4435         * c-typeck.c (c_build_va_arg): Clarify the error message.
4437 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
4439         * c-parser.c (c_parser_oacc_enter_exit_data): Use
4440         OMP_STANDALONE_CLAUSES.
4442 2015-04-28  Marek Polacek  <polacek@redhat.com>
4444         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
4446 2015-04-28  Marek Polacek  <polacek@redhat.com>
4448         PR c/65901
4449         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
4451 2015-04-25  Marek Polacek  <polacek@redhat.com>
4453         PR c/52085
4454         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
4455         attribute.
4457 2015-04-23  Marek Polacek  <polacek@redhat.com>
4459         PR c/65345
4460         * c-decl.c (set_labels_context_r): New function.
4461         (store_parm_decls): Call it via walk_tree_without_duplicates.
4462         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
4463         instead of create_tmp_var.  Build TARGET_EXPR instead of
4464         COMPOUND_EXPR.
4465         (build_atomic_assign): Use create_tmp_var_raw instead of
4466         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
4468 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
4470         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
4471         (c_parser_omp_target_update): Add missed %> to error_at ().
4473 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4475         PR target/55143
4476         * c-decl.c (c_default_pointer_mode): Remove definition.
4477         * c-tree.h (c_default_pointer_mode): Remove declaration.
4479 2015-03-27  Tobias Burnus  <burnus@net-b.de>
4481         PR c/65586
4482         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
4483         error out.
4484         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
4485         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
4486         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
4488 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
4490         * c-decl.c (c_decl_attributes): Also add "omp declare target"
4491         attribute for DECL_EXTERNAL VAR_DECLs.
4493 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
4495         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
4496         argument.
4498 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
4500         PR c/65120
4501         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
4502         before preparing arguments to warn_logical_not_parentheses.
4504 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
4506         PR c/65120
4507         * c-typeck.c (parser_build_binary_op): Don't warn for
4508         !!x == y or !b == y where b is _Bool.
4510 2015-03-09  Marek Polacek  <polacek@redhat.com>
4512         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
4513         * c-decl.c (grokdeclarator): Likewise.
4514         * c-typeck.c (build_binary_op): Likewise.
4516 2015-02-27  Marek Polacek  <polacek@redhat.com>
4518         PR c/65228
4519         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
4521 2015-02-14  Marek Polacek  <polacek@redhat.com>
4523         PR c/64768
4524         * c-decl.c (grokdeclarator): Set the range of a flexible array member
4525         declared through a typedef name.
4527 2015-02-13  Marek Polacek  <polacek@redhat.com>
4529         PR c/65050
4530         * c-decl.c (grokdeclarator): Print also the type when giving
4531         the error message about array's incomplete element type.
4533 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
4535         PR c/64824
4536         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
4537         check in the POP macro.
4539 2015-02-09  Marek Polacek  <polacek@redhat.com>
4541         PR c/64856
4542         * c-typeck.c (process_init_element): Don't always wrap
4543         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
4544         initializing a range of elements.
4546 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
4548         PR c/64824
4549         PR c/64868
4550         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
4552 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
4554         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
4555         processing enum declaration.
4557 2015-01-29  Marek Polacek  <polacek@redhat.com>
4559         PR c/64709
4560         * c-typeck.c (pop_init_level): If constructor_elements has
4561         exactly one element with integer_zerop value, set constructor_zeroinit
4562         to 1.  Remove braces around warning_init call.
4564 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
4566         PR c/64766
4567         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
4568         of FUNCTION_DECLs with error_mark_node.
4570 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
4572         PR c/64778
4573         * c-typeck.c (convert_arguments): Return -1 if there are
4574         error_args, even if we've diagnosed too many arguments.
4576 2015-01-21  Richard Biener  <rguenther@suse.de>
4578         PR middle-end/64313
4579         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
4580         for builtins the user declared correctly.
4582 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4583             Bernd Schmidt  <bernds@codesourcery.com>
4584             Cesar Philippidis  <cesar@codesourcery.com>
4585             James Norris  <jnorris@codesourcery.com>
4586             Jakub Jelinek  <jakub@redhat.com>
4587             Ilmir Usmanov  <i.usmanov@samsung.com>
4589         * c-parser.c: Include "gomp-constants.h".
4590         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
4591         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
4592         Use OMP_CLAUSE_SET_MAP_KIND.
4593         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
4594         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
4595         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
4596         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
4597         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
4598         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
4599         "copyout", "create", "delete", "deviceptr", "gang", "host",
4600         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
4601         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
4602         "present_or_create", "pcreate", "seq", "self", "vector",
4603         "vector_length", "wait", "worker".
4604         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
4605         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
4606         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
4607         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
4608         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
4609         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
4610         (c_parser_oacc_data_clause_deviceptr)
4611         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
4612         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
4613         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
4614         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
4615         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
4616         (c_parser_oacc_parallel, c_parser_oacc_update)
4617         (c_parser_oacc_wait): New functions.
4618         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
4619         (c_finish_oacc_data): New prototypes.
4620         * c-typeck.c: Include "gomp-constants.h".
4621         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
4622         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
4623         OMP_CLAUSE_SET_MAP_KIND.
4624         (c_finish_oacc_parallel, c_finish_oacc_kernels)
4625         (c_finish_oacc_data): New functions.
4626         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
4627         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4628         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4629         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
4630         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
4631         GOMP_MAP_FORCE_DEVICEPTR.
4633 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4635         * c-array-notation.c: Include hash-set.h, machmode.h,
4636         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4637         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4638         * c-aux-info.c: Ditto.
4639         * c-convert.c: Ditto.
4640         * c-decl.c: Ditto.
4641         * c-errors.c: Ditto.
4642         * c-lang.c: Dittoxs.
4643         * c-objc-common.c: Ditto.
4644         * c-parser.c: Ditto.
4645         * c-typeck.c: Include hash-set.h, machmode.h,
4646         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4647         fold-const.h, wide-int.h, inchash.h, real.h and
4648         fixed-value.h due to flattening of tree.h.
4650 2015-01-07  Marek Polacek  <polacek@redhat.com>
4652         PR c/64417
4653         * c-typeck.c (process_init_element): Disallow initialization of
4654         a flexible array member with a string constant if the structure
4655         is in an array.
4657 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4659         PR sanitizer/64344
4660         * c-typeck.c (convert_for_assignment, c_finish_return): For
4661         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
4662         types also set in_late_binary_op around convert call.
4663         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
4664         to integral type casts, if not in_late_binary_op, pass c_fully_fold
4665         result on expr as last argument to ubsan_instrument_float_cast,
4666         if in_late_binary_op, don't use c_save_expr but save_expr.
4668         Update copyright years.
4670 2015-01-05  Marek Polacek  <polacek@redhat.com>
4672         PR c/64423
4673         * c-typeck.c (build_array_ref): Pass loc down to
4674         warn_array_subscript_with_type_char.
4676 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
4678         * c-typeck.c: New behavious for pointers to arrays with qualifiers
4679         (common-pointer-type): For pointers to arrays take qualifiers from
4680         element type.
4681         (build_conditional_expr): Add warnings for lost qualifiers.
4682         (comp-target-types): Allow pointers to arrays with different qualifiers.
4683         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
4684         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
4685         to PEDWARN_FOR_QUALIFIERS.
4687 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
4689         PR sanitizer/64289
4690         * c-convert.c: Include ubsan.h.
4691         (convert): For real -> integral casts and
4692         -fsanitize=float-cast-overflow don't call convert_to_integer, but
4693         instead instrument the float cast directly.
4695 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
4697         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
4698         c_finish_stmt_expr): Remove NULL last argument from
4699         create_tmp_var_raw and create_tmp_var calls.
4700         * c-array-notation.c (fix_builtin_array_notation_fn,
4701         build_array_notation_expr, fix_conditional_array_notations_1,
4702         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
4704 2014-11-28  Marek Polacek  <polacek@redhat.com>
4706         PR c/63862
4707         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
4708         convert the right operand to integer type.
4710 2014-11-25  Marek Polacek  <polacek@redhat.com>
4712         PR c/63877
4713         * c-decl.c (start_function): Disable -Wmissing-declarations warning
4714         for inline functions.
4716 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
4718         PR target/63764
4719         * c-typeck.c (build_array_ref): Adjust
4720         convert_vector_to_pointer_for_subscript caller.  If it returns true,
4721         call non_lvalue_loc on the result.
4723 2014-11-11  Richard Biener  <rguenther@suse.de>
4725         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
4726         to true.
4728 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4730         PR c/60804
4731         * c-parser.c (c_parser_statement_after_labels): Call
4732         check_no_cilk.
4733         (c_parser_if_statement): Dito.
4734         (c_parser_switch_statement): Dito.
4735         (c_parser_while_statement): Dito.
4736         (c_parser_do_statement): Dito.
4737         (c_parser_for_statement): Dito.
4738         * c-typeck.c (c_finish_loop): Dito.
4740 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
4742         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
4743         OPT_Wshift_count_overflow in the warnings.
4745 2014-10-30  Marek Polacek  <polacek@redhat.com>
4747         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
4748         print the stripped version as well, if they're not the same.
4750 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4752         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
4753         machine_mode.
4755 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
4757         * c-decl.c: Adjust include files.
4758         * c-parser.c: Ditto.
4760 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
4761             Tom Tromey  <tromey@redhat.com>
4763         * c-tree.h (enum c_oracle_request): New.
4764         (c_binding_oracle_function): New typedef.
4765         (c_binding_oracle, c_pushtag, c_bind): Declare.
4766         * c-decl.c (c_binding_oracle): New global.
4767         (I_SYMBOL_CHECKED): New macro.
4768         (i_symbol_binding): New function.
4769         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
4770         (I_TAG_CHECKED): New macro.
4771         (i_tag_binding): New function.
4772         (I_TAG_BINDING, I_TAG_DECL): Redefine.
4773         (I_LABEL_CHECKED): New macro.
4774         (i_label_binding): New function.
4775         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
4776         (c_print_identifier): Save and restore c_binding_oracle.
4777         (c_pushtag, c_bind): New functions.
4779 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
4781         * c-typeck.c: Adjust include files.
4783 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4785         PR c++/53061
4786         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
4787         initialization here...
4788         (c_initialize_diagnostics): ... but here. Set defaults after
4789         building pretty-printer.
4791 2014-10-23  Marek Polacek  <polacek@redhat.com>
4793         PR c/63626
4794         * c-decl.c (pop_scope): Don't print warning in external_scope.
4796 2014-10-19  Marek Polacek  <polacek@redhat.com>
4798         PR c/63567
4799         * c-typeck.c (output_init_element): Allow initializing objects with
4800         static storage duration with compound literals even in C99 and add
4801         pedwarn for it.
4803 2014-10-17  Marek Polacek  <polacek@redhat.com>
4805         PR c/63567
4806         * c-typeck.c (digest_init): Allow initializing objects with static
4807         storage duration with compound literals even in C99 and add pedwarn
4808         for it.
4810 2014-10-17  Marek Polacek  <polacek@redhat.com>
4812         PR c/63543
4813         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
4814         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
4815         error multiple times.  Print the type.
4817 2014-10-17  Marek Polacek  <polacek@redhat.com>
4819         PR c/63549
4820         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
4821         type.
4823 2014-10-17  Marek Polacek  <polacek@redhat.com>
4825         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
4826         (start_function): Use OPT_Wimplicit_int instead of 0.
4827         (store_parm_decls_oldstyle): Likewise.
4829 2014-10-17  Alan Modra  <amodra@gmail.com>
4831         PR middle-end/61848
4832         * c-decl.c (merge_decls): Don't merge section name or tls model
4833         to newdecl symtab node, instead merge to olddecl.  Override
4834         existing olddecl section name.  Set tls_model for all thread-local
4835         vars, not just OMP thread-private ones.  Remove incorrect comment.
4837 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4839         * c-decl.c: Adjust include files.
4841 2014-10-14  DJ Delorie  <dj@redhat.com>
4843         * c-parser.c (c_parse_init): Add RID entries for each __intN.
4844         (c_token_starts_typename): Check all __intN, not just __int128.
4845         (c_token_starts_declspecs): Likewise.
4846         (c_parser_declspecs): Likewise.
4847         (c_parser_attribute_any_word): Likewise.
4848         (c_parser_objc_selector): Likewise.
4849         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
4850         (struct c_declspecs): Add int_n_idx field to record *which* __intN
4851         is specified.
4852         * c-decl.c (declspecs_add_type): Check for all __intN, not just
4853         __int128.
4854         (finish_declspecs): Likewise.
4856 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
4858         * c-parser.c (c_parser_all_labels): New function to replace
4859         the duplicate code.
4860         (c_parser_statement): Call the new function.
4862 2014-10-09  Marek Polacek  <polacek@redhat.com>
4864         PR c/63480
4865         * c-typeck.c (pop_init_level): Don't warn about initializing
4866         with { }.
4868 2014-10-07  Marek Polacek  <polacek@redhat.com>
4870         PR c/59717
4871         * c-decl.c (header_for_builtin_fn): New function.
4872         (implicitly_declare): Suggest which header to include.
4874 2014-10-07  Marek Polacek  <polacek@redhat.com>
4876         * c-convert.c (convert): Use error_operand_p.
4877         * c-typeck.c (require_complete_type): Likewise.
4878         (really_atomic_lvalue): Likewise.
4879         (digest_init): Likewise.
4880         (handle_omp_array_sections_1): Likewise.
4882 2014-10-03  Marek Polacek  <polacek@redhat.com>
4884         PR c/63453
4885         * c-decl.c (pop_scope): Don't warn about "inline function declared
4886         but never defined" for functions marked with gnu_inline attribute.
4888 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
4890         PR c++/63249
4891         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
4892         on low_bound and length.
4894 2014-09-24  Marek Polacek  <polacek@redhat.com>
4896         PR c/61405
4897         PR c/53874
4898         * c-parser.c: Don't define CPP_KEYWORD.
4899         (c_parser_switch_statement): Pass original type to c_finish_case.
4900         * c-tree.h (c_finish_case): Update declaration.
4901         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
4902         conditionally to c_do_switch_warnings.
4904 2014-09-03  Marek Polacek  <polacek@redhat.com>
4906         PR c/62024
4907         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
4908         conversions.
4910 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4911             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4912             Igor Zamyatin  <igor.zamyatin@intel.com>
4914         * c-parser.c (c_parser_cilk_for): New function.
4915         (c_parser_cilk_grainsize): Likewise.
4916         (c_get_temp_regvar): Likewise.
4917         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
4918         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
4919         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
4920         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
4921         case.
4923 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
4925         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
4926         with using HOST_WIDE_INT without truncation to 'int'
4928 2014-08-22  Marek Polacek  <polacek@redhat.com>
4930         PR c++/62199
4931         * c-typeck.c (parser_build_binary_op): Adjust call to
4932         warn_logical_not_parentheses.
4934 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
4936         PR other/62008
4937         * c-parser.c (c_parser_array_notation): Check for correct
4938         type of an array added.
4940 2014-08-19  Marek Polacek  <polacek@redhat.com>
4942         PR c++/62153
4943         * c-typeck.c (build_binary_op): If either operand of a comparison
4944         is a boolean expression, call maybe_warn_bool_compare.
4946 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
4948         PR c/45584
4949         * c-typeck.c (build_c_cast): Do a conversion even when the
4950         TYPE_MAIN_VARIANTs are the same.
4952 2014-08-19  Marek Polacek  <polacek@redhat.com>
4954         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
4955         pedwarn_c99 instead of pedwarn.
4956         (grokfield): Likewise.
4957         (warn_defaults_to): New function.
4958         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
4959         Unconditionally call pedwarn_c99 instead of pedwarn.
4960         (start_function): Call warn_defaults_to instead of pedwarn_c99.
4961         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
4962         check flag_isoc11 before.
4963         * c-errors.c (pedwarn_c99): Change the return type to bool.
4964         Handle -Wc99-c11-compat.
4965         * c-parser.c (disable_extension_diagnostics): Handle
4966         warn_c99_c11_compat.
4967         (restore_extension_diagnostics): Likewise.
4968         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
4969         instead of pedwarn, don't check flag_isoc11 before.
4970         (c_parser_declspecs): Likewise.
4971         (c_parser_alignas_specifier): Likewise.
4972         (c_parser_alignof_expression): Likewise.
4973         (c_parser_generic_selection): Likewise.
4974         * c-tree.h (pedwarn_c99): Update declaration.
4975         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
4976         of pedwarn_c99.
4978 2014-08-19  Marek Polacek  <polacek@redhat.com>
4980         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
4981         to pedwarn_c90.
4982         * c-errors.c: Include "opts.h".
4983         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
4984         * c-parser.c (disable_extension_diagnostics): Handle negative value
4985         of warn_c90_c99_compat, too.
4986         (restore_extension_diagnostics): Likewise.
4987         (c_parser_compound_statement_nostart): Pass
4988         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
4990 2014-08-12  Marek Polacek  <polacek@redhat.com>
4992         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
4993         Add pedwarn.
4994         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
4995         Likewise.
4996         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
4998 2014-08-10  Marek Polacek  <polacek@redhat.com>
5000         PR c/51849
5001         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
5002         Call pedwarn_c90 instead of pedwarn.
5003         (check_bitfield_type_and_width): Likewise.
5004         (declspecs_add_qual): Likewise.
5005         (declspecs_add_type): Likewise.
5006         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
5007         Adjust to only call pedwarn_c90.
5008         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
5009         pedwarn_c90 instead of pedwarn.
5010         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
5011         * c-parser.c (disable_extension_diagnostics): Handle
5012         warn_c90_c99_compat.
5013         (restore_extension_diagnostics): Likewise.
5014         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
5015         pedwarn_c90 instead of pedwarn.
5016         (c_parser_initelt): Likewise.
5017         (c_parser_postfix_expression): Likewise.
5018         (c_parser_postfix_expression_after_paren_type): Likewise.
5019         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
5020         * c-tree.h: Fix formatting.
5021         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
5022         pedwarn_c90 instead of pedwarn.
5024 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
5026         * c-typeck.c: Remove include of pointer-set.h.
5028 2014-08-07  Marek Polacek  <polacek@redhat.com>
5030         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
5032 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
5034         * c-typeck.c: Use hash_map instead of pointer_map.
5036 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
5038         * c-decl.c: Use hash_set instead of pointer_set.
5040 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
5042         PR middle-end/61455
5043         * c-array-notation.c (expand_array_notations): Handling
5044         of DECL_EXPR added.
5046 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
5048         PR c++/60517
5049         * c-typeck.c (c_finish_return): Return 0 instead of the address of
5050         a local variable.
5052 2014-07-30  Tom Tromey  <tromey@redhat.com>
5054         * c-typeck.c (struct constructor_stack) <designator_depth>: New
5055         field.
5056         (really_start_incremental_init, push_init_level): Initialize
5057         designator_depth.
5058         (pop_init_level): Set global designator_depth.
5059         (process_init_element): Check for designated_init attribute.
5061 2014-07-20  Marek Polacek  <polacek@redhat.com>
5063         PR c/61852
5064         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
5065         (implicitly_declare): Pass location to implicit_decl_warning.
5067 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
5069         PR middle-end/61294
5070         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
5071         If non-NULL, call c_parser_check_literal_zero.
5072         (c_parser_check_literal_zero): New function.
5073         (c_parser_postfix_expression_after_primary): Adjust
5074         c_parser_expr_list caller, handle -Wmemset-transposed-args.
5076 2014-07-06  Marek Polacek  <polacek@redhat.com>
5078         PR c/6940
5079         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
5080         * c-tree.h (C_ARRAY_PARAMETER): Define.
5081         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
5082         function parameter.
5084 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
5085             Chen Gang  <gang.chen.5i5j@gmail.com>
5087         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
5088         releasing symbol.
5090 2014-07-01  Marek Polacek  <polacek@redhat.com>
5092         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
5093         instead of 0 to WARN_FOR_ASSIGNMENT.
5095 2014-07-01  Marek Polacek  <polacek@redhat.com>
5097         PR c/58286
5098         * c-typeck.c (convert_for_assignment): Pass
5099         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
5101 2014-06-30  Marek Polacek  <polacek@redhat.com>
5103         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
5104         has no_sanitize_undefined attribute.
5106 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
5108         PR middle-end/57541
5109         * c-array-notation.c (fix_builtin_array_notation_fn):
5110         Check for 0 arguments in builtin call. Check that bultin argument is
5111         correct.
5112         * c-parser.c (c_parser_array_notation): Check for incorrect initial
5113         index.
5115 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5117         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
5118         qualifiers in __auto_type for atomic types.
5119         (c_parser_typeof_specifier): Discard all type qualifiers in
5120         __typeof__ for atomic types.
5122 2014-06-25  Marek Polacek  <polacek@redhat.com>
5124         PR c/61162
5125         * c-parser.c (c_parser_statement_after_labels): Pass the location of
5126         the return expression to c_finish_return.
5128 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
5130         * c-typeck.c (c_finish_omp_clauses): Make sure
5131         OMP_CLAUSE_LINEAR_STEP has correct type.
5133 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
5135         * c-decl.c: Adjust.
5137 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
5139         * c-parser.c (c_parser_omp_for_loop): For
5140         #pragma omp parallel for simd move lastprivate clause from parallel
5141         to for rather than simd.
5143 2014-06-23  Marek Polacek  <polacek@redhat.com>
5145         * c-typeck.c (parser_build_binary_op): Don't call
5146         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
5148 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
5150         * c-parser.c (c_parser_omp_threadprivate): Likewise.
5151         * c-decl.c (merge_decls): Likewise.
5153 2014-06-09  Marek Polacek  <polacek@redhat.com>
5155         PR c/36446
5156         * c-typeck.c (error_init): Call inform instead of error_at.
5157         (pedwarn_init): Call inform instead of pedwarn.
5158         (warning_init): Call inform instead of warning_at.
5160 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5162         * c-decl.c (merge_decls): Use set_decl_section_name.
5163         (duplicate_decls): Remove node if it exists.
5165 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
5167         PR c/53119
5168         * c-typeck.c (push_init_level, process_init_element,
5169         pop_init_level): Correct check for zero initialization, move
5170         missing brace warning to respect zero initialization.
5172 2014-06-05  Marek Polacek  <polacek@redhat.com>
5174         PR c/56724
5175         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
5177 2014-06-05  Marek Polacek  <polacek@redhat.com>
5179         PR c/49706
5180         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
5181         on the left hand side operand of a comparison.
5183 2014-06-05  Marek Polacek  <polacek@redhat.com>
5185         PR c/48062
5186         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
5187         Print note only if the warning was printed.
5189 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
5191         PR c/58942
5192         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
5193         with a pointer.
5195 2014-06-03  Marek Polacek  <polacek@redhat.com>
5197         PR c/60439
5198         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
5199         c_start_case.
5200         * c-tree.h (c_start_case): Update.
5201         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
5202         switch condition has boolean value.
5204 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
5206         * c-decl.c: Include builtins.h.
5207         * c-parser.c: Likewise.
5209 2014-05-27  Marek Polacek  <polacek@redhat.com>
5211         PR c/56724
5212         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
5213         error and warning calls to error_at and warning_at.  Pass location of
5214         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
5215         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
5216         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
5218 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
5220         PR c/61191
5221         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
5222         function parameters.
5224 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
5226         * c-decl.c (merge_decls): Preserve symtab node pointers.
5227         (duplicate_decls): Free new decl.
5229 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
5231         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
5232         initialization.
5234         * c-parser.c (c_parser_omp_target): Return bool values.
5236 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5238         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
5239         num_teams_loc variable to num_thread_limit_loc.
5241 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5243         * c-array-notation.c (expand_array_notations): Use void_node
5244         instead of void_zero_node.
5246 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
5248         * c-decl.c (finish_struct): Adjust.
5249         (finish_enum): Likewise.
5250         (bind): Adjust.
5251         (record_inline_static): Likewise.
5252         (push_scope): Likewise.
5253         (make_label): Likewise.
5254         (lookup_label_for_goto): Likewise.
5255         (finish_struct): Likewise.
5256         (finish_enum): Likewise.
5257         (store_parm_decls): Likewise.
5258         (c_push_function_context): Likewise.
5259         * c-lang.h: Remove usage of variable_size gty attribute.
5260         * c-parser.c (c_parse_init): Adjust.
5261         (c_parse_file): Likewise.
5263 2014-05-13  Marek Polacek  <polacek@redhat.com>
5265         PR c/61162
5266         * c-typeck.c (convert_for_assignment): Pass location to
5267         WARN_FOR_ASSIGNMENT instead of input_location.
5269 2014-05-10  Marek Polacek  <polacek@redhat.com>
5271         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
5272         maybe_warn_string_init.
5273         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
5274         maybe_warn_string_init.
5275         * c-tree.h (maybe_warn_string_init): Update declaration.
5276         * c-typeck.c (maybe_warn_string_init): Add location parameter.
5277         Call pedwarn_init with loc instead of with input_location.
5278         (digest_init): Pass init_loc to maybe_warn_string_init.
5279         (pop_init_level): Call pedwarn_init with loc instead of with
5280         input_location.
5281         (set_init_index): Likewise.
5282         (process_init_element): Likewise.
5284 2014-05-09  Marek Polacek  <polacek@redhat.com>
5286         PR c/61096
5287         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
5288         (c_parser_initelt): Pass location to set_init_label.  Pass array index
5289         location to set_init_index.
5290         * c-tree.h (push_init_level): Update declaration.
5291         (pop_init_level): Likewise.
5292         (set_init_index): Likewise.
5293         (set_init_label): Likewise.
5294         * c-typeck.c (error_init): Add location parameter.  Call error_at
5295         instead of error.
5296         (digest_init): Pass init_loc to error_init.
5297         (really_start_incremental_init):
5298         (push_init_level): Add location parameter.  Pass loc to pop_init_level
5299         and error_init.
5300         (pop_init_level): Likewise.
5301         (set_designator): Add location parameter.  Pass loc to pop_init_level,
5302         push_init_level, and error_init.
5303         (set_init_index): Add location parameter.  Pass loc to error_init and
5304         set_designator.
5305         (set_init_label): Likewise.
5306         (output_init_element): Pass loc to error_init.
5307         (process_init_element): Pass loc to error_init, pop_init_level,
5308         pedwarn_init, and push_init_level.
5310 2014-05-09  Marek Polacek  <polacek@redhat.com>
5312         PR c/50459
5313         * c-parser.c (c_parser_attributes): Parse the arguments as an
5314         expression-list if the attribute takes identifier.
5316 2014-05-08  Marek Polacek  <polacek@redhat.com>
5318         PR c/61053
5319         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
5320         TYPE_ALIGN_UNIT.
5322 2014-05-08  Marek Polacek  <polacek@redhat.com>
5324         PR c/61077
5325         * c-decl.c (start_function): Warn for _Atomic-qualified return type
5326         of main.
5328 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
5329             Mike Stump  <mikestump@comcast.net>
5330             Richard Sandiford  <rdsandiford@googlemail.com>
5332         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
5333         (finish_enum): Use wide-int interfaces.
5334         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
5335         * c-typeck.c (build_c_cast): Likewise.
5336         (set_nonincremental_init_from_string): Likewise.
5337         (c_tree_equal): Likewise.
5339 2014-05-02  Marek Polacek  <polacek@redhat.com>
5341         PR c/25801
5342         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
5343         Return size_one_node when the type is not complete.
5344         (pointer_diff): Remove comment.
5345         (build_unary_op): Improve error messages.
5347 2014-05-02  Marek Polacek  <polacek@redhat.com>
5349         * c-typeck.c (c_finish_return): Separate warning_at calls.
5351 2014-05-02  Marek Polacek  <polacek@redhat.com>
5353         * c-tree.h (error_init): Remove declaration.
5354         (pedwarn_init): Likewise.
5355         * c-typeck.c (error_init): Make static and move above.
5356         (pedwarn_init): Likewise.
5357         (warning_init): Move above.
5358         (maybe_warn_string_init): Likewise.
5360 2014-05-01  Jeff Law  <law@redhat.com>
5362         Revert:
5364         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5365         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
5366         avoid goto.
5368 2014-05-02  Marek Polacek  <polacek@redhat.com>
5370         PR c/60784
5371         * c-typeck.c (push_init_level): Set constructor_designated to
5372         p->designated for structures.
5374 2014-05-01  Marek Polacek  <polacek@redhat.com>
5376         PR c/60915
5377         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
5378         function-definition has an attribute after the declarator.
5380 2014-05-01  Marek Polacek  <polacek@redhat.com>
5382         PR c/60257
5383         * c-typeck.c (warning_init): Add location_t parameter.  Call
5384         warning_at instead of warning.
5385         (push_init_level): Pass input_location to warning_init.
5386         (add_pending_init): Add location_t parameter.  Pass loc to
5387         warning_init.
5388         (set_nonincremental_init): Pass input_location to add_pending_init.
5389         (set_nonincremental_init_from_string): Likewise.
5390         (output_init_element): Pass loc to warning_init and to
5391         add_pending_init.
5393 2014-05-01  Marek Polacek  <polacek@redhat.com>
5395         PR c/43395
5396         * c-typeck.c (c_finish_return): Distinguish between label and variable
5397         when warning about returning local address.
5399 2014-05-01  Marek Polacek  <polacek@redhat.com>
5401         PR c/29467
5402         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
5403         in C89 mode.
5405 2014-05-01  Marek Polacek  <polacek@redhat.com>
5407         PR c/43245
5408         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
5409         instead of 0 to WARN_FOR_QUALIFIERS.
5411 2014-05-01  Marek Polacek  <polacek@redhat.com>
5413         PR c/56989
5414         * c-typeck.c (default_conversion): Use better location for
5415         error call.
5417 2014-04-30  Marek Polacek  <polacek@redhat.com>
5419         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
5420         also when SANITIZE_FLOAT_DIVIDE is on.
5422 2014-04-30  Marek Polacek  <polacek@redhat.com>
5424         PR c/60139
5425         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
5426         and pedwarn_init.  Use loc insted of input_location.
5428 2014-04-30  Marek Polacek  <polacek@redhat.com>
5430         PR c/60351
5431         * c-typeck.c (build_binary_op): Use location when warning about
5432         shift count.
5434 2014-04-25  Marek Polacek  <polacek@redhat.com>
5436         PR c/18079
5437         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
5438         always_inline/noinline and hot/cold attributes.
5440 2014-04-25  Marek Polacek  <polacek@redhat.com>
5442         PR c/60114
5443         * c-parser.c (c_parser_initelt): Pass input_location to
5444         process_init_element.
5445         (c_parser_initval): Pass loc to process_init_element.
5446         * c-tree.h (process_init_element): Adjust declaration.
5447         * c-typeck.c (push_init_level): Pass input_location to
5448         process_init_element.
5449         (pop_init_level): Likewise.
5450         (set_designator): Likewise.
5451         (output_init_element): Add location_t parameter.  Pass loc to
5452         digest_init.
5453         (output_pending_init_elements): Pass input_location to
5454         output_init_element.
5455         (process_init_element): Add location_t parameter.  Pass loc to
5456         output_init_element.
5458 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
5460         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
5461         atomic-clause, allow comma in between atomic-clause and
5462         seq_cst.
5464 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
5466         PR c/59073
5467         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
5468         fails, don't set OM_PARALLEL_COMBINED and return NULL.
5470 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
5472         PR middle-end/60469
5473         * c-array-notation.c (fix_builtin_array_notation_fn): Use
5474         create_tmp_var instead build_decl for creating temps.
5475         (build_array_notation_expr): Likewise.
5476         (fix_conditional_array_notations_1): Likewise.
5477         (fix_array_notation_expr): Likewise.
5478         (fix_array_notation_call_expr): Likewise.
5480 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
5482         PR c++/60689
5483         * c-tree.h (c_build_function_call_vec): New prototype.
5484         * c-typeck.c (build_function_call_vec): Don't call
5485         resolve_overloaded_builtin here.
5486         (c_build_function_call_vec): New wrapper function around
5487         build_function_call_vec.  Call resolve_overloaded_builtin here.
5488         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
5489         Call c_build_function_call_vec instead of build_function_call_vec.
5490         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
5491         * c-decl.c (finish_decl): Likewise.
5493 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5495         PR c/55383
5496         * c-typeck.c: Use correct format string in cast-qual warning
5498 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
5500         * c-decl.c (c_decl_attributes): Use
5501         lang_hooks.types.omp_mappable_type.
5502         * c-typeck.c (c_finish_omp_clauses): Likewise.
5504 2014-03-06  Marek Polacek  <polacek@redhat.com>
5506         PR c/60197
5507         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
5508         of checking tree code.
5510 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5512         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
5513         (c_parser_parameter_declaration): Likewise.
5515 2014-02-19  Marek Polacek  <polacek@redhat.com>
5517         PR c/60195
5518         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
5519         Call mark_exp_read on exp.value.
5520         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
5521         TREE_ADDRESSABLE on old instead of val.
5522         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
5524 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5526         * c-parser.c (c_parser_get_builtin_args): Replace calls to
5527         C_EXPR_APPEND by vec_safe_push.
5528         * c-tree.h (C_EXPR_APPEND): Remove.
5530 2014-01-31  Marek Polacek  <polacek@redhat.com>
5532         PR c/59963
5533         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
5534         build_function_call_vec.
5535         (build_function_call): Likewise.
5536         (build_atomic_assign): Likewise.
5537         (build_function_call_vec): Add arg_loc parameter.  Use it.
5538         (convert_arguments): Likewise.
5539         (convert_for_assignment): Rename rhs_loc to expr_loc.
5540         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
5541         (c_parser_objc_keywordexpr): Likewise.
5542         (c_parser_postfix_expression_after_primary): Call
5543         build_function_call_vec with expr_loc rather than op_loc.
5544         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
5545         build_function_call_vec.
5546         (c_parser_expr_list): Add locations parameter.  Fill it with locations
5547         of function arguments.
5548         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
5550 2014-01-30  Marek Polacek  <polacek@redhat.com>
5552         PR c/59940
5553         * c-typeck.c (build_function_call_vec): Use loc parameter.
5554         (convert_arguments): Add location parameter.  Use it.
5555         (ep_convert_and_check): Likewise.
5556         (build_atomic_assign): Adjust convert_for_assignment call.
5557         (build_modify_expr): Likewise.
5558         (digest_init): Likewise.
5559         (c_finish_return): Likewise.
5560         (build_conditional_expr): Adjust ep_convert_and_check calls.
5561         (convert_for_assignment): Add rhs_loc parameter.  Use it.
5562         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
5563         calls.
5565 2014-01-30  Richard Biener  <rguenther@suse.de>
5567         PR c/59905
5568         * c-typeck.c (build_function_call_vec): Do not replace calls
5569         to a function via an incompatible type with a runtime abort.
5571 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5573         * c-parser.c (c_parser_declaration_or_fndef): Replaced
5574         flag_enable_cilkplus with flag_cilkplus.
5575         (c_parser_direct_declarator_inner): Likewise.
5576         (c_parser_attribute_any_word): Likewise.
5577         (c_parser_attributes): Likewise.
5578         (c_parser_compound_statement): Likewise.
5579         (c_parser_statement_after_labels): Likewise.
5580         (c_parser_if_statement): Likewise.
5581         (c_parser_switch_statement): Likewise.
5582         (c_parser_do_statement): Likewise.
5583         (c_parser_for_statement): Likewise.
5584         (c_parser_unary_expression): Likewise.
5585         (c_parser_postfix_expression): Likewise.
5586         (c_parser_postfix_expression_after_primary): Likewise.
5587         (c_parser_postfix_expression_after_primary): Likewise.
5588         (c_parser_omp_clause_name): Likewise.
5589         (c_finish_omp_declare_simd): Likewise.
5590         (c_parser_cilk_verify_simd): Likewise.
5591         * c-typeck.c (build_array_ref): Likewise.
5592         (build_function_call_vec): Likewise.
5593         (convert_arguments): Likewise.
5594         (build_compound_expr): Likewise.
5595         (c_finish_return): Likewise.
5596         (c_finish_if_stmt): Likewise.
5597         (c_finish_loop): Likewise.
5598         (build_binary_op): Likewise.
5600 2014-01-23  Marek Polacek  <polacek@redhat.com>
5602         PR c/59846
5603         * c-typeck.c (parser_build_binary_op): Use location instead of
5604         input_location.
5605         (build_binary_op): Pass location to shorten_compare.
5607 2014-01-23  Marek Polacek  <polacek@redhat.com>
5609         PR c/58346
5610         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
5611         an empty aggregate.
5613 2014-01-23  Marek Polacek  <polacek@redhat.com>
5615         PR c/59871
5616         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
5617         of a comma expression.
5618         (emit_side_effect_warnings): Likewise.
5620 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5622         PR c/59825
5623         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
5624         function to use walk_tree and moved a lot of its functionality to
5625         expand_array_notations.
5626         (expand_array_notations): New function.
5628 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5630         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
5631         attribute an attribute without value.
5633 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
5635         PR middle-end/58809
5636         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
5637         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
5639 2014-01-22  Marek Polacek  <polacek@redhat.com>
5641         PR c/59891
5642         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
5643         of remove_c_maybe_const_expr on op1 and op2.
5645 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
5647         PR c/58943
5648         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
5649         effects, preevaluate rhs using SAVE_EXPR first.
5651 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5653         PR c++/59631
5654         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
5655         statements with if-elseif statements.
5657 2014-01-06  Marek Polacek  <polacek@redhat.com>
5659         PR c/57773
5660         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
5661         defined bit-field types only in ISO C.
5663 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5665         Update copyright years
5667 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5669         * c-array-notation.c: Use the standard form for the copyright notice.
5671 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5673         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
5674         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
5675         field in parser is not empty.  If not-empty, call the function
5676         c_parser_finish_omp_declare_simd.
5677         (c_parser_cilk_clause_vectorlength): Modified function to be shared
5678         between SIMD-enabled functions and #pragma simd.  Added new parameter.
5679         (c_parser_cilk_all_clauses): Modified the usage of the function
5680         c_parser_cilk_clause_vectorlength as mentioned above.
5681         (c_parser_cilk_simd_fn_vector_attrs): New function.
5682         (c_finish_cilk_simd_fn_tokens): Likewise.
5683         (is_cilkplus_vector_p): Likewise.
5684         (c_parser_omp_clause_name): Added checking for "vectorlength,"
5685         "nomask," and "mask" strings in clause name.
5686         (c_parser_omp_all_clauses): Added 3 new case statements:
5687         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
5688         PRAGMA_CILK_CLAUSE_NOMASK.
5689         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
5690         check for vector attribute and if so call the function
5691         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
5692         called the function c_finish_cilk_simd_fn_tokens.
5693         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
5694         parser field is non-empty.  If so, parse them as you would parse
5695         the omp declare simd pragma.
5696         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
5697         Added a check when step is a parameter and flag it as error.
5698         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
5699         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
5700         pragma_omp_clause.
5702 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
5704         * c-parser.c (c_parser_omp_parallel): Fix description.
5706 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5708         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
5709         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
5710         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5711         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
5713 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
5715         PR c/52023
5716         * c-parser.c (c_parser_alignas_specifier): Use
5717         c_sizeof_or_alignof_type instead of c_alignof.
5718         (c_parser_alignof_expression): Likewise, with min_alignof
5719         parameter depending on alignof spelling used.
5721 2013-12-04  Marek Polacek  <polacek@redhat.com>
5723         PR c/54113
5724         * c-decl.c (start_function): Don't warn for missing prototype for
5725         inline functions.
5727 2013-12-03  Marek Polacek  <polacek@redhat.com>
5729         PR c/59351
5730         * c-decl.c (build_compound_literal): Allow compound literals with
5731         empty initial value.
5733 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
5735         PR c/58235
5736         * c-typeck.c (build_modify_expr): Diagnose assignment to
5737         expression with array type.
5739 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
5741         PR c/42262
5742         * c-typeck.c (process_init_element): Do not treat a string as
5743         initializing a whole array when used with a designator for an
5744         individual element.
5746 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
5748         PR c/57574
5749         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
5750         an inline function following a static declaration.
5752 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
5754         PR c/59310
5755         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
5756         to p_name before calling c_parser_omp_teams instead of after.
5757         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
5758         argument.  Remove unused p_name variable.
5760 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
5761             Jakub Jelinek  <jakub@redhat.com>
5763         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
5764         external_scope is NULL.
5766 2013-11-27  Tom de Vries  <tom@codesourcery.com>
5767             Marc Glisse  <marc.glisse@inria.fr>
5769         PR c++/59032
5770         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
5772 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
5774         * c-typeck.c: Add required include files from gimple.h.
5776 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
5778         * c-decl.c (define_label, shadow_tag_warned)
5779         (check_bitfield_type_and_width, grokdeclarator, grokparms,
5780         store_parm_decls_newstyle, store_parm_decls_oldstyle)
5781         (declspecs_add_type): Remove use of in_system_header macro.
5782         * c-parser.c (c_parser_unary_expression): Likewise.
5783         * c-typeck.c (store_init_value, process_init_element)
5784         (c_start_case): Likewise.
5786         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
5787         macro.
5789         * c-parser.c (c_parser_set_source_position_from_token): Remove
5790         reference to in_system_header from comment.
5792 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5794         * c-decl.c (grokdeclarator): Update comment to refer to
5795         tree_to_[su]hwi rather than tree_low_cst.
5797 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5799         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
5800         tree_to_uhwi throughout.
5802 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5804         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
5805         throughout.
5807 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5809         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
5810         throughout.
5812 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
5814         * c-parser.c (c_parser_cilk_simd): New.
5815         (c_parser_cilk_verify_simd): New.
5816         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
5817         (c_parser_omp_for_loop): Add case for NE_EXPR.
5818         Set c_break_label for CILK_SIMD.
5819         (c_parser_cilk_clause_vectorlength): New.
5820         (c_parser_cilk_clause_linear): New.
5821         (c_parser_cilk_clause_name): New.
5822         (c_parser_cilk_all_clauses): New.
5823         * c-typeck.c (build_unary_op): Pass location argument to
5824         readonly_error.
5825         (build_modify_expr): Same.
5826         (build_asm_expr): Same.
5827         (c_finish_bc_stmt): Error on break/continue in loops.
5829 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
5831         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
5833 2013-11-14  Diego Novillo  <dnovillo@google.com>
5835         * c-decl.c: Include print-tree.h.
5836         Include stor-layout.h.
5837         Include varasm.h.
5838         Include attribs.h.
5839         Include stringpool.h.
5840         * c-lang.c: Include fold-const.h.
5841         * c-parser.c: Include stringpool.h.
5842         Include attribs.h.
5843         Include stor-layout.h.
5844         Include varasm.h.
5845         Include trans-mem.h.
5846         * c-typeck.c: Include stor-layout.h.
5847         Include trans-mem.h.
5848         Include varasm.h.
5849         Include stmt.h.
5851 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5853         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
5854         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
5855         __auto_type.
5856         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
5857         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
5858         RID_AUTO_TYPE.
5859         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
5860         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
5861         (c_parser_declarator, c_parser_direct_declarator_inner)
5862         (c_parser_parameter_declaration, c_parser_type_name): All callers
5863         changed.
5864         (c_parser_declaration_or_fndef): Handle declarations with type
5865         determined from the initializer.
5867 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5869         * c-typeck.c: Include gimplify.h.
5871 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
5873         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
5874         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
5875         comment.
5876         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
5877         or _Thread_local as appropriate in diagnostics.
5878         (build_null_declspecs): Initialize ret->thread_gnu_p.
5879         (declspecs_add_scspec): Handle either __thread or _Thread_local
5880         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
5881         pedantic.  Do not disallow _Thread_local extern and _Thread_local
5882         static.
5884 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
5885             Andrew MacLeod  <amacleod@redhat.com>
5887         * c-aux-info.c (gen_type): Handle atomic qualifier.
5888         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
5889         qualifiers when compating types.
5890         (shadow_tag_warned): Handle atomic_p in declspecs.
5891         (quals_from_declspecs): Likewise.
5892         (start_decl): Use c_type_promotes_to when promoting argument
5893         types.
5894         (grokdeclarator): Handle _Atomic.
5895         (get_parm_info): Diagnose any qualifier on "void" as only
5896         parameter.
5897         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
5898         comparing types.  Use c_type_promotes_to when promoting argument
5899         types.
5900         (finish_function): Use c_type_promotes_to when promoting argument
5901         types.
5902         (build_null_declspecs): Handle atomic_p in declspecs.
5903         (declspecs_add_qual): Handle RID_ATOMIC.
5904         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
5905         (c_token_starts_declspecs): Handle RID_ATOMIC.
5906         (c_parser_declspecs): Handle atomic type specifiers and
5907         qualifiers.
5908         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
5909         from types of expressions with atomic type.
5910         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
5911         (c_parser_attribute_any_word): Handle RID_ATOMIC.
5912         (c_parser_initializer, c_parser_initelt, c_parser_initval)
5913         (c_parser_statement_after_labels, c_parser_switch_statement)
5914         (c_parser_for_statement, c_parser_expr_no_commas)
5915         (c_parser_conditional_expression, c_parser_binary_expression)
5916         (c_parser_cast_expression, c_parser_unary_expression)
5917         (c_parser_postfix_expression)
5918         (c_parser_postfix_expression_after_primary, c_parser_expression):
5919         Use convert_lvalue_to_rvalue.
5920         (c_parser_expression_conv, c_parser_expr_list): Document
5921         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
5922         (c_parser_objc_synchronized_statement): Use
5923         convert_lvalue_to_rvalue.
5924         (c_parser_objc_selector): Handle RID_ATOMIC.
5925         (c_parser_objc_receiver, c_parser_array_notation): Use
5926         convert_lvalue_to_rvalue.
5927         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
5928         _Atomic (type-name).
5929         (struct c_declspecs): Add atomic_p field.
5930         (convert_lvalue_to_rvalue): Declare.
5931         * c-typeck.c (c_type_promotes_to): Promote atomic types to
5932         corresponding atomic types.
5933         (qualify_type): Don't add _Atomic qualifiers from second argument.
5934         (comp_target_types): Do not allow _Atomic mismatches.
5935         (type_lists_compatible_p): Do not remove atomic qualifiers when
5936         comparing types.
5937         (really_atomic_lvalue, convert_lvalue_to_rvalue)
5938         (build_atomic_assign): New functions.
5939         (build_unary_op): Use build_atomic_assign for atomic increment and
5940         decrement.
5941         (build_conditional_expr): Do not treat _Atomic void as a qualified
5942         version of void.
5943         (build_modify_expr): Use build_atomic_assign for atomic LHS.
5944         (find_anonymous_field_with_type, convert_to_anonymous_field)
5945         (convert_for_assignment): Do not remove atomic qualifiers when
5946         comparing types.
5947         (digest_init): Do not accept initialization of arrays of atomic
5948         elements by string constants.
5949         (build_asm_expr): Use convert_lvalue_to_rvalue.
5950         (build_binary_op): Do not treat _Atomic void as a qualified
5951         version of void.
5953 2013-11-06  DJ Delorie  <dj@redhat.com>
5955         * c-decl.c (locate_old_decl): If a previous conflicting decl is
5956         both explicit and builtin, print the location of the explicit one.
5958 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5960         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
5961         c_parser_omp_distribute, c_parser_omp_teams,
5962         c_parser_omp_target, c_parser_omp_declare): Handle
5963         -fopenmp-simd.
5965 2013-11-03  Marek Polacek  <polacek@redhat.com>
5967         * c-decl.c (grokdeclarator): Add VLA instrumentation.
5969 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
5971         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
5972         check_dup_generic at the end, unless remove is true.
5973         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
5974         remove = true;.
5975         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
5977 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5979         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
5980         with decl that is not pointer nor array.
5982 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5984         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
5985         a spawning function is found.
5986         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
5987         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5988         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
5989         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
5990         case.
5991         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
5992         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
5993         expr.
5994         (c_finish_return): Added a check to reject _Cilk_spawn in return
5995         expression.
5996         (build_cilk_spawn): New function.
5997         (build_cilk_sync): Likewise.
5998         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
6000 2013-10-27  Tobias Burnus  <burnus@net-b.de>
6002         PR other/33426
6003         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
6004         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
6005         (c_parser_statement_after_labels): Update calls.
6007 2013-10-24  Tobias Burnus  <burnus@net-b.de>
6009         PR other/33426
6010         * c-parser.c (c_parser_pragma, c_parser_for_statement):
6011         Handle PRAGMA_IVDEP.
6012         (c_parser_statement_after_labels): Update call.
6014 2013-10-24  Marek Polacek  <polacek@redhat.com>
6016         * c-parser.c (c_parser_struct_declaration): Add a comment.
6017         (c_parser_declarator): Don't allow _Alignas here.
6019 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
6021         * c-parser.c: Include omp-low.h.
6022         * c-typeck.c: Likewise.
6024 2013-10-17  Marek Polacek  <polacek@redhat.com>
6026         PR c/58267
6027         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
6028         Document syntax of the array-declarator.
6029         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
6030         are not permitted.
6031         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
6032         (c_parser_struct_declaration): Likewise.
6033         (c_parser_declarator): Likewise.
6034         (c_parser_direct_declarator_inner): Likewise.
6035         (c_parser_parameter_declaration): Likewise.
6036         (c_parser_type_name): Likewise.
6038 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
6040         * c-lang.h (current_omp_declare_target_attribute): New extern
6041         decl.
6042         * c-parser.c: Include c-lang.h.
6043         (struct c_parser): Change tokens to c_token *.
6044         Add tokens_buf field.  Change tokens_avail type to unsigned int.
6045         (c_parser_consume_token): If parser->tokens isn't
6046         &parser->tokens_buf[0], increment parser->tokens.
6047         (c_parser_consume_pragma): Likewise.
6048         (enum pragma_context): Add pragma_struct and pragma_param.
6049         (c_parser_external_declaration): Adjust
6050         c_parser_declaration_or_fndef caller.
6051         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
6052         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
6053         Adjust recursive call.
6054         (c_parser_struct_or_union_specifier): Use pragma_struct instead
6055         of pragma_external.
6056         (c_parser_parameter_declaration): Use pragma_param instead of
6057         pragma_external.
6058         (c_parser_compound_statement_nostart, c_parser_label,
6059         c_parser_for_statement): Adjust
6060         c_parser_declaration_or_fndef callers.
6061         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
6062         it through to c_parser_conditional_expression.
6063         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
6064         pass it through to c_parser_binary_expression.  Adjust recursive
6065         call.
6066         (c_parser_binary_expression): Remove prec argument, add
6067         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
6068         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
6069         binop matches it, use build2 instead of parser_build_binary_op.
6070         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
6071         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
6072         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
6073         Handle pragma_struct and pragma_param the same as pragma_external.
6074         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
6075         (c_parser_omp_variable_list): Parse array sections for
6076         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
6077         (c_parser_omp_clause_collapse): Fully fold collapse expression.
6078         (c_parser_omp_clause_reduction): Handle user defined reductions.
6079         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
6080         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
6081         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
6082         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
6083         c_parser_omp_clause_depend, c_parser_omp_clause_map,
6084         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
6085         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
6086         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
6087         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
6088         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
6089         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
6090         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
6091         (c_parser_omp_for_loop): Add CODE argument, pass it through
6092         to c_finish_omp_for.  Change last argument to cclauses,
6093         and adjust uses to grab parallel clauses from the array of all
6094         the split clauses.  Adjust c_parser_binary_expression,
6095         c_parser_declaration_or_fndef and c_finish_omp_for callers.
6096         (omp_split_clauses): New function.
6097         (c_parser_omp_simd): New function.
6098         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
6099         Allow the function to be called also when parsing combined constructs,
6100         and call c_parser_omp_simd when parsing for simd.
6101         (c_parser_omp_sections_scope): If section-sequence doesn't start with
6102         #pragma omp section, require exactly one structured-block instead of
6103         sequence of statements.
6104         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
6105         Allow the function to be called also when parsing combined constructs.
6106         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
6107         Allow the function to be called also when parsing combined
6108         constructs.
6109         (c_parser_omp_taskgroup, c_parser_omp_cancel,
6110         c_parser_omp_cancellation_point, c_parser_omp_distribute,
6111         c_parser_omp_teams, c_parser_omp_target_data,
6112         c_parser_omp_target_update, c_parser_omp_target,
6113         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
6114         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
6115         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
6116         (c_parser_omp_construct): Add p_name and mask vars.  Handle
6117         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
6118         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
6119         and c_parser_omp_sections callers.
6120         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
6121         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
6122         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
6123         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
6124         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
6125         OMP_CLAUSE_DEPEND.
6126         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
6127         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
6128         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
6129         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
6130         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
6131         * c-typeck.c: Include tree-inline.h.
6132         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
6133         handle_omp_array_sections_1, handle_omp_array_sections,
6134         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
6135         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
6136         user defined reductions.
6137         (c_tree_equal): New function.
6138         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
6139         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
6140         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
6141         c_check_omp_declare_reduction_r): New prototypes.
6142         * c-decl.c (current_omp_declare_target_attribute): New variable.
6143         (c_decl_attributes): New function.
6144         (start_decl, start_function): Use it instead of decl_attributes.
6145         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
6146         c_omp_reduction_decl, c_omp_reduction_lookup,
6147         c_check_omp_declare_reduction_r): New functions.
6149 2013-09-25  Tom Tromey  <tromey@redhat.com>
6151         * Make-lang.in (c/gccspec.o): Remove.
6152         (CFLAGS-c/gccspec.o): New variable.
6153         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
6154         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
6155         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
6157 2013-09-25  Tom Tromey  <tromey@redhat.com>
6159         * Make-lang.in (c/gccspec.o): Don't use subshell.
6161 2013-09-18  Marek Polacek  <polacek@redhat.com>
6163         PR sanitize/58443
6164         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
6165         Remove unnecessary check.
6167 2013-09-18  Marek Polacek  <polacek@redhat.com>
6169         PR sanitizer/58411
6170         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
6171         no_sanitize_undefined attribute.
6173 2013-09-13  Kai Tietz  <ktietz@redhat.com>
6175         PR target/57848
6176         * c-decl.c (c_builtin_function_ext_scope): Remove
6177         wrong assumption that it is never called on prexisting
6178         symbol.
6180 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6182         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
6184 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6186         * c-objc-common.c (c_tree_printer): Tidy.
6188 2013-08-30  Marek Polacek  <polacek@redhat.com>
6190         * c-typeck.c (build_binary_op): Add division by zero and shift
6191         instrumentation.
6193 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6194             Joseph Myers  <joseph@codesourcery.com>
6196         PR c/35649
6197         * c-typeck.c (c_common_type): Prefer double_type_node over
6198         other REAL_TYPE types with the same precision.
6199         (convert_arguments): Likewise.
6201 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6203         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
6204         (c_initialize_diagnostics): Call a destructor for the early printer.
6206 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6208         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
6209         printer initialization.
6211 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6213         PR c/57490
6214         * c-array-notation.c (fix_conditional_array_notations_1): Added a
6215         check for truth values.
6216         (expand_array_notation_exprs): Added truth values case.  Removed an
6217         unwanted else.  Added for-loop to walk through subtrees in default
6218         case.
6220 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6222         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
6224 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
6226         * c-parser.c (struct c_generic_association): Fix typo.
6228 2013-07-23  Tom Tromey  <tromey@redhat.com>
6229             Joseph Myers  <joseph@codesourcery.com>
6231         * c-parser.c (struct c_generic_association): New.
6232         (c_generic_association_d): New typedef.
6233         (c_parser_generic_selection): New function.
6234         (c_parser_postfix_expression): Handle RID_GENERIC.
6236 2013-07-13  Jason Merrill  <jason@redhat.com>
6238         PR c++/57793
6239         * c-decl.c (finish_struct): Check for too-large class.
6241 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
6243         PR c/57821
6244         * c-typeck.c (set_init_index): When folding, check for index overflow.
6246 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6248         * c-parser.c (c_parser_array_notation): Removed rejection of array
6249         notations in an array of function pointers.
6251 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6253         * c-array-notation.c (make_triplet_val_inv): New function.
6254         (create_cmp_incr): Likewise.
6255         (create_array_refs): Likewise.
6256         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
6257         Also modularized common parts between functions and called the function.
6258         (build_array_notation_expr): Likewise.
6259         (fix_conditional_array_notations_1): Likewise.
6260         (fix_array_notation_expr): Likewise.
6261         (fix_array_notation_call_expr): Likewise.
6263 2013-06-18  Marek Polacek  <polacek@redhat.com>
6265         PR c/57630
6266         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
6268 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6270         * c-array-notation.c (build_array_notation_expr): Reject array notation
6271         mismatch between LHS and RHS even inside a call_expr.  Also, removed
6272         a couple while statements that were dead code.
6274 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6276         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
6277         excessive precision expressions in function parameters.  Also removed
6278         couple unwanted while statements.
6280 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6282         * c-array-notation.c (expand_array_notation_exprs): Added
6283         ARRAY_NOTATION_REF case.
6285 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6287         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
6288         function to c-family/array-notation-common.c.
6289         (is_cilkplus_reduce_builtin): Likewise.
6290         (find_rank): Likewise.
6291         (extract_array_notation_exprs): Likewise.
6292         (replace_array_notations): Likewise.
6293         (find_inv_trees): Likewise.
6294         (replace_inv_trees): Likewise.
6295         (contains_array_notation_expr): Likewise.
6296         (find_correct_array_notation_type): Likewise.
6297         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
6298         (struct inv_list): Moved this to c-family/array-notation-common.c.
6299         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
6301 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6303         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
6304         reduction functions outside the for-loop.  Added a check if the fundecl
6305         is non-NULL.  Finally, removed an unwanted if-statement, and made the
6306         body unconditional.
6308 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6310         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
6311         condition of the if-statement matches the rank of else-block and then-
6312         block when array notations are used.
6313         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
6314         expression after the entire function body is parsed.
6315         (c_parser_expr_no_commas): Delayed creating array notation expressions
6316         to the end of function parsing.
6317         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
6318         whole if-statement instead of just the condition.
6319         (expand_array_notation_exprs): Added MODIFY_EXPR case.
6321 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6323         PR c/57474
6324         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
6325         array to NULL_TREE if they are unused.  Also added a check for the
6326         field to be NULL before its fields are used in future.
6328 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6330         PR bootstrap/57450
6331         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
6332         (build_array_notation_expr): Likewise.
6334 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6336         * c-typeck.c (build_array_ref): Added a check to see if array's
6337         index is greater than one.  If true, then emit an error.
6338         (build_function_call_vec): Exclude error reporting and checking
6339         for builtin array-notation functions.
6340         (convert_arguments): Likewise.
6341         (c_finish_return): Added a check for array notations as a return
6342         expression.  If true, then emit an error.
6343         (c_finish_loop): Added a check for array notations in a loop
6344         condition.  If true then emit an error.
6345         (lvalue_p): Added a ARRAY_NOTATION_REF case.
6346         (build_binary_op): Added a check for array notation expr inside
6347         op1 and op0.  If present, we call another function to find correct
6348         type.
6349         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
6350         * c-parser.c (c_parser_compound_statement): Check if array
6351         notation code is used in tree, if so, then transform them into
6352         appropriate C code.
6353         (c_parser_expr_no_commas): Check if array notation is used in LHS
6354         or RHS, if so, then build array notation expression instead of
6355         regular modify.
6356         (c_parser_postfix_expression_after_primary): Added a check for
6357         colon(s) after square braces, if so then handle it like an array
6358         notation.  Also, break up array notations in unary op if found.
6359         (c_parser_direct_declarator_inner): Added a check for array
6360         notation.
6361         (c_parser_compound_statement): Added a check for array notation in
6362         a stmt.  If one is present, then expand array notation expr.
6363         (c_parser_if_statement): Likewise.
6364         (c_parser_switch_statement): Added a check for array notations in
6365         a switch statement's condition.  If true, then output an error.
6366         (c_parser_while_statement): Similarly, but for a while.
6367         (c_parser_do_statement): Similarly, but for a do-while.
6368         (c_parser_for_statement): Similarly, but for a for-loop.
6369         (c_parser_unary_expression): Check if array notation is used in a
6370         pre-increment or pre-decrement expression.  If true, then expand
6371         them.
6372         (c_parser_array_notation): New function.
6373         * c-array-notation.c: New file.
6374         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
6376 2013-05-23  Mike Stump  <mikestump@comcast.net>
6378         * c-typeck.c (convert_for_assignment): Handle references to memory
6379         spaces better.
6381 2013-05-16  Jason Merrill  <jason@redhat.com>
6383         * Make-lang.in (cc1$(exeext)): Use link mutex.
6385 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6387         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
6388         to simply use OPT_Wpointer_arith.
6389         (build_unary_op): Likewise.
6391 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
6393         PR c/19449
6394         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
6395         argument.  If set, or it temporarily for parsing of the first
6396         argument into force_folding_builtin_constant_p.
6397         (c_parser_postfix_expression): Adjust callers.
6399 2013-03-21  Richard Biener  <rguenther@suse.de>
6401         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6402         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
6404 2013-02-12  Marek Polacek  <polacek@redhat.com>
6406         PR c/44938
6407         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
6408         origtypes to NULL.
6410 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
6412         PR c/56078
6413         * c-typeck.c (set_nonincremental_init_from_string): If
6414         constructor_max_index is NULL, treat it as if tree_int_cst_lt
6415         returned false.
6416         (process_init_element): Likewise.
6418 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
6420         PR c++/55619
6421         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
6422         argument, don't call default_function_array_conversion
6423         nor c_fully_fold here.
6424         (c_parser_asm_statement): Adjust callers.
6425         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
6426         and outputs here, and call default_function_array_conversion
6427         on inputs that don't need to be addressable.
6429 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
6431         PR c/39464
6432         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
6433         warning require that both c_common_unsigned_type as well as
6434         c_common_signed_type is the same for both mvl and mvr types.
6436 2012-11-16  Diego Novillo  <dnovillo@google.com>
6438         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
6440         * c-common.c: Use new vec API in vec.h.
6441         * c-common.h: Likewise.
6442         * c-gimplify.c: Likewise.
6443         * c-pragma.c: Likewise.
6444         * c-pretty-print.c: Likewise.
6445         * c-pretty-print.h: Likewise.
6446         * c-semantics.c: Likewise.
6447         * c-decl.c: Likewise.
6448         * c-parser.c: Likewise.
6449         * c-tree.h: Likewise.
6450         * c-typeck.c: Likewise.
6452 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6454         PR c++/54930
6455         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
6457 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6459         PR c/53066
6460         * c-decl.c (warn_if_shadowing): Do not warn if a variable
6461         shadows a function, unless the variable is a function or a
6462         pointer-to-function.
6464 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
6466         PR c/54381
6467         * c-parser.c (struct c_tree_loc_pair): Removed.
6468         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
6469         add location_t * and tree * arguments, fill in array of 3
6470         sizeof_arg trees and corresponding locs.
6471         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
6472         c_parser_expr_list callers.
6473         (c_parser_postfix_expression_after_primary): Likewise.  Pass
6474         array of 3 sizeof_arg trees and locs (corresponding to first
6475         3 arguments) to sizeof_pointer_memaccess_warning.
6477 2012-10-09  Lawrence Crowl  <crowl@google.com>
6479         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
6480         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
6481         hash table.
6483 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
6485         PR c++/54194
6486         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
6487         call.
6489 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
6491         PR c++/54427
6492         * c-typeck.c: Include c-common.h.
6493         (enum stv_conv): Moved to c-common.h.
6494         (scalar_to_vector): Moved to c-common.c.
6495         (build_binary_op): Adapt to scalar_to_vector's new prototype.
6496         * Make-lang.in: c-typeck.c depends on c-common.h.
6498 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
6500         * c-decl.c (c_write_global_declarations): Fix handling of
6501         -fdump-ada-spec*.
6503 2012-09-30  Sharad Singhai  <singhai@google.com>
6505         * c-decl.c (c_write_global_declarations): Use a different method
6506         to determine if the dump has ben initialized.
6508 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6510         PR c/54552
6511         * c-typeck.c (c_cast_expr): When casting to a type requiring
6512         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
6513         c_fully_fold first.
6515 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6517         PR c/54103
6518         * c-typeck.c (build_unary_op): Pass original argument of
6519         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
6520         any C_MAYBE_CONST_EXPR, if it has integer operands.
6521         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
6522         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
6523         to c_objc_common_truthvalue_conversion, then remove any
6524         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
6525         c_objc_common_truthvalue_conversion not
6526         c_common_truthvalue_conversion.
6527         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
6528         call note_integer_operands for arguments with integer operands
6529         that are not integer constants.
6531 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
6533         PR c/54559
6534         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
6535         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
6537 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
6539         PR c/54428
6540         * c-convert.c (convert): Don't call fold_convert_loc if
6541         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
6542         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
6543         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
6545 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
6547         PR c/54355
6548         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
6549         for nested and empty_ok arguments in the call to
6550         c_parser_declaration_or_fndef.
6552 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
6554         * c-tree.h (c_last_sizeof_arg): Declare.
6555         * c-parser.c (struct c_tree_loc_pair): New type.
6556         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
6557         non-NULL.
6558         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
6559         (c_parser_postfix_expression_after_primary): Likewise.  Call
6560         sizeof_pointer_memaccess_warning if needed.
6561         (sizeof_ptr_memacc_comptypes): New function.
6562         * c-typeck.c (c_last_sizeof_arg): New global variable.
6563         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
6565 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
6567         * c-lang.h (lang_decl): Add variable_size GTY option.
6569 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
6571         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
6572         * Make-lang.in: Fix dependencies.
6574 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
6576         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
6577         and add language Makefile hooks.
6578         * config-lang.in: New file.
6579         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
6580         add the required "normal" config-lang.in rules.
6581         * c-lang.h: Moved from gcc/ to here.
6582         * c-tree.h: Likewise.
6583         * c-objc-common.c: Likewise.
6584         * c-objc-common.h: Likewise.
6585         * c-typeck.c: Likewise.
6586         * c-convert.c: Likewise.
6587         * c-lang.c: Likewise.
6588         * c-aux-info.c: Likewise.
6589         * c-errors.c: Likewise.
6590         * gccspec.c: Likewise.
6591         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
6592         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
6594 Copyright (C) 2012-2019 Free Software Foundation, Inc.
6596 Copying and distribution of this file, with or without modification,
6597 are permitted in any medium without royalty provided the copyright
6598 notice and this notice are preserved.