gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for ABS_EXPR for gimple...
[official-gcc.git] / gcc / c / ChangeLog
blob3e585b0e4ca9c81975c6a877da488c7466c55392
1 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
4         (c_parser_gimple_unary_expression): Likewise.
6 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
8         * c-parser.c (c_parser_oacc_declare): Add missing space in
9         diagnostics.
11 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13         PR c/79478
14         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
15         set_c_expr_source_range when parsing ssa-name.
17 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
18         Richard Biener  <rguenther@suse.de>
20         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
21         building IL when arguments are error_mark_node.
22         (c_parser_gimple_unary_expression): Likewise.
23         (c_parser_gimple_if_stmt): Likewise.
24         (c_parser_gimple_switch_stmt): Likewise.
25         (c_parser_gimple_return_stmt): Likewise.
26         (c_parser_parse_ssa_name): When name lookup fails do not build
27         an SSA name.  Use undeclared rather than not declared in error
28         reporting.
30 2017-02-09  Marek Polacek  <polacek@redhat.com>
32         PR c/79428
33         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
34         instead of c_parser_skip_until_found.
36 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
38         PR c/79431
39         * c-parser.c (c_parser_omp_declare_target): Don't invoke
40         symtab_node::get on automatic variables.
42 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
43             Chung-Lin Tang  <cltang@codesourcery.com>
45         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
46         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
47         semantic checking.
48         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
50 2017-02-07  Richard Biener  <rguenther@suse.de>
52         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
53         (c_parser_gimple_postfix_expression_after_primary):
54         Do not use c_build_function_call_vec to avoid folding and promotion.
55         Simplify.
57 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
59         PR lto/79061
60         * c-decl.c (pop_scope): Pass main_input_filename to
61         build_translation_unit_decl.
63 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
65         * c-parser.c: Include "read-rtl-function.h" and
66         "run-rtl-passes.h".
67         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
68         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
69         production.  Update for renaming of field "gimple_pass" to
70         "gimple_or_rtl_pass".  If __RTL was seen, call
71         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
72         to an auto_timevar, to cope with early exit.
73         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
74         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
75         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
76         Handle RID_RTL.
77         (c_parser_parse_rtl_body): New function.
78         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
79         (struct c_declspecs): Rename field "gimple_pass" to
80         "gimple_or_rtl_pass".  Add field "rtl_p".
81         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
82         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
83         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
84         (c_parser_gimple_or_rtl_pass_list): ...this.
86 2017-01-20  Marek Polacek  <polacek@redhat.com>
88         PR c/64279
89         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
91 2017-01-13  Richard Biener  <rguenther@suse.de>
93         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
94         nops.
96 2017-01-13  Richard Biener  <rguenther@suse.de>
98         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
99         _Literal ( type-name ) number.
101 2017-01-12  Richard Biener  <rguenther@suse.de>
103         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
104         __MEM.
106 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
108         PR c++/72813
109         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
110         PCH file.
112 2017-01-11  Richard Biener  <rguenther@suse.de>
114         PR bootstrap/79052
115         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
116         returns on parse errors.
118 2017-01-04  Marek Polacek  <polacek@redhat.com>
120         PR c++/64767
121         * c-parser.c (c_parser_postfix_expression): Mark zero character
122         constants by setting original_type in c_expr.
123         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
124         with a zero character constant.
125         (char_type_p): New function.
127 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
129         * c-parser.c (c_parser_declaration_or_fndef): Create a
130         rich_location at init_loc and parse it to start_init.
131         (last_init_list_comma): New global.
132         (c_parser_braced_init): Update last_init_list_comma when parsing
133         commas.  Pass it to pop_init_level.  Pass location of closing
134         brace to pop_init_level.
135         (c_parser_postfix_expression_after_paren_type): Create a
136         rich_location at type_loc and parse it to start_init.
137         (c_parser_omp_declare_reduction): Likewise for loc.
138         * c-tree.h (start_init): Add rich_location * param.
139         (pop_init_level): Add location_t param.
140         * c-typeck.c (struct initializer_stack): Add field
141         "missing_brace_richloc".
142         (start_init): Add richloc param, use it to initialize
143         the stack node's missing_brace_richloc.
144         (last_init_list_comma): New decl.
145         (finish_implicit_inits): Pass last_init_list_comma to
146         pop_init_level.
147         (push_init_level): When finding missing open braces, add fix-it
148         hints to the richloc.
149         (pop_init_level): Add "insert_before" param and pass it
150         when calling pop_init_level.  Add fixits about missing
151         close braces to any richloc.  Use the richloc for the
152         -Wmissing-braces warning.
153         (set_designator): Pass last_init_list_comma to pop_init_level.
154         (process_init_element): Likewise.
156 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
158         Update copyright years.
160 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
162         PR bootstrap/78817
163         * c-typeck.c (build_function_call_vec): If check_function_arguments
164         returns true, set TREE_NO_WARNING on CALL_EXPR.
166         PR c/77767
167         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
168         to *expr instead of overwriting it.
170 2016-12-20  Richard Biener  <rguenther@suse.de>
172         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
173         error recovery.
174         (c_parser_gimple_statement): Only build assigns for non-error
175         stmts.
176         (c_parser_gimple_postfix_expression_after): Improve error recovery.
178 2016-12-14  Martin Jambor  <mjambor@suse.cz>
180         * c-parser.c: Include omp-general.h and omp-offload.h instead of
181         omp-low.h.
182         (c_finish_oacc_routine): Adjusted call to
183         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
184         to use their new names.
185         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
186         use its new name.
187         (c_parser_oacc_update): Likewise.
188         (c_parser_omp_simd): Likewise.
189         (c_parser_omp_target_update): Likewise.
190         * c-typeck.c: Include omp-general.h instead of omp-low.h.
191         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
192         name.
193         (c_finish_omp_cancellation_point): Likewise.
194         * gimple-parser.c: Do not include omp-low.h
196 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
197             James Norris  <jnorris@codesourcery.com>
199         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
200         EXIT_DATA,WAIT} are not used in compound statements.
201         (c_parser_oacc_enter_exit_data): Update diagnostics.
203 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
205         PR c++/71973
206         * c-decl.c (diagnose_mismatched_decls): Use
207         OPT_Wbuiltin_declaration_mismatch here too.
209 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
210             Alan Hayward  <alan.hayward@arm.com>
211             David Sherwood  <david.sherwood@arm.com>
213         * c-decl.c (merge_decls): Use SET_DECL_MODE.
214         (make_label, finish_struct): Likewise.
216 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
217             Richard Biener  <rguenther@suse.de>
219         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
220         * config-lang.in (gtfiles): Add c/c-parser.h.
221         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
222         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
223         * c-parser.c (enum c_id_kind, struct c_token,
224         c_parser_next_token_is, c_parser_next_token_is_not,
225         c_parser_next_token_is_keyword,
226         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
227         Split out to ...
228         * c-parser.h: ... new header.
229         * c-parser.c: Include c-parser.h and gimple-parser.h.
230         (c_parser_peek_token, c_parser_peek_2nd_token,
231         c_token_starts_typename, c_parser_next_token_starts_declspecs,
232         c_parser_next_tokens_start_declaration, c_parser_consume_token,
233         c_parser_error, c_parser_require, c_parser_skip_until_found,
234         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
235         c_parser_type_name): Export.
236         (c_parser_tokens_buf): New function.
237         (c_parser_error): Likewise.
238         (c_parser_set_error): Likewise.
239         (c_parser_declspecs): Handle RID_GIMPLE.
240         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
241         via c_parser_parse_gimple_body.
242         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
243         c_token_starts_typename, c_parser_next_token_starts_declspecs,
244         c_parser_next_tokens_start_declaration, c_parser_consume_token,
245         c_parser_error, c_parser_require, c_parser_skip_until_found,
246         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
247         c_parser_type_name): Declare.
248         (struct c_parser): Declare forward.
249         (c_parser_tokens_buf): Declare.
250         (c_parser_error): Likewise.
251         (c_parser_set_error): Likewise.
252         * gimple-parser.c: New file.
253         * gimple-parser.h: Likewise.
255 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
257         PR c/35503
258         * c-parser.c (c_parser_postfix_expression_after_primary): Call
259         warn_for_restrict.
261 2016-09-11  Le-Chun Wu  <lcwu@google.com>
262             Mark Wielaard  <mjw@redhat.com>
264         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
265         to the given -Wshadow= variant.
267 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
269         * c-typeck.c: Include memmodel.h.
271 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
273         PR target/77957
274         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
275         instead of lhd_return_null_tree_v.
277 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
279         PR c++/69733
280         * c-decl.c (smallest_type_quals_location): New static function.
281         (grokdeclarator): Try to find the correct location for an ignored
282         qualifier.
284 2016-09-26  Marek Polacek  <polacek@redhat.com>
286         PR c/7652
287         * c-decl.c (pop_scope): Add gcc_fallthrough.
289 2016-09-26  Marek Polacek  <polacek@redhat.com>
291         PR c/7652
292         * c-parser.c (struct c_token): Add flags field.
293         (c_lex_one_token): Pass it to c_lex_with_flags.
294         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
295         into IFN_FALLTHROUGH.
296         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
297         attribute fallthrough after a case label or default label.
298         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
300 2016-09-24  Marek Polacek  <polacek@redhat.com>
302         PR c/77490
303         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
304         have boolean value.  Warn about ++/-- on booleans.
306 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
308         * c-parser.c (incomplete_record_decls): Remove unnecessary
309         = vNULL initialization of file scope vec.
311 2016-09-16  Marek Polacek  <polacek@redhat.com>
313         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
315 2016-09-14  Marek Polacek  <polacek@redhat.com>
317         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
318         (fix_array_notation_expr): Likewise.
319         * c-decl.c (finish_decl): Likewise.
320         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
321         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
322         (function_to_pointer_conversion): Use false instead of 0.
323         (convert_lvalue_to_rvalue): Likewise.
324         (parser_build_unary_op): Likewise.
325         (build_atomic_assign): Likewise.
326         (build_unary_op): Change nonconvert parameter type to bool, use
327         true/false instead of 1/0.
328         (build_binary_op): Use true instead of 1.
330 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
332         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
333         of add_fixit_insert to add_fixit_insert_before.
335 2016-09-13  Marek Polacek  <polacek@redhat.com>
337         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
338         it.
340 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
342         PR c++/77496
343         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
344         COMPOUND_EXPR to warn_for_omitted_condop.
346 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
348         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
349         c_get_substring_location for this new langhook.
351 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
353         PR c/65467
354         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
355         flag_openmp.
356         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
357         instead of mark_exp_read on low_bound/length expression.
358         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
359         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
360         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
361         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
362         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
363         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
364         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
365         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
366         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
367         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
368         instead of mark_expr_read.
369         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
370         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
371         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
372         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
373         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
374         array section bases outside of depend clause, for depend clause
375         use convert_lvalue_to_rvalue on the base.
376         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
377         linear, aligned, map, to and from clauses.
378         (c_omp_clause_copy_ctor): New function.
380 2016-09-01  Marek Polacek  <polacek@redhat.com>
382         PR c/7652
383         * c-typeck.c (composite_type): Add FALLTHRU comment.
385 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
387         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
388         to the insertion fixits for "struct", "union", and "enum".
390 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
392         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
393         rather than add_fixit_misspelled_id.
394         (undeclared_variable): Likewise.
395         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
396         now-redundant "here" params from add_fixit_insert method calls.
397         (c_parser_parameter_declaration): Likewise.
398         * c-typeck.c (build_component_ref): Remove now-redundant range
399         param from add_fixit_replace method calls.
401 2016-08-25  Marek Polacek  <polacek@redhat.com>
403         * c-typeck.c (parser_build_binary_op): Pass LHS to
404         warn_logical_not_parentheses.
406 2016-08-25  Marek Polacek  <polacek@redhat.com>
408         PR c/77323
409         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
410         or _FloatN or _FloatNx is not supported.
411         (finish_declspecs): Set type to integer_type_node when _FloatN or
412         _FloatNx is not supported.
414 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
416         PR c/32187
417         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
418         (struct c_declspecs): Add field floatn_nx_idx.
419         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
420         and _FloatNx type specifiers.
421         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
422         (c_parser_declspecs, c_parser_attribute_any_word)
423         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
424         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
425         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
426         narrower than double.
428 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
429             Martin Liska  <mliska@suse.cz>
431         PR c/67410
432         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
433         % to determine val element to change.  Assert that
434         wchar_bytes * charwidth fits into val array.
436 2016-08-12  Marek Polacek  <polacek@redhat.com>
438         PR c/7652
439         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
440         (c_parser_postfix_expression): Likewise.
441         * c-typeck.c (build_unary_op): Adjust fall through comment.
442         (c_mark_addressable): Likewise.
444 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
446         PR c/72816
447         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
448         array member through typedef, for orig_qual_indirect == 0 clear
449         orig_qual_type.
451 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
453         PR c/64955
454         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
455         this up to selftest::run_c_tests.
456         (selftest::run_c_tests): New function.
458 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
460         * c-parser.c (struct oacc_routine_data): Add error_seen and
461         fndecl_seen members.
462         (c_finish_oacc_routine): Use these.
463         (c_parser_declaration_or_fndef): Adjust.
464         (c_parser_oacc_routine): Likewise.  Support more C language
465         constructs, and improve diagnostics.  Move pragma context
466         checking...
467         (c_parser_pragma): ... here.
469         * c-parser.c (struct oacc_routine_data): New.
470         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
471         Simplify code.
472         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
473         declare target" attribute.
475 2016-08-01  Jan Beulich  <jbeulich@suse.com>
477         * c-fold.c (c_fully_fold_internal): Also emit shift count
478         warnings for vector types.
479         * c-typeck.c (build_binary_op): Likewise.
481 2016-07-29  Marek Polacek  <polacek@redhat.com>
483         PR c/71742
484         * c-decl.c (finish_struct): Rephrase an error message.
486         PR c/71853
487         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
488         to error node for invalid code.
490         PR c/71573
491         * c-decl.c (implicitly_declare): Return decl early not only for
492         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
494 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
496         PR c/71969
497         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
498         on GNU extern inline functions.
500 2016-07-29  Marek Polacek  <polacek@redhat.com>
502         PR c/71583
503         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
504         check expr.value.
506 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
508         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
510 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
512         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
513         spellcheck-tree.h
514         (best_macro_match): Likewise, converting from a typedef to a
515         subclass.
516         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
517         (lookup_name_fuzzy): Update for change of best_macro_match to a
518         subclass with a ctor that calls cpp_forall_identifiers.
520 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
522         * c-decl.c (implicit_decl_warning): Update for conversion of
523         return type of lookup_name_fuzzy to const char *.
524         (undeclared_variable): Likewise.
525         (lookup_name_fuzzy): Convert return type from tree to
526         const char *.
527         * c-parser.c (c_parser_declaration_or_fndef): Update for
528         conversion of return type of lookup_name_fuzzy to const char *.
529         (c_parser_parameter_declaration): Likewise.
531 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
533         * c-parser.c (c_parser_oacc_declare): Don't scan for
534         GOMP_MAP_POINTER.
535         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
536         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
537         zero-length subarrays.
539 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
541         PR c/71858
542         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
543         instead of FUZZY_LOOKUP_NAME.
544         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
545         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
547 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
549         PR c/71858
550         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
552 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
554         * c-parser.c (c_parser_generic_selection): Make type of variable
555         auto_vec.
556         (c_parser_omp_declare_simd): Likewise.
558 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
560         * c-decl.c (struct c_struct_parse_info): Change member types
561         from vec to auto_vec.
562         (start_struct): Adjust.
563         (finish_struct): Likewise.
565 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
567         PR c/71719
568         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
570 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
572         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
573         Move pragma context checking into...
574         (c_parser_omp_cancellation_point): ... here, and improve
575         diagnostic messages.
576         * c-typeck.c (c_finish_omp_cancel)
577         (c_finish_omp_cancellation_point): Improve diagnostic messages.
579 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
581         PR c/71685
582         * c-typeck.c (c_build_qualified_type): Don't clear
583         C_TYPE_INCOMPLETE_VARS for the main variant.
585 2016-06-28  Martin Sebor  <msebor@redhat.com>
587         PR c/71552
588         * c-typeck.c (output_init_element): Diagnose incompatible types
589         before non-constant initializers.
591 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
593         * Make-lang.in: Don't cat ../stage_current if it does not exist.
595 2016-06-23  Andi Kleen  <ak@linux.intel.com>
597         * Make-lang.in: Add support for autofdo.
599 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
601         PR c/70339
602         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
603         (implicit_decl_warning): When issuing warnings for implicit
604         declarations, attempt to provide a suggestion via
605         lookup_name_fuzzy.
606         (undeclared_variable): Likewise when issuing errors.
607         (lookup_name_in_scope): Likewise.
608         (struct edit_distance_traits<cpp_hashnode *>): New struct.
609         (best_macro_match): New typedef.
610         (find_closest_macro_cpp_cb): New function.
611         (lookup_name_fuzzy): New function.
612         * c-parser.c: Include gcc-rich-location.h.
613         (c_token_starts_typename): Split out case CPP_KEYWORD into...
614         (c_keyword_starts_typename): ...this new function.
615         (c_parser_declaration_or_fndef): When issuing errors about
616         missing "struct" etc, add a fixit.  For other kinds of errors,
617         attempt to provide a suggestion via lookup_name_fuzzy.
618         (c_parser_parms_declarator): When looking ahead to detect typos in
619         type names, also reject CPP_KEYWORD.
620         (c_parser_parameter_declaration): When issuing errors about
621         unknown type names, attempt to provide a suggestion via
622         lookup_name_fuzzy.
623         * c-tree.h (c_keyword_starts_typename): New prototype.
625 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
627         PR c/71601
628         * c-typeck.c (build_conditional_expr): Return error_mark_node if
629         c_common_type returns error_mark_node.
631 2016-06-19  Martin Sebor  <msebor@redhat.com>
633         PR c/69507
634         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
635         __alignof__ (expression).
637 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
639         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
641 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
643         * c-typeck.c (build_component_ref): Simplify fixit code by
644         using gcc_rich_location::add_fixit_misspelled_id.
645         (set_init_label): Likewise.
647 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
649         * c-parser.c (c_parser_initelt): Provide location of name for new
650         location_t param of set_init_label.
651         * c-tree.h (set_init_label): Add location_t param.
652         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
653         param and use it when issuing error messages about unrecognized
654         field names.  Attempt to provide a fixit hint if appropriate,
655         otherwise update the error message to provide the type name.
657 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
659         PR c/71381
660         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
661         Loosen checking.
663 2016-06-08  Martin Sebor  <msebor@redhat.com>
664             Jakub Jelinek  <jakub@redhat.com>
666         PR c++/70507
667         PR c/68120
668         * c-typeck.c (convert_arguments): Don't promote last argument
669         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
671 2016-06-08  Marek Polacek  <polacek@redhat.com>
673         PR c/71418
674         * c-decl.c (grokdeclarator): Check TYPE_P.
676         PR c/71426
677         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
678         code.
680 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
682         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
683         and structure element reference, capture the location of the
684         element name token and pass it to build_component_ref.
685         (c_parser_postfix_expression_after_primary): Likewise for
686         structure element dereference.
687         (c_parser_omp_variable_list): Likewise for
688         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
689         * c-tree.h (build_component_ref): Add location_t param.
690         * c-typeck.c (build_component_ref): Add location_t param
691         COMPONENT_LOC.  Use it, if available, when issuing hints about
692         mispelled member names to provide a fixit replacement hint.
694 2016-06-06  Marek Polacek  <polacek@redhat.com>
696         PR c/71362
697         * c-parser.c (c_parser_direct_declarator): Set location.
699 2016-06-06  Marek Polacek  <polacek@redhat.com>
701         * c-typeck.c (comptypes_internal): Handle comparisons of
702         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
703         TYPE_REF_CAN_ALIAS_ALL.
705 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
707         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
708         arguments as addressable when async clause exists.
710 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
712         PR c++/71349
713         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
714         when combined with target construct.
716 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
718         * c-parser.c (c_parser_omp_clause_schedule): Warn if
719         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
721 2016-05-25  Marek Polacek  <polacek@redhat.com>
723         PR c/71265
724         * c-decl.c (c_make_fname_decl): Don't check seen_error.
726         PR c/71266
727         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
729 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
731         * c-parser.c (c_parser_oacc_declare): Add support for
732         GOMP_MAP_FIRSTPRIVATE_POINTER.
733         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
734         argument with enum c_omp_region_type ort.
735         (handle_omp_array_sections): Likewise.  Update call to
736         handle_omp_array_sections_1.
737         (c_finish_omp_clauses): Add specific errors and warning messages for
738         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
739         call to handle_omp_array_sections.
741 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
743         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
745 2016-05-24  Richard Biener  <rguenther@suse.de>
747         PR middle-end/70434
748         PR c/69504
749         * c-typeck.c (build_array_ref): Do not complain about indexing
750         non-lvalue vectors.  Adjust for function name change.
752 2016-05-20  Martin Sebor  <msebor@redhat.com>
754         PR c/71115
755         * c-typeck.c (error_init): Use
756         expansion_point_location_if_in_system_header.
757         (warning_init): Same.
759 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
761         PR c/71171
762         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
763         in error-handling.
764         (c_parser_postfix_expression): Likewise.
765         * c-tree.h (c_expr::set_error): New method.
766         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
767         that result's range is initialized.
769 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
771         * c-typeck.c (parser_build_unary_op): Fix formatting.
773 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
775         * c-decl.c (grokdeclarator): Remove errmsg and use of
776         targetm.invalid_return_type.
777         (grokparms): Remove errmsg and use of
778         targetm.invalid_parameter_type.
780 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
782         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
783         function return type.
785 2016-05-12  Marek Polacek  <polacek@redhat.com>
787         PR c/70756
788         * c-decl.c (build_compound_literal): Pass LOC down to
789         c_incomplete_type_error.
790         * c-tree.h (require_complete_type): Adjust declaration.
791         (c_incomplete_type_error): Likewise.
792         * c-typeck.c (require_complete_type): Add location parameter, pass it
793         down to c_incomplete_type_error.
794         (c_incomplete_type_error): Add location parameter, pass it down to
795         error_at.
796         (build_component_ref): Pass location down to c_incomplete_type_error.
797         (default_conversion): Pass location down to require_complete_type.
798         (build_array_ref): Likewise.
799         (build_function_call_vec): Likewise.
800         (convert_arguments): Likewise.
801         (build_unary_op): Likewise.
802         (build_c_cast): Likewise.
803         (build_modify_expr): Likewise.
804         (convert_for_assignment): Likewise.
805         (c_finish_omp_clauses): Likewise.
807 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
809         PR c/43651
810         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
811         is enabled.
812         * c-errors.c (pedwarn_c90): Return true if warned.
813         * c-tree.h (pedwarn_c90): Change return type to bool.
814         (enum c_declspec_word): Add new enumerator cdw_atomic.
816 2016-05-11  Marek Polacek  <polacek@redhat.com>
818         PR c++/71024
819         * c-decl.c (diagnose_mismatched_decls): Factor out code to
820         diagnose_mismatched_attributes and call it.
822 2016-05-10  Marek Polacek  <polacek@redhat.com>
824         PR c/70255
825         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
826         on a declaration following the definition.
828 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
830         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
831         parse it through to c_parser_c99_block_statement.
832         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
833         caller.
835 2016-05-04  Marek Polacek  <polacek@redhat.com>
837         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
838         OPT_Wdangling_else.
840 2016-05-04  Marek Polacek  <polacek@redhat.com>
842         PR c/48778
843         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
844         for macro expansions.
846 2016-05-03  Marek Polacek  <polacek@redhat.com>
848         PR c/70859
849         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
850         check_builtin_function_arguments.
852 2016-05-03  Richard Biener  <rguenther@suse.de>
854         * Make-lang.in (cc1-checksum.c): For stage-final re-use
855         the checksum from the previous stage.
857 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
859         * c-parser.c (c_parser_oacc_all_clauses): Update call to
860         c_finish_omp_clauses.
861         (c_parser_omp_all_clauses): Likewise.
862         (c_parser_oacc_cache): Likewise.
863         (c_parser_oacc_loop): Likewise.
864         (omp_split_clauses): Likewise.
865         (c_parser_omp_declare_target): Likewise.
866         (c_parser_cilk_all_clauses): Likewise.
867         (c_parser_cilk_for): Likewise.
868         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
869         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
871 2016-05-02  Marek Polacek  <polacek@redhat.com>
873         PR c/70851
874         * c-decl.c (grokdeclarator): Diagnose when array's size has an
875         incomplete type.
877 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
879         PR middle-end/70626
880         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
881         OACC_LOOP_CLAUSE_MASK.
882         (c_parser_oacc_kernels_parallel): Update call to
883         c_oacc_split_loop_clauses.
885 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
887         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
888         argument to build_modify_expr in two cases.
890 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
892         * c-parser.c (c_parser_postfix_expression_after_primary): Call
893         warn_for_memset instead of warning directly here.
895 2016-04-26  Marek Polacek  <polacek@redhat.com>
897         PR c/67784
898         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
899         out of ...
900         (c_parser_for_statement): ... here.
901         (c_parser_if_statement): Use it.
902         (c_parser_switch_statement): Use it.
903         (c_parser_while_statement): Use it.
905         PR c/70791
906         * c-decl.c (pushdecl): Pass LOCUS down to warning.
908 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
910         PR c++/69363
911         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
912         instead of c_finish_cilk_clauses.
913         * c-tree.h (c_finish_omp_clauses): Add new default argument.
914         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
915         floating-point variables in the linear clause for Cilk Plus.
917 2016-04-18  Michael Matz  <matz@suse.de>
919         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
920         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
922 2016-04-15  Marek Polacek  <polacek@redhat.com>
924         PR c/70671
925         * c-typeck.c (build_unary_op): Pass location down to error and
926         warning call.
928 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
930         PR c/70436
931         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
932         where needed.
933         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
934         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
935         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
936         Adjust c_parser_pragma callers.
937         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
938         caller.
939         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
940         c_parser_statement.
941         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
942         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
943         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
944         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
945         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
946         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
947         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
948         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
949         down where needed.
950         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
951         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
952         calls.
954 2016-04-13  Marek Polacek  <polacek@redhat.com>
956         PR c/70436
957         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
958         adjust callers.
959         (c_parser_statement): Likewise.
960         (c_parser_c99_block_statement): Likewise.
961         (c_parser_while_statement): Likewise.
962         (c_parser_for_statement): Likewise.
963         (c_parser_if_body): Don't set IF_P here.
964         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
965         about dangling else here.
966         * c-tree.h (c_finish_if_stmt): Adjust declaration.
967         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
968         warn about dangling else here.
970 2016-04-04  Marek Polacek  <polacek@redhat.com>
972         PR c/70307
973         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
975 2016-03-31  Marek Polacek  <polacek@redhat.com>
977         PR c/70297
978         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
980 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
982         PR c/70281
983         * c-parser.c (c_parser_postfix_expression): Set the source range
984         for uses of "__builtin_types_compatible_p".
986 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
988         PR c/70280
989         * c-typeck.c (composite_type): Don't count void_list_node
990         into len, if the list is terminated by void_list_node, start
991         with void_list_node instead of NULL for newargs.  Stop
992         at void_list_node.
994 2016-03-16  Marek Polacek  <polacek@redhat.com>
996         PR c/70093
997         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
998         nested functions returning VM types.
1000 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
1002         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1003         when calling c_finish_omp_clauses.
1005 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
1007         PR c/69824
1008         * c-decl.c (get_parm_info): Don't queue implicit function declarations
1009         for later.
1011 2016-03-04  Marek Polacek  <polacek@redhat.com>
1013         PR c/69798
1014         * c-parser.c (c_parser_postfix_expression): Call
1015         c_parser_cast_expression rather than c_parser_postfix_expression.
1017 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
1019         PR c/69796
1020         PR c/69974
1021         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1022         of incomplete decls to error_mark_node.
1024 2016-02-24  Marek Polacek  <polacek@redhat.com>
1026         PR c/69819
1027         * c-decl.c (finish_decl): Don't update the copy of the type of a
1028         different decl type.
1030 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1032         PR objc/69844
1033         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1034         in id_kind reclassification.
1036 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1038         PR c/69835
1039         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1041 2016-02-16  James Norris  <jnorris@codesourcery.com>
1043         PR c/64748
1044         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1046 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
1048         * c-decl.c (build_null_declspecs): Zero the entire struct.
1050         PR c/69522
1051         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
1052         callers changed.  If nested_p is true, use it to call
1053         finish_implicit_inits.
1054         * c-tree.h (finish_implicit_inits): Declare.
1055         * c-typeck.c (finish_implicit_inits): New function.  Move code
1056         from ...
1057         (push_init_level): ... here.
1058         (set_designator, process_init_element): Call finish_implicit_inits.
1060 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
1062         PR c/69768
1063         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1064         arguments for -Waddress warning.
1066 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
1068         PR c/69669
1069         * c-decl.c (finish_enum): When honoring mode attribute,
1070         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1072 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
1074         PR debug/69518
1075         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1076         all type variants, not just TYPE_MAIN_VARIANT.
1078 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
1080         PR debug/66869
1081         * c-decl.c (c_write_global_declarations_1): Warn with
1082         warn_unused_function if static prototype without definition
1083         is not C_DECL_USED.
1085 2016-01-27  Marek Polacek  <polacek@redhat.com>
1087         PR c/68062
1088         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1089         to unsigned, if needed.  Add -Wsign-compare warning.
1091 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1093         PR tree-optimization/69483
1094         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1096 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1098         PR c/24293
1099         * c-tree.h (incomplete_record_decls): Declare.
1100         * c-parser.c (incomplete_record_decls): Define.
1101         (c_parser_translation_unit): Iterate through incomplete_record_decls and
1102         report error if any decl has zero size.
1103         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1104         or enum type to incomplete_record_decls.
1106 2016-01-14  Tom de Vries  <tom@codesourcery.com>
1108         PR tree-optimization/68773
1109         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1110         set force_output.
1112 2016-01-14  Marek Polacek  <polacek@redhat.com>
1114         PR c/69262
1115         * c-decl.c (grokdeclarator): Provide more information for invalid
1116         array declarations.
1118 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
1120         * c-parser.c (c_parser_unary_expression): For dereferences, build
1121         a combined location before calling build_indirect_ref, so that
1122         error reports cover the full range, manually updating the c_expr
1123         src_range.
1125 2016-01-06  Marek Polacek  <polacek@redhat.com>
1127         PR sanitizer/69099
1128         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
1129         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
1130         NULL.
1132 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
1134         Update copyright years.
1136 2016-01-04  Marek Polacek  <polacek@redhat.com>
1138         PR c/68908
1139         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
1140         optimization to use __atomic_fetch_* built-in if possible.
1142 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
1144         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1145         into...
1146         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
1147         all users.
1149 2015-12-22  Marek Polacek  <polacek@redhat.com>
1151         PR c/69002
1152         * c-typeck.c (build_component_ref): Warn when acessing elements of
1153         atomic structures or unions.
1155 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
1157         * c-typeck.c: Include "gcc-rich-location.h".
1158         (build_binary_op): In the two places that call binary_op_error,
1159         create a gcc_rich_location and populate it with the location of
1160         the binary op and its two operands.
1162 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1164         * c-parser.c (c_parser_statement_after_labels): When calling
1165         c_finish_return, Use the return expression's location if it has
1166         one, falling back to the location of the first token within it.
1167         * c-typeck.c (c_finish_return): When issuing warnings about
1168         the incorrect presence/absence of a return value, issue a note
1169         showing the declaration of the function.
1171 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1173         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1174         to 4.
1175         (c_parser_peek_nth_token): New function.
1176         (c_parser_peek_conflict_marker): New function.
1177         (c_parser_error): Detect conflict markers and report them as such.
1179 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1181         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1182         to preserve range information for the primary expression
1183         in the call to c_parser_postfix_expression_after_primary.
1185 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1187         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1188         expression location, falling back on the first token location,
1189         rather than always using the latter.
1191 2015-12-16  Marek Polacek  <polacek@redhat.com>
1193         PR c/64637
1194         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1195         available.
1197 2015-12-15  Marek Polacek  <polacek@redhat.com>
1199         PR c/68907
1200         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1201         artificial decl.
1203 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1205         * c-parser.c (c_parser_alignof_expression): Capture location of
1206         closing parenthesis (if any), or of end of unary expression, and
1207         use it to build a src_range for the expression.
1209 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1211         PR c/68757
1212         * c-parser.c (c_parser_get_builtin_args): Add
1213         "out_close_paren_loc" param, and write back to it.
1214         (c_parser_postfix_expression): Capture the closing
1215         parenthesis location for RID_CHOOSE_EXPR,
1216         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1217         RID_BUILTIN_SHUFFLE and use it to set the source range
1218         for such expressions; within RID_BUILTIN_COMPLEX set
1219         the underlying location.
1221 2015-12-07  Marek Polacek  <polacek@redhat.com>
1223         PR c/68668
1224         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1225         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1227 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1229         * c-tree.h (c_build_va_arg): Adjust prototype.
1230         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1231         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1232         parameter, adjust throughout and issue an error if EXPR is a component
1233         with reverse storage order.
1235 2015-12-02  Jason Merrill  <jason@redhat.com>
1237         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1238         (c_fully_fold_internal, decl_constant_value_for_optimization):
1239         Move from c-common.c.
1240         * c-tree.h: Declare decl_constant_value_for_optimization.
1241         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1243 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
1245         PR c/68162
1246         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1247         following link from declarator to next declarator.  Track original
1248         qualified type and pass it to c_build_qualified_type.
1249         * c-typeck.c (c_build_qualified_type): Add arguments
1250         orig_qual_type and orig_qual_indirect.
1252 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
1254         * c-parser.c (c_parser_omp_clause_name)
1255         (c_parser_oacc_all_clauses): Alphabetical sorting.
1257 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1259         PR c/68533
1260         * c-decl.c (get_parm_info): Use b->locus instead of input_location
1261         for diagnostics.
1263 2015-12-01  Julian Brown  <julian@codesourcery.com>
1264             Cesar Philippidis  <cesar@codesourcery.com>
1265             James Norris  <James_Norris@mentor.com>
1267         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1268         (c_parser_oacc_clause_use_device): New function.
1269         (c_parser_oacc_all_clauses): Add use_device support.
1270         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1271         (c_parser_oacc_host_data): New function.
1272         (c_parser_omp_construct): Add host_data support.
1273         * c-tree.h (c_finish_oacc_host_data): Add prototype.
1274         * c-typeck.c (c_finish_oacc_host_data): New function.
1275         (c_finish_omp_clauses): Add use_device support.
1277 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1279         PR c/67106
1280         * c-decl.c: Set TYPE_PACKED in variants.
1282 2015-11-27  Martin Liska  <mliska@suse.cz>
1284         PR c++/68312
1285         * c-array-notation.c (fix_builtin_array_notation_fn):
1286         Use release_vec_vec instead of vec::release.
1287         (build_array_notation_expr): Likewise.
1288         (fix_conditional_array_notations_1): Likewise.
1289         (fix_array_notation_expr): Likewise.
1290         (fix_array_notation_call_expr): Likewise.
1292 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1294         PR c/63326
1295         * c-parser.c (c_parser_compound_statement_nostart): If
1296         last_label is true, use pragma_stmt instead of pragma_compound
1297         as second c_parser_pragma argument.
1298         (c_parser_omp_ordered, c_parser_omp_target_update,
1299         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
1300         false as second argument to c_parser_skip_to_pragma_eol after
1301         diagnosing standalone directives used in pragma_stmt context.
1303 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
1305         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
1306         with "if (ENABLE_OFFLOADING)".
1308 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
1310         PR objc/68438
1311         * c-parser.c (c_parser_postfix_expression): Set up source ranges
1312         for various Objective-C constructs: Class.name syntax,
1313         @selector(), @protocol(), @encode(), and [] message syntax.
1315 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1317         PR 62314
1318         * c-typeck.c (should_suggest_deref_p): New function.
1319         (build_component_ref): Special-case POINTER_TYPE when
1320         generating a "not a structure of union"  error message, and
1321         suggest a "->" rather than a ".", providing a fix-it hint.
1323 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1325         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
1326         candidate into a new function, find_closest_identifier.
1328 2015-11-19  Marek Polacek  <polacek@redhat.com>
1330         PR c/68412
1331         * c-typeck.c (parser_build_binary_op): Properly handle
1332         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
1334 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
1336         * c-parser.c (set_c_expr_source_range): Bulletproof both
1337         overloaded implementations against NULL expr->value.
1338         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
1339         values.
1340         (c_parser_unary_expression): Likewise when handling addresses of
1341         labels.
1342         (c_parser_postfix_expression): Likewise for statement expressions,
1343         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
1344         __builtin_va_arg, and for __builtin_offset_of.
1345         (c_parser_postfix_expression_after_paren_type): Initialize expr's
1346         src_range using the range of the braced initializer.
1347         (c_parser_transaction_expression): Set src_range for "ret" to a
1348         sane pair of values.
1350 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1352         * c-parser.c (c_finish_omp_declare_simd): Look for
1353         "simd" attribute as well. Update error message.
1355 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1357         * c-parser.c (c_parser_omp_declare_target): Adjust.
1359 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1361         * c-typeck.c (c_finish_omp_clauses): Don't mark
1362         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
1364 2015-11-14  Marek Polacek  <polacek@redhat.com>
1366         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
1367         * c-typeck.c: Likewise.
1369 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1371         * c-decl.c (warn_defaults_to): Pass line_table to
1372         rich_location ctor.
1373         * c-errors.c (pedwarn_c99): Likewise.
1374         (pedwarn_c90): Likewise.
1375         * c-parser.c (set_c_expr_source_range): New functions.
1376         (c_token::get_range): New method.
1377         (c_token::get_finish): New method.
1378         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
1379         based on the range from the start of the LHS to the end of the
1380         RHS.
1381         (c_parser_conditional_expression): Likewise, based on the range
1382         from the start of the cond.value to the end of exp2.value.
1383         (c_parser_binary_expression): Call set_c_expr_source_range on
1384         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1385         (c_parser_cast_expression): Call set_c_expr_source_range on ret
1386         based on the cast_loc through to the end of the expr.
1387         (c_parser_unary_expression): Likewise, based on the
1388         op_loc through to the end of op.
1389         (c_parser_sizeof_expression) Likewise, based on the start of the
1390         sizeof token through to either the closing paren or the end of
1391         expr.
1392         (c_parser_postfix_expression): Likewise, using the token range,
1393         or from the open paren through to the close paren for
1394         parenthesized expressions.
1395         (c_parser_postfix_expression_after_primary): Likewise, for
1396         various kinds of expression.
1397         * c-tree.h (struct c_expr): Add field "src_range".
1398         (c_expr::get_start): New method.
1399         (c_expr::get_finish): New method.
1400         (set_c_expr_source_range): New decls.
1401         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
1402         on ret for prefix unary ops.
1403         (parser_build_binary_op): Likewise, running from the start of
1404         arg1.value through to the end of arg2.value.
1406 2015-11-13  Marek Polacek  <polacek@redhat.com>
1408         PR c/68320
1409         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
1411 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1413         * c-typeck.c: Include spellcheck.h.
1414         (lookup_field_fuzzy_find_candidates): New function.
1415         (lookup_field_fuzzy): New function.
1416         (build_component_ref): If the field was not found, try using
1417         lookup_field_fuzzy and potentially offer a suggestion.
1419 2015-11-12  James Norris  <jnorris@codesourcery.com>
1420             Joseph Myers  <joseph@codesourcery.com>
1422         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
1423         (c_parser_omp_clause_name): Handle 'device_resident' clause.
1424         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1425         and PRAGMA_OMP_CLAUSE_LINK.
1426         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1427         and PRAGMA_OACC_CLAUSE_LINK.
1428         (OACC_DECLARE_CLAUSE_MASK): New definition.
1429         (c_parser_oacc_declare): New function.
1431 2015-11-12  Marek Polacek  <polacek@redhat.com>
1433         PR c/67784
1434         * c-parser.c (c_parser_for_statement): Reclassify the token in
1435         a correct scope.
1437 2015-11-11  Marek Polacek  <polacek@redhat.com>
1439         PR c/68107
1440         PR c++/68266
1441         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
1442         checking the size of an array.
1444 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
1446         * c-array-notation.c: Remove unused header files.
1447         * c-aux-info.c: Likewise.
1448         * c-convert.c: Likewise.
1449         * c-decl.c: Likewise.
1450         * c-errors.c: Likewise.
1451         * c-lang.c: Likewise.
1452         * c-objc-common.c: Likewise.
1453         * c-parser.c: Likewise.
1454         * c-typeck.c: Likewise.
1455         * gccspec.c: Likewise.
1457 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
1458             Cesar Philippidis  <cesar@codesourcery.com>
1459             James Norris  <jnorris@codesourcery.com>
1460             Julian Brown  <julian@codesourcery.com>
1461             Nathan Sidwell  <nathan@codesourcery.com>
1463         c/
1464         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
1465         routine arg.
1466         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
1467         (c_parser_pragma): Parse 'acc routine'.
1468         (OACC_ROUTINE_CLAUSE_MARK): Define.
1469         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
1471 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1473         PR debug/67192
1474         * c-typeck.c (c_finish_loop): For unconditional loops, set the
1475         location of the backward-goto to the start of the loop body.
1477 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1479         PR debug/67192
1480         * c-parser.c (c_parser_while_statement): Finish the loop before
1481         parsing ahead for misleading indentation.
1482         (c_parser_for_statement): Likewise.
1484 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1486         * c-decl.c (finish_struct): If the structure has reverse storage
1487         order, rewrite the type of array fields with scalar component.  Call
1488         maybe_apply_pragma_scalar_storage_order on entry.
1489         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
1490         errors on bit-fields and reverse SSO here and not...
1491         (c_mark_addressable): ...here.
1492         (output_init_element): Adjust call to initializer_constant_valid_p.
1493         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
1495 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1497         * c-decl.c (warn_defaults_to): Update for change in signature
1498         of diagnostic_set_info.
1499         * c-errors.c (pedwarn_c99): Likewise.
1500         (pedwarn_c90): Likewise.
1501         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
1502         for textinfo::set_location.
1504 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
1505             Thomas Schwinge  <thomas@codesourcery.com>
1506             James Norris  <jnorris@codesourcery.com>
1508         * c-parser.c (c_parser_omp_clause_name): Add support for
1509         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
1510         (c_parser_omp_clause_default): Add is_oacc argument. Handle
1511         default(none) in OpenACC.
1512         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
1513         arguments.
1514         (c_parser_oacc_clause_tile): New function.
1515         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
1516         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
1517         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
1518         TILE}.
1519         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
1520         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
1521         FIRSTPRIVATE}.
1522         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
1523         (c_parser_oacc_update): Update the error message for missing clauses.
1524         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
1525         and OMP_CLAUSE_INDEPENDENT.
1527 2015-11-05  Marek Polacek  <polacek@redhat.com>
1529         PR c/68090
1530         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
1531         deal with pre-evaluation on invalid types.
1533 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
1534             Ilya Verbin  <ilya.verbin@intel.com>
1536         * c-parser.c: Include context.h and gimple-expr.h.
1537         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
1538         monotonic together with nonmonotonic.
1539         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
1540         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
1541         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
1542         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
1543         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
1544         expressions on combined target teams before the target.
1545         (c_parser_omp_declare_target): If decl has "omp declare target" or
1546         "omp declare target link" attribute, and cgraph or varpool node already
1547         exists, then set corresponding flags.  Call c_finish_omp_clauses
1548         in the parenthesized extended-list syntax case.
1549         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
1550         declare target.
1551         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
1552         on OMP_CLAUSE_REDUCTION array sections.
1553         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
1554         into the constant offset, or for variable low-bound using
1555         POINTER_PLUS_EXPR.  For structure element based array sections use
1556         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
1557         (c_finish_omp_clauses): Drop generic_field_head, structure
1558         elements are now always mapped even as array section bases,
1559         diagnose same var in data sharing and mapping clauses.  Diagnose if
1560         linear step on declare simd is neither a constant nor a uniform
1561         parameter.  Look through POINTER_PLUS_EXPR for array section
1562         reductions.  Diagnose the same var or function appearing multiple
1563         times on the same directive.  Fix up wording for the to clause if t
1564         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
1565         modifier on kinds other than dynamic or guided or nonmonotonic
1566         modifier together with ordered clause.
1568 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
1569             Chung-Lin Tang  <cltang@codesourcery.com>
1571         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
1573 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
1575         * c-array-notation.c: Reorder #include's and remove duplicates.
1576         * c-aux-info.c: Likewise.
1577         * c-convert.c: Likewise.
1578         * c-decl.c: Likewise.
1579         * c-errors.c: Likewise.
1580         * c-lang.c: Likewise.
1581         * c-objc-common.c: Likewise.
1582         * c-parser.c: Likewise.
1583         * c-typeck.c: Likewise.
1585 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
1587         PR debug/66068
1588         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
1589         after calling build_qualified_type.
1591 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
1592             Thomas Schwinge  <thomas@codesourcery.com>
1593             James Norris  <jnorris@codesourcery.com>
1594             Joseph Myers  <joseph@codesourcery.com>
1595             Julian Brown  <julian@codesourcery.com>
1596             Bernd Schmidt  <bschmidt@redhat.com>
1598         * c-parser.c (c_parser_oacc_shape_clause): New.
1599         (c_parser_oacc_simple_clause): New.
1600         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
1601         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
1603 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
1604             James Norris  <jnorris@codesourcery.com>
1605             Cesar Philippidis  <cesar@codesourcery.com>
1607         PR c/64765
1608         PR c/64880
1609         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
1610         parameters, and handle these.  Adjust all users.
1611         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
1612         into...
1613         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
1614         all users.
1615         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
1616         declare functions.
1617         (c_finish_omp_construct): Declare function.
1618         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
1619         Merge functions into...
1620         (c_finish_omp_construct): ... this new function.
1622 2015-10-22  Richard Biener  <rguenther@suse.de>
1624         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
1625         before folding a MINUS_EXPR.
1627 2015-10-21  Marek Polacek  <polacek@redhat.com>
1629         PR c/68024
1630         * c-decl.c (start_function): Warn about vararg functions without
1631         a prototype.
1633 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1635         * c-typeck.c (build_conditional_expr): Use boolean vector
1636         type for vector comparison.
1637         (build_vec_cmp): New.
1638         (build_binary_op): Use build_vec_cmp for comparison.
1640 2015-10-20  Marek Polacek  <polacek@redhat.com>
1642         * c-parser.c (is_cilkplus_vector_p): Don't define here.
1644 2015-10-20  Marek Polacek  <polacek@redhat.com>
1646         PR c/67964
1647         * c-parser.c (c_parser_attributes): Break out of the loop if the
1648         token after an attribute isn't a comma.
1650 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1651             Aldy Hernandez  <aldyh@redhat.com>
1653         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
1654         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
1655         (c_parser_omp_variable_list): Handle structure elements for
1656         map, to and from clauses.  Handle array sections in reduction
1657         clause.  Formatting fixes.
1658         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
1659         if clause modifiers.
1660         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1661         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1662         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
1663         c_parser_omp_clause_is_device_ptr): New functions.
1664         (c_parser_omp_clause_ordered): Parse optional parameter.
1665         (c_parser_omp_clause_reduction): Handle array reductions.
1666         (c_parser_omp_clause_schedule): Parse optional simd modifier.
1667         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
1668         functions.
1669         (c_parser_omp_clause_linear): Parse linear clause modifiers.
1670         (c_parser_omp_clause_depend_sink): New function.
1671         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
1672         (c_parser_omp_clause_map): Parse release/delete map kinds and
1673         optional always modifier.
1674         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
1675         and c_finish_omp_clauses callers.
1676         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
1677         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
1678         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
1679         (OMP_CRITICAL_CLAUSE_MASK): Define.
1680         (c_parser_omp_critical): Parse critical clauses.
1681         (c_parser_omp_for_loop): Handle doacross loops, adjust
1682         c_finish_omp_for and c_finish_omp_clauses callers.
1683         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
1684         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
1685         (OMP_FOR_CLAUSE_MASK): Add linear clause.
1686         (c_parser_omp_for): Disallow ordered clause when combined with
1687         distribute.  Disallow linear clause when combined with distribute
1688         and not combined with simd.
1689         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
1690         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
1691         parse clauses and if depend clause is found, don't parse a body.
1692         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
1693         Allow target parallel without for after it.
1694         (OMP_TASK_CLAUSE_MASK): Add priority clause.
1695         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
1696         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
1697         invalid kinds.
1698         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
1699         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
1700         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
1701         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
1702         functions.
1703         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
1704         defaultmap and is_device_ptr clauses.
1705         (c_parser_omp_target): Parse target parallel and target simd.  Set
1706         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
1707         and target exit data.  Diagnose invalid map kinds.
1708         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
1709         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
1710         construct.
1711         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
1712         &omp_priv.
1713         (OMP_TASKLOOP_CLAUSE_MASK): Define.
1714         (c_parser_omp_taskloop): New function.
1715         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
1716         handle PRAGMA_OMP_TASKLOOP.
1717         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
1718         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
1719         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
1720         Add IS_OMP argument, handle structure element bases, diagnose
1721         bitfields, pass IS_OMP recursively, diagnose known zero length
1722         array sections in depend clauses, handle array sections in reduction
1723         clause, diagnose negative length even for pointers.
1724         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
1725         types, pass IS_OMP down to handle_omp_array_sections_1, handle
1726         array sections in reduction clause, set
1727         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
1728         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
1729         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
1730         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
1732 2015-10-06  Marek Polacek  <polacek@redhat.com>
1734         * c-parser.c (c_parser_statement_after_labels): Use
1735         protected_set_expr_location.
1736         (c_parser_omp_clause_num_gangs): Likewise.
1737         (c_parser_omp_clause_num_threads): Likewise.
1738         (c_parser_omp_clause_num_workers): Likewise.
1739         (c_parser_omp_clause_vector_length): Likewise.
1740         (c_parser_omp_clause_num_teams): Likewise.
1741         (c_parser_omp_clause_thread_limit): Likewise.
1742         * c-typeck.c (build_c_cast): Likewise.
1743         (c_cast_expr): Likewise.
1745 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1747         * c-typeck.c (c_tree_equal): Use real_equal instead of
1748         REAL_VALUES_EQUAL.
1750 2015-10-04  Jason Merrill  <jason@redhat.com>
1752         * c-parser.c (c_lex_one_token): Handle @synchronized.
1753         * c-decl.c (match_builtin_function_types): A declaration of a built-in
1754         can change whether the function is transaction_safe.
1756 2015-10-02  Marek Polacek  <polacek@redhat.com>
1758         PR c/67730
1759         * c-typeck.c (convert_for_assignment): Use the expansion point
1760         location throughout.
1762 2015-10-02  Marek Polacek  <polacek@redhat.com>
1764         PR c/64249
1765         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
1766         and pass it down to c_parser_if_statement.
1767         (c_parser_else_body): Add CHAIN parameter and pass it down to
1768         c_parser_statement_after_labels.
1769         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
1770         duplicated if-else-if conditions.
1772 2015-10-01  Marek Polacek  <polacek@redhat.com>
1774         * c-typeck.c (convert_for_assignment): Improve commentary.
1776 2015-09-30  Marek Polacek  <polacek@redhat.com>
1778         PR c/67730
1779         * c-typeck.c (c_finish_return): Use the expansion point location for
1780         certain "return with value" warnings.
1782 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1784         * c-parser.c (pragma_lex): Add loc argument.
1786 2015-09-15  Marek Polacek  <polacek@redhat.com>
1788         PR c/67580
1789         * c-decl.c (tag_exists_p): New function.
1790         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
1791         struct/union/enum keywords are missing.
1792         * c-tree.h (tag_exists_p): Declare.
1794 2015-09-15  Marek Polacek  <polacek@redhat.com>
1796         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
1797         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
1798         Return NULL_TREE instead of 0.
1799         (lookup_name): Return NULL_TREE instead of 0.
1800         (lookup_name_in_scope): Likewise.
1801         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1802         (parser_xref_tag): Use false instead of 0.
1803         (start_struct): Use true instead of 1.
1804         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1806 2015-09-14  Marek Polacek  <polacek@redhat.com>
1808         * c-typeck.c (set_nonincremental_init_from_string): Use
1809         HOST_WIDE_INT_M1U when shifting a negative value.
1811 2015-09-09  Mark Wielaard  <mjw@redhat.com>
1813         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
1814         parm against NULL.
1816 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
1818         PR c/67502
1819         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
1820         into OMP_FOR_PRE_BODY rather than before the loop.
1822 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
1824         PR c/67501
1825         * c-parser.c (c_parser_oacc_all_clauses,
1826         c_parser_omp_all_clauses): Remove invalid clause from
1827         list of clauses even if parser->error is set.
1829         PR c/67500
1830         * c-parser.c (c_parser_omp_clause_aligned,
1831         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
1832         test for errors.
1833         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
1834         error_mark_node.
1836         PR c/67495
1837         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
1838         instead of c_parser_unary_expression.  If the result is !lvalue_p,
1839         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
1841 2015-09-04  Marek Polacek  <polacek@redhat.com>
1843         PR sanitizer/67279
1844         * c-typeck.c (build_binary_op): Don't instrument static initializers.
1846 2015-09-03  Martin Sebor  <msebor@redhat.com>
1848         PR c/66516
1849         * c-typeck.c (convert_arguments, parser_build_unary_op,
1850         build_conditional_expr, c_cast_expr, convert_for_assignment,
1851         build_binary_op, _objc_common_truthvalue_conversion): Call
1852         reject_gcc_builtin.
1853         (c_decl_implicit): Define.
1855 2015-09-02  Marek Polacek  <polacek@redhat.com>
1857         PR c/67432
1858         * c-parser.c (c_parser_enum_specifier): Give a better error for
1859         an empty enum.
1861 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1863         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
1865 2015-08-12  Marek Polacek  <polacek@redhat.com>
1867         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
1868         LOC to it.
1870 2015-08-03  Marek Polacek  <polacek@redhat.com>
1872         PR c/67088
1873         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
1874         Use it.
1875         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
1877 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
1879         * c-parser.c (c_parser_if_body): Take token_indent_info
1880         argument. Call warn_for_misleading_indentation even when the
1881         body is a semicolon.  Extract token_indent_infos corresponding
1882         to the guard, body and next tokens.  Adjust call to
1883         warn_for_misleading_indentation accordingly.
1884         (c_parser_else_body): Likewise.
1885         (c_parser_if_statement): Likewise.
1886         (c_parser_while_statement): Likewise.
1887         (c_parser_for_statement): Likewise.
1889 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
1890             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1892         * c-decl.c (get_parm_info): Remove static var. Update warning
1893         message.
1895 2015-07-27  Marek Polacek  <polacek@redhat.com>
1897         PR c++/66555
1898         PR c/54979
1899         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
1901 2015-07-20  Marek Polacek  <polacek@redhat.com>
1903         PR c++/55095
1904         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
1905         (build_binary_op): Warn about left shift overflows.
1907 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1909         * c-array-notation.c: Adjust includes for flags.h changes.
1910         * c-objc-common.c: Likewise.
1912 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
1914         * c-array-notation.c: Adjust includes.
1915         * c-aux-info.c: Likewise.
1916         * c-convert.c: Likewise.
1917         * c-decl.c: Likewise.
1918         * c-errors.c: Likewise.
1919         * c-lang.c: Likewise.
1920         * c-objc-common.c: Likewise.
1921         * c-parser.c: Likewise.
1922         * c-typeck.c: Likewise.
1924 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1926         PR fortran/66605
1927         * c-decl.c (finish_function): Call do_warn_unused_parameter.
1929 2015-06-29  Marek Polacek  <polacek@redhat.com>
1931         PR c/66322
1932         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
1933         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
1934         about -Wswitch-bool here.
1935         (do_case): Update c_add_case_label call.
1936         (c_finish_case): Update c_do_switch_warnings call.
1938 2015-06-27  Marek Polacek  <polacek@redhat.com>
1940         * c-typeck.c: Use VECTOR_TYPE_P throughout.
1942 2015-06-26  Marek Polacek  <polacek@redhat.com>
1944         * c-array-notation.c (fix_builtin_array_notation_fn): Use
1945         INDIRECT_REF_P.
1946         * c-typeck.c (array_to_pointer_conversion): Likewise.
1947         (build_unary_op): Likewise.
1948         (c_finish_return): Likewise.
1950 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1952         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
1953         * c-parser.c: Likewise.
1955 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1957         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
1958         instead of pointer_hash.
1959         (detect_field_duplicates): Likewise.
1961 2015-06-25  Marek Polacek  <polacek@redhat.com>
1963         * c-array-notation.c: Use VAR_P throughout.
1964         * c-decl.c: Likewise.
1965         * c-objc-common.c: Likewise.
1966         * c-parser.c: Likewise.
1967         * c-typeck.c: Likewise.
1969 2015-06-25  Marek Polacek  <polacek@redhat.com>
1971         * c-decl.c: Use is_global_var throughout.
1972         * c-parser.c: Likewise.
1973         * c-typeck.c: Likewise.
1975 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1977         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
1978         * c-aux-info.c: Likewise.
1979         * c-convert.c: Likewise.
1980         * c-decl.c: Likewise.
1981         * c-errors.c: Likewise.
1982         * c-lang.c: Likewise.
1983         * c-objc-common.c: Likewise.
1984         * c-parser.c: Likewise.
1985         * c-typeck.c: Likewise.
1987 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
1989         PR middle-end/66325
1990         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
1991         variants.
1993 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1995         * c-decl.c (pop_scope): Register the main translation unit
1996         through the new debug hook.
1998 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2000         * c-array-notation.c : Adjust include files.
2001         * c-aux-info.c : Likewise.
2002         * c-convert.c : Likewise.
2003         * c-decl.c : Likewise.
2004         * c-errors.c : Likewise.
2005         * c-lang.c : Likewise.
2006         * c-lang.h : Likewise.
2007         * c-objc-common.c : Likewise.
2008         * c-parser.c : Likewise.
2009         * c-typeck.c : Likewise.
2011 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2013         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2014         immediately clobber it.
2015         (c_write_global_declarations_1): Remove call to
2016         check_global_declaration_1.
2017         (c_write_global_declarations_2): Remove.
2018         (c_write_final_cleanups): Rename from c_write_global_declarations.
2019         Remove call to finalize_compilation_unit.
2020         Remove calls to debugging hooks.
2021         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2022         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2023         * c-tree.h: Remove c_write_global_declarations.
2025 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2027         * c-array-notation.c: Adjust includes for restructured coretypes.h.
2028         * c-aux-info.c: Likewise.
2029         * c-convert.c: Likewise.
2030         * c-decl.c: Likewise.
2031         * c-errors.c: Likewise.
2032         * c-lang.c: Likewise.
2033         * c-objc-common.c: Likewise.
2034         * c-parser.c: Likewise.
2035         * c-typeck.c: Likewise.
2037 2015-06-04  Marek Polacek  <polacek@redhat.com>
2039         PR c/66341
2040         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2041         it is a lvalue.
2043 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2045         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2046         Warn for empty struct.
2047         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2049 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
2051         * c-decl.c (start_function): Call plugin before parsing.
2052         (finish_function): Call plugin after parsing.
2054 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2056         PR c/49551
2057         * c-decl.c (merge_decls): Merge DECL_COMMON.
2059 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
2061         * Make-lang.in (check_gcc_pallelize): Define.
2063 2015-05-22  Marek Polacek  <polacek@redhat.com>
2065         PR c/47043
2066         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2067         attributes.
2069 2015-05-21  Marek Polacek  <polacek@redhat.com>
2071         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2072         DECL_BUILT_IN.
2074 2015-05-20  Marek Polacek  <polacek@redhat.com>
2076         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2077         * c-typeck.c: Likewise.
2079 2015-05-19  Marek Polacek  <polacek@redhat.com>
2081         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2083 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
2085         PR middle-end/66199
2086         * c-parser.c (c_parser_omp_for_loop): Don't add
2087         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2088         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2089         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2090         constructs.
2092 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
2094         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
2095         swaps.
2097 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2099         PR fortran/44054
2100         * c-objc-common.c (c_tree_printer): Replace locus pointer with
2101         accessor function.
2103 2015-05-14  Marek Polacek  <polacek@redhat.com>
2105         PR c/66066
2106         PR c/66127
2107         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2108         rather than with 0.
2110 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
2112         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2113         to add a call to warn_for_misleading_indentation.
2114         (c_parser_else_body): Likewise, adding param "else_loc".
2115         (c_parser_if_statement): Check for misleading indentation.
2116         (c_parser_while_statement): Likewise.
2117         (c_parser_for_statement): Likewise.
2119 2015-05-08  Marek Polacek  <polacek@redhat.com>
2121         PR c/64918
2122         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2123         (output_init_element): Likewise.
2125 2015-05-07  Marek Polacek  <polacek@redhat.com>
2127         PR c/65179
2128         * c-typeck.c (build_binary_op): Warn when left shifting a negative
2129         value.
2131 2015-04-30  Marek Polacek  <polacek@redhat.com>
2133         * c-typeck.c (set_init_label): Call error_at instead of error and
2134         pass LOC to it.
2136         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
2137         the type of a decl.
2139         * c-typeck.c (c_build_va_arg): Clarify the error message.
2141 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2143         * c-parser.c (c_parser_oacc_enter_exit_data): Use
2144         OMP_STANDALONE_CLAUSES.
2146 2015-04-28  Marek Polacek  <polacek@redhat.com>
2148         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2150 2015-04-28  Marek Polacek  <polacek@redhat.com>
2152         PR c/65901
2153         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2155 2015-04-25  Marek Polacek  <polacek@redhat.com>
2157         PR c/52085
2158         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
2159         attribute.
2161 2015-04-23  Marek Polacek  <polacek@redhat.com>
2163         PR c/65345
2164         * c-decl.c (set_labels_context_r): New function.
2165         (store_parm_decls): Call it via walk_tree_without_duplicates.
2166         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2167         instead of create_tmp_var.  Build TARGET_EXPR instead of
2168         COMPOUND_EXPR.
2169         (build_atomic_assign): Use create_tmp_var_raw instead of
2170         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
2172 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2174         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2175         (c_parser_omp_target_update): Add missed %> to error_at ().
2177 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2179         PR target/55143
2180         * c-decl.c (c_default_pointer_mode): Remove definition.
2181         * c-tree.h (c_default_pointer_mode): Remove declaration.
2183 2015-03-27  Tobias Burnus  <burnus@net-b.de>
2185         PR c/65586
2186         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2187         error out.
2188         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2189         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2190         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2192 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2194         * c-decl.c (c_decl_attributes): Also add "omp declare target"
2195         attribute for DECL_EXTERNAL VAR_DECLs.
2197 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
2199         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2200         argument.
2202 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
2204         PR c/65120
2205         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2206         before preparing arguments to warn_logical_not_parentheses.
2208 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
2210         PR c/65120
2211         * c-typeck.c (parser_build_binary_op): Don't warn for
2212         !!x == y or !b == y where b is _Bool.
2214 2015-03-09  Marek Polacek  <polacek@redhat.com>
2216         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2217         * c-decl.c (grokdeclarator): Likewise.
2218         * c-typeck.c (build_binary_op): Likewise.
2220 2015-02-27  Marek Polacek  <polacek@redhat.com>
2222         PR c/65228
2223         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2225 2015-02-14  Marek Polacek  <polacek@redhat.com>
2227         PR c/64768
2228         * c-decl.c (grokdeclarator): Set the range of a flexible array member
2229         declared through a typedef name.
2231 2015-02-13  Marek Polacek  <polacek@redhat.com>
2233         PR c/65050
2234         * c-decl.c (grokdeclarator): Print also the type when giving
2235         the error message about array's incomplete element type.
2237 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2239         PR c/64824
2240         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2241         check in the POP macro.
2243 2015-02-09  Marek Polacek  <polacek@redhat.com>
2245         PR c/64856
2246         * c-typeck.c (process_init_element): Don't always wrap
2247         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2248         initializing a range of elements.
2250 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2252         PR c/64824
2253         PR c/64868
2254         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2256 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
2258         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2259         processing enum declaration.
2261 2015-01-29  Marek Polacek  <polacek@redhat.com>
2263         PR c/64709
2264         * c-typeck.c (pop_init_level): If constructor_elements has
2265         exactly one element with integer_zerop value, set constructor_zeroinit
2266         to 1.  Remove braces around warning_init call.
2268 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2270         PR c/64766
2271         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2272         of FUNCTION_DECLs with error_mark_node.
2274 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2276         PR c/64778
2277         * c-typeck.c (convert_arguments): Return -1 if there are
2278         error_args, even if we've diagnosed too many arguments.
2280 2015-01-21  Richard Biener  <rguenther@suse.de>
2282         PR middle-end/64313
2283         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2284         for builtins the user declared correctly.
2286 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2287             Bernd Schmidt  <bernds@codesourcery.com>
2288             Cesar Philippidis  <cesar@codesourcery.com>
2289             James Norris  <jnorris@codesourcery.com>
2290             Jakub Jelinek  <jakub@redhat.com>
2291             Ilmir Usmanov  <i.usmanov@samsung.com>
2293         * c-parser.c: Include "gomp-constants.h".
2294         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2295         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2296         Use OMP_CLAUSE_SET_MAP_KIND.
2297         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2298         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2299         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
2300         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
2301         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
2302         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
2303         "copyout", "create", "delete", "deviceptr", "gang", "host",
2304         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
2305         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
2306         "present_or_create", "pcreate", "seq", "self", "vector",
2307         "vector_length", "wait", "worker".
2308         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
2309         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
2310         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
2311         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
2312         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
2313         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
2314         (c_parser_oacc_data_clause_deviceptr)
2315         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
2316         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
2317         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
2318         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
2319         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
2320         (c_parser_oacc_parallel, c_parser_oacc_update)
2321         (c_parser_oacc_wait): New functions.
2322         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
2323         (c_finish_oacc_data): New prototypes.
2324         * c-typeck.c: Include "gomp-constants.h".
2325         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
2326         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
2327         OMP_CLAUSE_SET_MAP_KIND.
2328         (c_finish_oacc_parallel, c_finish_oacc_kernels)
2329         (c_finish_oacc_data): New functions.
2330         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
2331         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2332         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2333         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
2334         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
2335         GOMP_MAP_FORCE_DEVICEPTR.
2337 2015-01-09  Michael Collison  <michael.collison@linaro.org>
2339         * c-array-notation.c: Include hash-set.h, machmode.h,
2340         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2341         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2342         * c-aux-info.c: Ditto.
2343         * c-convert.c: Ditto.
2344         * c-decl.c: Ditto.
2345         * c-errors.c: Ditto.
2346         * c-lang.c: Dittoxs.
2347         * c-objc-common.c: Ditto.
2348         * c-parser.c: Ditto.
2349         * c-typeck.c: Include hash-set.h, machmode.h,
2350         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2351         fold-const.h, wide-int.h, inchash.h, real.h and
2352         fixed-value.h due to flattening of tree.h.
2354 2015-01-07  Marek Polacek  <polacek@redhat.com>
2356         PR c/64417
2357         * c-typeck.c (process_init_element): Disallow initialization of
2358         a flexible array member with a string constant if the structure
2359         is in an array.
2361 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2363         PR sanitizer/64344
2364         * c-typeck.c (convert_for_assignment, c_finish_return): For
2365         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
2366         types also set in_late_binary_op around convert call.
2367         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
2368         to integral type casts, if not in_late_binary_op, pass c_fully_fold
2369         result on expr as last argument to ubsan_instrument_float_cast,
2370         if in_late_binary_op, don't use c_save_expr but save_expr.
2372         Update copyright years.
2374 2015-01-05  Marek Polacek  <polacek@redhat.com>
2376         PR c/64423
2377         * c-typeck.c (build_array_ref): Pass loc down to
2378         warn_array_subscript_with_type_char.
2380 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
2382         * c-typeck.c: New behavious for pointers to arrays with qualifiers
2383         (common-pointer-type): For pointers to arrays take qualifiers from
2384         element type.
2385         (build_conditional_expr): Add warnings for lost qualifiers.
2386         (comp-target-types): Allow pointers to arrays with different qualifiers.
2387         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
2388         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
2389         to PEDWARN_FOR_QUALIFIERS.
2391 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
2393         PR sanitizer/64289
2394         * c-convert.c: Include ubsan.h.
2395         (convert): For real -> integral casts and
2396         -fsanitize=float-cast-overflow don't call convert_to_integer, but
2397         instead instrument the float cast directly.
2399 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
2401         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
2402         c_finish_stmt_expr): Remove NULL last argument from
2403         create_tmp_var_raw and create_tmp_var calls.
2404         * c-array-notation.c (fix_builtin_array_notation_fn,
2405         build_array_notation_expr, fix_conditional_array_notations_1,
2406         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
2408 2014-11-28  Marek Polacek  <polacek@redhat.com>
2410         PR c/63862
2411         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
2412         convert the right operand to integer type.
2414 2014-11-25  Marek Polacek  <polacek@redhat.com>
2416         PR c/63877
2417         * c-decl.c (start_function): Disable -Wmissing-declarations warning
2418         for inline functions.
2420 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2422         PR target/63764
2423         * c-typeck.c (build_array_ref): Adjust
2424         convert_vector_to_pointer_for_subscript caller.  If it returns true,
2425         call non_lvalue_loc on the result.
2427 2014-11-11  Richard Biener  <rguenther@suse.de>
2429         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
2430         to true.
2432 2014-11-10  Andi Kleen  <ak@linux.intel.com>
2434         PR c/60804
2435         * c-parser.c (c_parser_statement_after_labels): Call
2436         check_no_cilk.
2437         (c_parser_if_statement): Dito.
2438         (c_parser_switch_statement): Dito.
2439         (c_parser_while_statement): Dito.
2440         (c_parser_do_statement): Dito.
2441         (c_parser_for_statement): Dito.
2442         * c-typeck.c (c_finish_loop): Dito.
2444 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
2446         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
2447         OPT_Wshift_count_overflow in the warnings.
2449 2014-10-30  Marek Polacek  <polacek@redhat.com>
2451         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
2452         print the stripped version as well, if they're not the same.
2454 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2456         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
2457         machine_mode.
2459 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
2461         * c-decl.c: Adjust include files.
2462         * c-parser.c: Ditto.
2464 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2465             Tom Tromey  <tromey@redhat.com>
2467         * c-tree.h (enum c_oracle_request): New.
2468         (c_binding_oracle_function): New typedef.
2469         (c_binding_oracle, c_pushtag, c_bind): Declare.
2470         * c-decl.c (c_binding_oracle): New global.
2471         (I_SYMBOL_CHECKED): New macro.
2472         (i_symbol_binding): New function.
2473         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
2474         (I_TAG_CHECKED): New macro.
2475         (i_tag_binding): New function.
2476         (I_TAG_BINDING, I_TAG_DECL): Redefine.
2477         (I_LABEL_CHECKED): New macro.
2478         (i_label_binding): New function.
2479         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
2480         (c_print_identifier): Save and restore c_binding_oracle.
2481         (c_pushtag, c_bind): New functions.
2483 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
2485         * c-typeck.c: Adjust include files.
2487 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2489         PR c++/53061
2490         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
2491         initialization here...
2492         (c_initialize_diagnostics): ... but here. Set defaults after
2493         building pretty-printer.
2495 2014-10-23  Marek Polacek  <polacek@redhat.com>
2497         PR c/63626
2498         * c-decl.c (pop_scope): Don't print warning in external_scope.
2500 2014-10-19  Marek Polacek  <polacek@redhat.com>
2502         PR c/63567
2503         * c-typeck.c (output_init_element): Allow initializing objects with
2504         static storage duration with compound literals even in C99 and add
2505         pedwarn for it.
2507 2014-10-17  Marek Polacek  <polacek@redhat.com>
2509         PR c/63567
2510         * c-typeck.c (digest_init): Allow initializing objects with static
2511         storage duration with compound literals even in C99 and add pedwarn
2512         for it.
2514 2014-10-17  Marek Polacek  <polacek@redhat.com>
2516         PR c/63543
2517         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
2518         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
2519         error multiple times.  Print the type.
2521 2014-10-17  Marek Polacek  <polacek@redhat.com>
2523         PR c/63549
2524         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
2525         type.
2527 2014-10-17  Marek Polacek  <polacek@redhat.com>
2529         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
2530         (start_function): Use OPT_Wimplicit_int instead of 0.
2531         (store_parm_decls_oldstyle): Likewise.
2533 2014-10-17  Alan Modra  <amodra@gmail.com>
2535         PR middle-end/61848
2536         * c-decl.c (merge_decls): Don't merge section name or tls model
2537         to newdecl symtab node, instead merge to olddecl.  Override
2538         existing olddecl section name.  Set tls_model for all thread-local
2539         vars, not just OMP thread-private ones.  Remove incorrect comment.
2541 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
2543         * c-decl.c: Adjust include files.
2545 2014-10-14  DJ Delorie  <dj@redhat.com>
2547         * c-parser.c (c_parse_init): Add RID entries for each __intN.
2548         (c_token_starts_typename): Check all __intN, not just __int128.
2549         (c_token_starts_declspecs): Likewise.
2550         (c_parser_declspecs): Likewise.
2551         (c_parser_attribute_any_word): Likewise.
2552         (c_parser_objc_selector): Likewise.
2553         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
2554         (struct c_declspecs): Add int_n_idx field to record *which* __intN
2555         is specified.
2556         * c-decl.c (declspecs_add_type): Check for all __intN, not just
2557         __int128.
2558         (finish_declspecs): Likewise.
2560 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
2562         * c-parser.c (c_parser_all_labels): New function to replace
2563         the duplicate code.
2564         (c_parser_statement): Call the new function.
2566 2014-10-09  Marek Polacek  <polacek@redhat.com>
2568         PR c/63480
2569         * c-typeck.c (pop_init_level): Don't warn about initializing
2570         with { }.
2572 2014-10-07  Marek Polacek  <polacek@redhat.com>
2574         PR c/59717
2575         * c-decl.c (header_for_builtin_fn): New function.
2576         (implicitly_declare): Suggest which header to include.
2578 2014-10-07  Marek Polacek  <polacek@redhat.com>
2580         * c-convert.c (convert): Use error_operand_p.
2581         * c-typeck.c (require_complete_type): Likewise.
2582         (really_atomic_lvalue): Likewise.
2583         (digest_init): Likewise.
2584         (handle_omp_array_sections_1): Likewise.
2586 2014-10-03  Marek Polacek  <polacek@redhat.com>
2588         PR c/63453
2589         * c-decl.c (pop_scope): Don't warn about "inline function declared
2590         but never defined" for functions marked with gnu_inline attribute.
2592 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
2594         PR c++/63249
2595         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
2596         on low_bound and length.
2598 2014-09-24  Marek Polacek  <polacek@redhat.com>
2600         PR c/61405
2601         PR c/53874
2602         * c-parser.c: Don't define CPP_KEYWORD.
2603         (c_parser_switch_statement): Pass original type to c_finish_case.
2604         * c-tree.h (c_finish_case): Update declaration.
2605         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
2606         conditionally to c_do_switch_warnings.
2608 2014-09-03  Marek Polacek  <polacek@redhat.com>
2610         PR c/62024
2611         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
2612         conversions.
2614 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
2615             Balaji V. Iyer  <balaji.v.iyer@intel.com>
2616             Igor Zamyatin  <igor.zamyatin@intel.com>
2618         * c-parser.c (c_parser_cilk_for): New function.
2619         (c_parser_cilk_grainsize): Likewise.
2620         (c_get_temp_regvar): Likewise.
2621         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
2622         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
2623         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
2624         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
2625         case.
2627 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
2629         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
2630         with using HOST_WIDE_INT without truncation to 'int'
2632 2014-08-22  Marek Polacek  <polacek@redhat.com>
2634         PR c++/62199
2635         * c-typeck.c (parser_build_binary_op): Adjust call to
2636         warn_logical_not_parentheses.
2638 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
2640         PR other/62008
2641         * c-parser.c (c_parser_array_notation): Check for correct
2642         type of an array added.
2644 2014-08-19  Marek Polacek  <polacek@redhat.com>
2646         PR c++/62153
2647         * c-typeck.c (build_binary_op): If either operand of a comparison
2648         is a boolean expression, call maybe_warn_bool_compare.
2650 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
2652         PR c/45584
2653         * c-typeck.c (build_c_cast): Do a conversion even when the
2654         TYPE_MAIN_VARIANTs are the same.
2656 2014-08-19  Marek Polacek  <polacek@redhat.com>
2658         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
2659         pedwarn_c99 instead of pedwarn.
2660         (grokfield): Likewise.
2661         (warn_defaults_to): New function.
2662         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
2663         Unconditionally call pedwarn_c99 instead of pedwarn.
2664         (start_function): Call warn_defaults_to instead of pedwarn_c99.
2665         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
2666         check flag_isoc11 before.
2667         * c-errors.c (pedwarn_c99): Change the return type to bool.
2668         Handle -Wc99-c11-compat.
2669         * c-parser.c (disable_extension_diagnostics): Handle
2670         warn_c99_c11_compat.
2671         (restore_extension_diagnostics): Likewise.
2672         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
2673         instead of pedwarn, don't check flag_isoc11 before.
2674         (c_parser_declspecs): Likewise.
2675         (c_parser_alignas_specifier): Likewise.
2676         (c_parser_alignof_expression): Likewise.
2677         (c_parser_generic_selection): Likewise.
2678         * c-tree.h (pedwarn_c99): Update declaration.
2679         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
2680         of pedwarn_c99.
2682 2014-08-19  Marek Polacek  <polacek@redhat.com>
2684         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
2685         to pedwarn_c90.
2686         * c-errors.c: Include "opts.h".
2687         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
2688         * c-parser.c (disable_extension_diagnostics): Handle negative value
2689         of warn_c90_c99_compat, too.
2690         (restore_extension_diagnostics): Likewise.
2691         (c_parser_compound_statement_nostart): Pass
2692         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
2694 2014-08-12  Marek Polacek  <polacek@redhat.com>
2696         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
2697         Add pedwarn.
2698         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
2699         Likewise.
2700         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
2702 2014-08-10  Marek Polacek  <polacek@redhat.com>
2704         PR c/51849
2705         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
2706         Call pedwarn_c90 instead of pedwarn.
2707         (check_bitfield_type_and_width): Likewise.
2708         (declspecs_add_qual): Likewise.
2709         (declspecs_add_type): Likewise.
2710         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
2711         Adjust to only call pedwarn_c90.
2712         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
2713         pedwarn_c90 instead of pedwarn.
2714         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
2715         * c-parser.c (disable_extension_diagnostics): Handle
2716         warn_c90_c99_compat.
2717         (restore_extension_diagnostics): Likewise.
2718         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
2719         pedwarn_c90 instead of pedwarn.
2720         (c_parser_initelt): Likewise.
2721         (c_parser_postfix_expression): Likewise.
2722         (c_parser_postfix_expression_after_paren_type): Likewise.
2723         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
2724         * c-tree.h: Fix formatting.
2725         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
2726         pedwarn_c90 instead of pedwarn.
2728 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
2730         * c-typeck.c: Remove include of pointer-set.h.
2732 2014-08-07  Marek Polacek  <polacek@redhat.com>
2734         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
2736 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
2738         * c-typeck.c: Use hash_map instead of pointer_map.
2740 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
2742         * c-decl.c: Use hash_set instead of pointer_set.
2744 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
2746         PR middle-end/61455
2747         * c-array-notation.c (expand_array_notations): Handling
2748         of DECL_EXPR added.
2750 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
2752         PR c++/60517
2753         * c-typeck.c (c_finish_return): Return 0 instead of the address of
2754         a local variable.
2756 2014-07-30  Tom Tromey  <tromey@redhat.com>
2758         * c-typeck.c (struct constructor_stack) <designator_depth>: New
2759         field.
2760         (really_start_incremental_init, push_init_level): Initialize
2761         designator_depth.
2762         (pop_init_level): Set global designator_depth.
2763         (process_init_element): Check for designated_init attribute.
2765 2014-07-20  Marek Polacek  <polacek@redhat.com>
2767         PR c/61852
2768         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
2769         (implicitly_declare): Pass location to implicit_decl_warning.
2771 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
2773         PR middle-end/61294
2774         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
2775         If non-NULL, call c_parser_check_literal_zero.
2776         (c_parser_check_literal_zero): New function.
2777         (c_parser_postfix_expression_after_primary): Adjust
2778         c_parser_expr_list caller, handle -Wmemset-transposed-args.
2780 2014-07-06  Marek Polacek  <polacek@redhat.com>
2782         PR c/6940
2783         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
2784         * c-tree.h (C_ARRAY_PARAMETER): Define.
2785         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
2786         function parameter.
2788 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
2789             Chen Gang  <gang.chen.5i5j@gmail.com>
2791         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
2792         releasing symbol.
2794 2014-07-01  Marek Polacek  <polacek@redhat.com>
2796         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
2797         instead of 0 to WARN_FOR_ASSIGNMENT.
2799 2014-07-01  Marek Polacek  <polacek@redhat.com>
2801         PR c/58286
2802         * c-typeck.c (convert_for_assignment): Pass
2803         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2805 2014-06-30  Marek Polacek  <polacek@redhat.com>
2807         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
2808         has no_sanitize_undefined attribute.
2810 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
2812         PR middle-end/57541
2813         * c-array-notation.c (fix_builtin_array_notation_fn):
2814         Check for 0 arguments in builtin call. Check that bultin argument is
2815         correct.
2816         * c-parser.c (c_parser_array_notation): Check for incorrect initial
2817         index.
2819 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2821         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
2822         qualifiers in __auto_type for atomic types.
2823         (c_parser_typeof_specifier): Discard all type qualifiers in
2824         __typeof__ for atomic types.
2826 2014-06-25  Marek Polacek  <polacek@redhat.com>
2828         PR c/61162
2829         * c-parser.c (c_parser_statement_after_labels): Pass the location of
2830         the return expression to c_finish_return.
2832 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
2834         * c-typeck.c (c_finish_omp_clauses): Make sure
2835         OMP_CLAUSE_LINEAR_STEP has correct type.
2837 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
2839         * c-decl.c: Adjust.
2841 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
2843         * c-parser.c (c_parser_omp_for_loop): For
2844         #pragma omp parallel for simd move lastprivate clause from parallel
2845         to for rather than simd.
2847 2014-06-23  Marek Polacek  <polacek@redhat.com>
2849         * c-typeck.c (parser_build_binary_op): Don't call
2850         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
2852 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
2854         * c-parser.c (c_parser_omp_threadprivate): Likewise.
2855         * c-decl.c (merge_decls): Likewise.
2857 2014-06-09  Marek Polacek  <polacek@redhat.com>
2859         PR c/36446
2860         * c-typeck.c (error_init): Call inform instead of error_at.
2861         (pedwarn_init): Call inform instead of pedwarn.
2862         (warning_init): Call inform instead of warning_at.
2864 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
2866         * c-decl.c (merge_decls): Use set_decl_section_name.
2867         (duplicate_decls): Remove node if it exists.
2869 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
2871         PR c/53119
2872         * c-typeck.c (push_init_level, process_init_element,
2873         pop_init_level): Correct check for zero initialization, move
2874         missing brace warning to respect zero initialization.
2876 2014-06-05  Marek Polacek  <polacek@redhat.com>
2878         PR c/56724
2879         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
2881 2014-06-05  Marek Polacek  <polacek@redhat.com>
2883         PR c/49706
2884         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
2885         on the left hand side operand of a comparison. 
2887 2014-06-05  Marek Polacek  <polacek@redhat.com>
2889         PR c/48062
2890         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
2891         Print note only if the warning was printed.
2893 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
2895         PR c/58942
2896         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
2897         with a pointer.
2899 2014-06-03  Marek Polacek  <polacek@redhat.com>
2901         PR c/60439
2902         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
2903         c_start_case.
2904         * c-tree.h (c_start_case): Update.
2905         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
2906         switch condition has boolean value.
2908 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
2910         * c-decl.c: Include builtins.h.
2911         * c-parser.c: Likewise.
2913 2014-05-27  Marek Polacek  <polacek@redhat.com>
2915         PR c/56724
2916         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
2917         error and warning calls to error_at and warning_at.  Pass location of
2918         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
2919         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
2920         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
2922 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
2924         PR c/61191
2925         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
2926         function parameters.
2928 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
2930         * c-decl.c (merge_decls): Preserve symtab node pointers.
2931         (duplicate_decls): Free new decl.
2933 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
2935         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
2936         initialization.
2938         * c-parser.c (c_parser_omp_target): Return bool values.
2940 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
2942         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
2943         num_teams_loc variable to num_thread_limit_loc.
2945 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2947         * c-array-notation.c (expand_array_notations): Use void_node
2948         instead of void_zero_node.
2950 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
2952         * c-decl.c (finish_struct): Adjust.
2953         (finish_enum): Likewise.
2954         (bind): Adjust.
2955         (record_inline_static): Likewise.
2956         (push_scope): Likewise.
2957         (make_label): Likewise.
2958         (lookup_label_for_goto): Likewise.
2959         (finish_struct): Likewise.
2960         (finish_enum): Likewise.
2961         (store_parm_decls): Likewise.
2962         (c_push_function_context): Likewise.
2963         * c-lang.h: Remove usage of variable_size gty attribute.
2964         * c-parser.c (c_parse_init): Adjust.
2965         (c_parse_file): Likewise.
2967 2014-05-13  Marek Polacek  <polacek@redhat.com>
2969         PR c/61162
2970         * c-typeck.c (convert_for_assignment): Pass location to
2971         WARN_FOR_ASSIGNMENT instead of input_location.
2973 2014-05-10  Marek Polacek  <polacek@redhat.com>
2975         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
2976         maybe_warn_string_init.
2977         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
2978         maybe_warn_string_init.
2979         * c-tree.h (maybe_warn_string_init): Update declaration.
2980         * c-typeck.c (maybe_warn_string_init): Add location parameter.
2981         Call pedwarn_init with loc instead of with input_location.
2982         (digest_init): Pass init_loc to maybe_warn_string_init.
2983         (pop_init_level): Call pedwarn_init with loc instead of with
2984         input_location.
2985         (set_init_index): Likewise.
2986         (process_init_element): Likewise.
2988 2014-05-09  Marek Polacek  <polacek@redhat.com>
2990         PR c/61096
2991         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
2992         (c_parser_initelt): Pass location to set_init_label.  Pass array index
2993         location to set_init_index.
2994         * c-tree.h (push_init_level): Update declaration.
2995         (pop_init_level): Likewise.
2996         (set_init_index): Likewise.
2997         (set_init_label): Likewise.
2998         * c-typeck.c (error_init): Add location parameter.  Call error_at
2999         instead of error.
3000         (digest_init): Pass init_loc to error_init.
3001         (really_start_incremental_init):
3002         (push_init_level): Add location parameter.  Pass loc to pop_init_level
3003         and error_init.
3004         (pop_init_level): Likewise.
3005         (set_designator): Add location parameter.  Pass loc to pop_init_level,
3006         push_init_level, and error_init.
3007         (set_init_index): Add location parameter.  Pass loc to error_init and
3008         set_designator.
3009         (set_init_label): Likewise.
3010         (output_init_element): Pass loc to error_init.
3011         (process_init_element): Pass loc to error_init, pop_init_level,
3012         pedwarn_init, and push_init_level.
3014 2014-05-09  Marek Polacek  <polacek@redhat.com>
3016         PR c/50459
3017         * c-parser.c (c_parser_attributes): Parse the arguments as an
3018         expression-list if the attribute takes identifier.
3020 2014-05-08  Marek Polacek  <polacek@redhat.com>
3022         PR c/61053
3023         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3024         TYPE_ALIGN_UNIT.
3026 2014-05-08  Marek Polacek  <polacek@redhat.com>
3028         PR c/61077
3029         * c-decl.c (start_function): Warn for _Atomic-qualified return type
3030         of main.
3032 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
3033             Mike Stump  <mikestump@comcast.net>
3034             Richard Sandiford  <rdsandiford@googlemail.com>
3036         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3037         (finish_enum): Use wide-int interfaces.
3038         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3039         * c-typeck.c (build_c_cast): Likewise.
3040         (set_nonincremental_init_from_string): Likewise.
3041         (c_tree_equal): Likewise.
3043 2014-05-02  Marek Polacek  <polacek@redhat.com>
3045         PR c/25801
3046         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
3047         Return size_one_node when the type is not complete.
3048         (pointer_diff): Remove comment.
3049         (build_unary_op): Improve error messages.
3051 2014-05-02  Marek Polacek  <polacek@redhat.com>
3053         * c-typeck.c (c_finish_return): Separate warning_at calls.
3055 2014-05-02  Marek Polacek  <polacek@redhat.com>
3057         * c-tree.h (error_init): Remove declaration.
3058         (pedwarn_init): Likewise.
3059         * c-typeck.c (error_init): Make static and move above.
3060         (pedwarn_init): Likewise.
3061         (warning_init): Move above.
3062         (maybe_warn_string_init): Likewise.
3064 2014-05-01  Jeff Law  <law@redhat.com>
3066         Revert:
3068         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3069         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3070         avoid goto.
3072 2014-05-02  Marek Polacek  <polacek@redhat.com>
3074         PR c/60784
3075         * c-typeck.c (push_init_level): Set constructor_designated to
3076         p->designated for structures.
3078 2014-05-01  Marek Polacek  <polacek@redhat.com>
3080         PR c/60915
3081         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3082         function-definition has an attribute after the declarator.
3084 2014-05-01  Marek Polacek  <polacek@redhat.com>
3086         PR c/60257
3087         * c-typeck.c (warning_init): Add location_t parameter.  Call
3088         warning_at instead of warning.
3089         (push_init_level): Pass input_location to warning_init.
3090         (add_pending_init): Add location_t parameter.  Pass loc to
3091         warning_init.
3092         (set_nonincremental_init): Pass input_location to add_pending_init.
3093         (set_nonincremental_init_from_string): Likewise.
3094         (output_init_element): Pass loc to warning_init and to
3095         add_pending_init.
3097 2014-05-01  Marek Polacek  <polacek@redhat.com>
3099         PR c/43395
3100         * c-typeck.c (c_finish_return): Distinguish between label and variable
3101         when warning about returning local address.
3103 2014-05-01  Marek Polacek  <polacek@redhat.com>
3105         PR c/29467
3106         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3107         in C89 mode.
3109 2014-05-01  Marek Polacek  <polacek@redhat.com>
3111         PR c/43245
3112         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3113         instead of 0 to WARN_FOR_QUALIFIERS.
3115 2014-05-01  Marek Polacek  <polacek@redhat.com>
3117         PR c/56989
3118         * c-typeck.c (default_conversion): Use better location for
3119         error call.
3121 2014-04-30  Marek Polacek  <polacek@redhat.com>
3123         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3124         also when SANITIZE_FLOAT_DIVIDE is on.
3126 2014-04-30  Marek Polacek  <polacek@redhat.com>
3128         PR c/60139
3129         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3130         and pedwarn_init.  Use loc insted of input_location.
3132 2014-04-30  Marek Polacek  <polacek@redhat.com>
3134         PR c/60351
3135         * c-typeck.c (build_binary_op): Use location when warning about
3136         shift count.
3138 2014-04-25  Marek Polacek  <polacek@redhat.com>
3140         PR c/18079
3141         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3142         always_inline/noinline and hot/cold attributes.
3144 2014-04-25  Marek Polacek  <polacek@redhat.com>
3146         PR c/60114
3147         * c-parser.c (c_parser_initelt): Pass input_location to
3148         process_init_element.
3149         (c_parser_initval): Pass loc to process_init_element.
3150         * c-tree.h (process_init_element): Adjust declaration.
3151         * c-typeck.c (push_init_level): Pass input_location to
3152         process_init_element.
3153         (pop_init_level): Likewise.
3154         (set_designator): Likewise.
3155         (output_init_element): Add location_t parameter.  Pass loc to
3156         digest_init.
3157         (output_pending_init_elements): Pass input_location to
3158         output_init_element.
3159         (process_init_element): Add location_t parameter.  Pass loc to
3160         output_init_element.
3162 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
3164         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3165         atomic-clause, allow comma in between atomic-clause and
3166         seq_cst.
3168 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3170         PR c/59073
3171         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3172         fails, don't set OM_PARALLEL_COMBINED and return NULL.
3174 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
3176         PR middle-end/60469
3177         * c-array-notation.c (fix_builtin_array_notation_fn): Use
3178         create_tmp_var instead build_decl for creating temps.
3179         (build_array_notation_expr): Likewise.
3180         (fix_conditional_array_notations_1): Likewise.
3181         (fix_array_notation_expr): Likewise.
3182         (fix_array_notation_call_expr): Likewise.
3184 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
3186         PR c++/60689
3187         * c-tree.h (c_build_function_call_vec): New prototype.
3188         * c-typeck.c (build_function_call_vec): Don't call
3189         resolve_overloaded_builtin here.
3190         (c_build_function_call_vec): New wrapper function around
3191         build_function_call_vec.  Call resolve_overloaded_builtin here.
3192         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3193         Call c_build_function_call_vec instead of build_function_call_vec.
3194         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3195         * c-decl.c (finish_decl): Likewise.
3197 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3199         PR c/55383
3200         * c-typeck.c: Use correct format string in cast-qual warning
3202 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
3204         * c-decl.c (c_decl_attributes): Use
3205         lang_hooks.types.omp_mappable_type.
3206         * c-typeck.c (c_finish_omp_clauses): Likewise.
3208 2014-03-06  Marek Polacek  <polacek@redhat.com>
3210         PR c/60197
3211         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3212         of checking tree code.
3214 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3216         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3217         (c_parser_parameter_declaration): Likewise.
3219 2014-02-19  Marek Polacek  <polacek@redhat.com>
3221         PR c/60195
3222         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3223         Call mark_exp_read on exp.value.
3224         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
3225         TREE_ADDRESSABLE on old instead of val.
3226         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3228 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3230         * c-parser.c (c_parser_get_builtin_args): Replace calls to
3231         C_EXPR_APPEND by vec_safe_push.
3232         * c-tree.h (C_EXPR_APPEND): Remove.
3234 2014-01-31  Marek Polacek  <polacek@redhat.com>
3236         PR c/59963
3237         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3238         build_function_call_vec.
3239         (build_function_call): Likewise.
3240         (build_atomic_assign): Likewise.
3241         (build_function_call_vec): Add arg_loc parameter.  Use it.
3242         (convert_arguments): Likewise.
3243         (convert_for_assignment): Rename rhs_loc to expr_loc.
3244         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3245         (c_parser_objc_keywordexpr): Likewise.
3246         (c_parser_postfix_expression_after_primary): Call
3247         build_function_call_vec with expr_loc rather than op_loc.
3248         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
3249         build_function_call_vec.
3250         (c_parser_expr_list): Add locations parameter.  Fill it with locations
3251         of function arguments.
3252         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3254 2014-01-30  Marek Polacek  <polacek@redhat.com>
3256         PR c/59940
3257         * c-typeck.c (build_function_call_vec): Use loc parameter.
3258         (convert_arguments): Add location parameter.  Use it.
3259         (ep_convert_and_check): Likewise.
3260         (build_atomic_assign): Adjust convert_for_assignment call.
3261         (build_modify_expr): Likewise.
3262         (digest_init): Likewise.
3263         (c_finish_return): Likewise.
3264         (build_conditional_expr): Adjust ep_convert_and_check calls.
3265         (convert_for_assignment): Add rhs_loc parameter.  Use it.
3266         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3267         calls.
3269 2014-01-30  Richard Biener  <rguenther@suse.de>
3271         PR c/59905
3272         * c-typeck.c (build_function_call_vec): Do not replace calls
3273         to a function via an incompatible type with a runtime abort.
3275 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3277         * c-parser.c (c_parser_declaration_or_fndef): Replaced
3278         flag_enable_cilkplus with flag_cilkplus.
3279         (c_parser_direct_declarator_inner): Likewise.
3280         (c_parser_attribute_any_word): Likewise.
3281         (c_parser_attributes): Likewise.
3282         (c_parser_compound_statement): Likewise.
3283         (c_parser_statement_after_labels): Likewise.
3284         (c_parser_if_statement): Likewise.
3285         (c_parser_switch_statement): Likewise.
3286         (c_parser_do_statement): Likewise.
3287         (c_parser_for_statement): Likewise.
3288         (c_parser_unary_expression): Likewise.
3289         (c_parser_postfix_expression): Likewise.
3290         (c_parser_postfix_expression_after_primary): Likewise.
3291         (c_parser_postfix_expression_after_primary): Likewise.
3292         (c_parser_omp_clause_name): Likewise.
3293         (c_finish_omp_declare_simd): Likewise.
3294         (c_parser_cilk_verify_simd): Likewise.
3295         * c-typeck.c (build_array_ref): Likewise.
3296         (build_function_call_vec): Likewise.
3297         (convert_arguments): Likewise.
3298         (build_compound_expr): Likewise.
3299         (c_finish_return): Likewise.
3300         (c_finish_if_stmt): Likewise.
3301         (c_finish_loop): Likewise.
3302         (build_binary_op): Likewise.
3304 2014-01-23  Marek Polacek  <polacek@redhat.com>
3306         PR c/59846
3307         * c-typeck.c (parser_build_binary_op): Use location instead of
3308         input_location.
3309         (build_binary_op): Pass location to shorten_compare.
3311 2014-01-23  Marek Polacek  <polacek@redhat.com>
3313         PR c/58346
3314         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3315         an empty aggregate.
3317 2014-01-23  Marek Polacek  <polacek@redhat.com>
3319         PR c/59871
3320         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
3321         of a comma expression.
3322         (emit_side_effect_warnings): Likewise.
3324 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3326         PR c/59825
3327         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
3328         function to use walk_tree and moved a lot of its functionality to
3329         expand_array_notations.
3330         (expand_array_notations): New function.
3332 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3334         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
3335         attribute an attribute without value.
3337 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
3339         PR middle-end/58809
3340         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
3341         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3343 2014-01-22  Marek Polacek  <polacek@redhat.com>
3345         PR c/59891
3346         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
3347         of remove_c_maybe_const_expr on op1 and op2.
3349 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
3351         PR c/58943
3352         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
3353         effects, preevaluate rhs using SAVE_EXPR first.
3355 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3357         PR c++/59631
3358         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
3359         statements with if-elseif statements.
3361 2014-01-06  Marek Polacek  <polacek@redhat.com>
3363         PR c/57773
3364         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
3365         defined bit-field types only in ISO C.
3367 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3369         Update copyright years
3371 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3373         * c-array-notation.c: Use the standard form for the copyright notice.
3375 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3377         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
3378         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
3379         field in parser is not empty.  If not-empty, call the function
3380         c_parser_finish_omp_declare_simd.
3381         (c_parser_cilk_clause_vectorlength): Modified function to be shared
3382         between SIMD-enabled functions and #pragma simd.  Added new parameter.
3383         (c_parser_cilk_all_clauses): Modified the usage of the function
3384         c_parser_cilk_clause_vectorlength as mentioned above.
3385         (c_parser_cilk_simd_fn_vector_attrs): New function.
3386         (c_finish_cilk_simd_fn_tokens): Likewise.
3387         (is_cilkplus_vector_p): Likewise.
3388         (c_parser_omp_clause_name): Added checking for "vectorlength,"
3389         "nomask," and "mask" strings in clause name.
3390         (c_parser_omp_all_clauses): Added 3 new case statements:
3391         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
3392         PRAGMA_CILK_CLAUSE_NOMASK.
3393         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
3394         check for vector attribute and if so call the function
3395         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
3396         called the function c_finish_cilk_simd_fn_tokens.
3397         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
3398         parser field is non-empty.  If so, parse them as you would parse
3399         the omp declare simd pragma.
3400         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
3401         Added a check when step is a parameter and flag it as error.
3402         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
3403         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
3404         pragma_omp_clause.
3406 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
3408         * c-parser.c (c_parser_omp_parallel): Fix description.
3410 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3412         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
3413         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3414         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3415         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
3417 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
3419         PR c/52023
3420         * c-parser.c (c_parser_alignas_specifier): Use
3421         c_sizeof_or_alignof_type instead of c_alignof.
3422         (c_parser_alignof_expression): Likewise, with min_alignof
3423         parameter depending on alignof spelling used.
3425 2013-12-04  Marek Polacek  <polacek@redhat.com>
3427         PR c/54113
3428         * c-decl.c (start_function): Don't warn for missing prototype for
3429         inline functions.
3431 2013-12-03  Marek Polacek  <polacek@redhat.com>
3433         PR c/59351
3434         * c-decl.c (build_compound_literal): Allow compound literals with
3435         empty initial value.
3437 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
3439         PR c/58235
3440         * c-typeck.c (build_modify_expr): Diagnose assignment to
3441         expression with array type.
3443 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3445         PR c/42262
3446         * c-typeck.c (process_init_element): Do not treat a string as
3447         initializing a whole array when used with a designator for an
3448         individual element.
3450 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3452         PR c/57574
3453         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
3454         an inline function following a static declaration.
3456 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
3458         PR c/59310
3459         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
3460         to p_name before calling c_parser_omp_teams instead of after.
3461         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
3462         argument.  Remove unused p_name variable.
3464 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
3465             Jakub Jelinek  <jakub@redhat.com>
3467         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
3468         external_scope is NULL.
3470 2013-11-27  Tom de Vries  <tom@codesourcery.com>
3471             Marc Glisse  <marc.glisse@inria.fr>
3473         PR c++/59032
3474         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
3476 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
3478         * c-typeck.c: Add required include files from gimple.h.
3480 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
3482         * c-decl.c (define_label, shadow_tag_warned)
3483         (check_bitfield_type_and_width, grokdeclarator, grokparms,
3484         store_parm_decls_newstyle, store_parm_decls_oldstyle)
3485         (declspecs_add_type): Remove use of in_system_header macro.
3486         * c-parser.c (c_parser_unary_expression): Likewise.
3487         * c-typeck.c (store_init_value, process_init_element)
3488         (c_start_case): Likewise.
3490         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
3491         macro.
3493         * c-parser.c (c_parser_set_source_position_from_token): Remove
3494         reference to in_system_header from comment.
3496 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3498         * c-decl.c (grokdeclarator): Update comment to refer to
3499         tree_to_[su]hwi rather than tree_low_cst.
3501 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3503         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
3504         tree_to_uhwi throughout.
3506 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3508         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
3509         throughout.
3511 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3513         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3514         throughout.
3516 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3518         * c-parser.c (c_parser_cilk_simd): New.
3519         (c_parser_cilk_verify_simd): New.
3520         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
3521         (c_parser_omp_for_loop): Add case for NE_EXPR.
3522         Set c_break_label for CILK_SIMD.
3523         (c_parser_cilk_clause_vectorlength): New.
3524         (c_parser_cilk_clause_linear): New.
3525         (c_parser_cilk_clause_name): New.
3526         (c_parser_cilk_all_clauses): New.
3527         * c-typeck.c (build_unary_op): Pass location argument to
3528         readonly_error.
3529         (build_modify_expr): Same.
3530         (build_asm_expr): Same.
3531         (c_finish_bc_stmt): Error on break/continue in loops.
3533 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
3535         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
3537 2013-11-14  Diego Novillo  <dnovillo@google.com>
3539         * c-decl.c: Include print-tree.h.
3540         Include stor-layout.h.
3541         Include varasm.h.
3542         Include attribs.h.
3543         Include stringpool.h.
3544         * c-lang.c: Include fold-const.h.
3545         * c-parser.c: Include stringpool.h.
3546         Include attribs.h.
3547         Include stor-layout.h.
3548         Include varasm.h.
3549         Include trans-mem.h.
3550         * c-typeck.c: Include stor-layout.h.
3551         Include trans-mem.h.
3552         Include varasm.h.
3553         Include stmt.h.
3555 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3557         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
3558         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
3559         __auto_type.
3560         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
3561         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
3562         RID_AUTO_TYPE.
3563         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
3564         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
3565         (c_parser_declarator, c_parser_direct_declarator_inner)
3566         (c_parser_parameter_declaration, c_parser_type_name): All callers
3567         changed.
3568         (c_parser_declaration_or_fndef): Handle declarations with type
3569         determined from the initializer.
3571 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
3573         * c-typeck.c: Include gimplify.h.
3575 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
3577         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
3578         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
3579         comment.
3580         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
3581         or _Thread_local as appropriate in diagnostics.
3582         (build_null_declspecs): Initialize ret->thread_gnu_p.
3583         (declspecs_add_scspec): Handle either __thread or _Thread_local
3584         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
3585         pedantic.  Do not disallow _Thread_local extern and _Thread_local
3586         static.
3588 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
3589             Andrew MacLeod  <amacleod@redhat.com>
3591         * c-aux-info.c (gen_type): Handle atomic qualifier.
3592         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
3593         qualifiers when compating types.
3594         (shadow_tag_warned): Handle atomic_p in declspecs.
3595         (quals_from_declspecs): Likewise.
3596         (start_decl): Use c_type_promotes_to when promoting argument
3597         types.
3598         (grokdeclarator): Handle _Atomic.
3599         (get_parm_info): Diagnose any qualifier on "void" as only
3600         parameter.
3601         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
3602         comparing types.  Use c_type_promotes_to when promoting argument
3603         types.
3604         (finish_function): Use c_type_promotes_to when promoting argument
3605         types.
3606         (build_null_declspecs): Handle atomic_p in declspecs.
3607         (declspecs_add_qual): Handle RID_ATOMIC.
3608         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
3609         (c_token_starts_declspecs): Handle RID_ATOMIC.
3610         (c_parser_declspecs): Handle atomic type specifiers and
3611         qualifiers.
3612         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
3613         from types of expressions with atomic type.
3614         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
3615         (c_parser_attribute_any_word): Handle RID_ATOMIC.
3616         (c_parser_initializer, c_parser_initelt, c_parser_initval)
3617         (c_parser_statement_after_labels, c_parser_switch_statement)
3618         (c_parser_for_statement, c_parser_expr_no_commas)
3619         (c_parser_conditional_expression, c_parser_binary_expression)
3620         (c_parser_cast_expression, c_parser_unary_expression)
3621         (c_parser_postfix_expression)
3622         (c_parser_postfix_expression_after_primary, c_parser_expression):
3623         Use convert_lvalue_to_rvalue.
3624         (c_parser_expression_conv, c_parser_expr_list): Document
3625         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
3626         (c_parser_objc_synchronized_statement): Use
3627         convert_lvalue_to_rvalue.
3628         (c_parser_objc_selector): Handle RID_ATOMIC.
3629         (c_parser_objc_receiver, c_parser_array_notation): Use
3630         convert_lvalue_to_rvalue.
3631         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
3632         _Atomic (type-name).
3633         (struct c_declspecs): Add atomic_p field.
3634         (convert_lvalue_to_rvalue): Declare.
3635         * c-typeck.c (c_type_promotes_to): Promote atomic types to
3636         corresponding atomic types.
3637         (qualify_type): Don't add _Atomic qualifiers from second argument.
3638         (comp_target_types): Do not allow _Atomic mismatches.
3639         (type_lists_compatible_p): Do not remove atomic qualifiers when
3640         comparing types.
3641         (really_atomic_lvalue, convert_lvalue_to_rvalue)
3642         (build_atomic_assign): New functions.
3643         (build_unary_op): Use build_atomic_assign for atomic increment and
3644         decrement.
3645         (build_conditional_expr): Do not treat _Atomic void as a qualified
3646         version of void.
3647         (build_modify_expr): Use build_atomic_assign for atomic LHS.
3648         (find_anonymous_field_with_type, convert_to_anonymous_field)
3649         (convert_for_assignment): Do not remove atomic qualifiers when
3650         comparing types.
3651         (digest_init): Do not accept initialization of arrays of atomic
3652         elements by string constants.
3653         (build_asm_expr): Use convert_lvalue_to_rvalue.
3654         (build_binary_op): Do not treat _Atomic void as a qualified
3655         version of void.
3657 2013-11-06  DJ Delorie  <dj@redhat.com>
3659         * c-decl.c (locate_old_decl): If a previous conflicting decl is
3660         both explicit and builtin, print the location of the explicit one.
3662 2013-11-05  Tobias Burnus  <burnus@net-b.de>
3664         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
3665         c_parser_omp_distribute, c_parser_omp_teams,
3666         c_parser_omp_target, c_parser_omp_declare): Handle
3667         -fopenmp-simd.
3669 2013-11-03  Marek Polacek  <polacek@redhat.com>
3671         * c-decl.c (grokdeclarator): Add VLA instrumentation.
3673 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
3675         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
3676         check_dup_generic at the end, unless remove is true.
3677         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
3678         remove = true;.
3679         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
3681 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
3683         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
3684         with decl that is not pointer nor array.
3686 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3688         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
3689         a spawning function is found.
3690         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
3691         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3692         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3693         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
3694         case.
3695         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
3696         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
3697         expr.
3698         (c_finish_return): Added a check to reject _Cilk_spawn in return
3699         expression.
3700         (build_cilk_spawn): New function.
3701         (build_cilk_sync): Likewise.
3702         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
3703         
3704 2013-10-27  Tobias Burnus  <burnus@net-b.de>
3706         PR other/33426
3707         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
3708         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
3709         (c_parser_statement_after_labels): Update calls.
3711 2013-10-24  Tobias Burnus  <burnus@net-b.de>
3713         PR other/33426
3714         * c-parser.c (c_parser_pragma, c_parser_for_statement):
3715         Handle PRAGMA_IVDEP.
3716         (c_parser_statement_after_labels): Update call.
3718 2013-10-24  Marek Polacek  <polacek@redhat.com>
3720         * c-parser.c (c_parser_struct_declaration): Add a comment.
3721         (c_parser_declarator): Don't allow _Alignas here.
3723 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
3725         * c-parser.c: Include omp-low.h.
3726         * c-typeck.c: Likewise.
3728 2013-10-17  Marek Polacek  <polacek@redhat.com>
3730         PR c/58267
3731         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
3732         Document syntax of the array-declarator.
3733         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
3734         are not permitted.
3735         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
3736         (c_parser_struct_declaration): Likewise.
3737         (c_parser_declarator): Likewise.
3738         (c_parser_direct_declarator_inner): Likewise.
3739         (c_parser_parameter_declaration): Likewise.
3740         (c_parser_type_name): Likewise.
3742 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
3744         * c-lang.h (current_omp_declare_target_attribute): New extern
3745         decl.
3746         * c-parser.c: Include c-lang.h.
3747         (struct c_parser): Change tokens to c_token *.
3748         Add tokens_buf field.  Change tokens_avail type to unsigned int.
3749         (c_parser_consume_token): If parser->tokens isn't
3750         &parser->tokens_buf[0], increment parser->tokens.
3751         (c_parser_consume_pragma): Likewise.
3752         (enum pragma_context): Add pragma_struct and pragma_param.
3753         (c_parser_external_declaration): Adjust
3754         c_parser_declaration_or_fndef caller.
3755         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
3756         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
3757         Adjust recursive call.
3758         (c_parser_struct_or_union_specifier): Use pragma_struct instead
3759         of pragma_external.
3760         (c_parser_parameter_declaration): Use pragma_param instead of
3761         pragma_external.
3762         (c_parser_compound_statement_nostart, c_parser_label,
3763         c_parser_for_statement): Adjust
3764         c_parser_declaration_or_fndef callers.
3765         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
3766         it through to c_parser_conditional_expression.
3767         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
3768         pass it through to c_parser_binary_expression.  Adjust recursive
3769         call.
3770         (c_parser_binary_expression): Remove prec argument, add
3771         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
3772         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
3773         binop matches it, use build2 instead of parser_build_binary_op.
3774         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
3775         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
3776         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
3777         Handle pragma_struct and pragma_param the same as pragma_external.
3778         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
3779         (c_parser_omp_variable_list): Parse array sections for
3780         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
3781         (c_parser_omp_clause_collapse): Fully fold collapse expression.
3782         (c_parser_omp_clause_reduction): Handle user defined reductions.
3783         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
3784         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
3785         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
3786         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
3787         c_parser_omp_clause_depend, c_parser_omp_clause_map,
3788         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
3789         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
3790         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
3791         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
3792         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
3793         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
3794         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
3795         (c_parser_omp_for_loop): Add CODE argument, pass it through
3796         to c_finish_omp_for.  Change last argument to cclauses,
3797         and adjust uses to grab parallel clauses from the array of all
3798         the split clauses.  Adjust c_parser_binary_expression,
3799         c_parser_declaration_or_fndef and c_finish_omp_for callers.
3800         (omp_split_clauses): New function.
3801         (c_parser_omp_simd): New function.
3802         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3803         Allow the function to be called also when parsing combined constructs,
3804         and call c_parser_omp_simd when parsing for simd.
3805         (c_parser_omp_sections_scope): If section-sequence doesn't start with
3806         #pragma omp section, require exactly one structured-block instead of
3807         sequence of statements.
3808         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
3809         Allow the function to be called also when parsing combined constructs.
3810         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
3811         Allow the function to be called also when parsing combined
3812         constructs.
3813         (c_parser_omp_taskgroup, c_parser_omp_cancel,
3814         c_parser_omp_cancellation_point, c_parser_omp_distribute,
3815         c_parser_omp_teams, c_parser_omp_target_data,
3816         c_parser_omp_target_update, c_parser_omp_target,
3817         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
3818         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
3819         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
3820         (c_parser_omp_construct): Add p_name and mask vars.  Handle
3821         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
3822         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
3823         and c_parser_omp_sections callers.
3824         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
3825         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
3826         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
3827         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
3828         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
3829         OMP_CLAUSE_DEPEND.
3830         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
3831         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
3832         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
3833         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
3834         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
3835         * c-typeck.c: Include tree-inline.h.
3836         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
3837         handle_omp_array_sections_1, handle_omp_array_sections,
3838         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
3839         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
3840         user defined reductions.
3841         (c_tree_equal): New function.
3842         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
3843         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
3844         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
3845         c_check_omp_declare_reduction_r): New prototypes.
3846         * c-decl.c (current_omp_declare_target_attribute): New variable.
3847         (c_decl_attributes): New function.
3848         (start_decl, start_function): Use it instead of decl_attributes.
3849         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
3850         c_omp_reduction_decl, c_omp_reduction_lookup,
3851         c_check_omp_declare_reduction_r): New functions.
3853 2013-09-25  Tom Tromey  <tromey@redhat.com>
3855         * Make-lang.in (c/gccspec.o): Remove.
3856         (CFLAGS-c/gccspec.o): New variable.
3857         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
3858         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
3859         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
3861 2013-09-25  Tom Tromey  <tromey@redhat.com>
3863         * Make-lang.in (c/gccspec.o): Don't use subshell.
3865 2013-09-18  Marek Polacek  <polacek@redhat.com>
3867         PR sanitize/58443
3868         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
3869         Remove unnecessary check.
3871 2013-09-18  Marek Polacek  <polacek@redhat.com>
3873         PR sanitizer/58411
3874         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
3875         no_sanitize_undefined attribute.
3877 2013-09-13  Kai Tietz  <ktietz@redhat.com>
3879         PR target/57848
3880         * c-decl.c (c_builtin_function_ext_scope): Remove
3881         wrong assumption that it is never called on prexisting
3882         symbol.
3884 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3886         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
3888 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3890         * c-objc-common.c (c_tree_printer): Tidy.
3892 2013-08-30  Marek Polacek  <polacek@redhat.com>
3894         * c-typeck.c (build_binary_op): Add division by zero and shift
3895         instrumentation.
3897 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3898             Joseph Myers  <joseph@codesourcery.com>
3900         PR c/35649
3901         * c-typeck.c (c_common_type): Prefer double_type_node over
3902         other REAL_TYPE types with the same precision.
3903         (convert_arguments): Likewise.
3905 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3907         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
3908         (c_initialize_diagnostics): Call a destructor for the early printer.
3910 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3912         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
3913         printer initialization.
3915 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3917         PR c/57490
3918         * c-array-notation.c (fix_conditional_array_notations_1): Added a
3919         check for truth values.
3920         (expand_array_notation_exprs): Added truth values case.  Removed an
3921         unwanted else.  Added for-loop to walk through subtrees in default
3922         case.
3924 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3926         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
3928 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
3930         * c-parser.c (struct c_generic_association): Fix typo.
3932 2013-07-23  Tom Tromey  <tromey@redhat.com>
3933             Joseph Myers  <joseph@codesourcery.com>
3935         * c-parser.c (struct c_generic_association): New.
3936         (c_generic_association_d): New typedef.
3937         (c_parser_generic_selection): New function.
3938         (c_parser_postfix_expression): Handle RID_GENERIC.
3940 2013-07-13  Jason Merrill  <jason@redhat.com>
3942         PR c++/57793
3943         * c-decl.c (finish_struct): Check for too-large class.
3945 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
3947         PR c/57821
3948         * c-typeck.c (set_init_index): When folding, check for index overflow.
3950 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3952         * c-parser.c (c_parser_array_notation): Removed rejection of array
3953         notations in an array of function pointers.
3955 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3957         * c-array-notation.c (make_triplet_val_inv): New function.
3958         (create_cmp_incr): Likewise.
3959         (create_array_refs): Likewise.
3960         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
3961         Also modularized common parts between functions and called the function.
3962         (build_array_notation_expr): Likewise.
3963         (fix_conditional_array_notations_1): Likewise.
3964         (fix_array_notation_expr): Likewise.
3965         (fix_array_notation_call_expr): Likewise.
3967 2013-06-18  Marek Polacek  <polacek@redhat.com>
3969         PR c/57630
3970         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
3972 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3974         * c-array-notation.c (build_array_notation_expr): Reject array notation
3975         mismatch between LHS and RHS even inside a call_expr.  Also, removed
3976         a couple while statements that were dead code.
3978 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3980         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
3981         excessive precision expressions in function parameters.  Also removed
3982         couple unwanted while statements.
3984 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3986         * c-array-notation.c (expand_array_notation_exprs): Added
3987         ARRAY_NOTATION_REF case.
3988         
3989 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3991         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
3992         function to c-family/array-notation-common.c.
3993         (is_cilkplus_reduce_builtin): Likewise.
3994         (find_rank): Likewise.
3995         (extract_array_notation_exprs): Likewise.
3996         (replace_array_notations): Likewise.
3997         (find_inv_trees): Likewise.
3998         (replace_inv_trees): Likewise.
3999         (contains_array_notation_expr): Likewise.
4000         (find_correct_array_notation_type): Likewise.
4001         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4002         (struct inv_list): Moved this to c-family/array-notation-common.c.
4003         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4004         
4005 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4007         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4008         reduction functions outside the for-loop.  Added a check if the fundecl
4009         is non-NULL.  Finally, removed an unwanted if-statement, and made the
4010         body unconditional.
4012 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4014         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4015         condition of the if-statement matches the rank of else-block and then-
4016         block when array notations are used.
4017         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4018         expression after the entire function body is parsed.
4019         (c_parser_expr_no_commas): Delayed creating array notation expressions
4020         to the end of function parsing.
4021         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4022         whole if-statement instead of just the condition.
4023         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
4025 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4027         PR c/57474
4028         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4029         array to NULL_TREE if they are unused.  Also added a check for the
4030         field to be NULL before its fields are used in future.
4031         
4032 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4034         PR bootstrap/57450
4035         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4036         (build_array_notation_expr): Likewise.
4038 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4040         * c-typeck.c (build_array_ref): Added a check to see if array's
4041         index is greater than one.  If true, then emit an error.
4042         (build_function_call_vec): Exclude error reporting and checking
4043         for builtin array-notation functions.
4044         (convert_arguments): Likewise.
4045         (c_finish_return): Added a check for array notations as a return
4046         expression.  If true, then emit an error.
4047         (c_finish_loop): Added a check for array notations in a loop
4048         condition.  If true then emit an error.
4049         (lvalue_p): Added a ARRAY_NOTATION_REF case.
4050         (build_binary_op): Added a check for array notation expr inside
4051         op1 and op0.  If present, we call another function to find correct
4052         type.
4053         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4054         * c-parser.c (c_parser_compound_statement): Check if array
4055         notation code is used in tree, if so, then transform them into
4056         appropriate C code.
4057         (c_parser_expr_no_commas): Check if array notation is used in LHS
4058         or RHS, if so, then build array notation expression instead of
4059         regular modify.
4060         (c_parser_postfix_expression_after_primary): Added a check for
4061         colon(s) after square braces, if so then handle it like an array
4062         notation.  Also, break up array notations in unary op if found.
4063         (c_parser_direct_declarator_inner): Added a check for array
4064         notation.
4065         (c_parser_compound_statement): Added a check for array notation in
4066         a stmt.  If one is present, then expand array notation expr.
4067         (c_parser_if_statement): Likewise.
4068         (c_parser_switch_statement): Added a check for array notations in
4069         a switch statement's condition.  If true, then output an error.
4070         (c_parser_while_statement): Similarly, but for a while.
4071         (c_parser_do_statement): Similarly, but for a do-while.
4072         (c_parser_for_statement): Similarly, but for a for-loop.
4073         (c_parser_unary_expression): Check if array notation is used in a
4074         pre-increment or pre-decrement expression.  If true, then expand
4075         them.
4076         (c_parser_array_notation): New function.
4077         * c-array-notation.c: New file.
4078         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4079         
4080 2013-05-23  Mike Stump  <mikestump@comcast.net>
4082         * c-typeck.c (convert_for_assignment): Handle references to memory
4083         spaces better.
4085 2013-05-16  Jason Merrill  <jason@redhat.com>
4087         * Make-lang.in (cc1$(exeext)): Use link mutex.
4089 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4091         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4092         to simply use OPT_Wpointer_arith.
4093         (build_unary_op): Likewise.
4095 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
4097         PR c/19449
4098         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4099         argument.  If set, or it temporarily for parsing of the first
4100         argument into force_folding_builtin_constant_p.
4101         (c_parser_postfix_expression): Adjust callers.
4103 2013-03-21  Richard Biener  <rguenther@suse.de>
4105         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4106         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
4108 2013-02-12  Marek Polacek  <polacek@redhat.com>
4110         PR c/44938
4111         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4112         origtypes to NULL.
4114 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
4116         PR c/56078
4117         * c-typeck.c (set_nonincremental_init_from_string): If
4118         constructor_max_index is NULL, treat it as if tree_int_cst_lt
4119         returned false.
4120         (process_init_element): Likewise.
4122 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
4124         PR c++/55619
4125         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4126         argument, don't call default_function_array_conversion
4127         nor c_fully_fold here.
4128         (c_parser_asm_statement): Adjust callers.
4129         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4130         and outputs here, and call default_function_array_conversion
4131         on inputs that don't need to be addressable.
4133 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
4135         PR c/39464
4136         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4137         warning require that both c_common_unsigned_type as well as
4138         c_common_signed_type is the same for both mvl and mvr types.
4140 2012-11-16  Diego Novillo  <dnovillo@google.com>
4142         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4144         * c-common.c: Use new vec API in vec.h.
4145         * c-common.h: Likewise.
4146         * c-gimplify.c: Likewise.
4147         * c-pragma.c: Likewise.
4148         * c-pretty-print.c: Likewise.
4149         * c-pretty-print.h: Likewise.
4150         * c-semantics.c: Likewise.
4151         * c-decl.c: Likewise.
4152         * c-parser.c: Likewise.
4153         * c-tree.h: Likewise.
4154         * c-typeck.c: Likewise.
4156 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
4158         PR c++/54930
4159         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4161 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4163         PR c/53066
4164         * c-decl.c (warn_if_shadowing): Do not warn if a variable
4165         shadows a function, unless the variable is a function or a
4166         pointer-to-function.
4168 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
4170         PR c/54381
4171         * c-parser.c (struct c_tree_loc_pair): Removed.
4172         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4173         add location_t * and tree * arguments, fill in array of 3
4174         sizeof_arg trees and corresponding locs.
4175         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4176         c_parser_expr_list callers.
4177         (c_parser_postfix_expression_after_primary): Likewise.  Pass
4178         array of 3 sizeof_arg trees and locs (corresponding to first
4179         3 arguments) to sizeof_pointer_memaccess_warning.
4181 2012-10-09  Lawrence Crowl  <crowl@google.com>
4183         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4184         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4185         hash table.
4187 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
4189         PR c++/54194
4190         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4191         call.
4193 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
4195         PR c++/54427
4196         * c-typeck.c: Include c-common.h.
4197         (enum stv_conv): Moved to c-common.h.
4198         (scalar_to_vector): Moved to c-common.c.
4199         (build_binary_op): Adapt to scalar_to_vector's new prototype.
4200         * Make-lang.in: c-typeck.c depends on c-common.h.
4202 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
4204         * c-decl.c (c_write_global_declarations): Fix handling of
4205         -fdump-ada-spec*.
4207 2012-09-30  Sharad Singhai  <singhai@google.com>
4209         * c-decl.c (c_write_global_declarations): Use a different method
4210         to determine if the dump has ben initialized.
4212 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4214         PR c/54552
4215         * c-typeck.c (c_cast_expr): When casting to a type requiring
4216         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4217         c_fully_fold first.
4219 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4221         PR c/54103
4222         * c-typeck.c (build_unary_op): Pass original argument of
4223         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4224         any C_MAYBE_CONST_EXPR, if it has integer operands.
4225         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4226         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4227         to c_objc_common_truthvalue_conversion, then remove any
4228         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
4229         c_objc_common_truthvalue_conversion not
4230         c_common_truthvalue_conversion.
4231         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4232         call note_integer_operands for arguments with integer operands
4233         that are not integer constants.
4235 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
4237         PR c/54559
4238         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4239         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4241 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
4243         PR c/54428
4244         * c-convert.c (convert): Don't call fold_convert_loc if
4245         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4246         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
4247         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4249 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
4251         PR c/54355
4252         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4253         for nested and empty_ok arguments in the call to
4254         c_parser_declaration_or_fndef.
4256 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
4258         * c-tree.h (c_last_sizeof_arg): Declare.
4259         * c-parser.c (struct c_tree_loc_pair): New type.
4260         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
4261         non-NULL.
4262         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4263         (c_parser_postfix_expression_after_primary): Likewise.  Call
4264         sizeof_pointer_memaccess_warning if needed.
4265         (sizeof_ptr_memacc_comptypes): New function.
4266         * c-typeck.c (c_last_sizeof_arg): New global variable.
4267         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4269 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
4271         * c-lang.h (lang_decl): Add variable_size GTY option.
4273 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
4275         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4276         * Make-lang.in: Fix dependencies.
4278 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
4280         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4281         and add language Makefile hooks.
4282         * config-lang.in: New file.
4283         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4284         add the required "normal" config-lang.in rules.
4285         * c-lang.h: Moved from gcc/ to here.
4286         * c-tree.h: Likewise.
4287         * c-objc-common.c: Likewise.
4288         * c-objc-common.h: Likewise.
4289         * c-typeck.c: Likewise.
4290         * c-convert.c: Likewise.
4291         * c-lang.c: Likewise.
4292         * c-aux-info.c: Likewise.
4293         * c-errors.c: Likewise.
4294         * gccspec.c: Likewise.
4295         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
4296         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
4298 Copyright (C) 2012-2017 Free Software Foundation, Inc.
4300 Copying and distribution of this file, with or without modification,
4301 are permitted in any medium without royalty provided the copyright
4302 notice and this notice are preserved.