PR c/81795
[official-gcc.git] / gcc / c / ChangeLog
blobcd0c128edc82c79c300498942e7f9d955ec21aac
1 2017-08-11  Marek Polacek  <polacek@redhat.com>
3         PR c/81795
4         * c-decl.c (pushtag): Only print inform if the warning was printed.
5         (grokdeclarator): Likewise.
7 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
9         * c-parser.c (c_parser_error): Rename to...
10         (c_parser_error_richloc): ...this, making static, and adding
11         "richloc" parameter, passing it to the c_parse_error call,
12         rather than calling c_parser_set_source_position_from_token.
13         (c_parser_error): Reintroduce, reimplementing in terms of the
14         above, converting return type from void to bool.
15         (class token_pair): New class.
16         (struct matching_paren_traits): New struct.
17         (matching_parens): New typedef.
18         (struct matching_brace_traits): New struct.
19         (matching_braces): New typedef.
20         (get_matching_symbol): New function.
21         (c_parser_require): Add param MATCHING_LOCATION, using it to
22         highlight matching "opening" tokens for missing "closing" tokens.
23         (c_parser_skip_until_found): Likewise.
24         (c_parser_static_assert_declaration_no_semi): Convert explicit
25         parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
26         class matching_parens, so that the pertinent open parenthesis is
27         highlighted when there are problems locating the close
28         parenthesis.
29         (c_parser_struct_or_union_specifier): Likewise.
30         (c_parser_typeof_specifier): Likewise.
31         (c_parser_alignas_specifier): Likewise.
32         (c_parser_simple_asm_expr): Likewise.
33         (c_parser_braced_init): Likewise, for matching_braces.
34         (c_parser_paren_condition): Likewise, for matching_parens.
35         (c_parser_switch_statement): Likewise.
36         (c_parser_for_statement): Likewise.
37         (c_parser_asm_statement): Likewise.
38         (c_parser_asm_operands): Likewise.
39         (c_parser_cast_expression): Likewise.
40         (c_parser_sizeof_expression): Likewise.
41         (c_parser_alignof_expression): Likewise.
42         (c_parser_generic_selection): Likewise.
43         (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
44         RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
45         RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
46         In case CPP_OPEN_PAREN, pass loc_open_paren to the
47         c_parser_skip_until_found call.
48         (c_parser_objc_class_definition): Use class matching_parens as
49         above.
50         (c_parser_objc_method_decl): Likewise.
51         (c_parser_objc_try_catch_finally_statement): Likewise.
52         (c_parser_objc_synchronized_statement): Likewise.
53         (c_parser_objc_at_property_declaration): Likewise.
54         (c_parser_oacc_wait_list): Likewise.
55         (c_parser_omp_var_list_parens): Likewise.
56         (c_parser_omp_clause_collapse): Likewise.
57         (c_parser_omp_clause_default): Likewise.
58         (c_parser_omp_clause_if): Likewise.
59         (c_parser_omp_clause_num_threads): Likewise.
60         (c_parser_omp_clause_num_tasks): Likewise.
61         (c_parser_omp_clause_grainsize): Likewise.
62         (c_parser_omp_clause_priority): Likewise.
63         (c_parser_omp_clause_hint): Likewise.
64         (c_parser_omp_clause_defaultmap): Likewise.
65         (c_parser_oacc_single_int_clause): Likewise.
66         (c_parser_omp_clause_ordered): Likewise.
67         (c_parser_omp_clause_reduction): Likewise.
68         (c_parser_omp_clause_schedule): Likewise.
69         (c_parser_omp_clause_num_teams): Likewise.
70         (c_parser_omp_clause_thread_limit): Likewise.
71         (c_parser_omp_clause_aligned): Likewise.
72         (c_parser_omp_clause_linear): Likewise.
73         (c_parser_omp_clause_safelen): Likewise.
74         (c_parser_omp_clause_simdlen): Likewise.
75         (c_parser_omp_clause_depend): Likewise.
76         (c_parser_omp_clause_map): Likewise.
77         (c_parser_omp_clause_device): Likewise.
78         (c_parser_omp_clause_dist_schedule): Likewise.
79         (c_parser_omp_clause_proc_bind): Likewise.
80         (c_parser_omp_clause_uniform): Likewise.
81         (c_parser_omp_for_loop): Likewise.
82         (c_parser_cilk_clause_vectorlength): Likewise.
83         (c_parser_cilk_clause_linear): Likewise.
84         (c_parser_transaction_expression): Likewise.
85         * c-parser.h (c_parser_require): Add param matching_location with
86         default UNKNOWN_LOCATION.
87         (c_parser_error): Convert return type from void to bool.
88         (c_parser_skip_until_found): Add param matching_location with
89         default UNKNOWN_LOCATION.
91 2017-08-09  Marek Polacek  <polacek@redhat.com>
93         * c-decl.c (build_enumerator): Use true/false instead of 1/0.
94         * c-tree.h (build_external_ref): Update declaration.
95         * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
96         (build_external_ref): Change the type of a parameter to bool.
97         (parser_build_binary_op): Use true/false instead of 1/0.
98         (pointer_diff): Likewise.
99         (build_modify_expr): Likewise.
100         (set_designator): Change the type of a parameter to bool.
101         (set_init_index): Use true/false instead of 1/0.
102         (set_init_label): Likewise.
103         (output_init_element): Change the type of a parameter to bool.
104         (output_pending_init_elements): Use true/false instead of 1/0.
105         (process_init_element): Likewise.
106         (build_binary_op): Change the type of a parameter to bool.
108 2017-08-09  Marek Polacek  <polacek@redhat.com>
110         PR c/81233
111         * c-typeck.c (pedwarn_init): Make the function take a variable list.
112         Call emit_diagnostic_valist instead of pedwarn.
113         (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
114         Print the relevant types in diagnostics.
116 2017-08-09  Marek Polacek  <polacek@redhat.com>
118         PR c/81417
119         * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
120         build_conditional_expr. 
121         * c-parser.c (c_parser_conditional_expression): Create locations for
122         EXP1 and EXP2 from their source ranges.  Pass the locations down to
123         build_conditional_expr.
124         * c-tree.h (build_conditional_expr): Update declaration.
125         * c-typeck.c (build_conditional_expr): Add location_t parameters.
126         For -Wsign-compare, also print the types.
128 2017-08-08  Martin Liska  <mliska@suse.cz>
130         * c-convert.c: Include header files.
131         * c-typeck.c: Likewise.
133 2017-08-07  Martin Liska  <mliska@suse.cz>
135         * c-parser.c (c_parser_attributes): Canonicalize name of an
136         attribute.
138 2017-08-02  Marek Polacek  <polacek@redhat.com>
140         PR c/81289
141         * c-parser.c (c_parser_unary_expression): Use set_error.
143         PR c/81448
144         PR c/81306
145         * c-warn.c (warn_for_multistatement_macros): Prevent bogus
146         warnings.  Avoid walking MACRO_MAP_LOCATIONS.
148 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
149             Martin Liska  <mliska@suse.cz>
151         * c-typeck.c (c_finish_goto_label): Build gimple predict
152         statement.
154 2017-07-31  Martin Liska  <mliska@suse.cz>
156         PR sanitize/81530
157         * c-convert.c (convert): Guard condition with flag_sanitize_p
158         also with current_function_decl non-null equality.
159         * c-decl.c (grokdeclarator): Likewise.
160         * c-typeck.c (build_binary_op): Likewise.
162 2017-07-25  Marek Polacek  <polacek@redhat.com>
164         * c-decl.c (grokfield): Remove local variable.
166 2017-07-25  Marek Polacek  <polacek@redhat.com>
168         PR c/81364
169         * c-parser.c (c_parser_else_body): Don't warn about multistatement
170         macro expansion if the body is in { }.
171         (c_parser_while_statement): Likewise.
172         (c_parser_for_statement): Likewise.
174 2017-07-18  Nathan Sidwell  <nathan@acm.org>
176         * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
178 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
180         * c-decl.c (implicitly_declare): When suggesting a missing
181         #include, provide a fix-it hint.
183 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
185         * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
186         and call that instead.
187         * c-tree.h (selftest::run_c_tests): New decl.
189 2017-06-26  Marek Polacek  <polacek@redhat.com>
191         PR c/80116
192         * c-parser.c (c_parser_if_body): Set the location of the
193         body of the conditional after parsing all the labels.  Call
194         warn_for_multistatement_macros.
195         (c_parser_else_body): Likewise.
196         (c_parser_switch_statement): Likewise.
197         (c_parser_while_statement): Likewise.
198         (c_parser_for_statement): Likewise.
199         (c_parser_statement): Add a default argument.  Save the location
200         after labels have been parsed.
201         (c_parser_c99_block_statement): Likewise.
203 2017-06-19  Richard Biener  <rguenther@suse.de>
205         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
206         negated _Literals to parse _Literal (int) -1.
208 2017-06-13  Martin Liska  <mliska@suse.cz>
210         PR sanitize/78204
211         * c-convert.c (convert): Use sanitize_flags_p.
212         * c-decl.c (grokdeclarator): Likewise.
213         * c-typeck.c (convert_for_assignment): Likewise.
214         (c_finish_return): Likewise.
215         (build_binary_op): Likewise.
217 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
219         PR c/81006
220         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
221         to sizetype before size_binop.
223 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
225         * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
226         of TDI_generic.
228 2017-06-06  Marek Polacek  <polacek@redhat.com>
230         PR c/79983
231         * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
232         ref.
233         (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
235 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
237         * c-parser.c (c_parser_binary_expression): Implement the
238         -Wsizeof_pointer_div warning.
239         (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
240         from a parenthesized expression.
241         (c_parser_expr_list): Use c_last_sizeof_loc.
242         * c-tree.h (c_last_sizeof_loc): New external.
243         * c-typeck.c (c_last_sizeof_loc): New variable.
244         (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
246 2017-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
248         PR testsuite/80580
249         * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
251 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
253         * c-objc-common.c (c_tree_printer): Gain bool and const char **
254         parameters.
256 2017-05-24  Martin Sebor  <msebor@redhat.com>
258         PR c/80731
259         * c-fold.c (c_fully_fold_internal): Adjust.
260         * c-typeck.c (parser_build_unary_op): Adjust.
262 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
264         * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
265         "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
266         "VECTOR_LENGTH".
268 2017-05-23  Marek Polacek  <polacek@redhat.com>
270         * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
271         quotes.
273 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
275         * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
276         result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
277         it returned invariant.  Call tree_invariant_p unconditionally
278         afterwards to decide whether to return expr or op0.
280 2017-05-22  Nathan Sidwell  <nathan@acm.org>
282         * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
284 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
286         * c-parser.c (c_parser_omp_clause_default): Handle
287         "OMP_CLAUSE_DEFAULT_PRESENT".
289 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
291         * config-lang.in (gtfiles): Add c-family/c-format.c.
293 2017-05-18  Nathan Sidwell  <nathan@acm.org>
295         * c-decl.c (pushdecl_top_level): Delete unused function.
297 2017-05-18  Marek Polacek  <polacek@redhat.com>
299         * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
300         (check_earlier_gotos): Likewise.
301         (define_label): Likewise.
302         (pending_xref_error): Likewise.
303         (smallest_type_quals_location): Likewise.
304         (grokdeclarator): Likewise.
305         (grokparms): Likewise.
306         (identifier_global_value): Likewise.
307         * c-typeck.c (set_nonincremental_init_from_string): Likewise.
308         (find_init_member): Likewise.
310 2017-05-18  Marek Polacek  <polacek@redhat.com>
312         * c-decl.c (start_decl): Use false/true instead of 0/1.
313         (grokdeclarator): Likewise.
314         (finish_struct): Likewise.
315         (start_function): Change the return type to bool.  Use false/true
316         instead of 0/1.
317         (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
318         * c-tree.h (start_function): Update.
319         * c-typeck.c (same_translation_unit_p): Change the return type to bool.
320         (set_designator): Change the return type to bool.  Use false/true
321         instead of 0/1.
323 2017-05-17  Marek Polacek  <polacek@redhat.com>
325         * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
326         * c-typeck.c: Likewise.
328 2017-05-17  Marek Polacek  <polacek@redhat.com>
330         PR sanitizer/80659
331         * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
332         DECL_IGNORED_P even for non-static compound literals.
334 2017-05-17  Martin Liska  <mliska@suse.cz>
336         * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
337         use it instead of int type.
339 2017-05-17  Marek Polacek  <polacek@redhat.com>
341         * c-convert.c (convert): Replace c_save_expr with save_expr.  Don't
342         call c_fully_fold.
343         (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
344         * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. 
345         * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
346         * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
347         save_expr.
348         (c_parser_conditional_expression): Likewise.
349         * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
350         * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
351         (process_init_element): Likewise.
352         (build_binary_op): Likewise.
353         (handle_omp_array_sections_1): Likewise.
355 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
357         * c-parser.c (c_parser_omp_clause_num_gangs)
358         (c_parser_omp_clause_num_workers)
359         (c_parser_omp_clause_vector_length): Merge functions into...
360         (c_parser_oacc_single_int_clause): ... this new function.  Adjust
361         all users.
363 2017-05-11  Nathan Sidwell  <nathan@acm.org>
365         * gimple-parser.c: Don't #include tree-dump.h.
367 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
369         PR testsuite/80580
370         * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
372 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
374         PR testsuite/80580
375         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
376         incorrect __MEM syntax.
378 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
380         PR testsuite/80580
381         * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
382         type of unary '*'.
384 2017-05-09  Nathan Sidwell  <nathan@acm.org>
386         * c-tree.h (pushdecl): Declare.
388 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
390         * c-decl.c (warn_defaults_to): Replace report_diagnostic
391         with diagnostic_report_diagnostic.
392         * c-errors.c (pedwarn_c99): Likewise.
393         (pedwarn_c90): Likewise.
395 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
397         PR c++/80038
398         * c-gimplify.c (c_gimplify_expr): Remove calls to
399         cilk_gimplifY_call_params_in_spawned_fn.
401 2017-04-25  David Malcolm  <dmalcolm@redhat.com>
403         * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
404         hint for removing extra semicolon.
406 2017-04-21  Jakub Jelinek  <jakub@redhat.com>
408         PR c/80468
409         * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
410         enabled, set specs->type to integer_type_node.
412 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
414         * c-array-notation.c: Fix typo in comment.
416 2017-03-29  Marek Polacek  <polacek@redhat.com>
418         PR c/79730
419         * c-decl.c (finish_decl): Check VAR_P.
421 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
423         PR middle-end/80162
424         * c-tree.h (c_mark_addressable): Add array_ref_p argument.
425         * c-typeck.c (c_mark_addressable): Likewise.  Look through
426         VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
427         to ARRAY_TYPE.
428         (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
430 2017-03-23  Marek Polacek  <polacek@redhat.com>
432         * c-tree.h: Remove a C_RID_YYCODE reference.
434 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
436         PR c/80097
437         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
438         optional COMPOUND_EXPR with ubsan instrumentation.
440 2017-03-17  Marek Polacek  <polacek@redhat.com>
442         * c-parser.c: Add C11 references.
444 2017-03-15  Marek Polacek  <polacek@redhat.com>
446         * c-parser.c (c_parser_enum_specifier): Remove redundant line.
448 2017-03-11  Marek Polacek  <polacek@redhat.com>
450         * c-decl.c (implicit_decl_warning): Add a comment.  Fix formatting.
452 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
454         PR translation/79848
455         * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
456         "%qs".
457         * c-parser.c (c_parser_oacc_shape_clause): Likewise.
459 2017-03-09  Marek Polacek  <polacek@redhat.com>
461         PR sanitizer/79757
462         * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
463         parameter declarations with initializers.
465 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
467         PR c/79969
468         * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
469         TYPE_STUB_DECL.
471 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
473         PR c/79834
474         * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
475         for "may only be used in compound statements" diagnostics, change it
476         such that the same translatable string is used for all pragmas.  For
477         PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
478         diagnostics.
479         (c_parser_omp_cancellation_point, c_parser_omp_target_update,
480         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
481         "may only be used in compound statements" diagnostics, such that the
482         same translatable string is used for all pragmas.
484 2017-03-04  Marek Polacek  <polacek@redhat.com>
486         PR c/79847
487         * c-decl.c (implicit_decl_warning): Add missing space.
489 2017-03-03  Marek Polacek  <polacek@redhat.com>
491         PR c/79758
492         * c-decl.c (store_parm_decls_oldstyle): Check if the element of
493         current_function_prototype_arg_types is error_mark_node.  Fix
494         formatting.  Use TREE_VALUE instead of TREE_TYPE.
496 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
498         PR c/79837
499         * c-parser.c (c_parser_omp_clause_reduction): Don't mention
500         %<min%> or %<max%> in the diagnostics, instead mention identifier.
501         (c_parser_omp_declare_reduction): Don't mention %<min%> in the
502         diagnostics.
504         PR c/79836
505         * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
506         instead of %<_Generic>.
507         (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
508         (c_parser_omp_target_exit_data): Use %<release%> instead of
509         %<release>.
511 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
513         * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
514         instead of just cond ? "..." : "...".
515         (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
516         for "enter"/"exit" keyword.
517         (c_finish_oacc_routine): Don't use %s to supply portions of the
518         message.
520 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
522         PR c++/79588
523         * c-parser.c (c_parser_postfix_expression_after_primary): Don't
524         handle -Wrestrict here.
525         * c-typeck.c (build_function_call_vec): Adjust
526         check_function_arguments caller.
528 2017-02-23  Richard Biener  <rguenther@suse.de>
530         PR c/79684
531         * gimple-parser.c (c_parser_gimple_statement): Use set_error
532         to initialize c_exprs to return.
533         (c_parser_gimple_binary_expression): Likewise.
534         (c_parser_gimple_unary_expression): Likewise.
535         (c_parser_gimple_postfix_expression): Likewise.
537 2017-02-22  Marek Polacek  <polacek@redhat.com>
539         PR c/79662
540         * c-typeck.c (convert_arguments): Handle error_mark_node.
542 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
544         * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
545         value of c_parser_parse_ssa_name against error_mark_node and emit
546         error if ssa name is anonymous and written as default definition.
548 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
550         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
551         FMA_EXPR.
553 2017-02-16  Jakub Jelinek  <jakub@redhat.com>
555         PR c++/79512
556         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
557         ignore #pragma omp target even when not followed by identifier.
559 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
561         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
562         (c_parser_gimple_unary_expression): Likewise.
564 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
566         * c-parser.c (c_parser_oacc_declare): Add missing space in
567         diagnostics.
569 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
571         PR c/79478
572         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
573         set_c_expr_source_range when parsing ssa-name.
575 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
576         Richard Biener  <rguenther@suse.de>
578         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
579         building IL when arguments are error_mark_node.
580         (c_parser_gimple_unary_expression): Likewise.
581         (c_parser_gimple_if_stmt): Likewise.
582         (c_parser_gimple_switch_stmt): Likewise.
583         (c_parser_gimple_return_stmt): Likewise.
584         (c_parser_parse_ssa_name): When name lookup fails do not build
585         an SSA name.  Use undeclared rather than not declared in error
586         reporting.
588 2017-02-09  Marek Polacek  <polacek@redhat.com>
590         PR c/79428
591         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
592         instead of c_parser_skip_until_found.
594 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
596         PR c/79431
597         * c-parser.c (c_parser_omp_declare_target): Don't invoke
598         symtab_node::get on automatic variables.
600 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
601             Chung-Lin Tang  <cltang@codesourcery.com>
603         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
604         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
605         semantic checking.
606         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
608 2017-02-07  Richard Biener  <rguenther@suse.de>
610         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
611         (c_parser_gimple_postfix_expression_after_primary):
612         Do not use c_build_function_call_vec to avoid folding and promotion.
613         Simplify.
615 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
617         PR lto/79061
618         * c-decl.c (pop_scope): Pass main_input_filename to
619         build_translation_unit_decl.
621 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
623         * c-parser.c: Include "read-rtl-function.h" and
624         "run-rtl-passes.h".
625         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
626         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
627         production.  Update for renaming of field "gimple_pass" to
628         "gimple_or_rtl_pass".  If __RTL was seen, call
629         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
630         to an auto_timevar, to cope with early exit.
631         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
632         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
633         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
634         Handle RID_RTL.
635         (c_parser_parse_rtl_body): New function.
636         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
637         (struct c_declspecs): Rename field "gimple_pass" to
638         "gimple_or_rtl_pass".  Add field "rtl_p".
639         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
640         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
641         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
642         (c_parser_gimple_or_rtl_pass_list): ...this.
644 2017-01-20  Marek Polacek  <polacek@redhat.com>
646         PR c/64279
647         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
649 2017-01-13  Richard Biener  <rguenther@suse.de>
651         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
652         nops.
654 2017-01-13  Richard Biener  <rguenther@suse.de>
656         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
657         _Literal ( type-name ) number.
659 2017-01-12  Richard Biener  <rguenther@suse.de>
661         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
662         __MEM.
664 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
666         PR c++/72813
667         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
668         PCH file.
670 2017-01-11  Richard Biener  <rguenther@suse.de>
672         PR bootstrap/79052
673         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
674         returns on parse errors.
676 2017-01-04  Marek Polacek  <polacek@redhat.com>
678         PR c++/64767
679         * c-parser.c (c_parser_postfix_expression): Mark zero character
680         constants by setting original_type in c_expr.
681         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
682         with a zero character constant.
683         (char_type_p): New function.
685 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
687         * c-parser.c (c_parser_declaration_or_fndef): Create a
688         rich_location at init_loc and parse it to start_init.
689         (last_init_list_comma): New global.
690         (c_parser_braced_init): Update last_init_list_comma when parsing
691         commas.  Pass it to pop_init_level.  Pass location of closing
692         brace to pop_init_level.
693         (c_parser_postfix_expression_after_paren_type): Create a
694         rich_location at type_loc and parse it to start_init.
695         (c_parser_omp_declare_reduction): Likewise for loc.
696         * c-tree.h (start_init): Add rich_location * param.
697         (pop_init_level): Add location_t param.
698         * c-typeck.c (struct initializer_stack): Add field
699         "missing_brace_richloc".
700         (start_init): Add richloc param, use it to initialize
701         the stack node's missing_brace_richloc.
702         (last_init_list_comma): New decl.
703         (finish_implicit_inits): Pass last_init_list_comma to
704         pop_init_level.
705         (push_init_level): When finding missing open braces, add fix-it
706         hints to the richloc.
707         (pop_init_level): Add "insert_before" param and pass it
708         when calling pop_init_level.  Add fixits about missing
709         close braces to any richloc.  Use the richloc for the
710         -Wmissing-braces warning.
711         (set_designator): Pass last_init_list_comma to pop_init_level.
712         (process_init_element): Likewise.
714 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
716         Update copyright years.
718 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
720         PR bootstrap/78817
721         * c-typeck.c (build_function_call_vec): If check_function_arguments
722         returns true, set TREE_NO_WARNING on CALL_EXPR.
724         PR c/77767
725         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
726         to *expr instead of overwriting it.
728 2016-12-20  Richard Biener  <rguenther@suse.de>
730         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
731         error recovery.
732         (c_parser_gimple_statement): Only build assigns for non-error
733         stmts.
734         (c_parser_gimple_postfix_expression_after): Improve error recovery.
736 2016-12-14  Martin Jambor  <mjambor@suse.cz>
738         * c-parser.c: Include omp-general.h and omp-offload.h instead of
739         omp-low.h.
740         (c_finish_oacc_routine): Adjusted call to
741         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
742         to use their new names.
743         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
744         use its new name.
745         (c_parser_oacc_update): Likewise.
746         (c_parser_omp_simd): Likewise.
747         (c_parser_omp_target_update): Likewise.
748         * c-typeck.c: Include omp-general.h instead of omp-low.h.
749         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
750         name.
751         (c_finish_omp_cancellation_point): Likewise.
752         * gimple-parser.c: Do not include omp-low.h
754 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
755             James Norris  <jnorris@codesourcery.com>
757         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
758         EXIT_DATA,WAIT} are not used in compound statements.
759         (c_parser_oacc_enter_exit_data): Update diagnostics.
761 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
763         PR c++/71973
764         * c-decl.c (diagnose_mismatched_decls): Use
765         OPT_Wbuiltin_declaration_mismatch here too.
767 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
768             Alan Hayward  <alan.hayward@arm.com>
769             David Sherwood  <david.sherwood@arm.com>
771         * c-decl.c (merge_decls): Use SET_DECL_MODE.
772         (make_label, finish_struct): Likewise.
774 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
775             Richard Biener  <rguenther@suse.de>
777         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
778         * config-lang.in (gtfiles): Add c/c-parser.h.
779         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
780         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
781         * c-parser.c (enum c_id_kind, struct c_token,
782         c_parser_next_token_is, c_parser_next_token_is_not,
783         c_parser_next_token_is_keyword,
784         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
785         Split out to ...
786         * c-parser.h: ... new header.
787         * c-parser.c: Include c-parser.h and gimple-parser.h.
788         (c_parser_peek_token, c_parser_peek_2nd_token,
789         c_token_starts_typename, c_parser_next_token_starts_declspecs,
790         c_parser_next_tokens_start_declaration, c_parser_consume_token,
791         c_parser_error, c_parser_require, c_parser_skip_until_found,
792         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
793         c_parser_type_name): Export.
794         (c_parser_tokens_buf): New function.
795         (c_parser_error): Likewise.
796         (c_parser_set_error): Likewise.
797         (c_parser_declspecs): Handle RID_GIMPLE.
798         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
799         via c_parser_parse_gimple_body.
800         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
801         c_token_starts_typename, c_parser_next_token_starts_declspecs,
802         c_parser_next_tokens_start_declaration, c_parser_consume_token,
803         c_parser_error, c_parser_require, c_parser_skip_until_found,
804         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
805         c_parser_type_name): Declare.
806         (struct c_parser): Declare forward.
807         (c_parser_tokens_buf): Declare.
808         (c_parser_error): Likewise.
809         (c_parser_set_error): Likewise.
810         * gimple-parser.c: New file.
811         * gimple-parser.h: Likewise.
813 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
815         PR c/35503
816         * c-parser.c (c_parser_postfix_expression_after_primary): Call
817         warn_for_restrict.
819 2016-09-11  Le-Chun Wu  <lcwu@google.com>
820             Mark Wielaard  <mjw@redhat.com>
822         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
823         to the given -Wshadow= variant.
825 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
827         * c-typeck.c: Include memmodel.h.
829 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
831         PR target/77957
832         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
833         instead of lhd_return_null_tree_v.
835 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
837         PR c++/69733
838         * c-decl.c (smallest_type_quals_location): New static function.
839         (grokdeclarator): Try to find the correct location for an ignored
840         qualifier.
842 2016-09-26  Marek Polacek  <polacek@redhat.com>
844         PR c/7652
845         * c-decl.c (pop_scope): Add gcc_fallthrough.
847 2016-09-26  Marek Polacek  <polacek@redhat.com>
849         PR c/7652
850         * c-parser.c (struct c_token): Add flags field.
851         (c_lex_one_token): Pass it to c_lex_with_flags.
852         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
853         into IFN_FALLTHROUGH.
854         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
855         attribute fallthrough after a case label or default label.
856         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
858 2016-09-24  Marek Polacek  <polacek@redhat.com>
860         PR c/77490
861         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
862         have boolean value.  Warn about ++/-- on booleans.
864 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
866         * c-parser.c (incomplete_record_decls): Remove unnecessary
867         = vNULL initialization of file scope vec.
869 2016-09-16  Marek Polacek  <polacek@redhat.com>
871         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
873 2016-09-14  Marek Polacek  <polacek@redhat.com>
875         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
876         (fix_array_notation_expr): Likewise.
877         * c-decl.c (finish_decl): Likewise.
878         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
879         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
880         (function_to_pointer_conversion): Use false instead of 0.
881         (convert_lvalue_to_rvalue): Likewise.
882         (parser_build_unary_op): Likewise.
883         (build_atomic_assign): Likewise.
884         (build_unary_op): Change nonconvert parameter type to bool, use
885         true/false instead of 1/0.
886         (build_binary_op): Use true instead of 1.
888 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
890         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
891         of add_fixit_insert to add_fixit_insert_before.
893 2016-09-13  Marek Polacek  <polacek@redhat.com>
895         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
896         it.
898 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
900         PR c++/77496
901         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
902         COMPOUND_EXPR to warn_for_omitted_condop.
904 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
906         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
907         c_get_substring_location for this new langhook.
909 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
911         PR c/65467
912         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
913         flag_openmp.
914         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
915         instead of mark_exp_read on low_bound/length expression.
916         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
917         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
918         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
919         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
920         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
921         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
922         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
923         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
924         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
925         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
926         instead of mark_expr_read.
927         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
928         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
929         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
930         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
931         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
932         array section bases outside of depend clause, for depend clause
933         use convert_lvalue_to_rvalue on the base.
934         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
935         linear, aligned, map, to and from clauses.
936         (c_omp_clause_copy_ctor): New function.
938 2016-09-01  Marek Polacek  <polacek@redhat.com>
940         PR c/7652
941         * c-typeck.c (composite_type): Add FALLTHRU comment.
943 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
945         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
946         to the insertion fixits for "struct", "union", and "enum".
948 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
950         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
951         rather than add_fixit_misspelled_id.
952         (undeclared_variable): Likewise.
953         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
954         now-redundant "here" params from add_fixit_insert method calls.
955         (c_parser_parameter_declaration): Likewise.
956         * c-typeck.c (build_component_ref): Remove now-redundant range
957         param from add_fixit_replace method calls.
959 2016-08-25  Marek Polacek  <polacek@redhat.com>
961         * c-typeck.c (parser_build_binary_op): Pass LHS to
962         warn_logical_not_parentheses.
964 2016-08-25  Marek Polacek  <polacek@redhat.com>
966         PR c/77323
967         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
968         or _FloatN or _FloatNx is not supported.
969         (finish_declspecs): Set type to integer_type_node when _FloatN or
970         _FloatNx is not supported.
972 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
974         PR c/32187
975         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
976         (struct c_declspecs): Add field floatn_nx_idx.
977         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
978         and _FloatNx type specifiers.
979         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
980         (c_parser_declspecs, c_parser_attribute_any_word)
981         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
982         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
983         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
984         narrower than double.
986 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
987             Martin Liska  <mliska@suse.cz>
989         PR c/67410
990         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
991         % to determine val element to change.  Assert that
992         wchar_bytes * charwidth fits into val array.
994 2016-08-12  Marek Polacek  <polacek@redhat.com>
996         PR c/7652
997         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
998         (c_parser_postfix_expression): Likewise.
999         * c-typeck.c (build_unary_op): Adjust fall through comment.
1000         (c_mark_addressable): Likewise.
1002 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
1004         PR c/72816
1005         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
1006         array member through typedef, for orig_qual_indirect == 0 clear
1007         orig_qual_type.
1009 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1011         PR c/64955
1012         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
1013         this up to selftest::run_c_tests.
1014         (selftest::run_c_tests): New function.
1016 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
1018         * c-parser.c (struct oacc_routine_data): Add error_seen and
1019         fndecl_seen members.
1020         (c_finish_oacc_routine): Use these.
1021         (c_parser_declaration_or_fndef): Adjust.
1022         (c_parser_oacc_routine): Likewise.  Support more C language
1023         constructs, and improve diagnostics.  Move pragma context
1024         checking...
1025         (c_parser_pragma): ... here.
1027         * c-parser.c (struct oacc_routine_data): New.
1028         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
1029         Simplify code.
1030         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
1031         declare target" attribute.
1033 2016-08-01  Jan Beulich  <jbeulich@suse.com>
1035         * c-fold.c (c_fully_fold_internal): Also emit shift count
1036         warnings for vector types.
1037         * c-typeck.c (build_binary_op): Likewise.
1039 2016-07-29  Marek Polacek  <polacek@redhat.com>
1041         PR c/71742
1042         * c-decl.c (finish_struct): Rephrase an error message.
1044         PR c/71853
1045         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
1046         to error node for invalid code.
1048         PR c/71573
1049         * c-decl.c (implicitly_declare): Return decl early not only for
1050         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
1052 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
1054         PR c/71969
1055         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
1056         on GNU extern inline functions.
1058 2016-07-29  Marek Polacek  <polacek@redhat.com>
1060         PR c/71583
1061         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
1062         check expr.value.
1064 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
1066         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1068 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1070         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
1071         spellcheck-tree.h
1072         (best_macro_match): Likewise, converting from a typedef to a
1073         subclass.
1074         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
1075         (lookup_name_fuzzy): Update for change of best_macro_match to a
1076         subclass with a ctor that calls cpp_forall_identifiers.
1078 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1080         * c-decl.c (implicit_decl_warning): Update for conversion of
1081         return type of lookup_name_fuzzy to const char *.
1082         (undeclared_variable): Likewise.
1083         (lookup_name_fuzzy): Convert return type from tree to
1084         const char *.
1085         * c-parser.c (c_parser_declaration_or_fndef): Update for
1086         conversion of return type of lookup_name_fuzzy to const char *.
1087         (c_parser_parameter_declaration): Likewise.
1089 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1091         * c-parser.c (c_parser_oacc_declare): Don't scan for
1092         GOMP_MAP_POINTER.
1093         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
1094         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1095         zero-length subarrays.
1097 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
1099         PR c/71858
1100         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
1101         instead of FUZZY_LOOKUP_NAME.
1102         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
1103         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
1105 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1107         PR c/71858
1108         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
1110 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1112         * c-parser.c (c_parser_generic_selection): Make type of variable
1113         auto_vec.
1114         (c_parser_omp_declare_simd): Likewise.
1116 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1118         * c-decl.c (struct c_struct_parse_info): Change member types
1119         from vec to auto_vec.
1120         (start_struct): Adjust.
1121         (finish_struct): Likewise.
1123 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
1125         PR c/71719
1126         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
1128 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
1130         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
1131         Move pragma context checking into...
1132         (c_parser_omp_cancellation_point): ... here, and improve
1133         diagnostic messages.
1134         * c-typeck.c (c_finish_omp_cancel)
1135         (c_finish_omp_cancellation_point): Improve diagnostic messages.
1137 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1139         PR c/71685
1140         * c-typeck.c (c_build_qualified_type): Don't clear
1141         C_TYPE_INCOMPLETE_VARS for the main variant.
1143 2016-06-28  Martin Sebor  <msebor@redhat.com>
1145         PR c/71552
1146         * c-typeck.c (output_init_element): Diagnose incompatible types
1147         before non-constant initializers.
1149 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1151         * Make-lang.in: Don't cat ../stage_current if it does not exist.
1153 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1155         * Make-lang.in: Add support for autofdo.
1157 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1159         PR c/70339
1160         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
1161         (implicit_decl_warning): When issuing warnings for implicit
1162         declarations, attempt to provide a suggestion via
1163         lookup_name_fuzzy.
1164         (undeclared_variable): Likewise when issuing errors.
1165         (lookup_name_in_scope): Likewise.
1166         (struct edit_distance_traits<cpp_hashnode *>): New struct.
1167         (best_macro_match): New typedef.
1168         (find_closest_macro_cpp_cb): New function.
1169         (lookup_name_fuzzy): New function.
1170         * c-parser.c: Include gcc-rich-location.h.
1171         (c_token_starts_typename): Split out case CPP_KEYWORD into...
1172         (c_keyword_starts_typename): ...this new function.
1173         (c_parser_declaration_or_fndef): When issuing errors about
1174         missing "struct" etc, add a fixit.  For other kinds of errors,
1175         attempt to provide a suggestion via lookup_name_fuzzy.
1176         (c_parser_parms_declarator): When looking ahead to detect typos in
1177         type names, also reject CPP_KEYWORD.
1178         (c_parser_parameter_declaration): When issuing errors about
1179         unknown type names, attempt to provide a suggestion via
1180         lookup_name_fuzzy.
1181         * c-tree.h (c_keyword_starts_typename): New prototype.
1183 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
1185         PR c/71601
1186         * c-typeck.c (build_conditional_expr): Return error_mark_node if
1187         c_common_type returns error_mark_node.
1189 2016-06-19  Martin Sebor  <msebor@redhat.com>
1191         PR c/69507
1192         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
1193         __alignof__ (expression).
1195 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1197         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
1199 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1201         * c-typeck.c (build_component_ref): Simplify fixit code by
1202         using gcc_rich_location::add_fixit_misspelled_id.
1203         (set_init_label): Likewise.
1205 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1207         * c-parser.c (c_parser_initelt): Provide location of name for new
1208         location_t param of set_init_label.
1209         * c-tree.h (set_init_label): Add location_t param.
1210         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
1211         param and use it when issuing error messages about unrecognized
1212         field names.  Attempt to provide a fixit hint if appropriate,
1213         otherwise update the error message to provide the type name.
1215 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1217         PR c/71381
1218         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
1219         Loosen checking.
1221 2016-06-08  Martin Sebor  <msebor@redhat.com>
1222             Jakub Jelinek  <jakub@redhat.com>
1224         PR c++/70507
1225         PR c/68120
1226         * c-typeck.c (convert_arguments): Don't promote last argument
1227         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1229 2016-06-08  Marek Polacek  <polacek@redhat.com>
1231         PR c/71418
1232         * c-decl.c (grokdeclarator): Check TYPE_P.
1234         PR c/71426
1235         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
1236         code.
1238 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1240         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
1241         and structure element reference, capture the location of the
1242         element name token and pass it to build_component_ref.
1243         (c_parser_postfix_expression_after_primary): Likewise for
1244         structure element dereference.
1245         (c_parser_omp_variable_list): Likewise for
1246         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
1247         * c-tree.h (build_component_ref): Add location_t param.
1248         * c-typeck.c (build_component_ref): Add location_t param
1249         COMPONENT_LOC.  Use it, if available, when issuing hints about
1250         mispelled member names to provide a fixit replacement hint.
1252 2016-06-06  Marek Polacek  <polacek@redhat.com>
1254         PR c/71362
1255         * c-parser.c (c_parser_direct_declarator): Set location.
1257 2016-06-06  Marek Polacek  <polacek@redhat.com>
1259         * c-typeck.c (comptypes_internal): Handle comparisons of
1260         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
1261         TYPE_REF_CAN_ALIAS_ALL.
1263 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
1265         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
1266         arguments as addressable when async clause exists.
1268 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
1270         PR c++/71349
1271         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
1272         when combined with target construct.
1274 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
1276         * c-parser.c (c_parser_omp_clause_schedule): Warn if
1277         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
1279 2016-05-25  Marek Polacek  <polacek@redhat.com>
1281         PR c/71265
1282         * c-decl.c (c_make_fname_decl): Don't check seen_error.
1284         PR c/71266
1285         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
1287 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
1289         * c-parser.c (c_parser_oacc_declare): Add support for
1290         GOMP_MAP_FIRSTPRIVATE_POINTER.
1291         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
1292         argument with enum c_omp_region_type ort.
1293         (handle_omp_array_sections): Likewise.  Update call to
1294         handle_omp_array_sections_1.
1295         (c_finish_omp_clauses): Add specific errors and warning messages for
1296         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
1297         call to handle_omp_array_sections.
1299 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
1301         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
1303 2016-05-24  Richard Biener  <rguenther@suse.de>
1305         PR middle-end/70434
1306         PR c/69504
1307         * c-typeck.c (build_array_ref): Do not complain about indexing
1308         non-lvalue vectors.  Adjust for function name change.
1310 2016-05-20  Martin Sebor  <msebor@redhat.com>
1312         PR c/71115
1313         * c-typeck.c (error_init): Use
1314         expansion_point_location_if_in_system_header.
1315         (warning_init): Same.
1317 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
1319         PR c/71171
1320         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
1321         in error-handling.
1322         (c_parser_postfix_expression): Likewise.
1323         * c-tree.h (c_expr::set_error): New method.
1324         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
1325         that result's range is initialized.
1327 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1329         * c-typeck.c (parser_build_unary_op): Fix formatting.
1331 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1333         * c-decl.c (grokdeclarator): Remove errmsg and use of
1334         targetm.invalid_return_type.
1335         (grokparms): Remove errmsg and use of
1336         targetm.invalid_parameter_type.
1338 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1340         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
1341         function return type.
1343 2016-05-12  Marek Polacek  <polacek@redhat.com>
1345         PR c/70756
1346         * c-decl.c (build_compound_literal): Pass LOC down to
1347         c_incomplete_type_error.
1348         * c-tree.h (require_complete_type): Adjust declaration.
1349         (c_incomplete_type_error): Likewise.
1350         * c-typeck.c (require_complete_type): Add location parameter, pass it
1351         down to c_incomplete_type_error.
1352         (c_incomplete_type_error): Add location parameter, pass it down to
1353         error_at.
1354         (build_component_ref): Pass location down to c_incomplete_type_error.
1355         (default_conversion): Pass location down to require_complete_type.
1356         (build_array_ref): Likewise.
1357         (build_function_call_vec): Likewise.
1358         (convert_arguments): Likewise.
1359         (build_unary_op): Likewise.
1360         (build_c_cast): Likewise.
1361         (build_modify_expr): Likewise.
1362         (convert_for_assignment): Likewise.
1363         (c_finish_omp_clauses): Likewise.
1365 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
1367         PR c/43651
1368         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
1369         is enabled.
1370         * c-errors.c (pedwarn_c90): Return true if warned.
1371         * c-tree.h (pedwarn_c90): Change return type to bool.
1372         (enum c_declspec_word): Add new enumerator cdw_atomic.
1374 2016-05-11  Marek Polacek  <polacek@redhat.com>
1376         PR c++/71024
1377         * c-decl.c (diagnose_mismatched_decls): Factor out code to
1378         diagnose_mismatched_attributes and call it.
1380 2016-05-10  Marek Polacek  <polacek@redhat.com>
1382         PR c/70255
1383         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
1384         on a declaration following the definition.
1386 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
1388         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1389         parse it through to c_parser_c99_block_statement.
1390         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1391         caller.
1393 2016-05-04  Marek Polacek  <polacek@redhat.com>
1395         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1396         OPT_Wdangling_else.
1398 2016-05-04  Marek Polacek  <polacek@redhat.com>
1400         PR c/48778
1401         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1402         for macro expansions.
1404 2016-05-03  Marek Polacek  <polacek@redhat.com>
1406         PR c/70859
1407         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1408         check_builtin_function_arguments.
1410 2016-05-03  Richard Biener  <rguenther@suse.de>
1412         * Make-lang.in (cc1-checksum.c): For stage-final re-use
1413         the checksum from the previous stage.
1415 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
1417         * c-parser.c (c_parser_oacc_all_clauses): Update call to
1418         c_finish_omp_clauses.
1419         (c_parser_omp_all_clauses): Likewise.
1420         (c_parser_oacc_cache): Likewise.
1421         (c_parser_oacc_loop): Likewise.
1422         (omp_split_clauses): Likewise.
1423         (c_parser_omp_declare_target): Likewise.
1424         (c_parser_cilk_all_clauses): Likewise.
1425         (c_parser_cilk_for): Likewise.
1426         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1427         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1429 2016-05-02  Marek Polacek  <polacek@redhat.com>
1431         PR c/70851
1432         * c-decl.c (grokdeclarator): Diagnose when array's size has an
1433         incomplete type.
1435 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
1437         PR middle-end/70626
1438         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1439         OACC_LOOP_CLAUSE_MASK.
1440         (c_parser_oacc_kernels_parallel): Update call to
1441         c_oacc_split_loop_clauses.
1443 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
1445         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1446         argument to build_modify_expr in two cases.
1448 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1450         * c-parser.c (c_parser_postfix_expression_after_primary): Call
1451         warn_for_memset instead of warning directly here.
1453 2016-04-26  Marek Polacek  <polacek@redhat.com>
1455         PR c/67784
1456         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1457         out of ...
1458         (c_parser_for_statement): ... here.
1459         (c_parser_if_statement): Use it.
1460         (c_parser_switch_statement): Use it.
1461         (c_parser_while_statement): Use it.
1463         PR c/70791
1464         * c-decl.c (pushdecl): Pass LOCUS down to warning.
1466 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
1468         PR c++/69363
1469         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1470         instead of c_finish_cilk_clauses.
1471         * c-tree.h (c_finish_omp_clauses): Add new default argument.
1472         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
1473         floating-point variables in the linear clause for Cilk Plus.
1475 2016-04-18  Michael Matz  <matz@suse.de>
1477         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1478         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1480 2016-04-15  Marek Polacek  <polacek@redhat.com>
1482         PR c/70671
1483         * c-typeck.c (build_unary_op): Pass location down to error and
1484         warning call.
1486 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1488         PR c/70436
1489         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
1490         where needed.
1491         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
1492         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
1493         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
1494         Adjust c_parser_pragma callers.
1495         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
1496         caller.
1497         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
1498         c_parser_statement.
1499         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
1500         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
1501         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
1502         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
1503         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
1504         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
1505         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
1506         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
1507         down where needed.
1508         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
1509         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
1510         calls.
1512 2016-04-13  Marek Polacek  <polacek@redhat.com>
1514         PR c/70436
1515         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
1516         adjust callers.
1517         (c_parser_statement): Likewise.
1518         (c_parser_c99_block_statement): Likewise.
1519         (c_parser_while_statement): Likewise.
1520         (c_parser_for_statement): Likewise.
1521         (c_parser_if_body): Don't set IF_P here.
1522         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
1523         about dangling else here.
1524         * c-tree.h (c_finish_if_stmt): Adjust declaration.
1525         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
1526         warn about dangling else here.
1528 2016-04-04  Marek Polacek  <polacek@redhat.com>
1530         PR c/70307
1531         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
1533 2016-03-31  Marek Polacek  <polacek@redhat.com>
1535         PR c/70297
1536         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
1538 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
1540         PR c/70281
1541         * c-parser.c (c_parser_postfix_expression): Set the source range
1542         for uses of "__builtin_types_compatible_p".
1544 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
1546         PR c/70280
1547         * c-typeck.c (composite_type): Don't count void_list_node
1548         into len, if the list is terminated by void_list_node, start
1549         with void_list_node instead of NULL for newargs.  Stop
1550         at void_list_node.
1552 2016-03-16  Marek Polacek  <polacek@redhat.com>
1554         PR c/70093
1555         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
1556         nested functions returning VM types.
1558 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
1560         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1561         when calling c_finish_omp_clauses.
1563 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
1565         PR c/69824
1566         * c-decl.c (get_parm_info): Don't queue implicit function declarations
1567         for later.
1569 2016-03-04  Marek Polacek  <polacek@redhat.com>
1571         PR c/69798
1572         * c-parser.c (c_parser_postfix_expression): Call
1573         c_parser_cast_expression rather than c_parser_postfix_expression.
1575 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
1577         PR c/69796
1578         PR c/69974
1579         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1580         of incomplete decls to error_mark_node.
1582 2016-02-24  Marek Polacek  <polacek@redhat.com>
1584         PR c/69819
1585         * c-decl.c (finish_decl): Don't update the copy of the type of a
1586         different decl type.
1588 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1590         PR objc/69844
1591         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1592         in id_kind reclassification.
1594 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1596         PR c/69835
1597         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1599 2016-02-16  James Norris  <jnorris@codesourcery.com>
1601         PR c/64748
1602         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1604 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
1606         * c-decl.c (build_null_declspecs): Zero the entire struct.
1608         PR c/69522
1609         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
1610         callers changed.  If nested_p is true, use it to call
1611         finish_implicit_inits.
1612         * c-tree.h (finish_implicit_inits): Declare.
1613         * c-typeck.c (finish_implicit_inits): New function.  Move code
1614         from ...
1615         (push_init_level): ... here.
1616         (set_designator, process_init_element): Call finish_implicit_inits.
1618 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
1620         PR c/69768
1621         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1622         arguments for -Waddress warning.
1624 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
1626         PR c/69669
1627         * c-decl.c (finish_enum): When honoring mode attribute,
1628         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1630 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
1632         PR debug/69518
1633         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1634         all type variants, not just TYPE_MAIN_VARIANT.
1636 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
1638         PR debug/66869
1639         * c-decl.c (c_write_global_declarations_1): Warn with
1640         warn_unused_function if static prototype without definition
1641         is not C_DECL_USED.
1643 2016-01-27  Marek Polacek  <polacek@redhat.com>
1645         PR c/68062
1646         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1647         to unsigned, if needed.  Add -Wsign-compare warning.
1649 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1651         PR tree-optimization/69483
1652         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1654 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1656         PR c/24293
1657         * c-tree.h (incomplete_record_decls): Declare.
1658         * c-parser.c (incomplete_record_decls): Define.
1659         (c_parser_translation_unit): Iterate through incomplete_record_decls and
1660         report error if any decl has zero size.
1661         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1662         or enum type to incomplete_record_decls.
1664 2016-01-14  Tom de Vries  <tom@codesourcery.com>
1666         PR tree-optimization/68773
1667         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1668         set force_output.
1670 2016-01-14  Marek Polacek  <polacek@redhat.com>
1672         PR c/69262
1673         * c-decl.c (grokdeclarator): Provide more information for invalid
1674         array declarations.
1676 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
1678         * c-parser.c (c_parser_unary_expression): For dereferences, build
1679         a combined location before calling build_indirect_ref, so that
1680         error reports cover the full range, manually updating the c_expr
1681         src_range.
1683 2016-01-06  Marek Polacek  <polacek@redhat.com>
1685         PR sanitizer/69099
1686         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
1687         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
1688         NULL.
1690 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
1692         Update copyright years.
1694 2016-01-04  Marek Polacek  <polacek@redhat.com>
1696         PR c/68908
1697         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
1698         optimization to use __atomic_fetch_* built-in if possible.
1700 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
1702         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1703         into...
1704         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
1705         all users.
1707 2015-12-22  Marek Polacek  <polacek@redhat.com>
1709         PR c/69002
1710         * c-typeck.c (build_component_ref): Warn when acessing elements of
1711         atomic structures or unions.
1713 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
1715         * c-typeck.c: Include "gcc-rich-location.h".
1716         (build_binary_op): In the two places that call binary_op_error,
1717         create a gcc_rich_location and populate it with the location of
1718         the binary op and its two operands.
1720 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1722         * c-parser.c (c_parser_statement_after_labels): When calling
1723         c_finish_return, Use the return expression's location if it has
1724         one, falling back to the location of the first token within it.
1725         * c-typeck.c (c_finish_return): When issuing warnings about
1726         the incorrect presence/absence of a return value, issue a note
1727         showing the declaration of the function.
1729 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1731         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1732         to 4.
1733         (c_parser_peek_nth_token): New function.
1734         (c_parser_peek_conflict_marker): New function.
1735         (c_parser_error): Detect conflict markers and report them as such.
1737 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1739         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1740         to preserve range information for the primary expression
1741         in the call to c_parser_postfix_expression_after_primary.
1743 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1745         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1746         expression location, falling back on the first token location,
1747         rather than always using the latter.
1749 2015-12-16  Marek Polacek  <polacek@redhat.com>
1751         PR c/64637
1752         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1753         available.
1755 2015-12-15  Marek Polacek  <polacek@redhat.com>
1757         PR c/68907
1758         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1759         artificial decl.
1761 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1763         * c-parser.c (c_parser_alignof_expression): Capture location of
1764         closing parenthesis (if any), or of end of unary expression, and
1765         use it to build a src_range for the expression.
1767 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1769         PR c/68757
1770         * c-parser.c (c_parser_get_builtin_args): Add
1771         "out_close_paren_loc" param, and write back to it.
1772         (c_parser_postfix_expression): Capture the closing
1773         parenthesis location for RID_CHOOSE_EXPR,
1774         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1775         RID_BUILTIN_SHUFFLE and use it to set the source range
1776         for such expressions; within RID_BUILTIN_COMPLEX set
1777         the underlying location.
1779 2015-12-07  Marek Polacek  <polacek@redhat.com>
1781         PR c/68668
1782         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1783         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1785 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1787         * c-tree.h (c_build_va_arg): Adjust prototype.
1788         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1789         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1790         parameter, adjust throughout and issue an error if EXPR is a component
1791         with reverse storage order.
1793 2015-12-02  Jason Merrill  <jason@redhat.com>
1795         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1796         (c_fully_fold_internal, decl_constant_value_for_optimization):
1797         Move from c-common.c.
1798         * c-tree.h: Declare decl_constant_value_for_optimization.
1799         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1801 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
1803         PR c/68162
1804         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1805         following link from declarator to next declarator.  Track original
1806         qualified type and pass it to c_build_qualified_type.
1807         * c-typeck.c (c_build_qualified_type): Add arguments
1808         orig_qual_type and orig_qual_indirect.
1810 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
1812         * c-parser.c (c_parser_omp_clause_name)
1813         (c_parser_oacc_all_clauses): Alphabetical sorting.
1815 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1817         PR c/68533
1818         * c-decl.c (get_parm_info): Use b->locus instead of input_location
1819         for diagnostics.
1821 2015-12-01  Julian Brown  <julian@codesourcery.com>
1822             Cesar Philippidis  <cesar@codesourcery.com>
1823             James Norris  <James_Norris@mentor.com>
1825         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1826         (c_parser_oacc_clause_use_device): New function.
1827         (c_parser_oacc_all_clauses): Add use_device support.
1828         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1829         (c_parser_oacc_host_data): New function.
1830         (c_parser_omp_construct): Add host_data support.
1831         * c-tree.h (c_finish_oacc_host_data): Add prototype.
1832         * c-typeck.c (c_finish_oacc_host_data): New function.
1833         (c_finish_omp_clauses): Add use_device support.
1835 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1837         PR c/67106
1838         * c-decl.c: Set TYPE_PACKED in variants.
1840 2015-11-27  Martin Liska  <mliska@suse.cz>
1842         PR c++/68312
1843         * c-array-notation.c (fix_builtin_array_notation_fn):
1844         Use release_vec_vec instead of vec::release.
1845         (build_array_notation_expr): Likewise.
1846         (fix_conditional_array_notations_1): Likewise.
1847         (fix_array_notation_expr): Likewise.
1848         (fix_array_notation_call_expr): Likewise.
1850 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1852         PR c/63326
1853         * c-parser.c (c_parser_compound_statement_nostart): If
1854         last_label is true, use pragma_stmt instead of pragma_compound
1855         as second c_parser_pragma argument.
1856         (c_parser_omp_ordered, c_parser_omp_target_update,
1857         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
1858         false as second argument to c_parser_skip_to_pragma_eol after
1859         diagnosing standalone directives used in pragma_stmt context.
1861 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
1863         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
1864         with "if (ENABLE_OFFLOADING)".
1866 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
1868         PR objc/68438
1869         * c-parser.c (c_parser_postfix_expression): Set up source ranges
1870         for various Objective-C constructs: Class.name syntax,
1871         @selector(), @protocol(), @encode(), and [] message syntax.
1873 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1875         PR 62314
1876         * c-typeck.c (should_suggest_deref_p): New function.
1877         (build_component_ref): Special-case POINTER_TYPE when
1878         generating a "not a structure of union"  error message, and
1879         suggest a "->" rather than a ".", providing a fix-it hint.
1881 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1883         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
1884         candidate into a new function, find_closest_identifier.
1886 2015-11-19  Marek Polacek  <polacek@redhat.com>
1888         PR c/68412
1889         * c-typeck.c (parser_build_binary_op): Properly handle
1890         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
1892 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
1894         * c-parser.c (set_c_expr_source_range): Bulletproof both
1895         overloaded implementations against NULL expr->value.
1896         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
1897         values.
1898         (c_parser_unary_expression): Likewise when handling addresses of
1899         labels.
1900         (c_parser_postfix_expression): Likewise for statement expressions,
1901         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
1902         __builtin_va_arg, and for __builtin_offset_of.
1903         (c_parser_postfix_expression_after_paren_type): Initialize expr's
1904         src_range using the range of the braced initializer.
1905         (c_parser_transaction_expression): Set src_range for "ret" to a
1906         sane pair of values.
1908 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1910         * c-parser.c (c_finish_omp_declare_simd): Look for
1911         "simd" attribute as well. Update error message.
1913 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1915         * c-parser.c (c_parser_omp_declare_target): Adjust.
1917 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1919         * c-typeck.c (c_finish_omp_clauses): Don't mark
1920         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
1922 2015-11-14  Marek Polacek  <polacek@redhat.com>
1924         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
1925         * c-typeck.c: Likewise.
1927 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1929         * c-decl.c (warn_defaults_to): Pass line_table to
1930         rich_location ctor.
1931         * c-errors.c (pedwarn_c99): Likewise.
1932         (pedwarn_c90): Likewise.
1933         * c-parser.c (set_c_expr_source_range): New functions.
1934         (c_token::get_range): New method.
1935         (c_token::get_finish): New method.
1936         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
1937         based on the range from the start of the LHS to the end of the
1938         RHS.
1939         (c_parser_conditional_expression): Likewise, based on the range
1940         from the start of the cond.value to the end of exp2.value.
1941         (c_parser_binary_expression): Call set_c_expr_source_range on
1942         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1943         (c_parser_cast_expression): Call set_c_expr_source_range on ret
1944         based on the cast_loc through to the end of the expr.
1945         (c_parser_unary_expression): Likewise, based on the
1946         op_loc through to the end of op.
1947         (c_parser_sizeof_expression) Likewise, based on the start of the
1948         sizeof token through to either the closing paren or the end of
1949         expr.
1950         (c_parser_postfix_expression): Likewise, using the token range,
1951         or from the open paren through to the close paren for
1952         parenthesized expressions.
1953         (c_parser_postfix_expression_after_primary): Likewise, for
1954         various kinds of expression.
1955         * c-tree.h (struct c_expr): Add field "src_range".
1956         (c_expr::get_start): New method.
1957         (c_expr::get_finish): New method.
1958         (set_c_expr_source_range): New decls.
1959         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
1960         on ret for prefix unary ops.
1961         (parser_build_binary_op): Likewise, running from the start of
1962         arg1.value through to the end of arg2.value.
1964 2015-11-13  Marek Polacek  <polacek@redhat.com>
1966         PR c/68320
1967         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
1969 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1971         * c-typeck.c: Include spellcheck.h.
1972         (lookup_field_fuzzy_find_candidates): New function.
1973         (lookup_field_fuzzy): New function.
1974         (build_component_ref): If the field was not found, try using
1975         lookup_field_fuzzy and potentially offer a suggestion.
1977 2015-11-12  James Norris  <jnorris@codesourcery.com>
1978             Joseph Myers  <joseph@codesourcery.com>
1980         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
1981         (c_parser_omp_clause_name): Handle 'device_resident' clause.
1982         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1983         and PRAGMA_OMP_CLAUSE_LINK.
1984         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1985         and PRAGMA_OACC_CLAUSE_LINK.
1986         (OACC_DECLARE_CLAUSE_MASK): New definition.
1987         (c_parser_oacc_declare): New function.
1989 2015-11-12  Marek Polacek  <polacek@redhat.com>
1991         PR c/67784
1992         * c-parser.c (c_parser_for_statement): Reclassify the token in
1993         a correct scope.
1995 2015-11-11  Marek Polacek  <polacek@redhat.com>
1997         PR c/68107
1998         PR c++/68266
1999         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
2000         checking the size of an array.
2002 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2004         * c-array-notation.c: Remove unused header files.
2005         * c-aux-info.c: Likewise.
2006         * c-convert.c: Likewise.
2007         * c-decl.c: Likewise.
2008         * c-errors.c: Likewise.
2009         * c-lang.c: Likewise.
2010         * c-objc-common.c: Likewise.
2011         * c-parser.c: Likewise.
2012         * c-typeck.c: Likewise.
2013         * gccspec.c: Likewise.
2015 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2016             Cesar Philippidis  <cesar@codesourcery.com>
2017             James Norris  <jnorris@codesourcery.com>
2018             Julian Brown  <julian@codesourcery.com>
2019             Nathan Sidwell  <nathan@codesourcery.com>
2021         c/
2022         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
2023         routine arg.
2024         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
2025         (c_parser_pragma): Parse 'acc routine'.
2026         (OACC_ROUTINE_CLAUSE_MARK): Define.
2027         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
2029 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2031         PR debug/67192
2032         * c-typeck.c (c_finish_loop): For unconditional loops, set the
2033         location of the backward-goto to the start of the loop body.
2035 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2037         PR debug/67192
2038         * c-parser.c (c_parser_while_statement): Finish the loop before
2039         parsing ahead for misleading indentation.
2040         (c_parser_for_statement): Likewise.
2042 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2044         * c-decl.c (finish_struct): If the structure has reverse storage
2045         order, rewrite the type of array fields with scalar component.  Call
2046         maybe_apply_pragma_scalar_storage_order on entry.
2047         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
2048         errors on bit-fields and reverse SSO here and not...
2049         (c_mark_addressable): ...here.
2050         (output_init_element): Adjust call to initializer_constant_valid_p.
2051         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
2053 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2055         * c-decl.c (warn_defaults_to): Update for change in signature
2056         of diagnostic_set_info.
2057         * c-errors.c (pedwarn_c99): Likewise.
2058         (pedwarn_c90): Likewise.
2059         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
2060         for textinfo::set_location.
2062 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2063             Thomas Schwinge  <thomas@codesourcery.com>
2064             James Norris  <jnorris@codesourcery.com>
2066         * c-parser.c (c_parser_omp_clause_name): Add support for
2067         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
2068         (c_parser_omp_clause_default): Add is_oacc argument. Handle
2069         default(none) in OpenACC.
2070         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
2071         arguments.
2072         (c_parser_oacc_clause_tile): New function.
2073         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
2074         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
2075         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
2076         TILE}.
2077         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
2078         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
2079         FIRSTPRIVATE}.
2080         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
2081         (c_parser_oacc_update): Update the error message for missing clauses.
2082         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
2083         and OMP_CLAUSE_INDEPENDENT.
2085 2015-11-05  Marek Polacek  <polacek@redhat.com>
2087         PR c/68090
2088         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
2089         deal with pre-evaluation on invalid types.
2091 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2092             Ilya Verbin  <ilya.verbin@intel.com>
2094         * c-parser.c: Include context.h and gimple-expr.h.
2095         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
2096         monotonic together with nonmonotonic.
2097         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
2098         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
2099         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
2100         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
2101         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
2102         expressions on combined target teams before the target.
2103         (c_parser_omp_declare_target): If decl has "omp declare target" or
2104         "omp declare target link" attribute, and cgraph or varpool node already
2105         exists, then set corresponding flags.  Call c_finish_omp_clauses
2106         in the parenthesized extended-list syntax case.
2107         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
2108         declare target.
2109         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
2110         on OMP_CLAUSE_REDUCTION array sections.
2111         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
2112         into the constant offset, or for variable low-bound using
2113         POINTER_PLUS_EXPR.  For structure element based array sections use
2114         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
2115         (c_finish_omp_clauses): Drop generic_field_head, structure
2116         elements are now always mapped even as array section bases,
2117         diagnose same var in data sharing and mapping clauses.  Diagnose if
2118         linear step on declare simd is neither a constant nor a uniform
2119         parameter.  Look through POINTER_PLUS_EXPR for array section
2120         reductions.  Diagnose the same var or function appearing multiple
2121         times on the same directive.  Fix up wording for the to clause if t
2122         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
2123         modifier on kinds other than dynamic or guided or nonmonotonic
2124         modifier together with ordered clause.
2126 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2127             Chung-Lin Tang  <cltang@codesourcery.com>
2129         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
2131 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2133         * c-array-notation.c: Reorder #include's and remove duplicates.
2134         * c-aux-info.c: Likewise.
2135         * c-convert.c: Likewise.
2136         * c-decl.c: Likewise.
2137         * c-errors.c: Likewise.
2138         * c-lang.c: Likewise.
2139         * c-objc-common.c: Likewise.
2140         * c-parser.c: Likewise.
2141         * c-typeck.c: Likewise.
2143 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
2145         PR debug/66068
2146         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
2147         after calling build_qualified_type.
2149 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
2150             Thomas Schwinge  <thomas@codesourcery.com>
2151             James Norris  <jnorris@codesourcery.com>
2152             Joseph Myers  <joseph@codesourcery.com>
2153             Julian Brown  <julian@codesourcery.com>
2154             Bernd Schmidt  <bschmidt@redhat.com>
2156         * c-parser.c (c_parser_oacc_shape_clause): New.
2157         (c_parser_oacc_simple_clause): New.
2158         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
2159         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
2161 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2162             James Norris  <jnorris@codesourcery.com>
2163             Cesar Philippidis  <cesar@codesourcery.com>
2165         PR c/64765
2166         PR c/64880
2167         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
2168         parameters, and handle these.  Adjust all users.
2169         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
2170         into...
2171         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
2172         all users.
2173         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
2174         declare functions.
2175         (c_finish_omp_construct): Declare function.
2176         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
2177         Merge functions into...
2178         (c_finish_omp_construct): ... this new function.
2180 2015-10-22  Richard Biener  <rguenther@suse.de>
2182         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
2183         before folding a MINUS_EXPR.
2185 2015-10-21  Marek Polacek  <polacek@redhat.com>
2187         PR c/68024
2188         * c-decl.c (start_function): Warn about vararg functions without
2189         a prototype.
2191 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2193         * c-typeck.c (build_conditional_expr): Use boolean vector
2194         type for vector comparison.
2195         (build_vec_cmp): New.
2196         (build_binary_op): Use build_vec_cmp for comparison.
2198 2015-10-20  Marek Polacek  <polacek@redhat.com>
2200         * c-parser.c (is_cilkplus_vector_p): Don't define here.
2202 2015-10-20  Marek Polacek  <polacek@redhat.com>
2204         PR c/67964
2205         * c-parser.c (c_parser_attributes): Break out of the loop if the
2206         token after an attribute isn't a comma.
2208 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
2209             Aldy Hernandez  <aldyh@redhat.com>
2211         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
2212         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
2213         (c_parser_omp_variable_list): Handle structure elements for
2214         map, to and from clauses.  Handle array sections in reduction
2215         clause.  Formatting fixes.
2216         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
2217         if clause modifiers.
2218         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
2219         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
2220         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
2221         c_parser_omp_clause_is_device_ptr): New functions.
2222         (c_parser_omp_clause_ordered): Parse optional parameter.
2223         (c_parser_omp_clause_reduction): Handle array reductions.
2224         (c_parser_omp_clause_schedule): Parse optional simd modifier.
2225         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
2226         functions.
2227         (c_parser_omp_clause_linear): Parse linear clause modifiers.
2228         (c_parser_omp_clause_depend_sink): New function.
2229         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
2230         (c_parser_omp_clause_map): Parse release/delete map kinds and
2231         optional always modifier.
2232         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
2233         and c_finish_omp_clauses callers.
2234         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
2235         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
2236         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
2237         (OMP_CRITICAL_CLAUSE_MASK): Define.
2238         (c_parser_omp_critical): Parse critical clauses.
2239         (c_parser_omp_for_loop): Handle doacross loops, adjust
2240         c_finish_omp_for and c_finish_omp_clauses callers.
2241         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
2242         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
2243         (OMP_FOR_CLAUSE_MASK): Add linear clause.
2244         (c_parser_omp_for): Disallow ordered clause when combined with
2245         distribute.  Disallow linear clause when combined with distribute
2246         and not combined with simd.
2247         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
2248         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
2249         parse clauses and if depend clause is found, don't parse a body.
2250         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
2251         Allow target parallel without for after it.
2252         (OMP_TASK_CLAUSE_MASK): Add priority clause.
2253         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
2254         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
2255         invalid kinds.
2256         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
2257         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
2258         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
2259         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
2260         functions.
2261         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
2262         defaultmap and is_device_ptr clauses.
2263         (c_parser_omp_target): Parse target parallel and target simd.  Set
2264         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
2265         and target exit data.  Diagnose invalid map kinds.
2266         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
2267         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
2268         construct.
2269         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
2270         &omp_priv.
2271         (OMP_TASKLOOP_CLAUSE_MASK): Define.
2272         (c_parser_omp_taskloop): New function.
2273         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
2274         handle PRAGMA_OMP_TASKLOOP.
2275         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
2276         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
2277         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
2278         Add IS_OMP argument, handle structure element bases, diagnose
2279         bitfields, pass IS_OMP recursively, diagnose known zero length
2280         array sections in depend clauses, handle array sections in reduction
2281         clause, diagnose negative length even for pointers.
2282         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
2283         types, pass IS_OMP down to handle_omp_array_sections_1, handle
2284         array sections in reduction clause, set
2285         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
2286         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
2287         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
2288         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
2290 2015-10-06  Marek Polacek  <polacek@redhat.com>
2292         * c-parser.c (c_parser_statement_after_labels): Use
2293         protected_set_expr_location.
2294         (c_parser_omp_clause_num_gangs): Likewise.
2295         (c_parser_omp_clause_num_threads): Likewise.
2296         (c_parser_omp_clause_num_workers): Likewise.
2297         (c_parser_omp_clause_vector_length): Likewise.
2298         (c_parser_omp_clause_num_teams): Likewise.
2299         (c_parser_omp_clause_thread_limit): Likewise.
2300         * c-typeck.c (build_c_cast): Likewise.
2301         (c_cast_expr): Likewise.
2303 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2305         * c-typeck.c (c_tree_equal): Use real_equal instead of
2306         REAL_VALUES_EQUAL.
2308 2015-10-04  Jason Merrill  <jason@redhat.com>
2310         * c-parser.c (c_lex_one_token): Handle @synchronized.
2311         * c-decl.c (match_builtin_function_types): A declaration of a built-in
2312         can change whether the function is transaction_safe.
2314 2015-10-02  Marek Polacek  <polacek@redhat.com>
2316         PR c/67730
2317         * c-typeck.c (convert_for_assignment): Use the expansion point
2318         location throughout.
2320 2015-10-02  Marek Polacek  <polacek@redhat.com>
2322         PR c/64249
2323         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
2324         and pass it down to c_parser_if_statement.
2325         (c_parser_else_body): Add CHAIN parameter and pass it down to
2326         c_parser_statement_after_labels.
2327         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
2328         duplicated if-else-if conditions.
2330 2015-10-01  Marek Polacek  <polacek@redhat.com>
2332         * c-typeck.c (convert_for_assignment): Improve commentary.
2334 2015-09-30  Marek Polacek  <polacek@redhat.com>
2336         PR c/67730
2337         * c-typeck.c (c_finish_return): Use the expansion point location for
2338         certain "return with value" warnings.
2340 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2342         * c-parser.c (pragma_lex): Add loc argument.
2344 2015-09-15  Marek Polacek  <polacek@redhat.com>
2346         PR c/67580
2347         * c-decl.c (tag_exists_p): New function.
2348         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
2349         struct/union/enum keywords are missing.
2350         * c-tree.h (tag_exists_p): Declare.
2352 2015-09-15  Marek Polacek  <polacek@redhat.com>
2354         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
2355         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
2356         Return NULL_TREE instead of 0.
2357         (lookup_name): Return NULL_TREE instead of 0.
2358         (lookup_name_in_scope): Likewise.
2359         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
2360         (parser_xref_tag): Use false instead of 0.
2361         (start_struct): Use true instead of 1.
2362         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
2364 2015-09-14  Marek Polacek  <polacek@redhat.com>
2366         * c-typeck.c (set_nonincremental_init_from_string): Use
2367         HOST_WIDE_INT_M1U when shifting a negative value.
2369 2015-09-09  Mark Wielaard  <mjw@redhat.com>
2371         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
2372         parm against NULL.
2374 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
2376         PR c/67502
2377         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
2378         into OMP_FOR_PRE_BODY rather than before the loop.
2380 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
2382         PR c/67501
2383         * c-parser.c (c_parser_oacc_all_clauses,
2384         c_parser_omp_all_clauses): Remove invalid clause from
2385         list of clauses even if parser->error is set.
2387         PR c/67500
2388         * c-parser.c (c_parser_omp_clause_aligned,
2389         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2390         test for errors.
2391         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2392         error_mark_node.
2394         PR c/67495
2395         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2396         instead of c_parser_unary_expression.  If the result is !lvalue_p,
2397         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2399 2015-09-04  Marek Polacek  <polacek@redhat.com>
2401         PR sanitizer/67279
2402         * c-typeck.c (build_binary_op): Don't instrument static initializers.
2404 2015-09-03  Martin Sebor  <msebor@redhat.com>
2406         PR c/66516
2407         * c-typeck.c (convert_arguments, parser_build_unary_op,
2408         build_conditional_expr, c_cast_expr, convert_for_assignment,
2409         build_binary_op, _objc_common_truthvalue_conversion): Call
2410         reject_gcc_builtin.
2411         (c_decl_implicit): Define.
2413 2015-09-02  Marek Polacek  <polacek@redhat.com>
2415         PR c/67432
2416         * c-parser.c (c_parser_enum_specifier): Give a better error for
2417         an empty enum.
2419 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
2421         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2423 2015-08-12  Marek Polacek  <polacek@redhat.com>
2425         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2426         LOC to it.
2428 2015-08-03  Marek Polacek  <polacek@redhat.com>
2430         PR c/67088
2431         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2432         Use it.
2433         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2435 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
2437         * c-parser.c (c_parser_if_body): Take token_indent_info
2438         argument. Call warn_for_misleading_indentation even when the
2439         body is a semicolon.  Extract token_indent_infos corresponding
2440         to the guard, body and next tokens.  Adjust call to
2441         warn_for_misleading_indentation accordingly.
2442         (c_parser_else_body): Likewise.
2443         (c_parser_if_statement): Likewise.
2444         (c_parser_while_statement): Likewise.
2445         (c_parser_for_statement): Likewise.
2447 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
2448             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2450         * c-decl.c (get_parm_info): Remove static var. Update warning
2451         message.
2453 2015-07-27  Marek Polacek  <polacek@redhat.com>
2455         PR c++/66555
2456         PR c/54979
2457         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2459 2015-07-20  Marek Polacek  <polacek@redhat.com>
2461         PR c++/55095
2462         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2463         (build_binary_op): Warn about left shift overflows.
2465 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2467         * c-array-notation.c: Adjust includes for flags.h changes.
2468         * c-objc-common.c: Likewise.
2470 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2472         * c-array-notation.c: Adjust includes.
2473         * c-aux-info.c: Likewise.
2474         * c-convert.c: Likewise.
2475         * c-decl.c: Likewise.
2476         * c-errors.c: Likewise.
2477         * c-lang.c: Likewise.
2478         * c-objc-common.c: Likewise.
2479         * c-parser.c: Likewise.
2480         * c-typeck.c: Likewise.
2482 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2484         PR fortran/66605
2485         * c-decl.c (finish_function): Call do_warn_unused_parameter.
2487 2015-06-29  Marek Polacek  <polacek@redhat.com>
2489         PR c/66322
2490         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
2491         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
2492         about -Wswitch-bool here.
2493         (do_case): Update c_add_case_label call.
2494         (c_finish_case): Update c_do_switch_warnings call.
2496 2015-06-27  Marek Polacek  <polacek@redhat.com>
2498         * c-typeck.c: Use VECTOR_TYPE_P throughout.
2500 2015-06-26  Marek Polacek  <polacek@redhat.com>
2502         * c-array-notation.c (fix_builtin_array_notation_fn): Use
2503         INDIRECT_REF_P.
2504         * c-typeck.c (array_to_pointer_conversion): Likewise.
2505         (build_unary_op): Likewise.
2506         (c_finish_return): Likewise.
2508 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2510         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
2511         * c-parser.c: Likewise.
2513 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2515         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
2516         instead of pointer_hash.
2517         (detect_field_duplicates): Likewise.
2519 2015-06-25  Marek Polacek  <polacek@redhat.com>
2521         * c-array-notation.c: Use VAR_P throughout.
2522         * c-decl.c: Likewise.
2523         * c-objc-common.c: Likewise.
2524         * c-parser.c: Likewise.
2525         * c-typeck.c: Likewise.
2527 2015-06-25  Marek Polacek  <polacek@redhat.com>
2529         * c-decl.c: Use is_global_var throughout.
2530         * c-parser.c: Likewise.
2531         * c-typeck.c: Likewise.
2533 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
2535         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
2536         * c-aux-info.c: Likewise.
2537         * c-convert.c: Likewise.
2538         * c-decl.c: Likewise.
2539         * c-errors.c: Likewise.
2540         * c-lang.c: Likewise.
2541         * c-objc-common.c: Likewise.
2542         * c-parser.c: Likewise.
2543         * c-typeck.c: Likewise.
2545 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
2547         PR middle-end/66325
2548         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
2549         variants.
2551 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
2553         * c-decl.c (pop_scope): Register the main translation unit
2554         through the new debug hook.
2556 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2558         * c-array-notation.c : Adjust include files.
2559         * c-aux-info.c : Likewise.
2560         * c-convert.c : Likewise.
2561         * c-decl.c : Likewise.
2562         * c-errors.c : Likewise.
2563         * c-lang.c : Likewise.
2564         * c-lang.h : Likewise.
2565         * c-objc-common.c : Likewise.
2566         * c-parser.c : Likewise.
2567         * c-typeck.c : Likewise.
2569 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2571         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2572         immediately clobber it.
2573         (c_write_global_declarations_1): Remove call to
2574         check_global_declaration_1.
2575         (c_write_global_declarations_2): Remove.
2576         (c_write_final_cleanups): Rename from c_write_global_declarations.
2577         Remove call to finalize_compilation_unit.
2578         Remove calls to debugging hooks.
2579         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2580         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2581         * c-tree.h: Remove c_write_global_declarations.
2583 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2585         * c-array-notation.c: Adjust includes for restructured coretypes.h.
2586         * c-aux-info.c: Likewise.
2587         * c-convert.c: Likewise.
2588         * c-decl.c: Likewise.
2589         * c-errors.c: Likewise.
2590         * c-lang.c: Likewise.
2591         * c-objc-common.c: Likewise.
2592         * c-parser.c: Likewise.
2593         * c-typeck.c: Likewise.
2595 2015-06-04  Marek Polacek  <polacek@redhat.com>
2597         PR c/66341
2598         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2599         it is a lvalue.
2601 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2603         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2604         Warn for empty struct.
2605         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2607 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
2609         * c-decl.c (start_function): Call plugin before parsing.
2610         (finish_function): Call plugin after parsing.
2612 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2614         PR c/49551
2615         * c-decl.c (merge_decls): Merge DECL_COMMON.
2617 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
2619         * Make-lang.in (check_gcc_pallelize): Define.
2621 2015-05-22  Marek Polacek  <polacek@redhat.com>
2623         PR c/47043
2624         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2625         attributes.
2627 2015-05-21  Marek Polacek  <polacek@redhat.com>
2629         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2630         DECL_BUILT_IN.
2632 2015-05-20  Marek Polacek  <polacek@redhat.com>
2634         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2635         * c-typeck.c: Likewise.
2637 2015-05-19  Marek Polacek  <polacek@redhat.com>
2639         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2641 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
2643         PR middle-end/66199
2644         * c-parser.c (c_parser_omp_for_loop): Don't add
2645         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2646         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2647         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2648         constructs.
2650 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
2652         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
2653         swaps.
2655 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2657         PR fortran/44054
2658         * c-objc-common.c (c_tree_printer): Replace locus pointer with
2659         accessor function.
2661 2015-05-14  Marek Polacek  <polacek@redhat.com>
2663         PR c/66066
2664         PR c/66127
2665         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2666         rather than with 0.
2668 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
2670         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2671         to add a call to warn_for_misleading_indentation.
2672         (c_parser_else_body): Likewise, adding param "else_loc".
2673         (c_parser_if_statement): Check for misleading indentation.
2674         (c_parser_while_statement): Likewise.
2675         (c_parser_for_statement): Likewise.
2677 2015-05-08  Marek Polacek  <polacek@redhat.com>
2679         PR c/64918
2680         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2681         (output_init_element): Likewise.
2683 2015-05-07  Marek Polacek  <polacek@redhat.com>
2685         PR c/65179
2686         * c-typeck.c (build_binary_op): Warn when left shifting a negative
2687         value.
2689 2015-04-30  Marek Polacek  <polacek@redhat.com>
2691         * c-typeck.c (set_init_label): Call error_at instead of error and
2692         pass LOC to it.
2694         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
2695         the type of a decl.
2697         * c-typeck.c (c_build_va_arg): Clarify the error message.
2699 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2701         * c-parser.c (c_parser_oacc_enter_exit_data): Use
2702         OMP_STANDALONE_CLAUSES.
2704 2015-04-28  Marek Polacek  <polacek@redhat.com>
2706         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2708 2015-04-28  Marek Polacek  <polacek@redhat.com>
2710         PR c/65901
2711         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2713 2015-04-25  Marek Polacek  <polacek@redhat.com>
2715         PR c/52085
2716         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
2717         attribute.
2719 2015-04-23  Marek Polacek  <polacek@redhat.com>
2721         PR c/65345
2722         * c-decl.c (set_labels_context_r): New function.
2723         (store_parm_decls): Call it via walk_tree_without_duplicates.
2724         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2725         instead of create_tmp_var.  Build TARGET_EXPR instead of
2726         COMPOUND_EXPR.
2727         (build_atomic_assign): Use create_tmp_var_raw instead of
2728         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
2730 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2732         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2733         (c_parser_omp_target_update): Add missed %> to error_at ().
2735 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2737         PR target/55143
2738         * c-decl.c (c_default_pointer_mode): Remove definition.
2739         * c-tree.h (c_default_pointer_mode): Remove declaration.
2741 2015-03-27  Tobias Burnus  <burnus@net-b.de>
2743         PR c/65586
2744         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2745         error out.
2746         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2747         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2748         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2750 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2752         * c-decl.c (c_decl_attributes): Also add "omp declare target"
2753         attribute for DECL_EXTERNAL VAR_DECLs.
2755 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
2757         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2758         argument.
2760 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
2762         PR c/65120
2763         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2764         before preparing arguments to warn_logical_not_parentheses.
2766 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
2768         PR c/65120
2769         * c-typeck.c (parser_build_binary_op): Don't warn for
2770         !!x == y or !b == y where b is _Bool.
2772 2015-03-09  Marek Polacek  <polacek@redhat.com>
2774         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2775         * c-decl.c (grokdeclarator): Likewise.
2776         * c-typeck.c (build_binary_op): Likewise.
2778 2015-02-27  Marek Polacek  <polacek@redhat.com>
2780         PR c/65228
2781         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2783 2015-02-14  Marek Polacek  <polacek@redhat.com>
2785         PR c/64768
2786         * c-decl.c (grokdeclarator): Set the range of a flexible array member
2787         declared through a typedef name.
2789 2015-02-13  Marek Polacek  <polacek@redhat.com>
2791         PR c/65050
2792         * c-decl.c (grokdeclarator): Print also the type when giving
2793         the error message about array's incomplete element type.
2795 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2797         PR c/64824
2798         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2799         check in the POP macro.
2801 2015-02-09  Marek Polacek  <polacek@redhat.com>
2803         PR c/64856
2804         * c-typeck.c (process_init_element): Don't always wrap
2805         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2806         initializing a range of elements.
2808 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2810         PR c/64824
2811         PR c/64868
2812         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2814 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
2816         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2817         processing enum declaration.
2819 2015-01-29  Marek Polacek  <polacek@redhat.com>
2821         PR c/64709
2822         * c-typeck.c (pop_init_level): If constructor_elements has
2823         exactly one element with integer_zerop value, set constructor_zeroinit
2824         to 1.  Remove braces around warning_init call.
2826 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2828         PR c/64766
2829         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2830         of FUNCTION_DECLs with error_mark_node.
2832 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2834         PR c/64778
2835         * c-typeck.c (convert_arguments): Return -1 if there are
2836         error_args, even if we've diagnosed too many arguments.
2838 2015-01-21  Richard Biener  <rguenther@suse.de>
2840         PR middle-end/64313
2841         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2842         for builtins the user declared correctly.
2844 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2845             Bernd Schmidt  <bernds@codesourcery.com>
2846             Cesar Philippidis  <cesar@codesourcery.com>
2847             James Norris  <jnorris@codesourcery.com>
2848             Jakub Jelinek  <jakub@redhat.com>
2849             Ilmir Usmanov  <i.usmanov@samsung.com>
2851         * c-parser.c: Include "gomp-constants.h".
2852         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2853         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2854         Use OMP_CLAUSE_SET_MAP_KIND.
2855         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2856         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2857         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
2858         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
2859         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
2860         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
2861         "copyout", "create", "delete", "deviceptr", "gang", "host",
2862         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
2863         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
2864         "present_or_create", "pcreate", "seq", "self", "vector",
2865         "vector_length", "wait", "worker".
2866         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
2867         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
2868         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
2869         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
2870         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
2871         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
2872         (c_parser_oacc_data_clause_deviceptr)
2873         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
2874         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
2875         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
2876         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
2877         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
2878         (c_parser_oacc_parallel, c_parser_oacc_update)
2879         (c_parser_oacc_wait): New functions.
2880         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
2881         (c_finish_oacc_data): New prototypes.
2882         * c-typeck.c: Include "gomp-constants.h".
2883         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
2884         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
2885         OMP_CLAUSE_SET_MAP_KIND.
2886         (c_finish_oacc_parallel, c_finish_oacc_kernels)
2887         (c_finish_oacc_data): New functions.
2888         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
2889         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2890         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2891         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
2892         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
2893         GOMP_MAP_FORCE_DEVICEPTR.
2895 2015-01-09  Michael Collison  <michael.collison@linaro.org>
2897         * c-array-notation.c: Include hash-set.h, machmode.h,
2898         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2899         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2900         * c-aux-info.c: Ditto.
2901         * c-convert.c: Ditto.
2902         * c-decl.c: Ditto.
2903         * c-errors.c: Ditto.
2904         * c-lang.c: Dittoxs.
2905         * c-objc-common.c: Ditto.
2906         * c-parser.c: Ditto.
2907         * c-typeck.c: Include hash-set.h, machmode.h,
2908         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2909         fold-const.h, wide-int.h, inchash.h, real.h and
2910         fixed-value.h due to flattening of tree.h.
2912 2015-01-07  Marek Polacek  <polacek@redhat.com>
2914         PR c/64417
2915         * c-typeck.c (process_init_element): Disallow initialization of
2916         a flexible array member with a string constant if the structure
2917         is in an array.
2919 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2921         PR sanitizer/64344
2922         * c-typeck.c (convert_for_assignment, c_finish_return): For
2923         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
2924         types also set in_late_binary_op around convert call.
2925         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
2926         to integral type casts, if not in_late_binary_op, pass c_fully_fold
2927         result on expr as last argument to ubsan_instrument_float_cast,
2928         if in_late_binary_op, don't use c_save_expr but save_expr.
2930         Update copyright years.
2932 2015-01-05  Marek Polacek  <polacek@redhat.com>
2934         PR c/64423
2935         * c-typeck.c (build_array_ref): Pass loc down to
2936         warn_array_subscript_with_type_char.
2938 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
2940         * c-typeck.c: New behavious for pointers to arrays with qualifiers
2941         (common-pointer-type): For pointers to arrays take qualifiers from
2942         element type.
2943         (build_conditional_expr): Add warnings for lost qualifiers.
2944         (comp-target-types): Allow pointers to arrays with different qualifiers.
2945         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
2946         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
2947         to PEDWARN_FOR_QUALIFIERS.
2949 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
2951         PR sanitizer/64289
2952         * c-convert.c: Include ubsan.h.
2953         (convert): For real -> integral casts and
2954         -fsanitize=float-cast-overflow don't call convert_to_integer, but
2955         instead instrument the float cast directly.
2957 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
2959         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
2960         c_finish_stmt_expr): Remove NULL last argument from
2961         create_tmp_var_raw and create_tmp_var calls.
2962         * c-array-notation.c (fix_builtin_array_notation_fn,
2963         build_array_notation_expr, fix_conditional_array_notations_1,
2964         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
2966 2014-11-28  Marek Polacek  <polacek@redhat.com>
2968         PR c/63862
2969         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
2970         convert the right operand to integer type.
2972 2014-11-25  Marek Polacek  <polacek@redhat.com>
2974         PR c/63877
2975         * c-decl.c (start_function): Disable -Wmissing-declarations warning
2976         for inline functions.
2978 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2980         PR target/63764
2981         * c-typeck.c (build_array_ref): Adjust
2982         convert_vector_to_pointer_for_subscript caller.  If it returns true,
2983         call non_lvalue_loc on the result.
2985 2014-11-11  Richard Biener  <rguenther@suse.de>
2987         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
2988         to true.
2990 2014-11-10  Andi Kleen  <ak@linux.intel.com>
2992         PR c/60804
2993         * c-parser.c (c_parser_statement_after_labels): Call
2994         check_no_cilk.
2995         (c_parser_if_statement): Dito.
2996         (c_parser_switch_statement): Dito.
2997         (c_parser_while_statement): Dito.
2998         (c_parser_do_statement): Dito.
2999         (c_parser_for_statement): Dito.
3000         * c-typeck.c (c_finish_loop): Dito.
3002 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
3004         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
3005         OPT_Wshift_count_overflow in the warnings.
3007 2014-10-30  Marek Polacek  <polacek@redhat.com>
3009         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
3010         print the stripped version as well, if they're not the same.
3012 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3014         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
3015         machine_mode.
3017 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
3019         * c-decl.c: Adjust include files.
3020         * c-parser.c: Ditto.
3022 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
3023             Tom Tromey  <tromey@redhat.com>
3025         * c-tree.h (enum c_oracle_request): New.
3026         (c_binding_oracle_function): New typedef.
3027         (c_binding_oracle, c_pushtag, c_bind): Declare.
3028         * c-decl.c (c_binding_oracle): New global.
3029         (I_SYMBOL_CHECKED): New macro.
3030         (i_symbol_binding): New function.
3031         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
3032         (I_TAG_CHECKED): New macro.
3033         (i_tag_binding): New function.
3034         (I_TAG_BINDING, I_TAG_DECL): Redefine.
3035         (I_LABEL_CHECKED): New macro.
3036         (i_label_binding): New function.
3037         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
3038         (c_print_identifier): Save and restore c_binding_oracle.
3039         (c_pushtag, c_bind): New functions.
3041 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
3043         * c-typeck.c: Adjust include files.
3045 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3047         PR c++/53061
3048         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
3049         initialization here...
3050         (c_initialize_diagnostics): ... but here. Set defaults after
3051         building pretty-printer.
3053 2014-10-23  Marek Polacek  <polacek@redhat.com>
3055         PR c/63626
3056         * c-decl.c (pop_scope): Don't print warning in external_scope.
3058 2014-10-19  Marek Polacek  <polacek@redhat.com>
3060         PR c/63567
3061         * c-typeck.c (output_init_element): Allow initializing objects with
3062         static storage duration with compound literals even in C99 and add
3063         pedwarn for it.
3065 2014-10-17  Marek Polacek  <polacek@redhat.com>
3067         PR c/63567
3068         * c-typeck.c (digest_init): Allow initializing objects with static
3069         storage duration with compound literals even in C99 and add pedwarn
3070         for it.
3072 2014-10-17  Marek Polacek  <polacek@redhat.com>
3074         PR c/63543
3075         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
3076         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
3077         error multiple times.  Print the type.
3079 2014-10-17  Marek Polacek  <polacek@redhat.com>
3081         PR c/63549
3082         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
3083         type.
3085 2014-10-17  Marek Polacek  <polacek@redhat.com>
3087         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
3088         (start_function): Use OPT_Wimplicit_int instead of 0.
3089         (store_parm_decls_oldstyle): Likewise.
3091 2014-10-17  Alan Modra  <amodra@gmail.com>
3093         PR middle-end/61848
3094         * c-decl.c (merge_decls): Don't merge section name or tls model
3095         to newdecl symtab node, instead merge to olddecl.  Override
3096         existing olddecl section name.  Set tls_model for all thread-local
3097         vars, not just OMP thread-private ones.  Remove incorrect comment.
3099 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
3101         * c-decl.c: Adjust include files.
3103 2014-10-14  DJ Delorie  <dj@redhat.com>
3105         * c-parser.c (c_parse_init): Add RID entries for each __intN.
3106         (c_token_starts_typename): Check all __intN, not just __int128.
3107         (c_token_starts_declspecs): Likewise.
3108         (c_parser_declspecs): Likewise.
3109         (c_parser_attribute_any_word): Likewise.
3110         (c_parser_objc_selector): Likewise.
3111         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
3112         (struct c_declspecs): Add int_n_idx field to record *which* __intN
3113         is specified.
3114         * c-decl.c (declspecs_add_type): Check for all __intN, not just
3115         __int128.
3116         (finish_declspecs): Likewise.
3118 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
3120         * c-parser.c (c_parser_all_labels): New function to replace
3121         the duplicate code.
3122         (c_parser_statement): Call the new function.
3124 2014-10-09  Marek Polacek  <polacek@redhat.com>
3126         PR c/63480
3127         * c-typeck.c (pop_init_level): Don't warn about initializing
3128         with { }.
3130 2014-10-07  Marek Polacek  <polacek@redhat.com>
3132         PR c/59717
3133         * c-decl.c (header_for_builtin_fn): New function.
3134         (implicitly_declare): Suggest which header to include.
3136 2014-10-07  Marek Polacek  <polacek@redhat.com>
3138         * c-convert.c (convert): Use error_operand_p.
3139         * c-typeck.c (require_complete_type): Likewise.
3140         (really_atomic_lvalue): Likewise.
3141         (digest_init): Likewise.
3142         (handle_omp_array_sections_1): Likewise.
3144 2014-10-03  Marek Polacek  <polacek@redhat.com>
3146         PR c/63453
3147         * c-decl.c (pop_scope): Don't warn about "inline function declared
3148         but never defined" for functions marked with gnu_inline attribute.
3150 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3152         PR c++/63249
3153         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
3154         on low_bound and length.
3156 2014-09-24  Marek Polacek  <polacek@redhat.com>
3158         PR c/61405
3159         PR c/53874
3160         * c-parser.c: Don't define CPP_KEYWORD.
3161         (c_parser_switch_statement): Pass original type to c_finish_case.
3162         * c-tree.h (c_finish_case): Update declaration.
3163         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
3164         conditionally to c_do_switch_warnings.
3166 2014-09-03  Marek Polacek  <polacek@redhat.com>
3168         PR c/62024
3169         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
3170         conversions.
3172 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
3173             Balaji V. Iyer  <balaji.v.iyer@intel.com>
3174             Igor Zamyatin  <igor.zamyatin@intel.com>
3176         * c-parser.c (c_parser_cilk_for): New function.
3177         (c_parser_cilk_grainsize): Likewise.
3178         (c_get_temp_regvar): Likewise.
3179         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
3180         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
3181         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
3182         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
3183         case.
3185 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
3187         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
3188         with using HOST_WIDE_INT without truncation to 'int'
3190 2014-08-22  Marek Polacek  <polacek@redhat.com>
3192         PR c++/62199
3193         * c-typeck.c (parser_build_binary_op): Adjust call to
3194         warn_logical_not_parentheses.
3196 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
3198         PR other/62008
3199         * c-parser.c (c_parser_array_notation): Check for correct
3200         type of an array added.
3202 2014-08-19  Marek Polacek  <polacek@redhat.com>
3204         PR c++/62153
3205         * c-typeck.c (build_binary_op): If either operand of a comparison
3206         is a boolean expression, call maybe_warn_bool_compare.
3208 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
3210         PR c/45584
3211         * c-typeck.c (build_c_cast): Do a conversion even when the
3212         TYPE_MAIN_VARIANTs are the same.
3214 2014-08-19  Marek Polacek  <polacek@redhat.com>
3216         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
3217         pedwarn_c99 instead of pedwarn.
3218         (grokfield): Likewise.
3219         (warn_defaults_to): New function.
3220         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
3221         Unconditionally call pedwarn_c99 instead of pedwarn.
3222         (start_function): Call warn_defaults_to instead of pedwarn_c99.
3223         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
3224         check flag_isoc11 before.
3225         * c-errors.c (pedwarn_c99): Change the return type to bool.
3226         Handle -Wc99-c11-compat.
3227         * c-parser.c (disable_extension_diagnostics): Handle
3228         warn_c99_c11_compat.
3229         (restore_extension_diagnostics): Likewise.
3230         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
3231         instead of pedwarn, don't check flag_isoc11 before.
3232         (c_parser_declspecs): Likewise.
3233         (c_parser_alignas_specifier): Likewise.
3234         (c_parser_alignof_expression): Likewise.
3235         (c_parser_generic_selection): Likewise.
3236         * c-tree.h (pedwarn_c99): Update declaration.
3237         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
3238         of pedwarn_c99.
3240 2014-08-19  Marek Polacek  <polacek@redhat.com>
3242         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
3243         to pedwarn_c90.
3244         * c-errors.c: Include "opts.h".
3245         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
3246         * c-parser.c (disable_extension_diagnostics): Handle negative value
3247         of warn_c90_c99_compat, too.
3248         (restore_extension_diagnostics): Likewise.
3249         (c_parser_compound_statement_nostart): Pass
3250         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
3252 2014-08-12  Marek Polacek  <polacek@redhat.com>
3254         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
3255         Add pedwarn.
3256         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
3257         Likewise.
3258         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
3260 2014-08-10  Marek Polacek  <polacek@redhat.com>
3262         PR c/51849
3263         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
3264         Call pedwarn_c90 instead of pedwarn.
3265         (check_bitfield_type_and_width): Likewise.
3266         (declspecs_add_qual): Likewise.
3267         (declspecs_add_type): Likewise.
3268         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
3269         Adjust to only call pedwarn_c90.
3270         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
3271         pedwarn_c90 instead of pedwarn.
3272         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
3273         * c-parser.c (disable_extension_diagnostics): Handle
3274         warn_c90_c99_compat.
3275         (restore_extension_diagnostics): Likewise.
3276         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
3277         pedwarn_c90 instead of pedwarn.
3278         (c_parser_initelt): Likewise.
3279         (c_parser_postfix_expression): Likewise.
3280         (c_parser_postfix_expression_after_paren_type): Likewise.
3281         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
3282         * c-tree.h: Fix formatting.
3283         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
3284         pedwarn_c90 instead of pedwarn.
3286 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
3288         * c-typeck.c: Remove include of pointer-set.h.
3290 2014-08-07  Marek Polacek  <polacek@redhat.com>
3292         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
3294 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3296         * c-typeck.c: Use hash_map instead of pointer_map.
3298 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3300         * c-decl.c: Use hash_set instead of pointer_set.
3302 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
3304         PR middle-end/61455
3305         * c-array-notation.c (expand_array_notations): Handling
3306         of DECL_EXPR added.
3308 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
3310         PR c++/60517
3311         * c-typeck.c (c_finish_return): Return 0 instead of the address of
3312         a local variable.
3314 2014-07-30  Tom Tromey  <tromey@redhat.com>
3316         * c-typeck.c (struct constructor_stack) <designator_depth>: New
3317         field.
3318         (really_start_incremental_init, push_init_level): Initialize
3319         designator_depth.
3320         (pop_init_level): Set global designator_depth.
3321         (process_init_element): Check for designated_init attribute.
3323 2014-07-20  Marek Polacek  <polacek@redhat.com>
3325         PR c/61852
3326         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
3327         (implicitly_declare): Pass location to implicit_decl_warning.
3329 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
3331         PR middle-end/61294
3332         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
3333         If non-NULL, call c_parser_check_literal_zero.
3334         (c_parser_check_literal_zero): New function.
3335         (c_parser_postfix_expression_after_primary): Adjust
3336         c_parser_expr_list caller, handle -Wmemset-transposed-args.
3338 2014-07-06  Marek Polacek  <polacek@redhat.com>
3340         PR c/6940
3341         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
3342         * c-tree.h (C_ARRAY_PARAMETER): Define.
3343         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
3344         function parameter.
3346 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
3347             Chen Gang  <gang.chen.5i5j@gmail.com>
3349         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
3350         releasing symbol.
3352 2014-07-01  Marek Polacek  <polacek@redhat.com>
3354         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
3355         instead of 0 to WARN_FOR_ASSIGNMENT.
3357 2014-07-01  Marek Polacek  <polacek@redhat.com>
3359         PR c/58286
3360         * c-typeck.c (convert_for_assignment): Pass
3361         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
3363 2014-06-30  Marek Polacek  <polacek@redhat.com>
3365         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
3366         has no_sanitize_undefined attribute.
3368 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
3370         PR middle-end/57541
3371         * c-array-notation.c (fix_builtin_array_notation_fn):
3372         Check for 0 arguments in builtin call. Check that bultin argument is
3373         correct.
3374         * c-parser.c (c_parser_array_notation): Check for incorrect initial
3375         index.
3377 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3379         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
3380         qualifiers in __auto_type for atomic types.
3381         (c_parser_typeof_specifier): Discard all type qualifiers in
3382         __typeof__ for atomic types.
3384 2014-06-25  Marek Polacek  <polacek@redhat.com>
3386         PR c/61162
3387         * c-parser.c (c_parser_statement_after_labels): Pass the location of
3388         the return expression to c_finish_return.
3390 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
3392         * c-typeck.c (c_finish_omp_clauses): Make sure
3393         OMP_CLAUSE_LINEAR_STEP has correct type.
3395 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3397         * c-decl.c: Adjust.
3399 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
3401         * c-parser.c (c_parser_omp_for_loop): For
3402         #pragma omp parallel for simd move lastprivate clause from parallel
3403         to for rather than simd.
3405 2014-06-23  Marek Polacek  <polacek@redhat.com>
3407         * c-typeck.c (parser_build_binary_op): Don't call
3408         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3410 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
3412         * c-parser.c (c_parser_omp_threadprivate): Likewise.
3413         * c-decl.c (merge_decls): Likewise.
3415 2014-06-09  Marek Polacek  <polacek@redhat.com>
3417         PR c/36446
3418         * c-typeck.c (error_init): Call inform instead of error_at.
3419         (pedwarn_init): Call inform instead of pedwarn.
3420         (warning_init): Call inform instead of warning_at.
3422 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3424         * c-decl.c (merge_decls): Use set_decl_section_name.
3425         (duplicate_decls): Remove node if it exists.
3427 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
3429         PR c/53119
3430         * c-typeck.c (push_init_level, process_init_element,
3431         pop_init_level): Correct check for zero initialization, move
3432         missing brace warning to respect zero initialization.
3434 2014-06-05  Marek Polacek  <polacek@redhat.com>
3436         PR c/56724
3437         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3439 2014-06-05  Marek Polacek  <polacek@redhat.com>
3441         PR c/49706
3442         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3443         on the left hand side operand of a comparison. 
3445 2014-06-05  Marek Polacek  <polacek@redhat.com>
3447         PR c/48062
3448         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3449         Print note only if the warning was printed.
3451 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
3453         PR c/58942
3454         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3455         with a pointer.
3457 2014-06-03  Marek Polacek  <polacek@redhat.com>
3459         PR c/60439
3460         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3461         c_start_case.
3462         * c-tree.h (c_start_case): Update.
3463         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
3464         switch condition has boolean value.
3466 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
3468         * c-decl.c: Include builtins.h.
3469         * c-parser.c: Likewise.
3471 2014-05-27  Marek Polacek  <polacek@redhat.com>
3473         PR c/56724
3474         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
3475         error and warning calls to error_at and warning_at.  Pass location of
3476         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
3477         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3478         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
3480 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
3482         PR c/61191
3483         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
3484         function parameters.
3486 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
3488         * c-decl.c (merge_decls): Preserve symtab node pointers.
3489         (duplicate_decls): Free new decl.
3491 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3493         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
3494         initialization.
3496         * c-parser.c (c_parser_omp_target): Return bool values.
3498 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
3500         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
3501         num_teams_loc variable to num_thread_limit_loc.
3503 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3505         * c-array-notation.c (expand_array_notations): Use void_node
3506         instead of void_zero_node.
3508 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
3510         * c-decl.c (finish_struct): Adjust.
3511         (finish_enum): Likewise.
3512         (bind): Adjust.
3513         (record_inline_static): Likewise.
3514         (push_scope): Likewise.
3515         (make_label): Likewise.
3516         (lookup_label_for_goto): Likewise.
3517         (finish_struct): Likewise.
3518         (finish_enum): Likewise.
3519         (store_parm_decls): Likewise.
3520         (c_push_function_context): Likewise.
3521         * c-lang.h: Remove usage of variable_size gty attribute.
3522         * c-parser.c (c_parse_init): Adjust.
3523         (c_parse_file): Likewise.
3525 2014-05-13  Marek Polacek  <polacek@redhat.com>
3527         PR c/61162
3528         * c-typeck.c (convert_for_assignment): Pass location to
3529         WARN_FOR_ASSIGNMENT instead of input_location.
3531 2014-05-10  Marek Polacek  <polacek@redhat.com>
3533         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
3534         maybe_warn_string_init.
3535         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
3536         maybe_warn_string_init.
3537         * c-tree.h (maybe_warn_string_init): Update declaration.
3538         * c-typeck.c (maybe_warn_string_init): Add location parameter.
3539         Call pedwarn_init with loc instead of with input_location.
3540         (digest_init): Pass init_loc to maybe_warn_string_init.
3541         (pop_init_level): Call pedwarn_init with loc instead of with
3542         input_location.
3543         (set_init_index): Likewise.
3544         (process_init_element): Likewise.
3546 2014-05-09  Marek Polacek  <polacek@redhat.com>
3548         PR c/61096
3549         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
3550         (c_parser_initelt): Pass location to set_init_label.  Pass array index
3551         location to set_init_index.
3552         * c-tree.h (push_init_level): Update declaration.
3553         (pop_init_level): Likewise.
3554         (set_init_index): Likewise.
3555         (set_init_label): Likewise.
3556         * c-typeck.c (error_init): Add location parameter.  Call error_at
3557         instead of error.
3558         (digest_init): Pass init_loc to error_init.
3559         (really_start_incremental_init):
3560         (push_init_level): Add location parameter.  Pass loc to pop_init_level
3561         and error_init.
3562         (pop_init_level): Likewise.
3563         (set_designator): Add location parameter.  Pass loc to pop_init_level,
3564         push_init_level, and error_init.
3565         (set_init_index): Add location parameter.  Pass loc to error_init and
3566         set_designator.
3567         (set_init_label): Likewise.
3568         (output_init_element): Pass loc to error_init.
3569         (process_init_element): Pass loc to error_init, pop_init_level,
3570         pedwarn_init, and push_init_level.
3572 2014-05-09  Marek Polacek  <polacek@redhat.com>
3574         PR c/50459
3575         * c-parser.c (c_parser_attributes): Parse the arguments as an
3576         expression-list if the attribute takes identifier.
3578 2014-05-08  Marek Polacek  <polacek@redhat.com>
3580         PR c/61053
3581         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3582         TYPE_ALIGN_UNIT.
3584 2014-05-08  Marek Polacek  <polacek@redhat.com>
3586         PR c/61077
3587         * c-decl.c (start_function): Warn for _Atomic-qualified return type
3588         of main.
3590 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
3591             Mike Stump  <mikestump@comcast.net>
3592             Richard Sandiford  <rdsandiford@googlemail.com>
3594         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3595         (finish_enum): Use wide-int interfaces.
3596         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3597         * c-typeck.c (build_c_cast): Likewise.
3598         (set_nonincremental_init_from_string): Likewise.
3599         (c_tree_equal): Likewise.
3601 2014-05-02  Marek Polacek  <polacek@redhat.com>
3603         PR c/25801
3604         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
3605         Return size_one_node when the type is not complete.
3606         (pointer_diff): Remove comment.
3607         (build_unary_op): Improve error messages.
3609 2014-05-02  Marek Polacek  <polacek@redhat.com>
3611         * c-typeck.c (c_finish_return): Separate warning_at calls.
3613 2014-05-02  Marek Polacek  <polacek@redhat.com>
3615         * c-tree.h (error_init): Remove declaration.
3616         (pedwarn_init): Likewise.
3617         * c-typeck.c (error_init): Make static and move above.
3618         (pedwarn_init): Likewise.
3619         (warning_init): Move above.
3620         (maybe_warn_string_init): Likewise.
3622 2014-05-01  Jeff Law  <law@redhat.com>
3624         Revert:
3626         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3627         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3628         avoid goto.
3630 2014-05-02  Marek Polacek  <polacek@redhat.com>
3632         PR c/60784
3633         * c-typeck.c (push_init_level): Set constructor_designated to
3634         p->designated for structures.
3636 2014-05-01  Marek Polacek  <polacek@redhat.com>
3638         PR c/60915
3639         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3640         function-definition has an attribute after the declarator.
3642 2014-05-01  Marek Polacek  <polacek@redhat.com>
3644         PR c/60257
3645         * c-typeck.c (warning_init): Add location_t parameter.  Call
3646         warning_at instead of warning.
3647         (push_init_level): Pass input_location to warning_init.
3648         (add_pending_init): Add location_t parameter.  Pass loc to
3649         warning_init.
3650         (set_nonincremental_init): Pass input_location to add_pending_init.
3651         (set_nonincremental_init_from_string): Likewise.
3652         (output_init_element): Pass loc to warning_init and to
3653         add_pending_init.
3655 2014-05-01  Marek Polacek  <polacek@redhat.com>
3657         PR c/43395
3658         * c-typeck.c (c_finish_return): Distinguish between label and variable
3659         when warning about returning local address.
3661 2014-05-01  Marek Polacek  <polacek@redhat.com>
3663         PR c/29467
3664         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3665         in C89 mode.
3667 2014-05-01  Marek Polacek  <polacek@redhat.com>
3669         PR c/43245
3670         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3671         instead of 0 to WARN_FOR_QUALIFIERS.
3673 2014-05-01  Marek Polacek  <polacek@redhat.com>
3675         PR c/56989
3676         * c-typeck.c (default_conversion): Use better location for
3677         error call.
3679 2014-04-30  Marek Polacek  <polacek@redhat.com>
3681         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3682         also when SANITIZE_FLOAT_DIVIDE is on.
3684 2014-04-30  Marek Polacek  <polacek@redhat.com>
3686         PR c/60139
3687         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3688         and pedwarn_init.  Use loc insted of input_location.
3690 2014-04-30  Marek Polacek  <polacek@redhat.com>
3692         PR c/60351
3693         * c-typeck.c (build_binary_op): Use location when warning about
3694         shift count.
3696 2014-04-25  Marek Polacek  <polacek@redhat.com>
3698         PR c/18079
3699         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3700         always_inline/noinline and hot/cold attributes.
3702 2014-04-25  Marek Polacek  <polacek@redhat.com>
3704         PR c/60114
3705         * c-parser.c (c_parser_initelt): Pass input_location to
3706         process_init_element.
3707         (c_parser_initval): Pass loc to process_init_element.
3708         * c-tree.h (process_init_element): Adjust declaration.
3709         * c-typeck.c (push_init_level): Pass input_location to
3710         process_init_element.
3711         (pop_init_level): Likewise.
3712         (set_designator): Likewise.
3713         (output_init_element): Add location_t parameter.  Pass loc to
3714         digest_init.
3715         (output_pending_init_elements): Pass input_location to
3716         output_init_element.
3717         (process_init_element): Add location_t parameter.  Pass loc to
3718         output_init_element.
3720 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
3722         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3723         atomic-clause, allow comma in between atomic-clause and
3724         seq_cst.
3726 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3728         PR c/59073
3729         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3730         fails, don't set OM_PARALLEL_COMBINED and return NULL.
3732 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
3734         PR middle-end/60469
3735         * c-array-notation.c (fix_builtin_array_notation_fn): Use
3736         create_tmp_var instead build_decl for creating temps.
3737         (build_array_notation_expr): Likewise.
3738         (fix_conditional_array_notations_1): Likewise.
3739         (fix_array_notation_expr): Likewise.
3740         (fix_array_notation_call_expr): Likewise.
3742 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
3744         PR c++/60689
3745         * c-tree.h (c_build_function_call_vec): New prototype.
3746         * c-typeck.c (build_function_call_vec): Don't call
3747         resolve_overloaded_builtin here.
3748         (c_build_function_call_vec): New wrapper function around
3749         build_function_call_vec.  Call resolve_overloaded_builtin here.
3750         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3751         Call c_build_function_call_vec instead of build_function_call_vec.
3752         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3753         * c-decl.c (finish_decl): Likewise.
3755 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3757         PR c/55383
3758         * c-typeck.c: Use correct format string in cast-qual warning
3760 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
3762         * c-decl.c (c_decl_attributes): Use
3763         lang_hooks.types.omp_mappable_type.
3764         * c-typeck.c (c_finish_omp_clauses): Likewise.
3766 2014-03-06  Marek Polacek  <polacek@redhat.com>
3768         PR c/60197
3769         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3770         of checking tree code.
3772 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3774         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3775         (c_parser_parameter_declaration): Likewise.
3777 2014-02-19  Marek Polacek  <polacek@redhat.com>
3779         PR c/60195
3780         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3781         Call mark_exp_read on exp.value.
3782         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
3783         TREE_ADDRESSABLE on old instead of val.
3784         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3786 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3788         * c-parser.c (c_parser_get_builtin_args): Replace calls to
3789         C_EXPR_APPEND by vec_safe_push.
3790         * c-tree.h (C_EXPR_APPEND): Remove.
3792 2014-01-31  Marek Polacek  <polacek@redhat.com>
3794         PR c/59963
3795         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3796         build_function_call_vec.
3797         (build_function_call): Likewise.
3798         (build_atomic_assign): Likewise.
3799         (build_function_call_vec): Add arg_loc parameter.  Use it.
3800         (convert_arguments): Likewise.
3801         (convert_for_assignment): Rename rhs_loc to expr_loc.
3802         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3803         (c_parser_objc_keywordexpr): Likewise.
3804         (c_parser_postfix_expression_after_primary): Call
3805         build_function_call_vec with expr_loc rather than op_loc.
3806         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
3807         build_function_call_vec.
3808         (c_parser_expr_list): Add locations parameter.  Fill it with locations
3809         of function arguments.
3810         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3812 2014-01-30  Marek Polacek  <polacek@redhat.com>
3814         PR c/59940
3815         * c-typeck.c (build_function_call_vec): Use loc parameter.
3816         (convert_arguments): Add location parameter.  Use it.
3817         (ep_convert_and_check): Likewise.
3818         (build_atomic_assign): Adjust convert_for_assignment call.
3819         (build_modify_expr): Likewise.
3820         (digest_init): Likewise.
3821         (c_finish_return): Likewise.
3822         (build_conditional_expr): Adjust ep_convert_and_check calls.
3823         (convert_for_assignment): Add rhs_loc parameter.  Use it.
3824         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3825         calls.
3827 2014-01-30  Richard Biener  <rguenther@suse.de>
3829         PR c/59905
3830         * c-typeck.c (build_function_call_vec): Do not replace calls
3831         to a function via an incompatible type with a runtime abort.
3833 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3835         * c-parser.c (c_parser_declaration_or_fndef): Replaced
3836         flag_enable_cilkplus with flag_cilkplus.
3837         (c_parser_direct_declarator_inner): Likewise.
3838         (c_parser_attribute_any_word): Likewise.
3839         (c_parser_attributes): Likewise.
3840         (c_parser_compound_statement): Likewise.
3841         (c_parser_statement_after_labels): Likewise.
3842         (c_parser_if_statement): Likewise.
3843         (c_parser_switch_statement): Likewise.
3844         (c_parser_do_statement): Likewise.
3845         (c_parser_for_statement): Likewise.
3846         (c_parser_unary_expression): Likewise.
3847         (c_parser_postfix_expression): Likewise.
3848         (c_parser_postfix_expression_after_primary): Likewise.
3849         (c_parser_postfix_expression_after_primary): Likewise.
3850         (c_parser_omp_clause_name): Likewise.
3851         (c_finish_omp_declare_simd): Likewise.
3852         (c_parser_cilk_verify_simd): Likewise.
3853         * c-typeck.c (build_array_ref): Likewise.
3854         (build_function_call_vec): Likewise.
3855         (convert_arguments): Likewise.
3856         (build_compound_expr): Likewise.
3857         (c_finish_return): Likewise.
3858         (c_finish_if_stmt): Likewise.
3859         (c_finish_loop): Likewise.
3860         (build_binary_op): Likewise.
3862 2014-01-23  Marek Polacek  <polacek@redhat.com>
3864         PR c/59846
3865         * c-typeck.c (parser_build_binary_op): Use location instead of
3866         input_location.
3867         (build_binary_op): Pass location to shorten_compare.
3869 2014-01-23  Marek Polacek  <polacek@redhat.com>
3871         PR c/58346
3872         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3873         an empty aggregate.
3875 2014-01-23  Marek Polacek  <polacek@redhat.com>
3877         PR c/59871
3878         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
3879         of a comma expression.
3880         (emit_side_effect_warnings): Likewise.
3882 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3884         PR c/59825
3885         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
3886         function to use walk_tree and moved a lot of its functionality to
3887         expand_array_notations.
3888         (expand_array_notations): New function.
3890 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3892         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
3893         attribute an attribute without value.
3895 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
3897         PR middle-end/58809
3898         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
3899         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3901 2014-01-22  Marek Polacek  <polacek@redhat.com>
3903         PR c/59891
3904         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
3905         of remove_c_maybe_const_expr on op1 and op2.
3907 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
3909         PR c/58943
3910         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
3911         effects, preevaluate rhs using SAVE_EXPR first.
3913 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3915         PR c++/59631
3916         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
3917         statements with if-elseif statements.
3919 2014-01-06  Marek Polacek  <polacek@redhat.com>
3921         PR c/57773
3922         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
3923         defined bit-field types only in ISO C.
3925 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3927         Update copyright years
3929 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3931         * c-array-notation.c: Use the standard form for the copyright notice.
3933 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3935         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
3936         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
3937         field in parser is not empty.  If not-empty, call the function
3938         c_parser_finish_omp_declare_simd.
3939         (c_parser_cilk_clause_vectorlength): Modified function to be shared
3940         between SIMD-enabled functions and #pragma simd.  Added new parameter.
3941         (c_parser_cilk_all_clauses): Modified the usage of the function
3942         c_parser_cilk_clause_vectorlength as mentioned above.
3943         (c_parser_cilk_simd_fn_vector_attrs): New function.
3944         (c_finish_cilk_simd_fn_tokens): Likewise.
3945         (is_cilkplus_vector_p): Likewise.
3946         (c_parser_omp_clause_name): Added checking for "vectorlength,"
3947         "nomask," and "mask" strings in clause name.
3948         (c_parser_omp_all_clauses): Added 3 new case statements:
3949         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
3950         PRAGMA_CILK_CLAUSE_NOMASK.
3951         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
3952         check for vector attribute and if so call the function
3953         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
3954         called the function c_finish_cilk_simd_fn_tokens.
3955         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
3956         parser field is non-empty.  If so, parse them as you would parse
3957         the omp declare simd pragma.
3958         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
3959         Added a check when step is a parameter and flag it as error.
3960         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
3961         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
3962         pragma_omp_clause.
3964 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
3966         * c-parser.c (c_parser_omp_parallel): Fix description.
3968 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3970         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
3971         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3972         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3973         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
3975 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
3977         PR c/52023
3978         * c-parser.c (c_parser_alignas_specifier): Use
3979         c_sizeof_or_alignof_type instead of c_alignof.
3980         (c_parser_alignof_expression): Likewise, with min_alignof
3981         parameter depending on alignof spelling used.
3983 2013-12-04  Marek Polacek  <polacek@redhat.com>
3985         PR c/54113
3986         * c-decl.c (start_function): Don't warn for missing prototype for
3987         inline functions.
3989 2013-12-03  Marek Polacek  <polacek@redhat.com>
3991         PR c/59351
3992         * c-decl.c (build_compound_literal): Allow compound literals with
3993         empty initial value.
3995 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
3997         PR c/58235
3998         * c-typeck.c (build_modify_expr): Diagnose assignment to
3999         expression with array type.
4001 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4003         PR c/42262
4004         * c-typeck.c (process_init_element): Do not treat a string as
4005         initializing a whole array when used with a designator for an
4006         individual element.
4008 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4010         PR c/57574
4011         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
4012         an inline function following a static declaration.
4014 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
4016         PR c/59310
4017         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
4018         to p_name before calling c_parser_omp_teams instead of after.
4019         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
4020         argument.  Remove unused p_name variable.
4022 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
4023             Jakub Jelinek  <jakub@redhat.com>
4025         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
4026         external_scope is NULL.
4028 2013-11-27  Tom de Vries  <tom@codesourcery.com>
4029             Marc Glisse  <marc.glisse@inria.fr>
4031         PR c++/59032
4032         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
4034 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4036         * c-typeck.c: Add required include files from gimple.h.
4038 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
4040         * c-decl.c (define_label, shadow_tag_warned)
4041         (check_bitfield_type_and_width, grokdeclarator, grokparms,
4042         store_parm_decls_newstyle, store_parm_decls_oldstyle)
4043         (declspecs_add_type): Remove use of in_system_header macro.
4044         * c-parser.c (c_parser_unary_expression): Likewise.
4045         * c-typeck.c (store_init_value, process_init_element)
4046         (c_start_case): Likewise.
4048         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
4049         macro.
4051         * c-parser.c (c_parser_set_source_position_from_token): Remove
4052         reference to in_system_header from comment.
4054 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4056         * c-decl.c (grokdeclarator): Update comment to refer to
4057         tree_to_[su]hwi rather than tree_low_cst.
4059 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4061         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
4062         tree_to_uhwi throughout.
4064 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4066         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
4067         throughout.
4069 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4071         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4072         throughout.
4074 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4076         * c-parser.c (c_parser_cilk_simd): New.
4077         (c_parser_cilk_verify_simd): New.
4078         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
4079         (c_parser_omp_for_loop): Add case for NE_EXPR.
4080         Set c_break_label for CILK_SIMD.
4081         (c_parser_cilk_clause_vectorlength): New.
4082         (c_parser_cilk_clause_linear): New.
4083         (c_parser_cilk_clause_name): New.
4084         (c_parser_cilk_all_clauses): New.
4085         * c-typeck.c (build_unary_op): Pass location argument to
4086         readonly_error.
4087         (build_modify_expr): Same.
4088         (build_asm_expr): Same.
4089         (c_finish_bc_stmt): Error on break/continue in loops.
4091 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4093         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
4095 2013-11-14  Diego Novillo  <dnovillo@google.com>
4097         * c-decl.c: Include print-tree.h.
4098         Include stor-layout.h.
4099         Include varasm.h.
4100         Include attribs.h.
4101         Include stringpool.h.
4102         * c-lang.c: Include fold-const.h.
4103         * c-parser.c: Include stringpool.h.
4104         Include attribs.h.
4105         Include stor-layout.h.
4106         Include varasm.h.
4107         Include trans-mem.h.
4108         * c-typeck.c: Include stor-layout.h.
4109         Include trans-mem.h.
4110         Include varasm.h.
4111         Include stmt.h.
4113 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4115         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
4116         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
4117         __auto_type.
4118         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
4119         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
4120         RID_AUTO_TYPE.
4121         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
4122         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
4123         (c_parser_declarator, c_parser_direct_declarator_inner)
4124         (c_parser_parameter_declaration, c_parser_type_name): All callers
4125         changed.
4126         (c_parser_declaration_or_fndef): Handle declarations with type
4127         determined from the initializer.
4129 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4131         * c-typeck.c: Include gimplify.h.
4133 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
4135         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
4136         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
4137         comment.
4138         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
4139         or _Thread_local as appropriate in diagnostics.
4140         (build_null_declspecs): Initialize ret->thread_gnu_p.
4141         (declspecs_add_scspec): Handle either __thread or _Thread_local
4142         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
4143         pedantic.  Do not disallow _Thread_local extern and _Thread_local
4144         static.
4146 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
4147             Andrew MacLeod  <amacleod@redhat.com>
4149         * c-aux-info.c (gen_type): Handle atomic qualifier.
4150         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
4151         qualifiers when compating types.
4152         (shadow_tag_warned): Handle atomic_p in declspecs.
4153         (quals_from_declspecs): Likewise.
4154         (start_decl): Use c_type_promotes_to when promoting argument
4155         types.
4156         (grokdeclarator): Handle _Atomic.
4157         (get_parm_info): Diagnose any qualifier on "void" as only
4158         parameter.
4159         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
4160         comparing types.  Use c_type_promotes_to when promoting argument
4161         types.
4162         (finish_function): Use c_type_promotes_to when promoting argument
4163         types.
4164         (build_null_declspecs): Handle atomic_p in declspecs.
4165         (declspecs_add_qual): Handle RID_ATOMIC.
4166         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
4167         (c_token_starts_declspecs): Handle RID_ATOMIC.
4168         (c_parser_declspecs): Handle atomic type specifiers and
4169         qualifiers.
4170         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
4171         from types of expressions with atomic type.
4172         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
4173         (c_parser_attribute_any_word): Handle RID_ATOMIC.
4174         (c_parser_initializer, c_parser_initelt, c_parser_initval)
4175         (c_parser_statement_after_labels, c_parser_switch_statement)
4176         (c_parser_for_statement, c_parser_expr_no_commas)
4177         (c_parser_conditional_expression, c_parser_binary_expression)
4178         (c_parser_cast_expression, c_parser_unary_expression)
4179         (c_parser_postfix_expression)
4180         (c_parser_postfix_expression_after_primary, c_parser_expression):
4181         Use convert_lvalue_to_rvalue.
4182         (c_parser_expression_conv, c_parser_expr_list): Document
4183         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
4184         (c_parser_objc_synchronized_statement): Use
4185         convert_lvalue_to_rvalue.
4186         (c_parser_objc_selector): Handle RID_ATOMIC.
4187         (c_parser_objc_receiver, c_parser_array_notation): Use
4188         convert_lvalue_to_rvalue.
4189         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
4190         _Atomic (type-name).
4191         (struct c_declspecs): Add atomic_p field.
4192         (convert_lvalue_to_rvalue): Declare.
4193         * c-typeck.c (c_type_promotes_to): Promote atomic types to
4194         corresponding atomic types.
4195         (qualify_type): Don't add _Atomic qualifiers from second argument.
4196         (comp_target_types): Do not allow _Atomic mismatches.
4197         (type_lists_compatible_p): Do not remove atomic qualifiers when
4198         comparing types.
4199         (really_atomic_lvalue, convert_lvalue_to_rvalue)
4200         (build_atomic_assign): New functions.
4201         (build_unary_op): Use build_atomic_assign for atomic increment and
4202         decrement.
4203         (build_conditional_expr): Do not treat _Atomic void as a qualified
4204         version of void.
4205         (build_modify_expr): Use build_atomic_assign for atomic LHS.
4206         (find_anonymous_field_with_type, convert_to_anonymous_field)
4207         (convert_for_assignment): Do not remove atomic qualifiers when
4208         comparing types.
4209         (digest_init): Do not accept initialization of arrays of atomic
4210         elements by string constants.
4211         (build_asm_expr): Use convert_lvalue_to_rvalue.
4212         (build_binary_op): Do not treat _Atomic void as a qualified
4213         version of void.
4215 2013-11-06  DJ Delorie  <dj@redhat.com>
4217         * c-decl.c (locate_old_decl): If a previous conflicting decl is
4218         both explicit and builtin, print the location of the explicit one.
4220 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4222         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
4223         c_parser_omp_distribute, c_parser_omp_teams,
4224         c_parser_omp_target, c_parser_omp_declare): Handle
4225         -fopenmp-simd.
4227 2013-11-03  Marek Polacek  <polacek@redhat.com>
4229         * c-decl.c (grokdeclarator): Add VLA instrumentation.
4231 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
4233         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
4234         check_dup_generic at the end, unless remove is true.
4235         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
4236         remove = true;.
4237         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
4239 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
4241         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
4242         with decl that is not pointer nor array.
4244 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4246         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
4247         a spawning function is found.
4248         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
4249         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
4250         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4251         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
4252         case.
4253         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
4254         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
4255         expr.
4256         (c_finish_return): Added a check to reject _Cilk_spawn in return
4257         expression.
4258         (build_cilk_spawn): New function.
4259         (build_cilk_sync): Likewise.
4260         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
4261         
4262 2013-10-27  Tobias Burnus  <burnus@net-b.de>
4264         PR other/33426
4265         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
4266         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
4267         (c_parser_statement_after_labels): Update calls.
4269 2013-10-24  Tobias Burnus  <burnus@net-b.de>
4271         PR other/33426
4272         * c-parser.c (c_parser_pragma, c_parser_for_statement):
4273         Handle PRAGMA_IVDEP.
4274         (c_parser_statement_after_labels): Update call.
4276 2013-10-24  Marek Polacek  <polacek@redhat.com>
4278         * c-parser.c (c_parser_struct_declaration): Add a comment.
4279         (c_parser_declarator): Don't allow _Alignas here.
4281 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
4283         * c-parser.c: Include omp-low.h.
4284         * c-typeck.c: Likewise.
4286 2013-10-17  Marek Polacek  <polacek@redhat.com>
4288         PR c/58267
4289         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
4290         Document syntax of the array-declarator.
4291         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
4292         are not permitted.
4293         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
4294         (c_parser_struct_declaration): Likewise.
4295         (c_parser_declarator): Likewise.
4296         (c_parser_direct_declarator_inner): Likewise.
4297         (c_parser_parameter_declaration): Likewise.
4298         (c_parser_type_name): Likewise.
4300 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
4302         * c-lang.h (current_omp_declare_target_attribute): New extern
4303         decl.
4304         * c-parser.c: Include c-lang.h.
4305         (struct c_parser): Change tokens to c_token *.
4306         Add tokens_buf field.  Change tokens_avail type to unsigned int.
4307         (c_parser_consume_token): If parser->tokens isn't
4308         &parser->tokens_buf[0], increment parser->tokens.
4309         (c_parser_consume_pragma): Likewise.
4310         (enum pragma_context): Add pragma_struct and pragma_param.
4311         (c_parser_external_declaration): Adjust
4312         c_parser_declaration_or_fndef caller.
4313         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
4314         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
4315         Adjust recursive call.
4316         (c_parser_struct_or_union_specifier): Use pragma_struct instead
4317         of pragma_external.
4318         (c_parser_parameter_declaration): Use pragma_param instead of
4319         pragma_external.
4320         (c_parser_compound_statement_nostart, c_parser_label,
4321         c_parser_for_statement): Adjust
4322         c_parser_declaration_or_fndef callers.
4323         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
4324         it through to c_parser_conditional_expression.
4325         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
4326         pass it through to c_parser_binary_expression.  Adjust recursive
4327         call.
4328         (c_parser_binary_expression): Remove prec argument, add
4329         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
4330         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
4331         binop matches it, use build2 instead of parser_build_binary_op.
4332         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
4333         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
4334         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
4335         Handle pragma_struct and pragma_param the same as pragma_external.
4336         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
4337         (c_parser_omp_variable_list): Parse array sections for
4338         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
4339         (c_parser_omp_clause_collapse): Fully fold collapse expression.
4340         (c_parser_omp_clause_reduction): Handle user defined reductions.
4341         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
4342         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
4343         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
4344         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
4345         c_parser_omp_clause_depend, c_parser_omp_clause_map,
4346         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
4347         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
4348         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
4349         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
4350         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
4351         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
4352         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
4353         (c_parser_omp_for_loop): Add CODE argument, pass it through
4354         to c_finish_omp_for.  Change last argument to cclauses,
4355         and adjust uses to grab parallel clauses from the array of all
4356         the split clauses.  Adjust c_parser_binary_expression,
4357         c_parser_declaration_or_fndef and c_finish_omp_for callers.
4358         (omp_split_clauses): New function.
4359         (c_parser_omp_simd): New function.
4360         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
4361         Allow the function to be called also when parsing combined constructs,
4362         and call c_parser_omp_simd when parsing for simd.
4363         (c_parser_omp_sections_scope): If section-sequence doesn't start with
4364         #pragma omp section, require exactly one structured-block instead of
4365         sequence of statements.
4366         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
4367         Allow the function to be called also when parsing combined constructs.
4368         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
4369         Allow the function to be called also when parsing combined
4370         constructs.
4371         (c_parser_omp_taskgroup, c_parser_omp_cancel,
4372         c_parser_omp_cancellation_point, c_parser_omp_distribute,
4373         c_parser_omp_teams, c_parser_omp_target_data,
4374         c_parser_omp_target_update, c_parser_omp_target,
4375         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
4376         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
4377         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
4378         (c_parser_omp_construct): Add p_name and mask vars.  Handle
4379         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
4380         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
4381         and c_parser_omp_sections callers.
4382         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
4383         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4384         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
4385         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
4386         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
4387         OMP_CLAUSE_DEPEND.
4388         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4389         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4390         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4391         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4392         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4393         * c-typeck.c: Include tree-inline.h.
4394         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4395         handle_omp_array_sections_1, handle_omp_array_sections,
4396         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4397         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4398         user defined reductions.
4399         (c_tree_equal): New function.
4400         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4401         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4402         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4403         c_check_omp_declare_reduction_r): New prototypes.
4404         * c-decl.c (current_omp_declare_target_attribute): New variable.
4405         (c_decl_attributes): New function.
4406         (start_decl, start_function): Use it instead of decl_attributes.
4407         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4408         c_omp_reduction_decl, c_omp_reduction_lookup,
4409         c_check_omp_declare_reduction_r): New functions.
4411 2013-09-25  Tom Tromey  <tromey@redhat.com>
4413         * Make-lang.in (c/gccspec.o): Remove.
4414         (CFLAGS-c/gccspec.o): New variable.
4415         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4416         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4417         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4419 2013-09-25  Tom Tromey  <tromey@redhat.com>
4421         * Make-lang.in (c/gccspec.o): Don't use subshell.
4423 2013-09-18  Marek Polacek  <polacek@redhat.com>
4425         PR sanitize/58443
4426         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4427         Remove unnecessary check.
4429 2013-09-18  Marek Polacek  <polacek@redhat.com>
4431         PR sanitizer/58411
4432         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4433         no_sanitize_undefined attribute.
4435 2013-09-13  Kai Tietz  <ktietz@redhat.com>
4437         PR target/57848
4438         * c-decl.c (c_builtin_function_ext_scope): Remove
4439         wrong assumption that it is never called on prexisting
4440         symbol.
4442 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
4444         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4446 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4448         * c-objc-common.c (c_tree_printer): Tidy.
4450 2013-08-30  Marek Polacek  <polacek@redhat.com>
4452         * c-typeck.c (build_binary_op): Add division by zero and shift
4453         instrumentation.
4455 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4456             Joseph Myers  <joseph@codesourcery.com>
4458         PR c/35649
4459         * c-typeck.c (c_common_type): Prefer double_type_node over
4460         other REAL_TYPE types with the same precision.
4461         (convert_arguments): Likewise.
4463 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4465         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4466         (c_initialize_diagnostics): Call a destructor for the early printer.
4468 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4470         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4471         printer initialization.
4473 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4475         PR c/57490
4476         * c-array-notation.c (fix_conditional_array_notations_1): Added a
4477         check for truth values.
4478         (expand_array_notation_exprs): Added truth values case.  Removed an
4479         unwanted else.  Added for-loop to walk through subtrees in default
4480         case.
4482 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4484         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
4486 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
4488         * c-parser.c (struct c_generic_association): Fix typo.
4490 2013-07-23  Tom Tromey  <tromey@redhat.com>
4491             Joseph Myers  <joseph@codesourcery.com>
4493         * c-parser.c (struct c_generic_association): New.
4494         (c_generic_association_d): New typedef.
4495         (c_parser_generic_selection): New function.
4496         (c_parser_postfix_expression): Handle RID_GENERIC.
4498 2013-07-13  Jason Merrill  <jason@redhat.com>
4500         PR c++/57793
4501         * c-decl.c (finish_struct): Check for too-large class.
4503 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
4505         PR c/57821
4506         * c-typeck.c (set_init_index): When folding, check for index overflow.
4508 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4510         * c-parser.c (c_parser_array_notation): Removed rejection of array
4511         notations in an array of function pointers.
4513 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4515         * c-array-notation.c (make_triplet_val_inv): New function.
4516         (create_cmp_incr): Likewise.
4517         (create_array_refs): Likewise.
4518         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
4519         Also modularized common parts between functions and called the function.
4520         (build_array_notation_expr): Likewise.
4521         (fix_conditional_array_notations_1): Likewise.
4522         (fix_array_notation_expr): Likewise.
4523         (fix_array_notation_call_expr): Likewise.
4525 2013-06-18  Marek Polacek  <polacek@redhat.com>
4527         PR c/57630
4528         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
4530 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4532         * c-array-notation.c (build_array_notation_expr): Reject array notation
4533         mismatch between LHS and RHS even inside a call_expr.  Also, removed
4534         a couple while statements that were dead code.
4536 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4538         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
4539         excessive precision expressions in function parameters.  Also removed
4540         couple unwanted while statements.
4542 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4544         * c-array-notation.c (expand_array_notation_exprs): Added
4545         ARRAY_NOTATION_REF case.
4546         
4547 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4549         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
4550         function to c-family/array-notation-common.c.
4551         (is_cilkplus_reduce_builtin): Likewise.
4552         (find_rank): Likewise.
4553         (extract_array_notation_exprs): Likewise.
4554         (replace_array_notations): Likewise.
4555         (find_inv_trees): Likewise.
4556         (replace_inv_trees): Likewise.
4557         (contains_array_notation_expr): Likewise.
4558         (find_correct_array_notation_type): Likewise.
4559         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4560         (struct inv_list): Moved this to c-family/array-notation-common.c.
4561         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4562         
4563 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4565         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4566         reduction functions outside the for-loop.  Added a check if the fundecl
4567         is non-NULL.  Finally, removed an unwanted if-statement, and made the
4568         body unconditional.
4570 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4572         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4573         condition of the if-statement matches the rank of else-block and then-
4574         block when array notations are used.
4575         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4576         expression after the entire function body is parsed.
4577         (c_parser_expr_no_commas): Delayed creating array notation expressions
4578         to the end of function parsing.
4579         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4580         whole if-statement instead of just the condition.
4581         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
4583 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4585         PR c/57474
4586         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4587         array to NULL_TREE if they are unused.  Also added a check for the
4588         field to be NULL before its fields are used in future.
4589         
4590 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4592         PR bootstrap/57450
4593         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4594         (build_array_notation_expr): Likewise.
4596 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4598         * c-typeck.c (build_array_ref): Added a check to see if array's
4599         index is greater than one.  If true, then emit an error.
4600         (build_function_call_vec): Exclude error reporting and checking
4601         for builtin array-notation functions.
4602         (convert_arguments): Likewise.
4603         (c_finish_return): Added a check for array notations as a return
4604         expression.  If true, then emit an error.
4605         (c_finish_loop): Added a check for array notations in a loop
4606         condition.  If true then emit an error.
4607         (lvalue_p): Added a ARRAY_NOTATION_REF case.
4608         (build_binary_op): Added a check for array notation expr inside
4609         op1 and op0.  If present, we call another function to find correct
4610         type.
4611         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4612         * c-parser.c (c_parser_compound_statement): Check if array
4613         notation code is used in tree, if so, then transform them into
4614         appropriate C code.
4615         (c_parser_expr_no_commas): Check if array notation is used in LHS
4616         or RHS, if so, then build array notation expression instead of
4617         regular modify.
4618         (c_parser_postfix_expression_after_primary): Added a check for
4619         colon(s) after square braces, if so then handle it like an array
4620         notation.  Also, break up array notations in unary op if found.
4621         (c_parser_direct_declarator_inner): Added a check for array
4622         notation.
4623         (c_parser_compound_statement): Added a check for array notation in
4624         a stmt.  If one is present, then expand array notation expr.
4625         (c_parser_if_statement): Likewise.
4626         (c_parser_switch_statement): Added a check for array notations in
4627         a switch statement's condition.  If true, then output an error.
4628         (c_parser_while_statement): Similarly, but for a while.
4629         (c_parser_do_statement): Similarly, but for a do-while.
4630         (c_parser_for_statement): Similarly, but for a for-loop.
4631         (c_parser_unary_expression): Check if array notation is used in a
4632         pre-increment or pre-decrement expression.  If true, then expand
4633         them.
4634         (c_parser_array_notation): New function.
4635         * c-array-notation.c: New file.
4636         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4637         
4638 2013-05-23  Mike Stump  <mikestump@comcast.net>
4640         * c-typeck.c (convert_for_assignment): Handle references to memory
4641         spaces better.
4643 2013-05-16  Jason Merrill  <jason@redhat.com>
4645         * Make-lang.in (cc1$(exeext)): Use link mutex.
4647 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4649         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4650         to simply use OPT_Wpointer_arith.
4651         (build_unary_op): Likewise.
4653 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
4655         PR c/19449
4656         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4657         argument.  If set, or it temporarily for parsing of the first
4658         argument into force_folding_builtin_constant_p.
4659         (c_parser_postfix_expression): Adjust callers.
4661 2013-03-21  Richard Biener  <rguenther@suse.de>
4663         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4664         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
4666 2013-02-12  Marek Polacek  <polacek@redhat.com>
4668         PR c/44938
4669         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4670         origtypes to NULL.
4672 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
4674         PR c/56078
4675         * c-typeck.c (set_nonincremental_init_from_string): If
4676         constructor_max_index is NULL, treat it as if tree_int_cst_lt
4677         returned false.
4678         (process_init_element): Likewise.
4680 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
4682         PR c++/55619
4683         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4684         argument, don't call default_function_array_conversion
4685         nor c_fully_fold here.
4686         (c_parser_asm_statement): Adjust callers.
4687         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4688         and outputs here, and call default_function_array_conversion
4689         on inputs that don't need to be addressable.
4691 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
4693         PR c/39464
4694         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4695         warning require that both c_common_unsigned_type as well as
4696         c_common_signed_type is the same for both mvl and mvr types.
4698 2012-11-16  Diego Novillo  <dnovillo@google.com>
4700         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4702         * c-common.c: Use new vec API in vec.h.
4703         * c-common.h: Likewise.
4704         * c-gimplify.c: Likewise.
4705         * c-pragma.c: Likewise.
4706         * c-pretty-print.c: Likewise.
4707         * c-pretty-print.h: Likewise.
4708         * c-semantics.c: Likewise.
4709         * c-decl.c: Likewise.
4710         * c-parser.c: Likewise.
4711         * c-tree.h: Likewise.
4712         * c-typeck.c: Likewise.
4714 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
4716         PR c++/54930
4717         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4719 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4721         PR c/53066
4722         * c-decl.c (warn_if_shadowing): Do not warn if a variable
4723         shadows a function, unless the variable is a function or a
4724         pointer-to-function.
4726 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
4728         PR c/54381
4729         * c-parser.c (struct c_tree_loc_pair): Removed.
4730         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4731         add location_t * and tree * arguments, fill in array of 3
4732         sizeof_arg trees and corresponding locs.
4733         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4734         c_parser_expr_list callers.
4735         (c_parser_postfix_expression_after_primary): Likewise.  Pass
4736         array of 3 sizeof_arg trees and locs (corresponding to first
4737         3 arguments) to sizeof_pointer_memaccess_warning.
4739 2012-10-09  Lawrence Crowl  <crowl@google.com>
4741         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4742         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4743         hash table.
4745 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
4747         PR c++/54194
4748         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4749         call.
4751 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
4753         PR c++/54427
4754         * c-typeck.c: Include c-common.h.
4755         (enum stv_conv): Moved to c-common.h.
4756         (scalar_to_vector): Moved to c-common.c.
4757         (build_binary_op): Adapt to scalar_to_vector's new prototype.
4758         * Make-lang.in: c-typeck.c depends on c-common.h.
4760 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
4762         * c-decl.c (c_write_global_declarations): Fix handling of
4763         -fdump-ada-spec*.
4765 2012-09-30  Sharad Singhai  <singhai@google.com>
4767         * c-decl.c (c_write_global_declarations): Use a different method
4768         to determine if the dump has ben initialized.
4770 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4772         PR c/54552
4773         * c-typeck.c (c_cast_expr): When casting to a type requiring
4774         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4775         c_fully_fold first.
4777 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4779         PR c/54103
4780         * c-typeck.c (build_unary_op): Pass original argument of
4781         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4782         any C_MAYBE_CONST_EXPR, if it has integer operands.
4783         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4784         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4785         to c_objc_common_truthvalue_conversion, then remove any
4786         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
4787         c_objc_common_truthvalue_conversion not
4788         c_common_truthvalue_conversion.
4789         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4790         call note_integer_operands for arguments with integer operands
4791         that are not integer constants.
4793 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
4795         PR c/54559
4796         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4797         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4799 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
4801         PR c/54428
4802         * c-convert.c (convert): Don't call fold_convert_loc if
4803         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4804         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
4805         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4807 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
4809         PR c/54355
4810         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4811         for nested and empty_ok arguments in the call to
4812         c_parser_declaration_or_fndef.
4814 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
4816         * c-tree.h (c_last_sizeof_arg): Declare.
4817         * c-parser.c (struct c_tree_loc_pair): New type.
4818         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
4819         non-NULL.
4820         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4821         (c_parser_postfix_expression_after_primary): Likewise.  Call
4822         sizeof_pointer_memaccess_warning if needed.
4823         (sizeof_ptr_memacc_comptypes): New function.
4824         * c-typeck.c (c_last_sizeof_arg): New global variable.
4825         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4827 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
4829         * c-lang.h (lang_decl): Add variable_size GTY option.
4831 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
4833         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4834         * Make-lang.in: Fix dependencies.
4836 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
4838         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4839         and add language Makefile hooks.
4840         * config-lang.in: New file.
4841         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4842         add the required "normal" config-lang.in rules.
4843         * c-lang.h: Moved from gcc/ to here.
4844         * c-tree.h: Likewise.
4845         * c-objc-common.c: Likewise.
4846         * c-objc-common.h: Likewise.
4847         * c-typeck.c: Likewise.
4848         * c-convert.c: Likewise.
4849         * c-lang.c: Likewise.
4850         * c-aux-info.c: Likewise.
4851         * c-errors.c: Likewise.
4852         * gccspec.c: Likewise.
4853         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
4854         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
4856 Copyright (C) 2012-2017 Free Software Foundation, Inc.
4858 Copying and distribution of this file, with or without modification,
4859 are permitted in any medium without royalty provided the copyright
4860 notice and this notice are preserved.