[PR c/84293] Unexpected strict-alias warning
[official-gcc.git] / gcc / c / ChangeLog
blobbca7268c118f271db163c54e66881e18bc9ad988
1 2018-02-09  Nathan Sidwell  <nathan@acm.org>
3         PR c/84293
4         * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location
5         to strict_aliasing_warning.
7 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
9         * c-typeck.c (really_start_incremental_init, push_init_level,
10         set_nonincremental_init, output_init_element, process_init_element):
11         Use DECL_UNNAMED_BIT_FIELD.
13 2018-01-31  Marek Polacek  <polacek@redhat.com>
15         PR c/81779
16         * c-parser.c (c_parser_compound_statement_nostart): Call
17         expansion_point_location_if_in_system_header.
19 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
21         PR c++/83814
22         * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just
23         the C part.
25 2018-01-13  Jakub Jelinek  <jakub@redhat.com>
27         PR c/83801
28         * c-tree.h (decl_constant_value_1): Add a bool argument.
29         * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow
30         returning a CONSTRUCTOR if it is true.  Use error_operand_p.
31         (decl_constant_value): Adjust caller.
32         * c-fold.c (c_fully_fold_internal): If in_init, pass true to
33         decl_constant_value_1 as IN_INIT.  Otherwise, punt if
34         decl_constant_value returns initializer that has BLKmode or
35         array type.
36         (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval.
38 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
39             Alan Hayward  <alan.hayward@arm.com>
40             David Sherwood  <david.sherwood@arm.com>
42         * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial
43         TYPE_VECTOR_SUBPARTS.
45 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
47         Update copyright years.
49 2018-01-01  Jakub Jelinek  <jakub@redhat.com>
51         PR c/83595
52         * c-parser.c (c_parser_braced_init, c_parser_initelt,
53         c_parser_conditional_expression, c_parser_cast_expression,
54         c_parser_sizeof_expression, c_parser_alignof_expression,
55         c_parser_postfix_expression, c_parser_omp_declare_reduction,
56         c_parser_transaction_expression): Use set_error () method instead
57         of setting value member to error_mark_node.
59 2017-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
61         * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N>
62         and _Float<N>X built-in functions.
64 2017-12-22  Jakub Jelinek  <jakub@redhat.com>
66         PR debug/83550
67         * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on
68         TYPE_STUB_DECL and call rest_of_type_compilation before processing
69         incomplete vars rather than after it.
71         PR debug/83547
72         * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as
73         indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first,
74         and consider empty ones if there are no other stmts.  For
75         -Wunused-value walk all statements before the one only followed by
76         DEBUG_BEGIN_STMTs.
78 2017-12-22  Mike Stump  <mikestump@comcast.net>
79             Eric Botcazou  <ebotcazou@adacore.com>
81         * c-parser.c (c_parser_while_statement): Add unroll parameter and
82         build ANNOTATE_EXPR if present.  Add 3rd operand to ANNOTATE_EXPR.
83         (c_parser_do_statement): Likewise.
84         (c_parser_for_statement): Likewise.
85         (c_parser_statement_after_labels): Adjust calls to above.
86         (c_parse_pragma_ivdep): New static function.
87         (c_parser_pragma_unroll): Likewise.
88         (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll.
89         <PRAGMA_UNROLL>: New case.
91 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
93         * c-typeck.c (comptypes_internal, function_types_compatible_p,
94         perform_integral_promotions, digest_init): Replace Yoda conditions
95         with typical order conditions.
96         * c-decl.c (check_bitfield_type_and_width): Likewise.
98 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
100         * c-typeck.c (c_safe_arg_type_equiv_p,
101         c_safe_function_type_cast_p): New function.
102         (build_c_cast): Implement -Wcast-function-type.
104 2017-12-14  Richard Biener  <rguenther@suse.de>
106         PR c/83415
107         * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR
108         like REALPART_EXPR for the behavior of whether its operand
109         is an lvalue.
111 2017-12-12  Marek Polacek  <polacek@redhat.com>
113         PR c/82679
114         * c-decl.c (grokdeclarator): Check declspecs insted of atomicp.
116 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
118         * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true.
119         * c-parser.c (add_debug_begin_stmt): New.
120         (c_parser_declaration_or_fndef): Call it.
121         (c_parser_compound_statement_nostart): Likewise.
122         (c_parser_statement_after_labels): Likewise.
123         * c-typeck (c_finish_stmt_expr): Skip begin stmts markers.
125 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
127         * c-decl.c (build_compound_literal): Add parameter alignas_align
128         and set alignment of decl if nonzero.
129         * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS.
130         (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a
131         qualifier.
132         (c_parser_struct_declaration): Update syntax comment.
133         (c_parser_type_name): Add alignas_ok argument and pass it to
134         c_parser_declspecs.
135         (c_parser_cast_expression): Pass true to c_parser_type_name and
136         give error if a cast used an _Alignas specifier.
137         (c_parser_sizeof_expression): Pass true to c_parser_type_name and
138         give error if sizeof (type-name) used an _Alignas specifier.
139         (c_parser_alignof_expression): Pass true to c_parser_type_name and
140         give error if _Alignof (type-name) used an _Alignas specifier.
141         (c_parser_postfix_expression_after_paren_type): Check specified
142         alignment for a compound literal and pass it to
143         build_compound_literal.
144         * c-parser.h (c_parser_type_name): Update prototype.
145         * c-tree.h (build_compound_literal): Update prototype.
147 2017-12-07  Martin Sebor  <msebor@redhat.com>
149         PR c/81544
150         * c-decl.c (c_decl_attributes): Look up existing declaration and
151         pass it to decl_attributes.
153 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
155         PR c/83236
156         * c-decl.c (lookup_name_fuzzy): Don't suggest names that are
157         reserved for use by the implementation.
159 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
161         * c-decl.c: Include "c-family/c-spellcheck.h".
163 2017-12-05  Martin Liska  <mliska@suse.cz>
164             Jakub Jelinek  <jakub@redhat.com>
166         * c-typeck.c (pointer_diff): Add new argument and instrument
167         pointer subtraction.
168         (build_binary_op): Similar for pointer comparison.
170 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
172         PR c/79153
173         * c-parser.c: Include tree-iterator.h.
174         (c_parser_switch_statement): Emit LABEL_EXPR for the break label
175         into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P
176         on it.
178         PR c/83222
179         * c-tree.h (decl_constant_value_1): Declare.
180         * c-typeck.c (decl_constant_value_1): New function.
181         (decl_constant_value): Use it.
182         * c-fold.c (c_fully_fold_internal): If in_init, use
183         decl_constant_value_1 instead of decl_constant_value.
185 2017-11-30  Jakub Jelinek  <jakub@redhat.com>
187         * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;.
189 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
191         PR sanitizer/81275
192         * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if
193         c_switch_covers_all_cases_p returns true.
195 2017-11-28  Julia Koval  <julia.koval@intel.com>
196             Sebastian Peryt  <sebastian.peryt@intel.com>
198         * Make-lang.in (c/c-array-notation.o): Remove.
199         * c-array-notation.c: Delete.
200         * c-decl.c: Remove cilkplus condition.
201         * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for,
202         c_parser_cilk_verify_simd, c_parser_array_notation,
203         c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize,
204         c_parser_cilk_simd_fn_vector_attrs,
205         c_finish_cilk_simd_fn_tokens): Delete.
206         (c_parser_declaration_or_fndef): Remove cilkplus condition.
207         (c_parser_direct_declarator_inner): Ditto.
208         (CILK_SIMD_FN_CLAUSE_MASK): Delete.
209         (c_parser_attributes, c_parser_compound_statement,
210         c_parser_statement_after_labels, c_parser_if_statement,
211         c_parser_switch_statement, c_parser_while_statement,
212         c_parser_do_statement, c_parser_for_statement,
213         c_parser_unary_expression, c_parser_postfix_expression,
214         c_parser_postfix_expression_after_primary,
215         c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses,
216         c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus
217         support.
218         * c-typeck.c (build_array_ref, build_function_call_vec,
219         convert_arguments,
220         lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt,
221         c_finish_loop, build_binary_op): Remove cilkplus support.
223 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
225         * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead
226         of build3.
228 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
230         * Make-lang.in (c.install-plugin): Install backend import library.
232 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
234         * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in
235         pragma_stmt context.
237 2017-11-23  Mike Stump  <mikestump@comcast.net>
238             Eric Botcazou  <ebotcazou@adacore.com>
240         * c-parser.c (c_parser_while_statement): Pass 3rd operand to
241         ANNOTATE_EXPR.
242         (c_parser_do_statement): Likewise.
243         (c_parser_for_statement): Likewise.
245 2017-11-22  David Malcolm  <dmalcolm@redhat.com>
247         PR c++/62170
248         * c-objc-common.c (c_tree_printer): Convert penultimate param from
249         bool to bool *.  Within '%T' handling, if showing an "aka", use
250         "quoted" param to add appropriate quoting.
252 2017-11-22  Marek Polacek  <polacek@redhat.com>
254         PR c++/60336
255         PR middle-end/67239
256         PR target/68355
257         * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields.
259 2017-11-21  David Malcolm  <dmalcolm@redhat.com>
261         PR c/83056
262         * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from
263         earlier failed lookups.
265 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
267         * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR.
268         * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR.
270 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
272         PR c/81404
273         * c-decl.c: Include "c-family/known-headers.h".
274         (get_c_name_hint): Rename to get_stdlib_header_for_name and move
275         to known-headers.cc.
276         (class suggest_missing_header): Move to known-header.h.
277         (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather
278         than get_c_name_hint.
280 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
282         * c-decl.c (get_c_name_hint): New function.
283         (class suggest_missing_header): New class.
284         (lookup_name_fuzzy): Call get_c_name_hint and use it to
285         suggest missing headers to the user.
287 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
289         * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h.
290         Include "c-family/name-hint.h"
291         (implicit_decl_warning): Convert "hint" from
292         const char * to name_hint.  Pass location to
293         lookup_name_fuzzy.  Suppress any deferred diagnostic if the
294         warning was not printed.
295         (undeclared_variable): Likewise for "guessed_id".
296         (lookup_name_fuzzy): Convert return type from const char *
297         to name_hint.  Add location_t param.
298         * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h.
299         Include "c-family/name-hint.h"
300         (c_parser_declaration_or_fndef): Convert "hint" from
301         const char * to name_hint.  Pass location to lookup_name_fuzzy.
302         (c_parser_parameter_declaration): Likewise.
304 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
306         PR c/66618
307         PR c/69960
308         * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold
309         where needed.
310         * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr,
311         handle_omp_array_sections): Likewise.
312         (digest_init): Don't call decl_constant_value_for_optimization.
313         * c-tree.h (decl_constant_value_for_optimization): Removed.
314         * c-fold.c (c_fold_array_ref): New function.
315         (c_fully_fold_internal): Add LVAL argument, propagate it through
316         recursive calls.  For VAR_P call decl_constant_value and
317         unshare if not LVAL and either optimizing or IN_INIT.  Remove
318         decl_constant_value_for_optimization calls.  If IN_INIT and not LVAL,
319         fold ARRAY_REF with STRING_CST and INTEGER_CST operands.
320         (c_fully_fold): Add LVAL argument, pass it through to
321         c_fully_fold_internal.
322         (decl_constant_value_for_optimization): Removed.
324 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
326         PR c/81156
327         * c-parser.c (check_tgmath_function): New function.
328         (enum tgmath_parm_kind): New enum.
329         (c_parser_postfix_expression): Handle __builtin_tgmath.
331 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
333         * c-decl.c (implicit_decl_warning): Update for renaming of
334         pedwarn_at_rich_loc and warning_at_rich_loc.
335         (implicitly_declare): Likewise for renaming of inform_at_rich_loc.
336         (undeclared_variable): Likewise for renaming of error_at_rich_loc.
337         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
338         (c_parser_struct_or_union_specifier): Likewise for renaming of
339         pedwarn_at_rich_loc.
340         (c_parser_parameter_declaration): Likewise for renaming of
341         error_at_rich_loc.
342         * c-typeck.c (build_component_ref): Likewise.
343         (build_unary_op): Likewise for renaming of inform_at_rich_loc.
344         (pop_init_level): Likewise for renaming of warning_at_rich_loc.
345         (set_init_label): Likewise for renaming of error_at_rich_loc.
347 2017-10-30  Richard Biener  <rguenther@suse.de>
349         * gimple-parser.c (c_parser_gimple_statement): Parse conditional
350         stmts.
352 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
354         * c-decl.c (header_for_builtin_fn): Add support for copysign, fma,
355         fmax, fmin, and sqrt _Float<N> and _Float<N>X variants.
357 2017-10-25  David Malcolm  <dmalcolm@redhat.com>
359         PR c/7356
360         * c-parser.c (c_parser_declaration_or_fndef): Detect missing
361         semicolons.
363 2017-10-25  Jakub Jelinek  <jakub@redhat.com>
365         PR libstdc++/81706
366         * c-decl.c (merge_decls): Copy "omp declare simd" attributes from
367         newdecl to corresponding __builtin_ if any.
369 2017-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
371         PR c++/82466
372         * c-decl.c (diagnose_mismatched_decls): Use
373         OPT_Wbuiltin_declaration_mismatch.
375 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
377         * c-parser.c (c_parser_require): Add "type_is_unique" param and
378         use it to guard calls to maybe_suggest_missing_token_insertion.
379         (c_parser_parms_list_declarator): Override default value of new
380         "type_is_unique" param to c_parser_require.
381         (c_parser_asm_statement): Likewise.
382         * c-parser.h (c_parser_require): Add "type_is_unique" param,
383         defaulting to true.
385 2017-10-11  Nathan Sidwell  <nathan@acm.org>
387         * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too.
389 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
391         * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when
392         operating on trees as wide_ints.
393         * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise.
394         (c_tree_equal): Likewise.
396 2017-10-04  David Malcolm  <dmalcolm@redhat.com>
398         * c-decl.c (push_parm_decl): Store c_parm's location into the
399         PARAM_DECL.
400         (build_c_parm): Add "loc" param and store it within the c_parm.
401         * c-parser.c (struct c_parser): Add "last_token_location" field.
402         (c_parser_consume_token): Store location of the token into the
403         new field.
404         (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS
405         when handling a FUNCTION_DECL, if it doesn't already have them.
406         (c_parser_parameter_declaration): Generate a location for the
407         parameter, and pass it to the call to build_c_parm.
408         * c-tree.h (struct c_parm): Add field "loc".
409         (build_c_parm): Add location_t param.
410         * c-typeck.c (get_fndecl_argument_location): New function.
411         (inform_for_arg): New function.
412         (convert_for_assignment): Use inform_for_arg when dealing with
413         ic_argpass.
415 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
417         * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if
418         width is non-NULL.
419         (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL,
420         don't SET_DECL_C_BIT_FIELD here.
422         PR c/82340
423         * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
424         instead of trying to set just TREE_READONLY manually.
426 2017-09-16  Tom de Vries  <tom@codesourcery.com>
428         PR c/81875
429         * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
430         cond itself.
432 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
434         PR c/82071
435         * c-typeck.c (ep_convert_and_check): Just call convert_and_check
436         for C11.
437         (build_conditional_expr): For C11, generate result with excess
438         precision when one argument is an integer and the other is of a
439         type using excess precision.
441 2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
443         * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.
445 2017-09-13  Marek Polacek  <polacek@redhat.com>
447         PR c/82167
448         * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
449         than expr.original_type.
451 2017-09-12  Nathan Sidwell  <nathan@acm.org>
453         * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
454         resort_sorted_fields): Moved from c-family/c-common.c.
455         * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h.
457 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
459         PR c/82071
460         * c-typeck.c (build_atomic_assign): Handle argument with excess
461         precision.  Ensure any EXCESS_PRECISION_EXPR is present in
462         argument passed to build_binary_op and convert_for_assignment but
463         not for call to c_fully_fold.
464         (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early.
465         Ensure build_binary_op is called with argument with original
466         semantic type.  Avoid calling c_fully_fold with an
467         EXCESS_PRECISION_EXPR from build_binary_op.
469 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
471         PR c/81887
472         * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
474 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
475             Alan Hayward  <alan.hayward@arm.com>
476             David Sherwood  <david.sherwood@arm.com>
478         * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE.
479         (c_common_type): Likewise.  Use as_a <scalar_mode> when setting
480         m1 and m2 to the signed equivalent of a fixed-point
481         SCALAR_TYPE_MODE.
483 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
485         * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather
486         than CAN_HAVE_LOCATION_P when determining whether to use the
487         location_t value within "value".
489 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
491         * c-parser.c (c_parser_expr_list): Use c_expr::get_location ()
492         rather than peeking the location of the first token.
493         * c-tree.h (c_expr::get_location): New method.
495 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
497         * c-typeck.c (build_function_call_vec): Pass arg_loc to call
498         to check_function_arguments.
500 2017-08-18  Marek Polacek  <polacek@redhat.com>
502         * c-parser.c (c_parser_postfix_expression): Remove unused code.  Update
503         commentary.
505 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
507         PR c/53037
508         * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
509         (check_bitfield_type_and_width): Don't allow bit-field with
510         warn_if_not_aligned type.
512 2017-08-14  Martin Sebor  <msebor@redhat.com>
514         PR c/81117
515         * c-objc-common.c (c_objc_common_init): Handle 'G'.
517 2017-08-11  Marek Polacek  <polacek@redhat.com>
519         PR c/81795
520         * c-decl.c (pushtag): Only print inform if the warning was printed.
521         (grokdeclarator): Likewise.
523 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
525         * c-parser.c (c_parser_error): Rename to...
526         (c_parser_error_richloc): ...this, making static, and adding
527         "richloc" parameter, passing it to the c_parse_error call,
528         rather than calling c_parser_set_source_position_from_token.
529         (c_parser_error): Reintroduce, reimplementing in terms of the
530         above, converting return type from void to bool.
531         (class token_pair): New class.
532         (struct matching_paren_traits): New struct.
533         (matching_parens): New typedef.
534         (struct matching_brace_traits): New struct.
535         (matching_braces): New typedef.
536         (get_matching_symbol): New function.
537         (c_parser_require): Add param MATCHING_LOCATION, using it to
538         highlight matching "opening" tokens for missing "closing" tokens.
539         (c_parser_skip_until_found): Likewise.
540         (c_parser_static_assert_declaration_no_semi): Convert explicit
541         parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
542         class matching_parens, so that the pertinent open parenthesis is
543         highlighted when there are problems locating the close
544         parenthesis.
545         (c_parser_struct_or_union_specifier): Likewise.
546         (c_parser_typeof_specifier): Likewise.
547         (c_parser_alignas_specifier): Likewise.
548         (c_parser_simple_asm_expr): Likewise.
549         (c_parser_braced_init): Likewise, for matching_braces.
550         (c_parser_paren_condition): Likewise, for matching_parens.
551         (c_parser_switch_statement): Likewise.
552         (c_parser_for_statement): Likewise.
553         (c_parser_asm_statement): Likewise.
554         (c_parser_asm_operands): Likewise.
555         (c_parser_cast_expression): Likewise.
556         (c_parser_sizeof_expression): Likewise.
557         (c_parser_alignof_expression): Likewise.
558         (c_parser_generic_selection): Likewise.
559         (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
560         RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
561         RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
562         In case CPP_OPEN_PAREN, pass loc_open_paren to the
563         c_parser_skip_until_found call.
564         (c_parser_objc_class_definition): Use class matching_parens as
565         above.
566         (c_parser_objc_method_decl): Likewise.
567         (c_parser_objc_try_catch_finally_statement): Likewise.
568         (c_parser_objc_synchronized_statement): Likewise.
569         (c_parser_objc_at_property_declaration): Likewise.
570         (c_parser_oacc_wait_list): Likewise.
571         (c_parser_omp_var_list_parens): Likewise.
572         (c_parser_omp_clause_collapse): Likewise.
573         (c_parser_omp_clause_default): Likewise.
574         (c_parser_omp_clause_if): Likewise.
575         (c_parser_omp_clause_num_threads): Likewise.
576         (c_parser_omp_clause_num_tasks): Likewise.
577         (c_parser_omp_clause_grainsize): Likewise.
578         (c_parser_omp_clause_priority): Likewise.
579         (c_parser_omp_clause_hint): Likewise.
580         (c_parser_omp_clause_defaultmap): Likewise.
581         (c_parser_oacc_single_int_clause): Likewise.
582         (c_parser_omp_clause_ordered): Likewise.
583         (c_parser_omp_clause_reduction): Likewise.
584         (c_parser_omp_clause_schedule): Likewise.
585         (c_parser_omp_clause_num_teams): Likewise.
586         (c_parser_omp_clause_thread_limit): Likewise.
587         (c_parser_omp_clause_aligned): Likewise.
588         (c_parser_omp_clause_linear): Likewise.
589         (c_parser_omp_clause_safelen): Likewise.
590         (c_parser_omp_clause_simdlen): Likewise.
591         (c_parser_omp_clause_depend): Likewise.
592         (c_parser_omp_clause_map): Likewise.
593         (c_parser_omp_clause_device): Likewise.
594         (c_parser_omp_clause_dist_schedule): Likewise.
595         (c_parser_omp_clause_proc_bind): Likewise.
596         (c_parser_omp_clause_uniform): Likewise.
597         (c_parser_omp_for_loop): Likewise.
598         (c_parser_cilk_clause_vectorlength): Likewise.
599         (c_parser_cilk_clause_linear): Likewise.
600         (c_parser_transaction_expression): Likewise.
601         * c-parser.h (c_parser_require): Add param matching_location with
602         default UNKNOWN_LOCATION.
603         (c_parser_error): Convert return type from void to bool.
604         (c_parser_skip_until_found): Add param matching_location with
605         default UNKNOWN_LOCATION.
607 2017-08-09  Marek Polacek  <polacek@redhat.com>
609         * c-decl.c (build_enumerator): Use true/false instead of 1/0.
610         * c-tree.h (build_external_ref): Update declaration.
611         * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
612         (build_external_ref): Change the type of a parameter to bool.
613         (parser_build_binary_op): Use true/false instead of 1/0.
614         (pointer_diff): Likewise.
615         (build_modify_expr): Likewise.
616         (set_designator): Change the type of a parameter to bool.
617         (set_init_index): Use true/false instead of 1/0.
618         (set_init_label): Likewise.
619         (output_init_element): Change the type of a parameter to bool.
620         (output_pending_init_elements): Use true/false instead of 1/0.
621         (process_init_element): Likewise.
622         (build_binary_op): Change the type of a parameter to bool.
624 2017-08-09  Marek Polacek  <polacek@redhat.com>
626         PR c/81233
627         * c-typeck.c (pedwarn_init): Make the function take a variable list.
628         Call emit_diagnostic_valist instead of pedwarn.
629         (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
630         Print the relevant types in diagnostics.
632 2017-08-09  Marek Polacek  <polacek@redhat.com>
634         PR c/81417
635         * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
636         build_conditional_expr. 
637         * c-parser.c (c_parser_conditional_expression): Create locations for
638         EXP1 and EXP2 from their source ranges.  Pass the locations down to
639         build_conditional_expr.
640         * c-tree.h (build_conditional_expr): Update declaration.
641         * c-typeck.c (build_conditional_expr): Add location_t parameters.
642         For -Wsign-compare, also print the types.
644 2017-08-08  Martin Liska  <mliska@suse.cz>
646         * c-convert.c: Include header files.
647         * c-typeck.c: Likewise.
649 2017-08-07  Martin Liska  <mliska@suse.cz>
651         * c-parser.c (c_parser_attributes): Canonicalize name of an
652         attribute.
654 2017-08-02  Marek Polacek  <polacek@redhat.com>
656         PR c/81289
657         * c-parser.c (c_parser_unary_expression): Use set_error.
659         PR c/81448
660         PR c/81306
661         * c-warn.c (warn_for_multistatement_macros): Prevent bogus
662         warnings.  Avoid walking MACRO_MAP_LOCATIONS.
664 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
665             Martin Liska  <mliska@suse.cz>
667         * c-typeck.c (c_finish_goto_label): Build gimple predict
668         statement.
670 2017-07-31  Martin Liska  <mliska@suse.cz>
672         PR sanitize/81530
673         * c-convert.c (convert): Guard condition with flag_sanitize_p
674         also with current_function_decl non-null equality.
675         * c-decl.c (grokdeclarator): Likewise.
676         * c-typeck.c (build_binary_op): Likewise.
678 2017-07-25  Marek Polacek  <polacek@redhat.com>
680         * c-decl.c (grokfield): Remove local variable.
682 2017-07-25  Marek Polacek  <polacek@redhat.com>
684         PR c/81364
685         * c-parser.c (c_parser_else_body): Don't warn about multistatement
686         macro expansion if the body is in { }.
687         (c_parser_while_statement): Likewise.
688         (c_parser_for_statement): Likewise.
690 2017-07-18  Nathan Sidwell  <nathan@acm.org>
692         * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
694 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
696         * c-decl.c (implicitly_declare): When suggesting a missing
697         #include, provide a fix-it hint.
699 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
701         * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
702         and call that instead.
703         * c-tree.h (selftest::run_c_tests): New decl.
705 2017-06-26  Marek Polacek  <polacek@redhat.com>
707         PR c/80116
708         * c-parser.c (c_parser_if_body): Set the location of the
709         body of the conditional after parsing all the labels.  Call
710         warn_for_multistatement_macros.
711         (c_parser_else_body): Likewise.
712         (c_parser_switch_statement): Likewise.
713         (c_parser_while_statement): Likewise.
714         (c_parser_for_statement): Likewise.
715         (c_parser_statement): Add a default argument.  Save the location
716         after labels have been parsed.
717         (c_parser_c99_block_statement): Likewise.
719 2017-06-19  Richard Biener  <rguenther@suse.de>
721         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
722         negated _Literals to parse _Literal (int) -1.
724 2017-06-13  Martin Liska  <mliska@suse.cz>
726         PR sanitize/78204
727         * c-convert.c (convert): Use sanitize_flags_p.
728         * c-decl.c (grokdeclarator): Likewise.
729         * c-typeck.c (convert_for_assignment): Likewise.
730         (c_finish_return): Likewise.
731         (build_binary_op): Likewise.
733 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
735         PR c/81006
736         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
737         to sizetype before size_binop.
739 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
741         * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
742         of TDI_generic.
744 2017-06-06  Marek Polacek  <polacek@redhat.com>
746         PR c/79983
747         * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
748         ref.
749         (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
751 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
753         * c-parser.c (c_parser_binary_expression): Implement the
754         -Wsizeof_pointer_div warning.
755         (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
756         from a parenthesized expression.
757         (c_parser_expr_list): Use c_last_sizeof_loc.
758         * c-tree.h (c_last_sizeof_loc): New external.
759         * c-typeck.c (c_last_sizeof_loc): New variable.
760         (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
762 2017-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
764         PR testsuite/80580
765         * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
767 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
769         * c-objc-common.c (c_tree_printer): Gain bool and const char **
770         parameters.
772 2017-05-24  Martin Sebor  <msebor@redhat.com>
774         PR c/80731
775         * c-fold.c (c_fully_fold_internal): Adjust.
776         * c-typeck.c (parser_build_unary_op): Adjust.
778 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
780         * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
781         "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
782         "VECTOR_LENGTH".
784 2017-05-23  Marek Polacek  <polacek@redhat.com>
786         * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
787         quotes.
789 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
791         * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
792         result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
793         it returned invariant.  Call tree_invariant_p unconditionally
794         afterwards to decide whether to return expr or op0.
796 2017-05-22  Nathan Sidwell  <nathan@acm.org>
798         * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
800 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
802         * c-parser.c (c_parser_omp_clause_default): Handle
803         "OMP_CLAUSE_DEFAULT_PRESENT".
805 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
807         * config-lang.in (gtfiles): Add c-family/c-format.c.
809 2017-05-18  Nathan Sidwell  <nathan@acm.org>
811         * c-decl.c (pushdecl_top_level): Delete unused function.
813 2017-05-18  Marek Polacek  <polacek@redhat.com>
815         * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
816         (check_earlier_gotos): Likewise.
817         (define_label): Likewise.
818         (pending_xref_error): Likewise.
819         (smallest_type_quals_location): Likewise.
820         (grokdeclarator): Likewise.
821         (grokparms): Likewise.
822         (identifier_global_value): Likewise.
823         * c-typeck.c (set_nonincremental_init_from_string): Likewise.
824         (find_init_member): Likewise.
826 2017-05-18  Marek Polacek  <polacek@redhat.com>
828         * c-decl.c (start_decl): Use false/true instead of 0/1.
829         (grokdeclarator): Likewise.
830         (finish_struct): Likewise.
831         (start_function): Change the return type to bool.  Use false/true
832         instead of 0/1.
833         (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
834         * c-tree.h (start_function): Update.
835         * c-typeck.c (same_translation_unit_p): Change the return type to bool.
836         (set_designator): Change the return type to bool.  Use false/true
837         instead of 0/1.
839 2017-05-17  Marek Polacek  <polacek@redhat.com>
841         * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
842         * c-typeck.c: Likewise.
844 2017-05-17  Marek Polacek  <polacek@redhat.com>
846         PR sanitizer/80659
847         * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
848         DECL_IGNORED_P even for non-static compound literals.
850 2017-05-17  Martin Liska  <mliska@suse.cz>
852         * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
853         use it instead of int type.
855 2017-05-17  Marek Polacek  <polacek@redhat.com>
857         * c-convert.c (convert): Replace c_save_expr with save_expr.  Don't
858         call c_fully_fold.
859         (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
860         * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. 
861         * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
862         * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
863         save_expr.
864         (c_parser_conditional_expression): Likewise.
865         * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
866         * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
867         (process_init_element): Likewise.
868         (build_binary_op): Likewise.
869         (handle_omp_array_sections_1): Likewise.
871 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
873         * c-parser.c (c_parser_omp_clause_num_gangs)
874         (c_parser_omp_clause_num_workers)
875         (c_parser_omp_clause_vector_length): Merge functions into...
876         (c_parser_oacc_single_int_clause): ... this new function.  Adjust
877         all users.
879 2017-05-11  Nathan Sidwell  <nathan@acm.org>
881         * gimple-parser.c: Don't #include tree-dump.h.
883 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
885         PR testsuite/80580
886         * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
888 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
890         PR testsuite/80580
891         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
892         incorrect __MEM syntax.
894 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
896         PR testsuite/80580
897         * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
898         type of unary '*'.
900 2017-05-09  Nathan Sidwell  <nathan@acm.org>
902         * c-tree.h (pushdecl): Declare.
904 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
906         * c-decl.c (warn_defaults_to): Replace report_diagnostic
907         with diagnostic_report_diagnostic.
908         * c-errors.c (pedwarn_c99): Likewise.
909         (pedwarn_c90): Likewise.
911 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
913         PR c++/80038
914         * c-gimplify.c (c_gimplify_expr): Remove calls to
915         cilk_gimplifY_call_params_in_spawned_fn.
917 2017-04-25  David Malcolm  <dmalcolm@redhat.com>
919         * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
920         hint for removing extra semicolon.
922 2017-04-21  Jakub Jelinek  <jakub@redhat.com>
924         PR c/80468
925         * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
926         enabled, set specs->type to integer_type_node.
928 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
930         * c-array-notation.c: Fix typo in comment.
932 2017-03-29  Marek Polacek  <polacek@redhat.com>
934         PR c/79730
935         * c-decl.c (finish_decl): Check VAR_P.
937 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
939         PR middle-end/80162
940         * c-tree.h (c_mark_addressable): Add array_ref_p argument.
941         * c-typeck.c (c_mark_addressable): Likewise.  Look through
942         VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
943         to ARRAY_TYPE.
944         (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
946 2017-03-23  Marek Polacek  <polacek@redhat.com>
948         * c-tree.h: Remove a C_RID_YYCODE reference.
950 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
952         PR c/80097
953         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
954         optional COMPOUND_EXPR with ubsan instrumentation.
956 2017-03-17  Marek Polacek  <polacek@redhat.com>
958         * c-parser.c: Add C11 references.
960 2017-03-15  Marek Polacek  <polacek@redhat.com>
962         * c-parser.c (c_parser_enum_specifier): Remove redundant line.
964 2017-03-11  Marek Polacek  <polacek@redhat.com>
966         * c-decl.c (implicit_decl_warning): Add a comment.  Fix formatting.
968 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
970         PR translation/79848
971         * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
972         "%qs".
973         * c-parser.c (c_parser_oacc_shape_clause): Likewise.
975 2017-03-09  Marek Polacek  <polacek@redhat.com>
977         PR sanitizer/79757
978         * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
979         parameter declarations with initializers.
981 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
983         PR c/79969
984         * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
985         TYPE_STUB_DECL.
987 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
989         PR c/79834
990         * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
991         for "may only be used in compound statements" diagnostics, change it
992         such that the same translatable string is used for all pragmas.  For
993         PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
994         diagnostics.
995         (c_parser_omp_cancellation_point, c_parser_omp_target_update,
996         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
997         "may only be used in compound statements" diagnostics, such that the
998         same translatable string is used for all pragmas.
1000 2017-03-04  Marek Polacek  <polacek@redhat.com>
1002         PR c/79847
1003         * c-decl.c (implicit_decl_warning): Add missing space.
1005 2017-03-03  Marek Polacek  <polacek@redhat.com>
1007         PR c/79758
1008         * c-decl.c (store_parm_decls_oldstyle): Check if the element of
1009         current_function_prototype_arg_types is error_mark_node.  Fix
1010         formatting.  Use TREE_VALUE instead of TREE_TYPE.
1012 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
1014         PR c/79837
1015         * c-parser.c (c_parser_omp_clause_reduction): Don't mention
1016         %<min%> or %<max%> in the diagnostics, instead mention identifier.
1017         (c_parser_omp_declare_reduction): Don't mention %<min%> in the
1018         diagnostics.
1020         PR c/79836
1021         * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
1022         instead of %<_Generic>.
1023         (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
1024         (c_parser_omp_target_exit_data): Use %<release%> instead of
1025         %<release>.
1027 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1029         * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
1030         instead of just cond ? "..." : "...".
1031         (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
1032         for "enter"/"exit" keyword.
1033         (c_finish_oacc_routine): Don't use %s to supply portions of the
1034         message.
1036 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1038         PR c++/79588
1039         * c-parser.c (c_parser_postfix_expression_after_primary): Don't
1040         handle -Wrestrict here.
1041         * c-typeck.c (build_function_call_vec): Adjust
1042         check_function_arguments caller.
1044 2017-02-23  Richard Biener  <rguenther@suse.de>
1046         PR c/79684
1047         * gimple-parser.c (c_parser_gimple_statement): Use set_error
1048         to initialize c_exprs to return.
1049         (c_parser_gimple_binary_expression): Likewise.
1050         (c_parser_gimple_unary_expression): Likewise.
1051         (c_parser_gimple_postfix_expression): Likewise.
1053 2017-02-22  Marek Polacek  <polacek@redhat.com>
1055         PR c/79662
1056         * c-typeck.c (convert_arguments): Handle error_mark_node.
1058 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1060         * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
1061         value of c_parser_parse_ssa_name against error_mark_node and emit
1062         error if ssa name is anonymous and written as default definition.
1064 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1066         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
1067         FMA_EXPR.
1069 2017-02-16  Jakub Jelinek  <jakub@redhat.com>
1071         PR c++/79512
1072         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
1073         ignore #pragma omp target even when not followed by identifier.
1075 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1077         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
1078         (c_parser_gimple_unary_expression): Likewise.
1080 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1082         * c-parser.c (c_parser_oacc_declare): Add missing space in
1083         diagnostics.
1085 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1087         PR c/79478
1088         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
1089         set_c_expr_source_range when parsing ssa-name.
1091 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
1092         Richard Biener  <rguenther@suse.de>
1094         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
1095         building IL when arguments are error_mark_node.
1096         (c_parser_gimple_unary_expression): Likewise.
1097         (c_parser_gimple_if_stmt): Likewise.
1098         (c_parser_gimple_switch_stmt): Likewise.
1099         (c_parser_gimple_return_stmt): Likewise.
1100         (c_parser_parse_ssa_name): When name lookup fails do not build
1101         an SSA name.  Use undeclared rather than not declared in error
1102         reporting.
1104 2017-02-09  Marek Polacek  <polacek@redhat.com>
1106         PR c/79428
1107         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
1108         instead of c_parser_skip_until_found.
1110 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
1112         PR c/79431
1113         * c-parser.c (c_parser_omp_declare_target): Don't invoke
1114         symtab_node::get on automatic variables.
1116 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1117             Chung-Lin Tang  <cltang@codesourcery.com>
1119         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
1120         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
1121         semantic checking.
1122         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
1124 2017-02-07  Richard Biener  <rguenther@suse.de>
1126         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
1127         (c_parser_gimple_postfix_expression_after_primary):
1128         Do not use c_build_function_call_vec to avoid folding and promotion.
1129         Simplify.
1131 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
1133         PR lto/79061
1134         * c-decl.c (pop_scope): Pass main_input_filename to
1135         build_translation_unit_decl.
1137 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
1139         * c-parser.c: Include "read-rtl-function.h" and
1140         "run-rtl-passes.h".
1141         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
1142         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
1143         production.  Update for renaming of field "gimple_pass" to
1144         "gimple_or_rtl_pass".  If __RTL was seen, call
1145         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
1146         to an auto_timevar, to cope with early exit.
1147         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
1148         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
1149         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
1150         Handle RID_RTL.
1151         (c_parser_parse_rtl_body): New function.
1152         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
1153         (struct c_declspecs): Rename field "gimple_pass" to
1154         "gimple_or_rtl_pass".  Add field "rtl_p".
1155         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
1156         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
1157         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
1158         (c_parser_gimple_or_rtl_pass_list): ...this.
1160 2017-01-20  Marek Polacek  <polacek@redhat.com>
1162         PR c/64279
1163         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
1165 2017-01-13  Richard Biener  <rguenther@suse.de>
1167         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
1168         nops.
1170 2017-01-13  Richard Biener  <rguenther@suse.de>
1172         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
1173         _Literal ( type-name ) number.
1175 2017-01-12  Richard Biener  <rguenther@suse.de>
1177         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
1178         __MEM.
1180 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
1182         PR c++/72813
1183         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
1184         PCH file.
1186 2017-01-11  Richard Biener  <rguenther@suse.de>
1188         PR bootstrap/79052
1189         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
1190         returns on parse errors.
1192 2017-01-04  Marek Polacek  <polacek@redhat.com>
1194         PR c++/64767
1195         * c-parser.c (c_parser_postfix_expression): Mark zero character
1196         constants by setting original_type in c_expr.
1197         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
1198         with a zero character constant.
1199         (char_type_p): New function.
1201 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
1203         * c-parser.c (c_parser_declaration_or_fndef): Create a
1204         rich_location at init_loc and parse it to start_init.
1205         (last_init_list_comma): New global.
1206         (c_parser_braced_init): Update last_init_list_comma when parsing
1207         commas.  Pass it to pop_init_level.  Pass location of closing
1208         brace to pop_init_level.
1209         (c_parser_postfix_expression_after_paren_type): Create a
1210         rich_location at type_loc and parse it to start_init.
1211         (c_parser_omp_declare_reduction): Likewise for loc.
1212         * c-tree.h (start_init): Add rich_location * param.
1213         (pop_init_level): Add location_t param.
1214         * c-typeck.c (struct initializer_stack): Add field
1215         "missing_brace_richloc".
1216         (start_init): Add richloc param, use it to initialize
1217         the stack node's missing_brace_richloc.
1218         (last_init_list_comma): New decl.
1219         (finish_implicit_inits): Pass last_init_list_comma to
1220         pop_init_level.
1221         (push_init_level): When finding missing open braces, add fix-it
1222         hints to the richloc.
1223         (pop_init_level): Add "insert_before" param and pass it
1224         when calling pop_init_level.  Add fixits about missing
1225         close braces to any richloc.  Use the richloc for the
1226         -Wmissing-braces warning.
1227         (set_designator): Pass last_init_list_comma to pop_init_level.
1228         (process_init_element): Likewise.
1230 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1232         Update copyright years.
1234 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
1236         PR bootstrap/78817
1237         * c-typeck.c (build_function_call_vec): If check_function_arguments
1238         returns true, set TREE_NO_WARNING on CALL_EXPR.
1240         PR c/77767
1241         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
1242         to *expr instead of overwriting it.
1244 2016-12-20  Richard Biener  <rguenther@suse.de>
1246         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
1247         error recovery.
1248         (c_parser_gimple_statement): Only build assigns for non-error
1249         stmts.
1250         (c_parser_gimple_postfix_expression_after): Improve error recovery.
1252 2016-12-14  Martin Jambor  <mjambor@suse.cz>
1254         * c-parser.c: Include omp-general.h and omp-offload.h instead of
1255         omp-low.h.
1256         (c_finish_oacc_routine): Adjusted call to
1257         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
1258         to use their new names.
1259         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
1260         use its new name.
1261         (c_parser_oacc_update): Likewise.
1262         (c_parser_omp_simd): Likewise.
1263         (c_parser_omp_target_update): Likewise.
1264         * c-typeck.c: Include omp-general.h instead of omp-low.h.
1265         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
1266         name.
1267         (c_finish_omp_cancellation_point): Likewise.
1268         * gimple-parser.c: Do not include omp-low.h
1270 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
1271             James Norris  <jnorris@codesourcery.com>
1273         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
1274         EXIT_DATA,WAIT} are not used in compound statements.
1275         (c_parser_oacc_enter_exit_data): Update diagnostics.
1277 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1279         PR c++/71973
1280         * c-decl.c (diagnose_mismatched_decls): Use
1281         OPT_Wbuiltin_declaration_mismatch here too.
1283 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1284             Alan Hayward  <alan.hayward@arm.com>
1285             David Sherwood  <david.sherwood@arm.com>
1287         * c-decl.c (merge_decls): Use SET_DECL_MODE.
1288         (make_label, finish_struct): Likewise.
1290 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1291             Richard Biener  <rguenther@suse.de>
1293         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
1294         * config-lang.in (gtfiles): Add c/c-parser.h.
1295         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
1296         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
1297         * c-parser.c (enum c_id_kind, struct c_token,
1298         c_parser_next_token_is, c_parser_next_token_is_not,
1299         c_parser_next_token_is_keyword,
1300         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
1301         Split out to ...
1302         * c-parser.h: ... new header.
1303         * c-parser.c: Include c-parser.h and gimple-parser.h.
1304         (c_parser_peek_token, c_parser_peek_2nd_token,
1305         c_token_starts_typename, c_parser_next_token_starts_declspecs,
1306         c_parser_next_tokens_start_declaration, c_parser_consume_token,
1307         c_parser_error, c_parser_require, c_parser_skip_until_found,
1308         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
1309         c_parser_type_name): Export.
1310         (c_parser_tokens_buf): New function.
1311         (c_parser_error): Likewise.
1312         (c_parser_set_error): Likewise.
1313         (c_parser_declspecs): Handle RID_GIMPLE.
1314         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
1315         via c_parser_parse_gimple_body.
1316         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
1317         c_token_starts_typename, c_parser_next_token_starts_declspecs,
1318         c_parser_next_tokens_start_declaration, c_parser_consume_token,
1319         c_parser_error, c_parser_require, c_parser_skip_until_found,
1320         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
1321         c_parser_type_name): Declare.
1322         (struct c_parser): Declare forward.
1323         (c_parser_tokens_buf): Declare.
1324         (c_parser_error): Likewise.
1325         (c_parser_set_error): Likewise.
1326         * gimple-parser.c: New file.
1327         * gimple-parser.h: Likewise.
1329 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1331         PR c/35503
1332         * c-parser.c (c_parser_postfix_expression_after_primary): Call
1333         warn_for_restrict.
1335 2016-09-11  Le-Chun Wu  <lcwu@google.com>
1336             Mark Wielaard  <mjw@redhat.com>
1338         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
1339         to the given -Wshadow= variant.
1341 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1343         * c-typeck.c: Include memmodel.h.
1345 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
1347         PR target/77957
1348         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
1349         instead of lhd_return_null_tree_v.
1351 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
1353         PR c++/69733
1354         * c-decl.c (smallest_type_quals_location): New static function.
1355         (grokdeclarator): Try to find the correct location for an ignored
1356         qualifier.
1358 2016-09-26  Marek Polacek  <polacek@redhat.com>
1360         PR c/7652
1361         * c-decl.c (pop_scope): Add gcc_fallthrough.
1363 2016-09-26  Marek Polacek  <polacek@redhat.com>
1365         PR c/7652
1366         * c-parser.c (struct c_token): Add flags field.
1367         (c_lex_one_token): Pass it to c_lex_with_flags.
1368         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
1369         into IFN_FALLTHROUGH.
1370         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
1371         attribute fallthrough after a case label or default label.
1372         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
1374 2016-09-24  Marek Polacek  <polacek@redhat.com>
1376         PR c/77490
1377         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
1378         have boolean value.  Warn about ++/-- on booleans.
1380 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1382         * c-parser.c (incomplete_record_decls): Remove unnecessary
1383         = vNULL initialization of file scope vec.
1385 2016-09-16  Marek Polacek  <polacek@redhat.com>
1387         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
1389 2016-09-14  Marek Polacek  <polacek@redhat.com>
1391         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
1392         (fix_array_notation_expr): Likewise.
1393         * c-decl.c (finish_decl): Likewise.
1394         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1395         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
1396         (function_to_pointer_conversion): Use false instead of 0.
1397         (convert_lvalue_to_rvalue): Likewise.
1398         (parser_build_unary_op): Likewise.
1399         (build_atomic_assign): Likewise.
1400         (build_unary_op): Change nonconvert parameter type to bool, use
1401         true/false instead of 1/0.
1402         (build_binary_op): Use true instead of 1.
1404 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
1406         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
1407         of add_fixit_insert to add_fixit_insert_before.
1409 2016-09-13  Marek Polacek  <polacek@redhat.com>
1411         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
1412         it.
1414 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1416         PR c++/77496
1417         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
1418         COMPOUND_EXPR to warn_for_omitted_condop.
1420 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
1422         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
1423         c_get_substring_location for this new langhook.
1425 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1427         PR c/65467
1428         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
1429         flag_openmp.
1430         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
1431         instead of mark_exp_read on low_bound/length expression.
1432         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
1433         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1434         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1435         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
1436         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
1437         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
1438         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
1439         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
1440         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
1441         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
1442         instead of mark_expr_read.
1443         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
1444         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
1445         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
1446         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
1447         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
1448         array section bases outside of depend clause, for depend clause
1449         use convert_lvalue_to_rvalue on the base.
1450         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
1451         linear, aligned, map, to and from clauses.
1452         (c_omp_clause_copy_ctor): New function.
1454 2016-09-01  Marek Polacek  <polacek@redhat.com>
1456         PR c/7652
1457         * c-typeck.c (composite_type): Add FALLTHRU comment.
1459 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
1461         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
1462         to the insertion fixits for "struct", "union", and "enum".
1464 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
1466         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
1467         rather than add_fixit_misspelled_id.
1468         (undeclared_variable): Likewise.
1469         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
1470         now-redundant "here" params from add_fixit_insert method calls.
1471         (c_parser_parameter_declaration): Likewise.
1472         * c-typeck.c (build_component_ref): Remove now-redundant range
1473         param from add_fixit_replace method calls.
1475 2016-08-25  Marek Polacek  <polacek@redhat.com>
1477         * c-typeck.c (parser_build_binary_op): Pass LHS to
1478         warn_logical_not_parentheses.
1480 2016-08-25  Marek Polacek  <polacek@redhat.com>
1482         PR c/77323
1483         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
1484         or _FloatN or _FloatNx is not supported.
1485         (finish_declspecs): Set type to integer_type_node when _FloatN or
1486         _FloatNx is not supported.
1488 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1490         PR c/32187
1491         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
1492         (struct c_declspecs): Add field floatn_nx_idx.
1493         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
1494         and _FloatNx type specifiers.
1495         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
1496         (c_parser_declspecs, c_parser_attribute_any_word)
1497         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
1498         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
1499         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
1500         narrower than double.
1502 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1503             Martin Liska  <mliska@suse.cz>
1505         PR c/67410
1506         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
1507         % to determine val element to change.  Assert that
1508         wchar_bytes * charwidth fits into val array.
1510 2016-08-12  Marek Polacek  <polacek@redhat.com>
1512         PR c/7652
1513         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
1514         (c_parser_postfix_expression): Likewise.
1515         * c-typeck.c (build_unary_op): Adjust fall through comment.
1516         (c_mark_addressable): Likewise.
1518 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
1520         PR c/72816
1521         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
1522         array member through typedef, for orig_qual_indirect == 0 clear
1523         orig_qual_type.
1525 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1527         PR c/64955
1528         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
1529         this up to selftest::run_c_tests.
1530         (selftest::run_c_tests): New function.
1532 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
1534         * c-parser.c (struct oacc_routine_data): Add error_seen and
1535         fndecl_seen members.
1536         (c_finish_oacc_routine): Use these.
1537         (c_parser_declaration_or_fndef): Adjust.
1538         (c_parser_oacc_routine): Likewise.  Support more C language
1539         constructs, and improve diagnostics.  Move pragma context
1540         checking...
1541         (c_parser_pragma): ... here.
1543         * c-parser.c (struct oacc_routine_data): New.
1544         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
1545         Simplify code.
1546         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
1547         declare target" attribute.
1549 2016-08-01  Jan Beulich  <jbeulich@suse.com>
1551         * c-fold.c (c_fully_fold_internal): Also emit shift count
1552         warnings for vector types.
1553         * c-typeck.c (build_binary_op): Likewise.
1555 2016-07-29  Marek Polacek  <polacek@redhat.com>
1557         PR c/71742
1558         * c-decl.c (finish_struct): Rephrase an error message.
1560         PR c/71853
1561         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
1562         to error node for invalid code.
1564         PR c/71573
1565         * c-decl.c (implicitly_declare): Return decl early not only for
1566         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
1568 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
1570         PR c/71969
1571         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
1572         on GNU extern inline functions.
1574 2016-07-29  Marek Polacek  <polacek@redhat.com>
1576         PR c/71583
1577         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
1578         check expr.value.
1580 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
1582         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1584 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1586         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
1587         spellcheck-tree.h
1588         (best_macro_match): Likewise, converting from a typedef to a
1589         subclass.
1590         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
1591         (lookup_name_fuzzy): Update for change of best_macro_match to a
1592         subclass with a ctor that calls cpp_forall_identifiers.
1594 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1596         * c-decl.c (implicit_decl_warning): Update for conversion of
1597         return type of lookup_name_fuzzy to const char *.
1598         (undeclared_variable): Likewise.
1599         (lookup_name_fuzzy): Convert return type from tree to
1600         const char *.
1601         * c-parser.c (c_parser_declaration_or_fndef): Update for
1602         conversion of return type of lookup_name_fuzzy to const char *.
1603         (c_parser_parameter_declaration): Likewise.
1605 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1607         * c-parser.c (c_parser_oacc_declare): Don't scan for
1608         GOMP_MAP_POINTER.
1609         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
1610         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1611         zero-length subarrays.
1613 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
1615         PR c/71858
1616         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
1617         instead of FUZZY_LOOKUP_NAME.
1618         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
1619         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
1621 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1623         PR c/71858
1624         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
1626 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1628         * c-parser.c (c_parser_generic_selection): Make type of variable
1629         auto_vec.
1630         (c_parser_omp_declare_simd): Likewise.
1632 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1634         * c-decl.c (struct c_struct_parse_info): Change member types
1635         from vec to auto_vec.
1636         (start_struct): Adjust.
1637         (finish_struct): Likewise.
1639 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
1641         PR c/71719
1642         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
1644 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
1646         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
1647         Move pragma context checking into...
1648         (c_parser_omp_cancellation_point): ... here, and improve
1649         diagnostic messages.
1650         * c-typeck.c (c_finish_omp_cancel)
1651         (c_finish_omp_cancellation_point): Improve diagnostic messages.
1653 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1655         PR c/71685
1656         * c-typeck.c (c_build_qualified_type): Don't clear
1657         C_TYPE_INCOMPLETE_VARS for the main variant.
1659 2016-06-28  Martin Sebor  <msebor@redhat.com>
1661         PR c/71552
1662         * c-typeck.c (output_init_element): Diagnose incompatible types
1663         before non-constant initializers.
1665 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1667         * Make-lang.in: Don't cat ../stage_current if it does not exist.
1669 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1671         * Make-lang.in: Add support for autofdo.
1673 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1675         PR c/70339
1676         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
1677         (implicit_decl_warning): When issuing warnings for implicit
1678         declarations, attempt to provide a suggestion via
1679         lookup_name_fuzzy.
1680         (undeclared_variable): Likewise when issuing errors.
1681         (lookup_name_in_scope): Likewise.
1682         (struct edit_distance_traits<cpp_hashnode *>): New struct.
1683         (best_macro_match): New typedef.
1684         (find_closest_macro_cpp_cb): New function.
1685         (lookup_name_fuzzy): New function.
1686         * c-parser.c: Include gcc-rich-location.h.
1687         (c_token_starts_typename): Split out case CPP_KEYWORD into...
1688         (c_keyword_starts_typename): ...this new function.
1689         (c_parser_declaration_or_fndef): When issuing errors about
1690         missing "struct" etc, add a fixit.  For other kinds of errors,
1691         attempt to provide a suggestion via lookup_name_fuzzy.
1692         (c_parser_parms_declarator): When looking ahead to detect typos in
1693         type names, also reject CPP_KEYWORD.
1694         (c_parser_parameter_declaration): When issuing errors about
1695         unknown type names, attempt to provide a suggestion via
1696         lookup_name_fuzzy.
1697         * c-tree.h (c_keyword_starts_typename): New prototype.
1699 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
1701         PR c/71601
1702         * c-typeck.c (build_conditional_expr): Return error_mark_node if
1703         c_common_type returns error_mark_node.
1705 2016-06-19  Martin Sebor  <msebor@redhat.com>
1707         PR c/69507
1708         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
1709         __alignof__ (expression).
1711 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1713         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
1715 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1717         * c-typeck.c (build_component_ref): Simplify fixit code by
1718         using gcc_rich_location::add_fixit_misspelled_id.
1719         (set_init_label): Likewise.
1721 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1723         * c-parser.c (c_parser_initelt): Provide location of name for new
1724         location_t param of set_init_label.
1725         * c-tree.h (set_init_label): Add location_t param.
1726         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
1727         param and use it when issuing error messages about unrecognized
1728         field names.  Attempt to provide a fixit hint if appropriate,
1729         otherwise update the error message to provide the type name.
1731 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1733         PR c/71381
1734         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
1735         Loosen checking.
1737 2016-06-08  Martin Sebor  <msebor@redhat.com>
1738             Jakub Jelinek  <jakub@redhat.com>
1740         PR c++/70507
1741         PR c/68120
1742         * c-typeck.c (convert_arguments): Don't promote last argument
1743         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1745 2016-06-08  Marek Polacek  <polacek@redhat.com>
1747         PR c/71418
1748         * c-decl.c (grokdeclarator): Check TYPE_P.
1750         PR c/71426
1751         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
1752         code.
1754 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1756         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
1757         and structure element reference, capture the location of the
1758         element name token and pass it to build_component_ref.
1759         (c_parser_postfix_expression_after_primary): Likewise for
1760         structure element dereference.
1761         (c_parser_omp_variable_list): Likewise for
1762         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
1763         * c-tree.h (build_component_ref): Add location_t param.
1764         * c-typeck.c (build_component_ref): Add location_t param
1765         COMPONENT_LOC.  Use it, if available, when issuing hints about
1766         mispelled member names to provide a fixit replacement hint.
1768 2016-06-06  Marek Polacek  <polacek@redhat.com>
1770         PR c/71362
1771         * c-parser.c (c_parser_direct_declarator): Set location.
1773 2016-06-06  Marek Polacek  <polacek@redhat.com>
1775         * c-typeck.c (comptypes_internal): Handle comparisons of
1776         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
1777         TYPE_REF_CAN_ALIAS_ALL.
1779 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
1781         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
1782         arguments as addressable when async clause exists.
1784 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
1786         PR c++/71349
1787         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
1788         when combined with target construct.
1790 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
1792         * c-parser.c (c_parser_omp_clause_schedule): Warn if
1793         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
1795 2016-05-25  Marek Polacek  <polacek@redhat.com>
1797         PR c/71265
1798         * c-decl.c (c_make_fname_decl): Don't check seen_error.
1800         PR c/71266
1801         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
1803 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
1805         * c-parser.c (c_parser_oacc_declare): Add support for
1806         GOMP_MAP_FIRSTPRIVATE_POINTER.
1807         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
1808         argument with enum c_omp_region_type ort.
1809         (handle_omp_array_sections): Likewise.  Update call to
1810         handle_omp_array_sections_1.
1811         (c_finish_omp_clauses): Add specific errors and warning messages for
1812         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
1813         call to handle_omp_array_sections.
1815 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
1817         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
1819 2016-05-24  Richard Biener  <rguenther@suse.de>
1821         PR middle-end/70434
1822         PR c/69504
1823         * c-typeck.c (build_array_ref): Do not complain about indexing
1824         non-lvalue vectors.  Adjust for function name change.
1826 2016-05-20  Martin Sebor  <msebor@redhat.com>
1828         PR c/71115
1829         * c-typeck.c (error_init): Use
1830         expansion_point_location_if_in_system_header.
1831         (warning_init): Same.
1833 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
1835         PR c/71171
1836         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
1837         in error-handling.
1838         (c_parser_postfix_expression): Likewise.
1839         * c-tree.h (c_expr::set_error): New method.
1840         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
1841         that result's range is initialized.
1843 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1845         * c-typeck.c (parser_build_unary_op): Fix formatting.
1847 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1849         * c-decl.c (grokdeclarator): Remove errmsg and use of
1850         targetm.invalid_return_type.
1851         (grokparms): Remove errmsg and use of
1852         targetm.invalid_parameter_type.
1854 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1856         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
1857         function return type.
1859 2016-05-12  Marek Polacek  <polacek@redhat.com>
1861         PR c/70756
1862         * c-decl.c (build_compound_literal): Pass LOC down to
1863         c_incomplete_type_error.
1864         * c-tree.h (require_complete_type): Adjust declaration.
1865         (c_incomplete_type_error): Likewise.
1866         * c-typeck.c (require_complete_type): Add location parameter, pass it
1867         down to c_incomplete_type_error.
1868         (c_incomplete_type_error): Add location parameter, pass it down to
1869         error_at.
1870         (build_component_ref): Pass location down to c_incomplete_type_error.
1871         (default_conversion): Pass location down to require_complete_type.
1872         (build_array_ref): Likewise.
1873         (build_function_call_vec): Likewise.
1874         (convert_arguments): Likewise.
1875         (build_unary_op): Likewise.
1876         (build_c_cast): Likewise.
1877         (build_modify_expr): Likewise.
1878         (convert_for_assignment): Likewise.
1879         (c_finish_omp_clauses): Likewise.
1881 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
1883         PR c/43651
1884         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
1885         is enabled.
1886         * c-errors.c (pedwarn_c90): Return true if warned.
1887         * c-tree.h (pedwarn_c90): Change return type to bool.
1888         (enum c_declspec_word): Add new enumerator cdw_atomic.
1890 2016-05-11  Marek Polacek  <polacek@redhat.com>
1892         PR c++/71024
1893         * c-decl.c (diagnose_mismatched_decls): Factor out code to
1894         diagnose_mismatched_attributes and call it.
1896 2016-05-10  Marek Polacek  <polacek@redhat.com>
1898         PR c/70255
1899         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
1900         on a declaration following the definition.
1902 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
1904         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1905         parse it through to c_parser_c99_block_statement.
1906         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1907         caller.
1909 2016-05-04  Marek Polacek  <polacek@redhat.com>
1911         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1912         OPT_Wdangling_else.
1914 2016-05-04  Marek Polacek  <polacek@redhat.com>
1916         PR c/48778
1917         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1918         for macro expansions.
1920 2016-05-03  Marek Polacek  <polacek@redhat.com>
1922         PR c/70859
1923         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1924         check_builtin_function_arguments.
1926 2016-05-03  Richard Biener  <rguenther@suse.de>
1928         * Make-lang.in (cc1-checksum.c): For stage-final re-use
1929         the checksum from the previous stage.
1931 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
1933         * c-parser.c (c_parser_oacc_all_clauses): Update call to
1934         c_finish_omp_clauses.
1935         (c_parser_omp_all_clauses): Likewise.
1936         (c_parser_oacc_cache): Likewise.
1937         (c_parser_oacc_loop): Likewise.
1938         (omp_split_clauses): Likewise.
1939         (c_parser_omp_declare_target): Likewise.
1940         (c_parser_cilk_all_clauses): Likewise.
1941         (c_parser_cilk_for): Likewise.
1942         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1943         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1945 2016-05-02  Marek Polacek  <polacek@redhat.com>
1947         PR c/70851
1948         * c-decl.c (grokdeclarator): Diagnose when array's size has an
1949         incomplete type.
1951 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
1953         PR middle-end/70626
1954         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1955         OACC_LOOP_CLAUSE_MASK.
1956         (c_parser_oacc_kernels_parallel): Update call to
1957         c_oacc_split_loop_clauses.
1959 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
1961         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1962         argument to build_modify_expr in two cases.
1964 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1966         * c-parser.c (c_parser_postfix_expression_after_primary): Call
1967         warn_for_memset instead of warning directly here.
1969 2016-04-26  Marek Polacek  <polacek@redhat.com>
1971         PR c/67784
1972         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1973         out of ...
1974         (c_parser_for_statement): ... here.
1975         (c_parser_if_statement): Use it.
1976         (c_parser_switch_statement): Use it.
1977         (c_parser_while_statement): Use it.
1979         PR c/70791
1980         * c-decl.c (pushdecl): Pass LOCUS down to warning.
1982 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
1984         PR c++/69363
1985         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1986         instead of c_finish_cilk_clauses.
1987         * c-tree.h (c_finish_omp_clauses): Add new default argument.
1988         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
1989         floating-point variables in the linear clause for Cilk Plus.
1991 2016-04-18  Michael Matz  <matz@suse.de>
1993         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1994         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1996 2016-04-15  Marek Polacek  <polacek@redhat.com>
1998         PR c/70671
1999         * c-typeck.c (build_unary_op): Pass location down to error and
2000         warning call.
2002 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
2004         PR c/70436
2005         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
2006         where needed.
2007         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
2008         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
2009         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
2010         Adjust c_parser_pragma callers.
2011         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
2012         caller.
2013         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
2014         c_parser_statement.
2015         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
2016         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
2017         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
2018         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
2019         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
2020         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
2021         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
2022         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
2023         down where needed.
2024         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
2025         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
2026         calls.
2028 2016-04-13  Marek Polacek  <polacek@redhat.com>
2030         PR c/70436
2031         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
2032         adjust callers.
2033         (c_parser_statement): Likewise.
2034         (c_parser_c99_block_statement): Likewise.
2035         (c_parser_while_statement): Likewise.
2036         (c_parser_for_statement): Likewise.
2037         (c_parser_if_body): Don't set IF_P here.
2038         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
2039         about dangling else here.
2040         * c-tree.h (c_finish_if_stmt): Adjust declaration.
2041         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
2042         warn about dangling else here.
2044 2016-04-04  Marek Polacek  <polacek@redhat.com>
2046         PR c/70307
2047         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
2049 2016-03-31  Marek Polacek  <polacek@redhat.com>
2051         PR c/70297
2052         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
2054 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
2056         PR c/70281
2057         * c-parser.c (c_parser_postfix_expression): Set the source range
2058         for uses of "__builtin_types_compatible_p".
2060 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
2062         PR c/70280
2063         * c-typeck.c (composite_type): Don't count void_list_node
2064         into len, if the list is terminated by void_list_node, start
2065         with void_list_node instead of NULL for newargs.  Stop
2066         at void_list_node.
2068 2016-03-16  Marek Polacek  <polacek@redhat.com>
2070         PR c/70093
2071         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
2072         nested functions returning VM types.
2074 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
2076         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
2077         when calling c_finish_omp_clauses.
2079 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
2081         PR c/69824
2082         * c-decl.c (get_parm_info): Don't queue implicit function declarations
2083         for later.
2085 2016-03-04  Marek Polacek  <polacek@redhat.com>
2087         PR c/69798
2088         * c-parser.c (c_parser_postfix_expression): Call
2089         c_parser_cast_expression rather than c_parser_postfix_expression.
2091 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
2093         PR c/69796
2094         PR c/69974
2095         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
2096         of incomplete decls to error_mark_node.
2098 2016-02-24  Marek Polacek  <polacek@redhat.com>
2100         PR c/69819
2101         * c-decl.c (finish_decl): Don't update the copy of the type of a
2102         different decl type.
2104 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
2106         PR objc/69844
2107         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
2108         in id_kind reclassification.
2110 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2112         PR c/69835
2113         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
2115 2016-02-16  James Norris  <jnorris@codesourcery.com>
2117         PR c/64748
2118         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
2120 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
2122         * c-decl.c (build_null_declspecs): Zero the entire struct.
2124         PR c/69522
2125         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
2126         callers changed.  If nested_p is true, use it to call
2127         finish_implicit_inits.
2128         * c-tree.h (finish_implicit_inits): Declare.
2129         * c-typeck.c (finish_implicit_inits): New function.  Move code
2130         from ...
2131         (push_init_level): ... here.
2132         (set_designator, process_init_element): Call finish_implicit_inits.
2134 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
2136         PR c/69768
2137         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
2138         arguments for -Waddress warning.
2140 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2142         PR c/69669
2143         * c-decl.c (finish_enum): When honoring mode attribute,
2144         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
2146 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
2148         PR debug/69518
2149         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
2150         all type variants, not just TYPE_MAIN_VARIANT.
2152 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
2154         PR debug/66869
2155         * c-decl.c (c_write_global_declarations_1): Warn with
2156         warn_unused_function if static prototype without definition
2157         is not C_DECL_USED.
2159 2016-01-27  Marek Polacek  <polacek@redhat.com>
2161         PR c/68062
2162         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
2163         to unsigned, if needed.  Add -Wsign-compare warning.
2165 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
2167         PR tree-optimization/69483
2168         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
2170 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2172         PR c/24293
2173         * c-tree.h (incomplete_record_decls): Declare.
2174         * c-parser.c (incomplete_record_decls): Define.
2175         (c_parser_translation_unit): Iterate through incomplete_record_decls and
2176         report error if any decl has zero size.
2177         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
2178         or enum type to incomplete_record_decls.
2180 2016-01-14  Tom de Vries  <tom@codesourcery.com>
2182         PR tree-optimization/68773
2183         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
2184         set force_output.
2186 2016-01-14  Marek Polacek  <polacek@redhat.com>
2188         PR c/69262
2189         * c-decl.c (grokdeclarator): Provide more information for invalid
2190         array declarations.
2192 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
2194         * c-parser.c (c_parser_unary_expression): For dereferences, build
2195         a combined location before calling build_indirect_ref, so that
2196         error reports cover the full range, manually updating the c_expr
2197         src_range.
2199 2016-01-06  Marek Polacek  <polacek@redhat.com>
2201         PR sanitizer/69099
2202         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
2203         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
2204         NULL.
2206 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
2208         Update copyright years.
2210 2016-01-04  Marek Polacek  <polacek@redhat.com>
2212         PR c/68908
2213         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
2214         optimization to use __atomic_fetch_* built-in if possible.
2216 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
2218         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
2219         into...
2220         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
2221         all users.
2223 2015-12-22  Marek Polacek  <polacek@redhat.com>
2225         PR c/69002
2226         * c-typeck.c (build_component_ref): Warn when acessing elements of
2227         atomic structures or unions.
2229 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
2231         * c-typeck.c: Include "gcc-rich-location.h".
2232         (build_binary_op): In the two places that call binary_op_error,
2233         create a gcc_rich_location and populate it with the location of
2234         the binary op and its two operands.
2236 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2238         * c-parser.c (c_parser_statement_after_labels): When calling
2239         c_finish_return, Use the return expression's location if it has
2240         one, falling back to the location of the first token within it.
2241         * c-typeck.c (c_finish_return): When issuing warnings about
2242         the incorrect presence/absence of a return value, issue a note
2243         showing the declaration of the function.
2245 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2247         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
2248         to 4.
2249         (c_parser_peek_nth_token): New function.
2250         (c_parser_peek_conflict_marker): New function.
2251         (c_parser_error): Detect conflict markers and report them as such.
2253 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2255         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
2256         to preserve range information for the primary expression
2257         in the call to c_parser_postfix_expression_after_primary.
2259 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2261         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
2262         expression location, falling back on the first token location,
2263         rather than always using the latter.
2265 2015-12-16  Marek Polacek  <polacek@redhat.com>
2267         PR c/64637
2268         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
2269         available.
2271 2015-12-15  Marek Polacek  <polacek@redhat.com>
2273         PR c/68907
2274         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
2275         artificial decl.
2277 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
2279         * c-parser.c (c_parser_alignof_expression): Capture location of
2280         closing parenthesis (if any), or of end of unary expression, and
2281         use it to build a src_range for the expression.
2283 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
2285         PR c/68757
2286         * c-parser.c (c_parser_get_builtin_args): Add
2287         "out_close_paren_loc" param, and write back to it.
2288         (c_parser_postfix_expression): Capture the closing
2289         parenthesis location for RID_CHOOSE_EXPR,
2290         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
2291         RID_BUILTIN_SHUFFLE and use it to set the source range
2292         for such expressions; within RID_BUILTIN_COMPLEX set
2293         the underlying location.
2295 2015-12-07  Marek Polacek  <polacek@redhat.com>
2297         PR c/68668
2298         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
2299         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
2301 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
2303         * c-tree.h (c_build_va_arg): Adjust prototype.
2304         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
2305         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
2306         parameter, adjust throughout and issue an error if EXPR is a component
2307         with reverse storage order.
2309 2015-12-02  Jason Merrill  <jason@redhat.com>
2311         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2312         (c_fully_fold_internal, decl_constant_value_for_optimization):
2313         Move from c-common.c.
2314         * c-tree.h: Declare decl_constant_value_for_optimization.
2315         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
2317 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
2319         PR c/68162
2320         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
2321         following link from declarator to next declarator.  Track original
2322         qualified type and pass it to c_build_qualified_type.
2323         * c-typeck.c (c_build_qualified_type): Add arguments
2324         orig_qual_type and orig_qual_indirect.
2326 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
2328         * c-parser.c (c_parser_omp_clause_name)
2329         (c_parser_oacc_all_clauses): Alphabetical sorting.
2331 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
2333         PR c/68533
2334         * c-decl.c (get_parm_info): Use b->locus instead of input_location
2335         for diagnostics.
2337 2015-12-01  Julian Brown  <julian@codesourcery.com>
2338             Cesar Philippidis  <cesar@codesourcery.com>
2339             James Norris  <James_Norris@mentor.com>
2341         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
2342         (c_parser_oacc_clause_use_device): New function.
2343         (c_parser_oacc_all_clauses): Add use_device support.
2344         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
2345         (c_parser_oacc_host_data): New function.
2346         (c_parser_omp_construct): Add host_data support.
2347         * c-tree.h (c_finish_oacc_host_data): Add prototype.
2348         * c-typeck.c (c_finish_oacc_host_data): New function.
2349         (c_finish_omp_clauses): Add use_device support.
2351 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2353         PR c/67106
2354         * c-decl.c: Set TYPE_PACKED in variants.
2356 2015-11-27  Martin Liska  <mliska@suse.cz>
2358         PR c++/68312
2359         * c-array-notation.c (fix_builtin_array_notation_fn):
2360         Use release_vec_vec instead of vec::release.
2361         (build_array_notation_expr): Likewise.
2362         (fix_conditional_array_notations_1): Likewise.
2363         (fix_array_notation_expr): Likewise.
2364         (fix_array_notation_call_expr): Likewise.
2366 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
2368         PR c/63326
2369         * c-parser.c (c_parser_compound_statement_nostart): If
2370         last_label is true, use pragma_stmt instead of pragma_compound
2371         as second c_parser_pragma argument.
2372         (c_parser_omp_ordered, c_parser_omp_target_update,
2373         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
2374         false as second argument to c_parser_skip_to_pragma_eol after
2375         diagnosing standalone directives used in pragma_stmt context.
2377 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
2379         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
2380         with "if (ENABLE_OFFLOADING)".
2382 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
2384         PR objc/68438
2385         * c-parser.c (c_parser_postfix_expression): Set up source ranges
2386         for various Objective-C constructs: Class.name syntax,
2387         @selector(), @protocol(), @encode(), and [] message syntax.
2389 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
2391         PR 62314
2392         * c-typeck.c (should_suggest_deref_p): New function.
2393         (build_component_ref): Special-case POINTER_TYPE when
2394         generating a "not a structure of union"  error message, and
2395         suggest a "->" rather than a ".", providing a fix-it hint.
2397 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
2399         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
2400         candidate into a new function, find_closest_identifier.
2402 2015-11-19  Marek Polacek  <polacek@redhat.com>
2404         PR c/68412
2405         * c-typeck.c (parser_build_binary_op): Properly handle
2406         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
2408 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
2410         * c-parser.c (set_c_expr_source_range): Bulletproof both
2411         overloaded implementations against NULL expr->value.
2412         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
2413         values.
2414         (c_parser_unary_expression): Likewise when handling addresses of
2415         labels.
2416         (c_parser_postfix_expression): Likewise for statement expressions,
2417         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
2418         __builtin_va_arg, and for __builtin_offset_of.
2419         (c_parser_postfix_expression_after_paren_type): Initialize expr's
2420         src_range using the range of the braced initializer.
2421         (c_parser_transaction_expression): Set src_range for "ret" to a
2422         sane pair of values.
2424 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2426         * c-parser.c (c_finish_omp_declare_simd): Look for
2427         "simd" attribute as well. Update error message.
2429 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2431         * c-parser.c (c_parser_omp_declare_target): Adjust.
2433 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
2435         * c-typeck.c (c_finish_omp_clauses): Don't mark
2436         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
2438 2015-11-14  Marek Polacek  <polacek@redhat.com>
2440         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
2441         * c-typeck.c: Likewise.
2443 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2445         * c-decl.c (warn_defaults_to): Pass line_table to
2446         rich_location ctor.
2447         * c-errors.c (pedwarn_c99): Likewise.
2448         (pedwarn_c90): Likewise.
2449         * c-parser.c (set_c_expr_source_range): New functions.
2450         (c_token::get_range): New method.
2451         (c_token::get_finish): New method.
2452         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
2453         based on the range from the start of the LHS to the end of the
2454         RHS.
2455         (c_parser_conditional_expression): Likewise, based on the range
2456         from the start of the cond.value to the end of exp2.value.
2457         (c_parser_binary_expression): Call set_c_expr_source_range on
2458         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
2459         (c_parser_cast_expression): Call set_c_expr_source_range on ret
2460         based on the cast_loc through to the end of the expr.
2461         (c_parser_unary_expression): Likewise, based on the
2462         op_loc through to the end of op.
2463         (c_parser_sizeof_expression) Likewise, based on the start of the
2464         sizeof token through to either the closing paren or the end of
2465         expr.
2466         (c_parser_postfix_expression): Likewise, using the token range,
2467         or from the open paren through to the close paren for
2468         parenthesized expressions.
2469         (c_parser_postfix_expression_after_primary): Likewise, for
2470         various kinds of expression.
2471         * c-tree.h (struct c_expr): Add field "src_range".
2472         (c_expr::get_start): New method.
2473         (c_expr::get_finish): New method.
2474         (set_c_expr_source_range): New decls.
2475         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
2476         on ret for prefix unary ops.
2477         (parser_build_binary_op): Likewise, running from the start of
2478         arg1.value through to the end of arg2.value.
2480 2015-11-13  Marek Polacek  <polacek@redhat.com>
2482         PR c/68320
2483         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
2485 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2487         * c-typeck.c: Include spellcheck.h.
2488         (lookup_field_fuzzy_find_candidates): New function.
2489         (lookup_field_fuzzy): New function.
2490         (build_component_ref): If the field was not found, try using
2491         lookup_field_fuzzy and potentially offer a suggestion.
2493 2015-11-12  James Norris  <jnorris@codesourcery.com>
2494             Joseph Myers  <joseph@codesourcery.com>
2496         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
2497         (c_parser_omp_clause_name): Handle 'device_resident' clause.
2498         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2499         and PRAGMA_OMP_CLAUSE_LINK.
2500         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2501         and PRAGMA_OACC_CLAUSE_LINK.
2502         (OACC_DECLARE_CLAUSE_MASK): New definition.
2503         (c_parser_oacc_declare): New function.
2505 2015-11-12  Marek Polacek  <polacek@redhat.com>
2507         PR c/67784
2508         * c-parser.c (c_parser_for_statement): Reclassify the token in
2509         a correct scope.
2511 2015-11-11  Marek Polacek  <polacek@redhat.com>
2513         PR c/68107
2514         PR c++/68266
2515         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
2516         checking the size of an array.
2518 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2520         * c-array-notation.c: Remove unused header files.
2521         * c-aux-info.c: Likewise.
2522         * c-convert.c: Likewise.
2523         * c-decl.c: Likewise.
2524         * c-errors.c: Likewise.
2525         * c-lang.c: Likewise.
2526         * c-objc-common.c: Likewise.
2527         * c-parser.c: Likewise.
2528         * c-typeck.c: Likewise.
2529         * gccspec.c: Likewise.
2531 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2532             Cesar Philippidis  <cesar@codesourcery.com>
2533             James Norris  <jnorris@codesourcery.com>
2534             Julian Brown  <julian@codesourcery.com>
2535             Nathan Sidwell  <nathan@codesourcery.com>
2537         c/
2538         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
2539         routine arg.
2540         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
2541         (c_parser_pragma): Parse 'acc routine'.
2542         (OACC_ROUTINE_CLAUSE_MARK): Define.
2543         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
2545 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2547         PR debug/67192
2548         * c-typeck.c (c_finish_loop): For unconditional loops, set the
2549         location of the backward-goto to the start of the loop body.
2551 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2553         PR debug/67192
2554         * c-parser.c (c_parser_while_statement): Finish the loop before
2555         parsing ahead for misleading indentation.
2556         (c_parser_for_statement): Likewise.
2558 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2560         * c-decl.c (finish_struct): If the structure has reverse storage
2561         order, rewrite the type of array fields with scalar component.  Call
2562         maybe_apply_pragma_scalar_storage_order on entry.
2563         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
2564         errors on bit-fields and reverse SSO here and not...
2565         (c_mark_addressable): ...here.
2566         (output_init_element): Adjust call to initializer_constant_valid_p.
2567         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
2569 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2571         * c-decl.c (warn_defaults_to): Update for change in signature
2572         of diagnostic_set_info.
2573         * c-errors.c (pedwarn_c99): Likewise.
2574         (pedwarn_c90): Likewise.
2575         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
2576         for textinfo::set_location.
2578 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2579             Thomas Schwinge  <thomas@codesourcery.com>
2580             James Norris  <jnorris@codesourcery.com>
2582         * c-parser.c (c_parser_omp_clause_name): Add support for
2583         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
2584         (c_parser_omp_clause_default): Add is_oacc argument. Handle
2585         default(none) in OpenACC.
2586         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
2587         arguments.
2588         (c_parser_oacc_clause_tile): New function.
2589         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
2590         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
2591         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
2592         TILE}.
2593         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
2594         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
2595         FIRSTPRIVATE}.
2596         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
2597         (c_parser_oacc_update): Update the error message for missing clauses.
2598         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
2599         and OMP_CLAUSE_INDEPENDENT.
2601 2015-11-05  Marek Polacek  <polacek@redhat.com>
2603         PR c/68090
2604         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
2605         deal with pre-evaluation on invalid types.
2607 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2608             Ilya Verbin  <ilya.verbin@intel.com>
2610         * c-parser.c: Include context.h and gimple-expr.h.
2611         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
2612         monotonic together with nonmonotonic.
2613         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
2614         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
2615         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
2616         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
2617         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
2618         expressions on combined target teams before the target.
2619         (c_parser_omp_declare_target): If decl has "omp declare target" or
2620         "omp declare target link" attribute, and cgraph or varpool node already
2621         exists, then set corresponding flags.  Call c_finish_omp_clauses
2622         in the parenthesized extended-list syntax case.
2623         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
2624         declare target.
2625         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
2626         on OMP_CLAUSE_REDUCTION array sections.
2627         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
2628         into the constant offset, or for variable low-bound using
2629         POINTER_PLUS_EXPR.  For structure element based array sections use
2630         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
2631         (c_finish_omp_clauses): Drop generic_field_head, structure
2632         elements are now always mapped even as array section bases,
2633         diagnose same var in data sharing and mapping clauses.  Diagnose if
2634         linear step on declare simd is neither a constant nor a uniform
2635         parameter.  Look through POINTER_PLUS_EXPR for array section
2636         reductions.  Diagnose the same var or function appearing multiple
2637         times on the same directive.  Fix up wording for the to clause if t
2638         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
2639         modifier on kinds other than dynamic or guided or nonmonotonic
2640         modifier together with ordered clause.
2642 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2643             Chung-Lin Tang  <cltang@codesourcery.com>
2645         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
2647 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2649         * c-array-notation.c: Reorder #include's and remove duplicates.
2650         * c-aux-info.c: Likewise.
2651         * c-convert.c: Likewise.
2652         * c-decl.c: Likewise.
2653         * c-errors.c: Likewise.
2654         * c-lang.c: Likewise.
2655         * c-objc-common.c: Likewise.
2656         * c-parser.c: Likewise.
2657         * c-typeck.c: Likewise.
2659 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
2661         PR debug/66068
2662         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
2663         after calling build_qualified_type.
2665 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
2666             Thomas Schwinge  <thomas@codesourcery.com>
2667             James Norris  <jnorris@codesourcery.com>
2668             Joseph Myers  <joseph@codesourcery.com>
2669             Julian Brown  <julian@codesourcery.com>
2670             Bernd Schmidt  <bschmidt@redhat.com>
2672         * c-parser.c (c_parser_oacc_shape_clause): New.
2673         (c_parser_oacc_simple_clause): New.
2674         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
2675         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
2677 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2678             James Norris  <jnorris@codesourcery.com>
2679             Cesar Philippidis  <cesar@codesourcery.com>
2681         PR c/64765
2682         PR c/64880
2683         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
2684         parameters, and handle these.  Adjust all users.
2685         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
2686         into...
2687         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
2688         all users.
2689         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
2690         declare functions.
2691         (c_finish_omp_construct): Declare function.
2692         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
2693         Merge functions into...
2694         (c_finish_omp_construct): ... this new function.
2696 2015-10-22  Richard Biener  <rguenther@suse.de>
2698         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
2699         before folding a MINUS_EXPR.
2701 2015-10-21  Marek Polacek  <polacek@redhat.com>
2703         PR c/68024
2704         * c-decl.c (start_function): Warn about vararg functions without
2705         a prototype.
2707 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2709         * c-typeck.c (build_conditional_expr): Use boolean vector
2710         type for vector comparison.
2711         (build_vec_cmp): New.
2712         (build_binary_op): Use build_vec_cmp for comparison.
2714 2015-10-20  Marek Polacek  <polacek@redhat.com>
2716         * c-parser.c (is_cilkplus_vector_p): Don't define here.
2718 2015-10-20  Marek Polacek  <polacek@redhat.com>
2720         PR c/67964
2721         * c-parser.c (c_parser_attributes): Break out of the loop if the
2722         token after an attribute isn't a comma.
2724 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
2725             Aldy Hernandez  <aldyh@redhat.com>
2727         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
2728         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
2729         (c_parser_omp_variable_list): Handle structure elements for
2730         map, to and from clauses.  Handle array sections in reduction
2731         clause.  Formatting fixes.
2732         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
2733         if clause modifiers.
2734         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
2735         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
2736         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
2737         c_parser_omp_clause_is_device_ptr): New functions.
2738         (c_parser_omp_clause_ordered): Parse optional parameter.
2739         (c_parser_omp_clause_reduction): Handle array reductions.
2740         (c_parser_omp_clause_schedule): Parse optional simd modifier.
2741         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
2742         functions.
2743         (c_parser_omp_clause_linear): Parse linear clause modifiers.
2744         (c_parser_omp_clause_depend_sink): New function.
2745         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
2746         (c_parser_omp_clause_map): Parse release/delete map kinds and
2747         optional always modifier.
2748         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
2749         and c_finish_omp_clauses callers.
2750         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
2751         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
2752         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
2753         (OMP_CRITICAL_CLAUSE_MASK): Define.
2754         (c_parser_omp_critical): Parse critical clauses.
2755         (c_parser_omp_for_loop): Handle doacross loops, adjust
2756         c_finish_omp_for and c_finish_omp_clauses callers.
2757         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
2758         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
2759         (OMP_FOR_CLAUSE_MASK): Add linear clause.
2760         (c_parser_omp_for): Disallow ordered clause when combined with
2761         distribute.  Disallow linear clause when combined with distribute
2762         and not combined with simd.
2763         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
2764         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
2765         parse clauses and if depend clause is found, don't parse a body.
2766         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
2767         Allow target parallel without for after it.
2768         (OMP_TASK_CLAUSE_MASK): Add priority clause.
2769         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
2770         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
2771         invalid kinds.
2772         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
2773         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
2774         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
2775         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
2776         functions.
2777         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
2778         defaultmap and is_device_ptr clauses.
2779         (c_parser_omp_target): Parse target parallel and target simd.  Set
2780         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
2781         and target exit data.  Diagnose invalid map kinds.
2782         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
2783         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
2784         construct.
2785         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
2786         &omp_priv.
2787         (OMP_TASKLOOP_CLAUSE_MASK): Define.
2788         (c_parser_omp_taskloop): New function.
2789         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
2790         handle PRAGMA_OMP_TASKLOOP.
2791         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
2792         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
2793         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
2794         Add IS_OMP argument, handle structure element bases, diagnose
2795         bitfields, pass IS_OMP recursively, diagnose known zero length
2796         array sections in depend clauses, handle array sections in reduction
2797         clause, diagnose negative length even for pointers.
2798         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
2799         types, pass IS_OMP down to handle_omp_array_sections_1, handle
2800         array sections in reduction clause, set
2801         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
2802         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
2803         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
2804         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
2806 2015-10-06  Marek Polacek  <polacek@redhat.com>
2808         * c-parser.c (c_parser_statement_after_labels): Use
2809         protected_set_expr_location.
2810         (c_parser_omp_clause_num_gangs): Likewise.
2811         (c_parser_omp_clause_num_threads): Likewise.
2812         (c_parser_omp_clause_num_workers): Likewise.
2813         (c_parser_omp_clause_vector_length): Likewise.
2814         (c_parser_omp_clause_num_teams): Likewise.
2815         (c_parser_omp_clause_thread_limit): Likewise.
2816         * c-typeck.c (build_c_cast): Likewise.
2817         (c_cast_expr): Likewise.
2819 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2821         * c-typeck.c (c_tree_equal): Use real_equal instead of
2822         REAL_VALUES_EQUAL.
2824 2015-10-04  Jason Merrill  <jason@redhat.com>
2826         * c-parser.c (c_lex_one_token): Handle @synchronized.
2827         * c-decl.c (match_builtin_function_types): A declaration of a built-in
2828         can change whether the function is transaction_safe.
2830 2015-10-02  Marek Polacek  <polacek@redhat.com>
2832         PR c/67730
2833         * c-typeck.c (convert_for_assignment): Use the expansion point
2834         location throughout.
2836 2015-10-02  Marek Polacek  <polacek@redhat.com>
2838         PR c/64249
2839         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
2840         and pass it down to c_parser_if_statement.
2841         (c_parser_else_body): Add CHAIN parameter and pass it down to
2842         c_parser_statement_after_labels.
2843         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
2844         duplicated if-else-if conditions.
2846 2015-10-01  Marek Polacek  <polacek@redhat.com>
2848         * c-typeck.c (convert_for_assignment): Improve commentary.
2850 2015-09-30  Marek Polacek  <polacek@redhat.com>
2852         PR c/67730
2853         * c-typeck.c (c_finish_return): Use the expansion point location for
2854         certain "return with value" warnings.
2856 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2858         * c-parser.c (pragma_lex): Add loc argument.
2860 2015-09-15  Marek Polacek  <polacek@redhat.com>
2862         PR c/67580
2863         * c-decl.c (tag_exists_p): New function.
2864         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
2865         struct/union/enum keywords are missing.
2866         * c-tree.h (tag_exists_p): Declare.
2868 2015-09-15  Marek Polacek  <polacek@redhat.com>
2870         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
2871         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
2872         Return NULL_TREE instead of 0.
2873         (lookup_name): Return NULL_TREE instead of 0.
2874         (lookup_name_in_scope): Likewise.
2875         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
2876         (parser_xref_tag): Use false instead of 0.
2877         (start_struct): Use true instead of 1.
2878         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
2880 2015-09-14  Marek Polacek  <polacek@redhat.com>
2882         * c-typeck.c (set_nonincremental_init_from_string): Use
2883         HOST_WIDE_INT_M1U when shifting a negative value.
2885 2015-09-09  Mark Wielaard  <mjw@redhat.com>
2887         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
2888         parm against NULL.
2890 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
2892         PR c/67502
2893         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
2894         into OMP_FOR_PRE_BODY rather than before the loop.
2896 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
2898         PR c/67501
2899         * c-parser.c (c_parser_oacc_all_clauses,
2900         c_parser_omp_all_clauses): Remove invalid clause from
2901         list of clauses even if parser->error is set.
2903         PR c/67500
2904         * c-parser.c (c_parser_omp_clause_aligned,
2905         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2906         test for errors.
2907         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2908         error_mark_node.
2910         PR c/67495
2911         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2912         instead of c_parser_unary_expression.  If the result is !lvalue_p,
2913         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2915 2015-09-04  Marek Polacek  <polacek@redhat.com>
2917         PR sanitizer/67279
2918         * c-typeck.c (build_binary_op): Don't instrument static initializers.
2920 2015-09-03  Martin Sebor  <msebor@redhat.com>
2922         PR c/66516
2923         * c-typeck.c (convert_arguments, parser_build_unary_op,
2924         build_conditional_expr, c_cast_expr, convert_for_assignment,
2925         build_binary_op, _objc_common_truthvalue_conversion): Call
2926         reject_gcc_builtin.
2927         (c_decl_implicit): Define.
2929 2015-09-02  Marek Polacek  <polacek@redhat.com>
2931         PR c/67432
2932         * c-parser.c (c_parser_enum_specifier): Give a better error for
2933         an empty enum.
2935 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
2937         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2939 2015-08-12  Marek Polacek  <polacek@redhat.com>
2941         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2942         LOC to it.
2944 2015-08-03  Marek Polacek  <polacek@redhat.com>
2946         PR c/67088
2947         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2948         Use it.
2949         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2951 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
2953         * c-parser.c (c_parser_if_body): Take token_indent_info
2954         argument. Call warn_for_misleading_indentation even when the
2955         body is a semicolon.  Extract token_indent_infos corresponding
2956         to the guard, body and next tokens.  Adjust call to
2957         warn_for_misleading_indentation accordingly.
2958         (c_parser_else_body): Likewise.
2959         (c_parser_if_statement): Likewise.
2960         (c_parser_while_statement): Likewise.
2961         (c_parser_for_statement): Likewise.
2963 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
2964             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2966         * c-decl.c (get_parm_info): Remove static var. Update warning
2967         message.
2969 2015-07-27  Marek Polacek  <polacek@redhat.com>
2971         PR c++/66555
2972         PR c/54979
2973         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2975 2015-07-20  Marek Polacek  <polacek@redhat.com>
2977         PR c++/55095
2978         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2979         (build_binary_op): Warn about left shift overflows.
2981 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2983         * c-array-notation.c: Adjust includes for flags.h changes.
2984         * c-objc-common.c: Likewise.
2986 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2988         * c-array-notation.c: Adjust includes.
2989         * c-aux-info.c: Likewise.
2990         * c-convert.c: Likewise.
2991         * c-decl.c: Likewise.
2992         * c-errors.c: Likewise.
2993         * c-lang.c: Likewise.
2994         * c-objc-common.c: Likewise.
2995         * c-parser.c: Likewise.
2996         * c-typeck.c: Likewise.
2998 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3000         PR fortran/66605
3001         * c-decl.c (finish_function): Call do_warn_unused_parameter.
3003 2015-06-29  Marek Polacek  <polacek@redhat.com>
3005         PR c/66322
3006         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
3007         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
3008         about -Wswitch-bool here.
3009         (do_case): Update c_add_case_label call.
3010         (c_finish_case): Update c_do_switch_warnings call.
3012 2015-06-27  Marek Polacek  <polacek@redhat.com>
3014         * c-typeck.c: Use VECTOR_TYPE_P throughout.
3016 2015-06-26  Marek Polacek  <polacek@redhat.com>
3018         * c-array-notation.c (fix_builtin_array_notation_fn): Use
3019         INDIRECT_REF_P.
3020         * c-typeck.c (array_to_pointer_conversion): Likewise.
3021         (build_unary_op): Likewise.
3022         (c_finish_return): Likewise.
3024 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3026         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
3027         * c-parser.c: Likewise.
3029 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3031         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
3032         instead of pointer_hash.
3033         (detect_field_duplicates): Likewise.
3035 2015-06-25  Marek Polacek  <polacek@redhat.com>
3037         * c-array-notation.c: Use VAR_P throughout.
3038         * c-decl.c: Likewise.
3039         * c-objc-common.c: Likewise.
3040         * c-parser.c: Likewise.
3041         * c-typeck.c: Likewise.
3043 2015-06-25  Marek Polacek  <polacek@redhat.com>
3045         * c-decl.c: Use is_global_var throughout.
3046         * c-parser.c: Likewise.
3047         * c-typeck.c: Likewise.
3049 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3051         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
3052         * c-aux-info.c: Likewise.
3053         * c-convert.c: Likewise.
3054         * c-decl.c: Likewise.
3055         * c-errors.c: Likewise.
3056         * c-lang.c: Likewise.
3057         * c-objc-common.c: Likewise.
3058         * c-parser.c: Likewise.
3059         * c-typeck.c: Likewise.
3061 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
3063         PR middle-end/66325
3064         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
3065         variants.
3067 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
3069         * c-decl.c (pop_scope): Register the main translation unit
3070         through the new debug hook.
3072 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3074         * c-array-notation.c : Adjust include files.
3075         * c-aux-info.c : Likewise.
3076         * c-convert.c : Likewise.
3077         * c-decl.c : Likewise.
3078         * c-errors.c : Likewise.
3079         * c-lang.c : Likewise.
3080         * c-lang.h : Likewise.
3081         * c-objc-common.c : Likewise.
3082         * c-parser.c : Likewise.
3083         * c-typeck.c : Likewise.
3085 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3087         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
3088         immediately clobber it.
3089         (c_write_global_declarations_1): Remove call to
3090         check_global_declaration_1.
3091         (c_write_global_declarations_2): Remove.
3092         (c_write_final_cleanups): Rename from c_write_global_declarations.
3093         Remove call to finalize_compilation_unit.
3094         Remove calls to debugging hooks.
3095         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
3096         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
3097         * c-tree.h: Remove c_write_global_declarations.
3099 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3101         * c-array-notation.c: Adjust includes for restructured coretypes.h.
3102         * c-aux-info.c: Likewise.
3103         * c-convert.c: Likewise.
3104         * c-decl.c: Likewise.
3105         * c-errors.c: Likewise.
3106         * c-lang.c: Likewise.
3107         * c-objc-common.c: Likewise.
3108         * c-parser.c: Likewise.
3109         * c-typeck.c: Likewise.
3111 2015-06-04  Marek Polacek  <polacek@redhat.com>
3113         PR c/66341
3114         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
3115         it is a lvalue.
3117 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3119         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
3120         Warn for empty struct.
3121         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
3123 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
3125         * c-decl.c (start_function): Call plugin before parsing.
3126         (finish_function): Call plugin after parsing.
3128 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3130         PR c/49551
3131         * c-decl.c (merge_decls): Merge DECL_COMMON.
3133 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
3135         * Make-lang.in (check_gcc_pallelize): Define.
3137 2015-05-22  Marek Polacek  <polacek@redhat.com>
3139         PR c/47043
3140         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
3141         attributes.
3143 2015-05-21  Marek Polacek  <polacek@redhat.com>
3145         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
3146         DECL_BUILT_IN.
3148 2015-05-20  Marek Polacek  <polacek@redhat.com>
3150         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3151         * c-typeck.c: Likewise.
3153 2015-05-19  Marek Polacek  <polacek@redhat.com>
3155         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
3157 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
3159         PR middle-end/66199
3160         * c-parser.c (c_parser_omp_for_loop): Don't add
3161         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
3162         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
3163         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
3164         constructs.
3166 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3168         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
3169         swaps.
3171 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3173         PR fortran/44054
3174         * c-objc-common.c (c_tree_printer): Replace locus pointer with
3175         accessor function.
3177 2015-05-14  Marek Polacek  <polacek@redhat.com>
3179         PR c/66066
3180         PR c/66127
3181         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
3182         rather than with 0.
3184 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3186         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
3187         to add a call to warn_for_misleading_indentation.
3188         (c_parser_else_body): Likewise, adding param "else_loc".
3189         (c_parser_if_statement): Check for misleading indentation.
3190         (c_parser_while_statement): Likewise.
3191         (c_parser_for_statement): Likewise.
3193 2015-05-08  Marek Polacek  <polacek@redhat.com>
3195         PR c/64918
3196         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
3197         (output_init_element): Likewise.
3199 2015-05-07  Marek Polacek  <polacek@redhat.com>
3201         PR c/65179
3202         * c-typeck.c (build_binary_op): Warn when left shifting a negative
3203         value.
3205 2015-04-30  Marek Polacek  <polacek@redhat.com>
3207         * c-typeck.c (set_init_label): Call error_at instead of error and
3208         pass LOC to it.
3210         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
3211         the type of a decl.
3213         * c-typeck.c (c_build_va_arg): Clarify the error message.
3215 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3217         * c-parser.c (c_parser_oacc_enter_exit_data): Use
3218         OMP_STANDALONE_CLAUSES.
3220 2015-04-28  Marek Polacek  <polacek@redhat.com>
3222         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
3224 2015-04-28  Marek Polacek  <polacek@redhat.com>
3226         PR c/65901
3227         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
3229 2015-04-25  Marek Polacek  <polacek@redhat.com>
3231         PR c/52085
3232         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
3233         attribute.
3235 2015-04-23  Marek Polacek  <polacek@redhat.com>
3237         PR c/65345
3238         * c-decl.c (set_labels_context_r): New function.
3239         (store_parm_decls): Call it via walk_tree_without_duplicates.
3240         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
3241         instead of create_tmp_var.  Build TARGET_EXPR instead of
3242         COMPOUND_EXPR.
3243         (build_atomic_assign): Use create_tmp_var_raw instead of
3244         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
3246 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
3248         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
3249         (c_parser_omp_target_update): Add missed %> to error_at ().
3251 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3253         PR target/55143
3254         * c-decl.c (c_default_pointer_mode): Remove definition.
3255         * c-tree.h (c_default_pointer_mode): Remove declaration.
3257 2015-03-27  Tobias Burnus  <burnus@net-b.de>
3259         PR c/65586
3260         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
3261         error out.
3262         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
3263         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
3264         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
3266 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
3268         * c-decl.c (c_decl_attributes): Also add "omp declare target"
3269         attribute for DECL_EXTERNAL VAR_DECLs.
3271 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
3273         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
3274         argument.
3276 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3278         PR c/65120
3279         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
3280         before preparing arguments to warn_logical_not_parentheses.
3282 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
3284         PR c/65120
3285         * c-typeck.c (parser_build_binary_op): Don't warn for
3286         !!x == y or !b == y where b is _Bool.
3288 2015-03-09  Marek Polacek  <polacek@redhat.com>
3290         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
3291         * c-decl.c (grokdeclarator): Likewise.
3292         * c-typeck.c (build_binary_op): Likewise.
3294 2015-02-27  Marek Polacek  <polacek@redhat.com>
3296         PR c/65228
3297         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
3299 2015-02-14  Marek Polacek  <polacek@redhat.com>
3301         PR c/64768
3302         * c-decl.c (grokdeclarator): Set the range of a flexible array member
3303         declared through a typedef name.
3305 2015-02-13  Marek Polacek  <polacek@redhat.com>
3307         PR c/65050
3308         * c-decl.c (grokdeclarator): Print also the type when giving
3309         the error message about array's incomplete element type.
3311 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
3313         PR c/64824
3314         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
3315         check in the POP macro.
3317 2015-02-09  Marek Polacek  <polacek@redhat.com>
3319         PR c/64856
3320         * c-typeck.c (process_init_element): Don't always wrap
3321         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
3322         initializing a range of elements.
3324 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
3326         PR c/64824
3327         PR c/64868
3328         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
3330 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
3332         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
3333         processing enum declaration.
3335 2015-01-29  Marek Polacek  <polacek@redhat.com>
3337         PR c/64709
3338         * c-typeck.c (pop_init_level): If constructor_elements has
3339         exactly one element with integer_zerop value, set constructor_zeroinit
3340         to 1.  Remove braces around warning_init call.
3342 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
3344         PR c/64766
3345         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
3346         of FUNCTION_DECLs with error_mark_node.
3348 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
3350         PR c/64778
3351         * c-typeck.c (convert_arguments): Return -1 if there are
3352         error_args, even if we've diagnosed too many arguments.
3354 2015-01-21  Richard Biener  <rguenther@suse.de>
3356         PR middle-end/64313
3357         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
3358         for builtins the user declared correctly.
3360 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3361             Bernd Schmidt  <bernds@codesourcery.com>
3362             Cesar Philippidis  <cesar@codesourcery.com>
3363             James Norris  <jnorris@codesourcery.com>
3364             Jakub Jelinek  <jakub@redhat.com>
3365             Ilmir Usmanov  <i.usmanov@samsung.com>
3367         * c-parser.c: Include "gomp-constants.h".
3368         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
3369         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
3370         Use OMP_CLAUSE_SET_MAP_KIND.
3371         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
3372         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
3373         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
3374         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
3375         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
3376         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
3377         "copyout", "create", "delete", "deviceptr", "gang", "host",
3378         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
3379         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
3380         "present_or_create", "pcreate", "seq", "self", "vector",
3381         "vector_length", "wait", "worker".
3382         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
3383         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
3384         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
3385         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
3386         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
3387         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
3388         (c_parser_oacc_data_clause_deviceptr)
3389         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
3390         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
3391         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
3392         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
3393         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
3394         (c_parser_oacc_parallel, c_parser_oacc_update)
3395         (c_parser_oacc_wait): New functions.
3396         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
3397         (c_finish_oacc_data): New prototypes.
3398         * c-typeck.c: Include "gomp-constants.h".
3399         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
3400         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3401         OMP_CLAUSE_SET_MAP_KIND.
3402         (c_finish_oacc_parallel, c_finish_oacc_kernels)
3403         (c_finish_oacc_data): New functions.
3404         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
3405         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3406         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3407         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
3408         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
3409         GOMP_MAP_FORCE_DEVICEPTR.
3411 2015-01-09  Michael Collison  <michael.collison@linaro.org>
3413         * c-array-notation.c: Include hash-set.h, machmode.h,
3414         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3415         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3416         * c-aux-info.c: Ditto.
3417         * c-convert.c: Ditto.
3418         * c-decl.c: Ditto.
3419         * c-errors.c: Ditto.
3420         * c-lang.c: Dittoxs.
3421         * c-objc-common.c: Ditto.
3422         * c-parser.c: Ditto.
3423         * c-typeck.c: Include hash-set.h, machmode.h,
3424         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3425         fold-const.h, wide-int.h, inchash.h, real.h and
3426         fixed-value.h due to flattening of tree.h.
3428 2015-01-07  Marek Polacek  <polacek@redhat.com>
3430         PR c/64417
3431         * c-typeck.c (process_init_element): Disallow initialization of
3432         a flexible array member with a string constant if the structure
3433         is in an array.
3435 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3437         PR sanitizer/64344
3438         * c-typeck.c (convert_for_assignment, c_finish_return): For
3439         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
3440         types also set in_late_binary_op around convert call.
3441         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
3442         to integral type casts, if not in_late_binary_op, pass c_fully_fold
3443         result on expr as last argument to ubsan_instrument_float_cast,
3444         if in_late_binary_op, don't use c_save_expr but save_expr.
3446         Update copyright years.
3448 2015-01-05  Marek Polacek  <polacek@redhat.com>
3450         PR c/64423
3451         * c-typeck.c (build_array_ref): Pass loc down to
3452         warn_array_subscript_with_type_char.
3454 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
3456         * c-typeck.c: New behavious for pointers to arrays with qualifiers
3457         (common-pointer-type): For pointers to arrays take qualifiers from
3458         element type.
3459         (build_conditional_expr): Add warnings for lost qualifiers.
3460         (comp-target-types): Allow pointers to arrays with different qualifiers.
3461         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
3462         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
3463         to PEDWARN_FOR_QUALIFIERS.
3465 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
3467         PR sanitizer/64289
3468         * c-convert.c: Include ubsan.h.
3469         (convert): For real -> integral casts and
3470         -fsanitize=float-cast-overflow don't call convert_to_integer, but
3471         instead instrument the float cast directly.
3473 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
3475         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
3476         c_finish_stmt_expr): Remove NULL last argument from
3477         create_tmp_var_raw and create_tmp_var calls.
3478         * c-array-notation.c (fix_builtin_array_notation_fn,
3479         build_array_notation_expr, fix_conditional_array_notations_1,
3480         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
3482 2014-11-28  Marek Polacek  <polacek@redhat.com>
3484         PR c/63862
3485         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
3486         convert the right operand to integer type.
3488 2014-11-25  Marek Polacek  <polacek@redhat.com>
3490         PR c/63877
3491         * c-decl.c (start_function): Disable -Wmissing-declarations warning
3492         for inline functions.
3494 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
3496         PR target/63764
3497         * c-typeck.c (build_array_ref): Adjust
3498         convert_vector_to_pointer_for_subscript caller.  If it returns true,
3499         call non_lvalue_loc on the result.
3501 2014-11-11  Richard Biener  <rguenther@suse.de>
3503         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
3504         to true.
3506 2014-11-10  Andi Kleen  <ak@linux.intel.com>
3508         PR c/60804
3509         * c-parser.c (c_parser_statement_after_labels): Call
3510         check_no_cilk.
3511         (c_parser_if_statement): Dito.
3512         (c_parser_switch_statement): Dito.
3513         (c_parser_while_statement): Dito.
3514         (c_parser_do_statement): Dito.
3515         (c_parser_for_statement): Dito.
3516         * c-typeck.c (c_finish_loop): Dito.
3518 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
3520         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
3521         OPT_Wshift_count_overflow in the warnings.
3523 2014-10-30  Marek Polacek  <polacek@redhat.com>
3525         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
3526         print the stripped version as well, if they're not the same.
3528 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3530         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
3531         machine_mode.
3533 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
3535         * c-decl.c: Adjust include files.
3536         * c-parser.c: Ditto.
3538 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
3539             Tom Tromey  <tromey@redhat.com>
3541         * c-tree.h (enum c_oracle_request): New.
3542         (c_binding_oracle_function): New typedef.
3543         (c_binding_oracle, c_pushtag, c_bind): Declare.
3544         * c-decl.c (c_binding_oracle): New global.
3545         (I_SYMBOL_CHECKED): New macro.
3546         (i_symbol_binding): New function.
3547         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
3548         (I_TAG_CHECKED): New macro.
3549         (i_tag_binding): New function.
3550         (I_TAG_BINDING, I_TAG_DECL): Redefine.
3551         (I_LABEL_CHECKED): New macro.
3552         (i_label_binding): New function.
3553         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
3554         (c_print_identifier): Save and restore c_binding_oracle.
3555         (c_pushtag, c_bind): New functions.
3557 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
3559         * c-typeck.c: Adjust include files.
3561 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3563         PR c++/53061
3564         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
3565         initialization here...
3566         (c_initialize_diagnostics): ... but here. Set defaults after
3567         building pretty-printer.
3569 2014-10-23  Marek Polacek  <polacek@redhat.com>
3571         PR c/63626
3572         * c-decl.c (pop_scope): Don't print warning in external_scope.
3574 2014-10-19  Marek Polacek  <polacek@redhat.com>
3576         PR c/63567
3577         * c-typeck.c (output_init_element): Allow initializing objects with
3578         static storage duration with compound literals even in C99 and add
3579         pedwarn for it.
3581 2014-10-17  Marek Polacek  <polacek@redhat.com>
3583         PR c/63567
3584         * c-typeck.c (digest_init): Allow initializing objects with static
3585         storage duration with compound literals even in C99 and add pedwarn
3586         for it.
3588 2014-10-17  Marek Polacek  <polacek@redhat.com>
3590         PR c/63543
3591         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
3592         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
3593         error multiple times.  Print the type.
3595 2014-10-17  Marek Polacek  <polacek@redhat.com>
3597         PR c/63549
3598         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
3599         type.
3601 2014-10-17  Marek Polacek  <polacek@redhat.com>
3603         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
3604         (start_function): Use OPT_Wimplicit_int instead of 0.
3605         (store_parm_decls_oldstyle): Likewise.
3607 2014-10-17  Alan Modra  <amodra@gmail.com>
3609         PR middle-end/61848
3610         * c-decl.c (merge_decls): Don't merge section name or tls model
3611         to newdecl symtab node, instead merge to olddecl.  Override
3612         existing olddecl section name.  Set tls_model for all thread-local
3613         vars, not just OMP thread-private ones.  Remove incorrect comment.
3615 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
3617         * c-decl.c: Adjust include files.
3619 2014-10-14  DJ Delorie  <dj@redhat.com>
3621         * c-parser.c (c_parse_init): Add RID entries for each __intN.
3622         (c_token_starts_typename): Check all __intN, not just __int128.
3623         (c_token_starts_declspecs): Likewise.
3624         (c_parser_declspecs): Likewise.
3625         (c_parser_attribute_any_word): Likewise.
3626         (c_parser_objc_selector): Likewise.
3627         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
3628         (struct c_declspecs): Add int_n_idx field to record *which* __intN
3629         is specified.
3630         * c-decl.c (declspecs_add_type): Check for all __intN, not just
3631         __int128.
3632         (finish_declspecs): Likewise.
3634 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
3636         * c-parser.c (c_parser_all_labels): New function to replace
3637         the duplicate code.
3638         (c_parser_statement): Call the new function.
3640 2014-10-09  Marek Polacek  <polacek@redhat.com>
3642         PR c/63480
3643         * c-typeck.c (pop_init_level): Don't warn about initializing
3644         with { }.
3646 2014-10-07  Marek Polacek  <polacek@redhat.com>
3648         PR c/59717
3649         * c-decl.c (header_for_builtin_fn): New function.
3650         (implicitly_declare): Suggest which header to include.
3652 2014-10-07  Marek Polacek  <polacek@redhat.com>
3654         * c-convert.c (convert): Use error_operand_p.
3655         * c-typeck.c (require_complete_type): Likewise.
3656         (really_atomic_lvalue): Likewise.
3657         (digest_init): Likewise.
3658         (handle_omp_array_sections_1): Likewise.
3660 2014-10-03  Marek Polacek  <polacek@redhat.com>
3662         PR c/63453
3663         * c-decl.c (pop_scope): Don't warn about "inline function declared
3664         but never defined" for functions marked with gnu_inline attribute.
3666 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3668         PR c++/63249
3669         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
3670         on low_bound and length.
3672 2014-09-24  Marek Polacek  <polacek@redhat.com>
3674         PR c/61405
3675         PR c/53874
3676         * c-parser.c: Don't define CPP_KEYWORD.
3677         (c_parser_switch_statement): Pass original type to c_finish_case.
3678         * c-tree.h (c_finish_case): Update declaration.
3679         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
3680         conditionally to c_do_switch_warnings.
3682 2014-09-03  Marek Polacek  <polacek@redhat.com>
3684         PR c/62024
3685         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
3686         conversions.
3688 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
3689             Balaji V. Iyer  <balaji.v.iyer@intel.com>
3690             Igor Zamyatin  <igor.zamyatin@intel.com>
3692         * c-parser.c (c_parser_cilk_for): New function.
3693         (c_parser_cilk_grainsize): Likewise.
3694         (c_get_temp_regvar): Likewise.
3695         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
3696         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
3697         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
3698         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
3699         case.
3701 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
3703         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
3704         with using HOST_WIDE_INT without truncation to 'int'
3706 2014-08-22  Marek Polacek  <polacek@redhat.com>
3708         PR c++/62199
3709         * c-typeck.c (parser_build_binary_op): Adjust call to
3710         warn_logical_not_parentheses.
3712 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
3714         PR other/62008
3715         * c-parser.c (c_parser_array_notation): Check for correct
3716         type of an array added.
3718 2014-08-19  Marek Polacek  <polacek@redhat.com>
3720         PR c++/62153
3721         * c-typeck.c (build_binary_op): If either operand of a comparison
3722         is a boolean expression, call maybe_warn_bool_compare.
3724 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
3726         PR c/45584
3727         * c-typeck.c (build_c_cast): Do a conversion even when the
3728         TYPE_MAIN_VARIANTs are the same.
3730 2014-08-19  Marek Polacek  <polacek@redhat.com>
3732         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
3733         pedwarn_c99 instead of pedwarn.
3734         (grokfield): Likewise.
3735         (warn_defaults_to): New function.
3736         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
3737         Unconditionally call pedwarn_c99 instead of pedwarn.
3738         (start_function): Call warn_defaults_to instead of pedwarn_c99.
3739         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
3740         check flag_isoc11 before.
3741         * c-errors.c (pedwarn_c99): Change the return type to bool.
3742         Handle -Wc99-c11-compat.
3743         * c-parser.c (disable_extension_diagnostics): Handle
3744         warn_c99_c11_compat.
3745         (restore_extension_diagnostics): Likewise.
3746         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
3747         instead of pedwarn, don't check flag_isoc11 before.
3748         (c_parser_declspecs): Likewise.
3749         (c_parser_alignas_specifier): Likewise.
3750         (c_parser_alignof_expression): Likewise.
3751         (c_parser_generic_selection): Likewise.
3752         * c-tree.h (pedwarn_c99): Update declaration.
3753         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
3754         of pedwarn_c99.
3756 2014-08-19  Marek Polacek  <polacek@redhat.com>
3758         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
3759         to pedwarn_c90.
3760         * c-errors.c: Include "opts.h".
3761         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
3762         * c-parser.c (disable_extension_diagnostics): Handle negative value
3763         of warn_c90_c99_compat, too.
3764         (restore_extension_diagnostics): Likewise.
3765         (c_parser_compound_statement_nostart): Pass
3766         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
3768 2014-08-12  Marek Polacek  <polacek@redhat.com>
3770         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
3771         Add pedwarn.
3772         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
3773         Likewise.
3774         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
3776 2014-08-10  Marek Polacek  <polacek@redhat.com>
3778         PR c/51849
3779         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
3780         Call pedwarn_c90 instead of pedwarn.
3781         (check_bitfield_type_and_width): Likewise.
3782         (declspecs_add_qual): Likewise.
3783         (declspecs_add_type): Likewise.
3784         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
3785         Adjust to only call pedwarn_c90.
3786         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
3787         pedwarn_c90 instead of pedwarn.
3788         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
3789         * c-parser.c (disable_extension_diagnostics): Handle
3790         warn_c90_c99_compat.
3791         (restore_extension_diagnostics): Likewise.
3792         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
3793         pedwarn_c90 instead of pedwarn.
3794         (c_parser_initelt): Likewise.
3795         (c_parser_postfix_expression): Likewise.
3796         (c_parser_postfix_expression_after_paren_type): Likewise.
3797         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
3798         * c-tree.h: Fix formatting.
3799         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
3800         pedwarn_c90 instead of pedwarn.
3802 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
3804         * c-typeck.c: Remove include of pointer-set.h.
3806 2014-08-07  Marek Polacek  <polacek@redhat.com>
3808         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
3810 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3812         * c-typeck.c: Use hash_map instead of pointer_map.
3814 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3816         * c-decl.c: Use hash_set instead of pointer_set.
3818 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
3820         PR middle-end/61455
3821         * c-array-notation.c (expand_array_notations): Handling
3822         of DECL_EXPR added.
3824 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
3826         PR c++/60517
3827         * c-typeck.c (c_finish_return): Return 0 instead of the address of
3828         a local variable.
3830 2014-07-30  Tom Tromey  <tromey@redhat.com>
3832         * c-typeck.c (struct constructor_stack) <designator_depth>: New
3833         field.
3834         (really_start_incremental_init, push_init_level): Initialize
3835         designator_depth.
3836         (pop_init_level): Set global designator_depth.
3837         (process_init_element): Check for designated_init attribute.
3839 2014-07-20  Marek Polacek  <polacek@redhat.com>
3841         PR c/61852
3842         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
3843         (implicitly_declare): Pass location to implicit_decl_warning.
3845 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
3847         PR middle-end/61294
3848         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
3849         If non-NULL, call c_parser_check_literal_zero.
3850         (c_parser_check_literal_zero): New function.
3851         (c_parser_postfix_expression_after_primary): Adjust
3852         c_parser_expr_list caller, handle -Wmemset-transposed-args.
3854 2014-07-06  Marek Polacek  <polacek@redhat.com>
3856         PR c/6940
3857         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
3858         * c-tree.h (C_ARRAY_PARAMETER): Define.
3859         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
3860         function parameter.
3862 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
3863             Chen Gang  <gang.chen.5i5j@gmail.com>
3865         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
3866         releasing symbol.
3868 2014-07-01  Marek Polacek  <polacek@redhat.com>
3870         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
3871         instead of 0 to WARN_FOR_ASSIGNMENT.
3873 2014-07-01  Marek Polacek  <polacek@redhat.com>
3875         PR c/58286
3876         * c-typeck.c (convert_for_assignment): Pass
3877         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
3879 2014-06-30  Marek Polacek  <polacek@redhat.com>
3881         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
3882         has no_sanitize_undefined attribute.
3884 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
3886         PR middle-end/57541
3887         * c-array-notation.c (fix_builtin_array_notation_fn):
3888         Check for 0 arguments in builtin call. Check that bultin argument is
3889         correct.
3890         * c-parser.c (c_parser_array_notation): Check for incorrect initial
3891         index.
3893 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3895         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
3896         qualifiers in __auto_type for atomic types.
3897         (c_parser_typeof_specifier): Discard all type qualifiers in
3898         __typeof__ for atomic types.
3900 2014-06-25  Marek Polacek  <polacek@redhat.com>
3902         PR c/61162
3903         * c-parser.c (c_parser_statement_after_labels): Pass the location of
3904         the return expression to c_finish_return.
3906 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
3908         * c-typeck.c (c_finish_omp_clauses): Make sure
3909         OMP_CLAUSE_LINEAR_STEP has correct type.
3911 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3913         * c-decl.c: Adjust.
3915 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
3917         * c-parser.c (c_parser_omp_for_loop): For
3918         #pragma omp parallel for simd move lastprivate clause from parallel
3919         to for rather than simd.
3921 2014-06-23  Marek Polacek  <polacek@redhat.com>
3923         * c-typeck.c (parser_build_binary_op): Don't call
3924         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3926 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
3928         * c-parser.c (c_parser_omp_threadprivate): Likewise.
3929         * c-decl.c (merge_decls): Likewise.
3931 2014-06-09  Marek Polacek  <polacek@redhat.com>
3933         PR c/36446
3934         * c-typeck.c (error_init): Call inform instead of error_at.
3935         (pedwarn_init): Call inform instead of pedwarn.
3936         (warning_init): Call inform instead of warning_at.
3938 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3940         * c-decl.c (merge_decls): Use set_decl_section_name.
3941         (duplicate_decls): Remove node if it exists.
3943 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
3945         PR c/53119
3946         * c-typeck.c (push_init_level, process_init_element,
3947         pop_init_level): Correct check for zero initialization, move
3948         missing brace warning to respect zero initialization.
3950 2014-06-05  Marek Polacek  <polacek@redhat.com>
3952         PR c/56724
3953         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3955 2014-06-05  Marek Polacek  <polacek@redhat.com>
3957         PR c/49706
3958         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3959         on the left hand side operand of a comparison. 
3961 2014-06-05  Marek Polacek  <polacek@redhat.com>
3963         PR c/48062
3964         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3965         Print note only if the warning was printed.
3967 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
3969         PR c/58942
3970         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3971         with a pointer.
3973 2014-06-03  Marek Polacek  <polacek@redhat.com>
3975         PR c/60439
3976         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3977         c_start_case.
3978         * c-tree.h (c_start_case): Update.
3979         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
3980         switch condition has boolean value.
3982 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
3984         * c-decl.c: Include builtins.h.
3985         * c-parser.c: Likewise.
3987 2014-05-27  Marek Polacek  <polacek@redhat.com>
3989         PR c/56724
3990         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
3991         error and warning calls to error_at and warning_at.  Pass location of
3992         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
3993         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3994         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
3996 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
3998         PR c/61191
3999         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
4000         function parameters.
4002 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
4004         * c-decl.c (merge_decls): Preserve symtab node pointers.
4005         (duplicate_decls): Free new decl.
4007 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
4009         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
4010         initialization.
4012         * c-parser.c (c_parser_omp_target): Return bool values.
4014 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4016         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
4017         num_teams_loc variable to num_thread_limit_loc.
4019 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4021         * c-array-notation.c (expand_array_notations): Use void_node
4022         instead of void_zero_node.
4024 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
4026         * c-decl.c (finish_struct): Adjust.
4027         (finish_enum): Likewise.
4028         (bind): Adjust.
4029         (record_inline_static): Likewise.
4030         (push_scope): Likewise.
4031         (make_label): Likewise.
4032         (lookup_label_for_goto): Likewise.
4033         (finish_struct): Likewise.
4034         (finish_enum): Likewise.
4035         (store_parm_decls): Likewise.
4036         (c_push_function_context): Likewise.
4037         * c-lang.h: Remove usage of variable_size gty attribute.
4038         * c-parser.c (c_parse_init): Adjust.
4039         (c_parse_file): Likewise.
4041 2014-05-13  Marek Polacek  <polacek@redhat.com>
4043         PR c/61162
4044         * c-typeck.c (convert_for_assignment): Pass location to
4045         WARN_FOR_ASSIGNMENT instead of input_location.
4047 2014-05-10  Marek Polacek  <polacek@redhat.com>
4049         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
4050         maybe_warn_string_init.
4051         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
4052         maybe_warn_string_init.
4053         * c-tree.h (maybe_warn_string_init): Update declaration.
4054         * c-typeck.c (maybe_warn_string_init): Add location parameter.
4055         Call pedwarn_init with loc instead of with input_location.
4056         (digest_init): Pass init_loc to maybe_warn_string_init.
4057         (pop_init_level): Call pedwarn_init with loc instead of with
4058         input_location.
4059         (set_init_index): Likewise.
4060         (process_init_element): Likewise.
4062 2014-05-09  Marek Polacek  <polacek@redhat.com>
4064         PR c/61096
4065         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
4066         (c_parser_initelt): Pass location to set_init_label.  Pass array index
4067         location to set_init_index.
4068         * c-tree.h (push_init_level): Update declaration.
4069         (pop_init_level): Likewise.
4070         (set_init_index): Likewise.
4071         (set_init_label): Likewise.
4072         * c-typeck.c (error_init): Add location parameter.  Call error_at
4073         instead of error.
4074         (digest_init): Pass init_loc to error_init.
4075         (really_start_incremental_init):
4076         (push_init_level): Add location parameter.  Pass loc to pop_init_level
4077         and error_init.
4078         (pop_init_level): Likewise.
4079         (set_designator): Add location parameter.  Pass loc to pop_init_level,
4080         push_init_level, and error_init.
4081         (set_init_index): Add location parameter.  Pass loc to error_init and
4082         set_designator.
4083         (set_init_label): Likewise.
4084         (output_init_element): Pass loc to error_init.
4085         (process_init_element): Pass loc to error_init, pop_init_level,
4086         pedwarn_init, and push_init_level.
4088 2014-05-09  Marek Polacek  <polacek@redhat.com>
4090         PR c/50459
4091         * c-parser.c (c_parser_attributes): Parse the arguments as an
4092         expression-list if the attribute takes identifier.
4094 2014-05-08  Marek Polacek  <polacek@redhat.com>
4096         PR c/61053
4097         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
4098         TYPE_ALIGN_UNIT.
4100 2014-05-08  Marek Polacek  <polacek@redhat.com>
4102         PR c/61077
4103         * c-decl.c (start_function): Warn for _Atomic-qualified return type
4104         of main.
4106 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
4107             Mike Stump  <mikestump@comcast.net>
4108             Richard Sandiford  <rdsandiford@googlemail.com>
4110         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
4111         (finish_enum): Use wide-int interfaces.
4112         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
4113         * c-typeck.c (build_c_cast): Likewise.
4114         (set_nonincremental_init_from_string): Likewise.
4115         (c_tree_equal): Likewise.
4117 2014-05-02  Marek Polacek  <polacek@redhat.com>
4119         PR c/25801
4120         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
4121         Return size_one_node when the type is not complete.
4122         (pointer_diff): Remove comment.
4123         (build_unary_op): Improve error messages.
4125 2014-05-02  Marek Polacek  <polacek@redhat.com>
4127         * c-typeck.c (c_finish_return): Separate warning_at calls.
4129 2014-05-02  Marek Polacek  <polacek@redhat.com>
4131         * c-tree.h (error_init): Remove declaration.
4132         (pedwarn_init): Likewise.
4133         * c-typeck.c (error_init): Make static and move above.
4134         (pedwarn_init): Likewise.
4135         (warning_init): Move above.
4136         (maybe_warn_string_init): Likewise.
4138 2014-05-01  Jeff Law  <law@redhat.com>
4140         Revert:
4142         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4143         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
4144         avoid goto.
4146 2014-05-02  Marek Polacek  <polacek@redhat.com>
4148         PR c/60784
4149         * c-typeck.c (push_init_level): Set constructor_designated to
4150         p->designated for structures.
4152 2014-05-01  Marek Polacek  <polacek@redhat.com>
4154         PR c/60915
4155         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
4156         function-definition has an attribute after the declarator.
4158 2014-05-01  Marek Polacek  <polacek@redhat.com>
4160         PR c/60257
4161         * c-typeck.c (warning_init): Add location_t parameter.  Call
4162         warning_at instead of warning.
4163         (push_init_level): Pass input_location to warning_init.
4164         (add_pending_init): Add location_t parameter.  Pass loc to
4165         warning_init.
4166         (set_nonincremental_init): Pass input_location to add_pending_init.
4167         (set_nonincremental_init_from_string): Likewise.
4168         (output_init_element): Pass loc to warning_init and to
4169         add_pending_init.
4171 2014-05-01  Marek Polacek  <polacek@redhat.com>
4173         PR c/43395
4174         * c-typeck.c (c_finish_return): Distinguish between label and variable
4175         when warning about returning local address.
4177 2014-05-01  Marek Polacek  <polacek@redhat.com>
4179         PR c/29467
4180         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
4181         in C89 mode.
4183 2014-05-01  Marek Polacek  <polacek@redhat.com>
4185         PR c/43245
4186         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
4187         instead of 0 to WARN_FOR_QUALIFIERS.
4189 2014-05-01  Marek Polacek  <polacek@redhat.com>
4191         PR c/56989
4192         * c-typeck.c (default_conversion): Use better location for
4193         error call.
4195 2014-04-30  Marek Polacek  <polacek@redhat.com>
4197         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
4198         also when SANITIZE_FLOAT_DIVIDE is on.
4200 2014-04-30  Marek Polacek  <polacek@redhat.com>
4202         PR c/60139
4203         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
4204         and pedwarn_init.  Use loc insted of input_location.
4206 2014-04-30  Marek Polacek  <polacek@redhat.com>
4208         PR c/60351
4209         * c-typeck.c (build_binary_op): Use location when warning about
4210         shift count.
4212 2014-04-25  Marek Polacek  <polacek@redhat.com>
4214         PR c/18079
4215         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
4216         always_inline/noinline and hot/cold attributes.
4218 2014-04-25  Marek Polacek  <polacek@redhat.com>
4220         PR c/60114
4221         * c-parser.c (c_parser_initelt): Pass input_location to
4222         process_init_element.
4223         (c_parser_initval): Pass loc to process_init_element.
4224         * c-tree.h (process_init_element): Adjust declaration.
4225         * c-typeck.c (push_init_level): Pass input_location to
4226         process_init_element.
4227         (pop_init_level): Likewise.
4228         (set_designator): Likewise.
4229         (output_init_element): Add location_t parameter.  Pass loc to
4230         digest_init.
4231         (output_pending_init_elements): Pass input_location to
4232         output_init_element.
4233         (process_init_element): Add location_t parameter.  Pass loc to
4234         output_init_element.
4236 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
4238         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
4239         atomic-clause, allow comma in between atomic-clause and
4240         seq_cst.
4242 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
4244         PR c/59073
4245         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
4246         fails, don't set OM_PARALLEL_COMBINED and return NULL.
4248 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4250         PR middle-end/60469
4251         * c-array-notation.c (fix_builtin_array_notation_fn): Use
4252         create_tmp_var instead build_decl for creating temps.
4253         (build_array_notation_expr): Likewise.
4254         (fix_conditional_array_notations_1): Likewise.
4255         (fix_array_notation_expr): Likewise.
4256         (fix_array_notation_call_expr): Likewise.
4258 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
4260         PR c++/60689
4261         * c-tree.h (c_build_function_call_vec): New prototype.
4262         * c-typeck.c (build_function_call_vec): Don't call
4263         resolve_overloaded_builtin here.
4264         (c_build_function_call_vec): New wrapper function around
4265         build_function_call_vec.  Call resolve_overloaded_builtin here.
4266         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
4267         Call c_build_function_call_vec instead of build_function_call_vec.
4268         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
4269         * c-decl.c (finish_decl): Likewise.
4271 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4273         PR c/55383
4274         * c-typeck.c: Use correct format string in cast-qual warning
4276 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
4278         * c-decl.c (c_decl_attributes): Use
4279         lang_hooks.types.omp_mappable_type.
4280         * c-typeck.c (c_finish_omp_clauses): Likewise.
4282 2014-03-06  Marek Polacek  <polacek@redhat.com>
4284         PR c/60197
4285         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
4286         of checking tree code.
4288 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4290         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
4291         (c_parser_parameter_declaration): Likewise.
4293 2014-02-19  Marek Polacek  <polacek@redhat.com>
4295         PR c/60195
4296         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
4297         Call mark_exp_read on exp.value.
4298         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
4299         TREE_ADDRESSABLE on old instead of val.
4300         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
4302 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
4304         * c-parser.c (c_parser_get_builtin_args): Replace calls to
4305         C_EXPR_APPEND by vec_safe_push.
4306         * c-tree.h (C_EXPR_APPEND): Remove.
4308 2014-01-31  Marek Polacek  <polacek@redhat.com>
4310         PR c/59963
4311         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
4312         build_function_call_vec.
4313         (build_function_call): Likewise.
4314         (build_atomic_assign): Likewise.
4315         (build_function_call_vec): Add arg_loc parameter.  Use it.
4316         (convert_arguments): Likewise.
4317         (convert_for_assignment): Rename rhs_loc to expr_loc.
4318         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
4319         (c_parser_objc_keywordexpr): Likewise.
4320         (c_parser_postfix_expression_after_primary): Call
4321         build_function_call_vec with expr_loc rather than op_loc.
4322         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
4323         build_function_call_vec.
4324         (c_parser_expr_list): Add locations parameter.  Fill it with locations
4325         of function arguments.
4326         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
4328 2014-01-30  Marek Polacek  <polacek@redhat.com>
4330         PR c/59940
4331         * c-typeck.c (build_function_call_vec): Use loc parameter.
4332         (convert_arguments): Add location parameter.  Use it.
4333         (ep_convert_and_check): Likewise.
4334         (build_atomic_assign): Adjust convert_for_assignment call.
4335         (build_modify_expr): Likewise.
4336         (digest_init): Likewise.
4337         (c_finish_return): Likewise.
4338         (build_conditional_expr): Adjust ep_convert_and_check calls.
4339         (convert_for_assignment): Add rhs_loc parameter.  Use it.
4340         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
4341         calls.
4343 2014-01-30  Richard Biener  <rguenther@suse.de>
4345         PR c/59905
4346         * c-typeck.c (build_function_call_vec): Do not replace calls
4347         to a function via an incompatible type with a runtime abort.
4349 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4351         * c-parser.c (c_parser_declaration_or_fndef): Replaced
4352         flag_enable_cilkplus with flag_cilkplus.
4353         (c_parser_direct_declarator_inner): Likewise.
4354         (c_parser_attribute_any_word): Likewise.
4355         (c_parser_attributes): Likewise.
4356         (c_parser_compound_statement): Likewise.
4357         (c_parser_statement_after_labels): Likewise.
4358         (c_parser_if_statement): Likewise.
4359         (c_parser_switch_statement): Likewise.
4360         (c_parser_do_statement): Likewise.
4361         (c_parser_for_statement): Likewise.
4362         (c_parser_unary_expression): Likewise.
4363         (c_parser_postfix_expression): Likewise.
4364         (c_parser_postfix_expression_after_primary): Likewise.
4365         (c_parser_postfix_expression_after_primary): Likewise.
4366         (c_parser_omp_clause_name): Likewise.
4367         (c_finish_omp_declare_simd): Likewise.
4368         (c_parser_cilk_verify_simd): Likewise.
4369         * c-typeck.c (build_array_ref): Likewise.
4370         (build_function_call_vec): Likewise.
4371         (convert_arguments): Likewise.
4372         (build_compound_expr): Likewise.
4373         (c_finish_return): Likewise.
4374         (c_finish_if_stmt): Likewise.
4375         (c_finish_loop): Likewise.
4376         (build_binary_op): Likewise.
4378 2014-01-23  Marek Polacek  <polacek@redhat.com>
4380         PR c/59846
4381         * c-typeck.c (parser_build_binary_op): Use location instead of
4382         input_location.
4383         (build_binary_op): Pass location to shorten_compare.
4385 2014-01-23  Marek Polacek  <polacek@redhat.com>
4387         PR c/58346
4388         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
4389         an empty aggregate.
4391 2014-01-23  Marek Polacek  <polacek@redhat.com>
4393         PR c/59871
4394         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
4395         of a comma expression.
4396         (emit_side_effect_warnings): Likewise.
4398 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4400         PR c/59825
4401         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
4402         function to use walk_tree and moved a lot of its functionality to
4403         expand_array_notations.
4404         (expand_array_notations): New function.
4406 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4408         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
4409         attribute an attribute without value.
4411 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
4413         PR middle-end/58809
4414         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
4415         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
4417 2014-01-22  Marek Polacek  <polacek@redhat.com>
4419         PR c/59891
4420         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
4421         of remove_c_maybe_const_expr on op1 and op2.
4423 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
4425         PR c/58943
4426         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
4427         effects, preevaluate rhs using SAVE_EXPR first.
4429 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4431         PR c++/59631
4432         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
4433         statements with if-elseif statements.
4435 2014-01-06  Marek Polacek  <polacek@redhat.com>
4437         PR c/57773
4438         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
4439         defined bit-field types only in ISO C.
4441 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4443         Update copyright years
4445 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4447         * c-array-notation.c: Use the standard form for the copyright notice.
4449 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4451         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
4452         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
4453         field in parser is not empty.  If not-empty, call the function
4454         c_parser_finish_omp_declare_simd.
4455         (c_parser_cilk_clause_vectorlength): Modified function to be shared
4456         between SIMD-enabled functions and #pragma simd.  Added new parameter.
4457         (c_parser_cilk_all_clauses): Modified the usage of the function
4458         c_parser_cilk_clause_vectorlength as mentioned above.
4459         (c_parser_cilk_simd_fn_vector_attrs): New function.
4460         (c_finish_cilk_simd_fn_tokens): Likewise.
4461         (is_cilkplus_vector_p): Likewise.
4462         (c_parser_omp_clause_name): Added checking for "vectorlength,"
4463         "nomask," and "mask" strings in clause name.
4464         (c_parser_omp_all_clauses): Added 3 new case statements:
4465         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
4466         PRAGMA_CILK_CLAUSE_NOMASK.
4467         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
4468         check for vector attribute and if so call the function
4469         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
4470         called the function c_finish_cilk_simd_fn_tokens.
4471         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
4472         parser field is non-empty.  If so, parse them as you would parse
4473         the omp declare simd pragma.
4474         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
4475         Added a check when step is a parameter and flag it as error.
4476         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
4477         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
4478         pragma_omp_clause.
4480 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
4482         * c-parser.c (c_parser_omp_parallel): Fix description.
4484 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4486         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
4487         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4488         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
4489         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
4491 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
4493         PR c/52023
4494         * c-parser.c (c_parser_alignas_specifier): Use
4495         c_sizeof_or_alignof_type instead of c_alignof.
4496         (c_parser_alignof_expression): Likewise, with min_alignof
4497         parameter depending on alignof spelling used.
4499 2013-12-04  Marek Polacek  <polacek@redhat.com>
4501         PR c/54113
4502         * c-decl.c (start_function): Don't warn for missing prototype for
4503         inline functions.
4505 2013-12-03  Marek Polacek  <polacek@redhat.com>
4507         PR c/59351
4508         * c-decl.c (build_compound_literal): Allow compound literals with
4509         empty initial value.
4511 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
4513         PR c/58235
4514         * c-typeck.c (build_modify_expr): Diagnose assignment to
4515         expression with array type.
4517 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4519         PR c/42262
4520         * c-typeck.c (process_init_element): Do not treat a string as
4521         initializing a whole array when used with a designator for an
4522         individual element.
4524 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4526         PR c/57574
4527         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
4528         an inline function following a static declaration.
4530 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
4532         PR c/59310
4533         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
4534         to p_name before calling c_parser_omp_teams instead of after.
4535         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
4536         argument.  Remove unused p_name variable.
4538 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
4539             Jakub Jelinek  <jakub@redhat.com>
4541         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
4542         external_scope is NULL.
4544 2013-11-27  Tom de Vries  <tom@codesourcery.com>
4545             Marc Glisse  <marc.glisse@inria.fr>
4547         PR c++/59032
4548         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
4550 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4552         * c-typeck.c: Add required include files from gimple.h.
4554 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
4556         * c-decl.c (define_label, shadow_tag_warned)
4557         (check_bitfield_type_and_width, grokdeclarator, grokparms,
4558         store_parm_decls_newstyle, store_parm_decls_oldstyle)
4559         (declspecs_add_type): Remove use of in_system_header macro.
4560         * c-parser.c (c_parser_unary_expression): Likewise.
4561         * c-typeck.c (store_init_value, process_init_element)
4562         (c_start_case): Likewise.
4564         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
4565         macro.
4567         * c-parser.c (c_parser_set_source_position_from_token): Remove
4568         reference to in_system_header from comment.
4570 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4572         * c-decl.c (grokdeclarator): Update comment to refer to
4573         tree_to_[su]hwi rather than tree_low_cst.
4575 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4577         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
4578         tree_to_uhwi throughout.
4580 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4582         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
4583         throughout.
4585 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4587         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4588         throughout.
4590 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4592         * c-parser.c (c_parser_cilk_simd): New.
4593         (c_parser_cilk_verify_simd): New.
4594         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
4595         (c_parser_omp_for_loop): Add case for NE_EXPR.
4596         Set c_break_label for CILK_SIMD.
4597         (c_parser_cilk_clause_vectorlength): New.
4598         (c_parser_cilk_clause_linear): New.
4599         (c_parser_cilk_clause_name): New.
4600         (c_parser_cilk_all_clauses): New.
4601         * c-typeck.c (build_unary_op): Pass location argument to
4602         readonly_error.
4603         (build_modify_expr): Same.
4604         (build_asm_expr): Same.
4605         (c_finish_bc_stmt): Error on break/continue in loops.
4607 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4609         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
4611 2013-11-14  Diego Novillo  <dnovillo@google.com>
4613         * c-decl.c: Include print-tree.h.
4614         Include stor-layout.h.
4615         Include varasm.h.
4616         Include attribs.h.
4617         Include stringpool.h.
4618         * c-lang.c: Include fold-const.h.
4619         * c-parser.c: Include stringpool.h.
4620         Include attribs.h.
4621         Include stor-layout.h.
4622         Include varasm.h.
4623         Include trans-mem.h.
4624         * c-typeck.c: Include stor-layout.h.
4625         Include trans-mem.h.
4626         Include varasm.h.
4627         Include stmt.h.
4629 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4631         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
4632         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
4633         __auto_type.
4634         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
4635         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
4636         RID_AUTO_TYPE.
4637         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
4638         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
4639         (c_parser_declarator, c_parser_direct_declarator_inner)
4640         (c_parser_parameter_declaration, c_parser_type_name): All callers
4641         changed.
4642         (c_parser_declaration_or_fndef): Handle declarations with type
4643         determined from the initializer.
4645 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4647         * c-typeck.c: Include gimplify.h.
4649 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
4651         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
4652         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
4653         comment.
4654         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
4655         or _Thread_local as appropriate in diagnostics.
4656         (build_null_declspecs): Initialize ret->thread_gnu_p.
4657         (declspecs_add_scspec): Handle either __thread or _Thread_local
4658         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
4659         pedantic.  Do not disallow _Thread_local extern and _Thread_local
4660         static.
4662 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
4663             Andrew MacLeod  <amacleod@redhat.com>
4665         * c-aux-info.c (gen_type): Handle atomic qualifier.
4666         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
4667         qualifiers when compating types.
4668         (shadow_tag_warned): Handle atomic_p in declspecs.
4669         (quals_from_declspecs): Likewise.
4670         (start_decl): Use c_type_promotes_to when promoting argument
4671         types.
4672         (grokdeclarator): Handle _Atomic.
4673         (get_parm_info): Diagnose any qualifier on "void" as only
4674         parameter.
4675         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
4676         comparing types.  Use c_type_promotes_to when promoting argument
4677         types.
4678         (finish_function): Use c_type_promotes_to when promoting argument
4679         types.
4680         (build_null_declspecs): Handle atomic_p in declspecs.
4681         (declspecs_add_qual): Handle RID_ATOMIC.
4682         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
4683         (c_token_starts_declspecs): Handle RID_ATOMIC.
4684         (c_parser_declspecs): Handle atomic type specifiers and
4685         qualifiers.
4686         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
4687         from types of expressions with atomic type.
4688         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
4689         (c_parser_attribute_any_word): Handle RID_ATOMIC.
4690         (c_parser_initializer, c_parser_initelt, c_parser_initval)
4691         (c_parser_statement_after_labels, c_parser_switch_statement)
4692         (c_parser_for_statement, c_parser_expr_no_commas)
4693         (c_parser_conditional_expression, c_parser_binary_expression)
4694         (c_parser_cast_expression, c_parser_unary_expression)
4695         (c_parser_postfix_expression)
4696         (c_parser_postfix_expression_after_primary, c_parser_expression):
4697         Use convert_lvalue_to_rvalue.
4698         (c_parser_expression_conv, c_parser_expr_list): Document
4699         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
4700         (c_parser_objc_synchronized_statement): Use
4701         convert_lvalue_to_rvalue.
4702         (c_parser_objc_selector): Handle RID_ATOMIC.
4703         (c_parser_objc_receiver, c_parser_array_notation): Use
4704         convert_lvalue_to_rvalue.
4705         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
4706         _Atomic (type-name).
4707         (struct c_declspecs): Add atomic_p field.
4708         (convert_lvalue_to_rvalue): Declare.
4709         * c-typeck.c (c_type_promotes_to): Promote atomic types to
4710         corresponding atomic types.
4711         (qualify_type): Don't add _Atomic qualifiers from second argument.
4712         (comp_target_types): Do not allow _Atomic mismatches.
4713         (type_lists_compatible_p): Do not remove atomic qualifiers when
4714         comparing types.
4715         (really_atomic_lvalue, convert_lvalue_to_rvalue)
4716         (build_atomic_assign): New functions.
4717         (build_unary_op): Use build_atomic_assign for atomic increment and
4718         decrement.
4719         (build_conditional_expr): Do not treat _Atomic void as a qualified
4720         version of void.
4721         (build_modify_expr): Use build_atomic_assign for atomic LHS.
4722         (find_anonymous_field_with_type, convert_to_anonymous_field)
4723         (convert_for_assignment): Do not remove atomic qualifiers when
4724         comparing types.
4725         (digest_init): Do not accept initialization of arrays of atomic
4726         elements by string constants.
4727         (build_asm_expr): Use convert_lvalue_to_rvalue.
4728         (build_binary_op): Do not treat _Atomic void as a qualified
4729         version of void.
4731 2013-11-06  DJ Delorie  <dj@redhat.com>
4733         * c-decl.c (locate_old_decl): If a previous conflicting decl is
4734         both explicit and builtin, print the location of the explicit one.
4736 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4738         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
4739         c_parser_omp_distribute, c_parser_omp_teams,
4740         c_parser_omp_target, c_parser_omp_declare): Handle
4741         -fopenmp-simd.
4743 2013-11-03  Marek Polacek  <polacek@redhat.com>
4745         * c-decl.c (grokdeclarator): Add VLA instrumentation.
4747 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
4749         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
4750         check_dup_generic at the end, unless remove is true.
4751         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
4752         remove = true;.
4753         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
4755 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
4757         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
4758         with decl that is not pointer nor array.
4760 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4762         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
4763         a spawning function is found.
4764         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
4765         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
4766         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4767         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
4768         case.
4769         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
4770         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
4771         expr.
4772         (c_finish_return): Added a check to reject _Cilk_spawn in return
4773         expression.
4774         (build_cilk_spawn): New function.
4775         (build_cilk_sync): Likewise.
4776         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
4777         
4778 2013-10-27  Tobias Burnus  <burnus@net-b.de>
4780         PR other/33426
4781         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
4782         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
4783         (c_parser_statement_after_labels): Update calls.
4785 2013-10-24  Tobias Burnus  <burnus@net-b.de>
4787         PR other/33426
4788         * c-parser.c (c_parser_pragma, c_parser_for_statement):
4789         Handle PRAGMA_IVDEP.
4790         (c_parser_statement_after_labels): Update call.
4792 2013-10-24  Marek Polacek  <polacek@redhat.com>
4794         * c-parser.c (c_parser_struct_declaration): Add a comment.
4795         (c_parser_declarator): Don't allow _Alignas here.
4797 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
4799         * c-parser.c: Include omp-low.h.
4800         * c-typeck.c: Likewise.
4802 2013-10-17  Marek Polacek  <polacek@redhat.com>
4804         PR c/58267
4805         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
4806         Document syntax of the array-declarator.
4807         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
4808         are not permitted.
4809         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
4810         (c_parser_struct_declaration): Likewise.
4811         (c_parser_declarator): Likewise.
4812         (c_parser_direct_declarator_inner): Likewise.
4813         (c_parser_parameter_declaration): Likewise.
4814         (c_parser_type_name): Likewise.
4816 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
4818         * c-lang.h (current_omp_declare_target_attribute): New extern
4819         decl.
4820         * c-parser.c: Include c-lang.h.
4821         (struct c_parser): Change tokens to c_token *.
4822         Add tokens_buf field.  Change tokens_avail type to unsigned int.
4823         (c_parser_consume_token): If parser->tokens isn't
4824         &parser->tokens_buf[0], increment parser->tokens.
4825         (c_parser_consume_pragma): Likewise.
4826         (enum pragma_context): Add pragma_struct and pragma_param.
4827         (c_parser_external_declaration): Adjust
4828         c_parser_declaration_or_fndef caller.
4829         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
4830         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
4831         Adjust recursive call.
4832         (c_parser_struct_or_union_specifier): Use pragma_struct instead
4833         of pragma_external.
4834         (c_parser_parameter_declaration): Use pragma_param instead of
4835         pragma_external.
4836         (c_parser_compound_statement_nostart, c_parser_label,
4837         c_parser_for_statement): Adjust
4838         c_parser_declaration_or_fndef callers.
4839         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
4840         it through to c_parser_conditional_expression.
4841         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
4842         pass it through to c_parser_binary_expression.  Adjust recursive
4843         call.
4844         (c_parser_binary_expression): Remove prec argument, add
4845         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
4846         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
4847         binop matches it, use build2 instead of parser_build_binary_op.
4848         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
4849         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
4850         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
4851         Handle pragma_struct and pragma_param the same as pragma_external.
4852         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
4853         (c_parser_omp_variable_list): Parse array sections for
4854         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
4855         (c_parser_omp_clause_collapse): Fully fold collapse expression.
4856         (c_parser_omp_clause_reduction): Handle user defined reductions.
4857         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
4858         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
4859         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
4860         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
4861         c_parser_omp_clause_depend, c_parser_omp_clause_map,
4862         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
4863         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
4864         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
4865         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
4866         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
4867         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
4868         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
4869         (c_parser_omp_for_loop): Add CODE argument, pass it through
4870         to c_finish_omp_for.  Change last argument to cclauses,
4871         and adjust uses to grab parallel clauses from the array of all
4872         the split clauses.  Adjust c_parser_binary_expression,
4873         c_parser_declaration_or_fndef and c_finish_omp_for callers.
4874         (omp_split_clauses): New function.
4875         (c_parser_omp_simd): New function.
4876         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
4877         Allow the function to be called also when parsing combined constructs,
4878         and call c_parser_omp_simd when parsing for simd.
4879         (c_parser_omp_sections_scope): If section-sequence doesn't start with
4880         #pragma omp section, require exactly one structured-block instead of
4881         sequence of statements.
4882         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
4883         Allow the function to be called also when parsing combined constructs.
4884         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
4885         Allow the function to be called also when parsing combined
4886         constructs.
4887         (c_parser_omp_taskgroup, c_parser_omp_cancel,
4888         c_parser_omp_cancellation_point, c_parser_omp_distribute,
4889         c_parser_omp_teams, c_parser_omp_target_data,
4890         c_parser_omp_target_update, c_parser_omp_target,
4891         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
4892         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
4893         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
4894         (c_parser_omp_construct): Add p_name and mask vars.  Handle
4895         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
4896         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
4897         and c_parser_omp_sections callers.
4898         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
4899         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4900         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
4901         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
4902         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
4903         OMP_CLAUSE_DEPEND.
4904         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4905         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4906         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4907         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4908         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4909         * c-typeck.c: Include tree-inline.h.
4910         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4911         handle_omp_array_sections_1, handle_omp_array_sections,
4912         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4913         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4914         user defined reductions.
4915         (c_tree_equal): New function.
4916         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4917         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4918         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4919         c_check_omp_declare_reduction_r): New prototypes.
4920         * c-decl.c (current_omp_declare_target_attribute): New variable.
4921         (c_decl_attributes): New function.
4922         (start_decl, start_function): Use it instead of decl_attributes.
4923         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4924         c_omp_reduction_decl, c_omp_reduction_lookup,
4925         c_check_omp_declare_reduction_r): New functions.
4927 2013-09-25  Tom Tromey  <tromey@redhat.com>
4929         * Make-lang.in (c/gccspec.o): Remove.
4930         (CFLAGS-c/gccspec.o): New variable.
4931         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4932         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4933         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4935 2013-09-25  Tom Tromey  <tromey@redhat.com>
4937         * Make-lang.in (c/gccspec.o): Don't use subshell.
4939 2013-09-18  Marek Polacek  <polacek@redhat.com>
4941         PR sanitize/58443
4942         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4943         Remove unnecessary check.
4945 2013-09-18  Marek Polacek  <polacek@redhat.com>
4947         PR sanitizer/58411
4948         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4949         no_sanitize_undefined attribute.
4951 2013-09-13  Kai Tietz  <ktietz@redhat.com>
4953         PR target/57848
4954         * c-decl.c (c_builtin_function_ext_scope): Remove
4955         wrong assumption that it is never called on prexisting
4956         symbol.
4958 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
4960         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4962 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4964         * c-objc-common.c (c_tree_printer): Tidy.
4966 2013-08-30  Marek Polacek  <polacek@redhat.com>
4968         * c-typeck.c (build_binary_op): Add division by zero and shift
4969         instrumentation.
4971 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4972             Joseph Myers  <joseph@codesourcery.com>
4974         PR c/35649
4975         * c-typeck.c (c_common_type): Prefer double_type_node over
4976         other REAL_TYPE types with the same precision.
4977         (convert_arguments): Likewise.
4979 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4981         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4982         (c_initialize_diagnostics): Call a destructor for the early printer.
4984 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4986         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4987         printer initialization.
4989 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4991         PR c/57490
4992         * c-array-notation.c (fix_conditional_array_notations_1): Added a
4993         check for truth values.
4994         (expand_array_notation_exprs): Added truth values case.  Removed an
4995         unwanted else.  Added for-loop to walk through subtrees in default
4996         case.
4998 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5000         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
5002 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
5004         * c-parser.c (struct c_generic_association): Fix typo.
5006 2013-07-23  Tom Tromey  <tromey@redhat.com>
5007             Joseph Myers  <joseph@codesourcery.com>
5009         * c-parser.c (struct c_generic_association): New.
5010         (c_generic_association_d): New typedef.
5011         (c_parser_generic_selection): New function.
5012         (c_parser_postfix_expression): Handle RID_GENERIC.
5014 2013-07-13  Jason Merrill  <jason@redhat.com>
5016         PR c++/57793
5017         * c-decl.c (finish_struct): Check for too-large class.
5019 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
5021         PR c/57821
5022         * c-typeck.c (set_init_index): When folding, check for index overflow.
5024 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5026         * c-parser.c (c_parser_array_notation): Removed rejection of array
5027         notations in an array of function pointers.
5029 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5031         * c-array-notation.c (make_triplet_val_inv): New function.
5032         (create_cmp_incr): Likewise.
5033         (create_array_refs): Likewise.
5034         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
5035         Also modularized common parts between functions and called the function.
5036         (build_array_notation_expr): Likewise.
5037         (fix_conditional_array_notations_1): Likewise.
5038         (fix_array_notation_expr): Likewise.
5039         (fix_array_notation_call_expr): Likewise.
5041 2013-06-18  Marek Polacek  <polacek@redhat.com>
5043         PR c/57630
5044         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
5046 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5048         * c-array-notation.c (build_array_notation_expr): Reject array notation
5049         mismatch between LHS and RHS even inside a call_expr.  Also, removed
5050         a couple while statements that were dead code.
5052 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5054         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
5055         excessive precision expressions in function parameters.  Also removed
5056         couple unwanted while statements.
5058 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5060         * c-array-notation.c (expand_array_notation_exprs): Added
5061         ARRAY_NOTATION_REF case.
5062         
5063 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5065         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
5066         function to c-family/array-notation-common.c.
5067         (is_cilkplus_reduce_builtin): Likewise.
5068         (find_rank): Likewise.
5069         (extract_array_notation_exprs): Likewise.
5070         (replace_array_notations): Likewise.
5071         (find_inv_trees): Likewise.
5072         (replace_inv_trees): Likewise.
5073         (contains_array_notation_expr): Likewise.
5074         (find_correct_array_notation_type): Likewise.
5075         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
5076         (struct inv_list): Moved this to c-family/array-notation-common.c.
5077         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
5078         
5079 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5081         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
5082         reduction functions outside the for-loop.  Added a check if the fundecl
5083         is non-NULL.  Finally, removed an unwanted if-statement, and made the
5084         body unconditional.
5086 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5088         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
5089         condition of the if-statement matches the rank of else-block and then-
5090         block when array notations are used.
5091         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
5092         expression after the entire function body is parsed.
5093         (c_parser_expr_no_commas): Delayed creating array notation expressions
5094         to the end of function parsing.
5095         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
5096         whole if-statement instead of just the condition.
5097         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
5099 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5101         PR c/57474
5102         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
5103         array to NULL_TREE if they are unused.  Also added a check for the
5104         field to be NULL before its fields are used in future.
5105         
5106 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5108         PR bootstrap/57450
5109         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
5110         (build_array_notation_expr): Likewise.
5112 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5114         * c-typeck.c (build_array_ref): Added a check to see if array's
5115         index is greater than one.  If true, then emit an error.
5116         (build_function_call_vec): Exclude error reporting and checking
5117         for builtin array-notation functions.
5118         (convert_arguments): Likewise.
5119         (c_finish_return): Added a check for array notations as a return
5120         expression.  If true, then emit an error.
5121         (c_finish_loop): Added a check for array notations in a loop
5122         condition.  If true then emit an error.
5123         (lvalue_p): Added a ARRAY_NOTATION_REF case.
5124         (build_binary_op): Added a check for array notation expr inside
5125         op1 and op0.  If present, we call another function to find correct
5126         type.
5127         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
5128         * c-parser.c (c_parser_compound_statement): Check if array
5129         notation code is used in tree, if so, then transform them into
5130         appropriate C code.
5131         (c_parser_expr_no_commas): Check if array notation is used in LHS
5132         or RHS, if so, then build array notation expression instead of
5133         regular modify.
5134         (c_parser_postfix_expression_after_primary): Added a check for
5135         colon(s) after square braces, if so then handle it like an array
5136         notation.  Also, break up array notations in unary op if found.
5137         (c_parser_direct_declarator_inner): Added a check for array
5138         notation.
5139         (c_parser_compound_statement): Added a check for array notation in
5140         a stmt.  If one is present, then expand array notation expr.
5141         (c_parser_if_statement): Likewise.
5142         (c_parser_switch_statement): Added a check for array notations in
5143         a switch statement's condition.  If true, then output an error.
5144         (c_parser_while_statement): Similarly, but for a while.
5145         (c_parser_do_statement): Similarly, but for a do-while.
5146         (c_parser_for_statement): Similarly, but for a for-loop.
5147         (c_parser_unary_expression): Check if array notation is used in a
5148         pre-increment or pre-decrement expression.  If true, then expand
5149         them.
5150         (c_parser_array_notation): New function.
5151         * c-array-notation.c: New file.
5152         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
5153         
5154 2013-05-23  Mike Stump  <mikestump@comcast.net>
5156         * c-typeck.c (convert_for_assignment): Handle references to memory
5157         spaces better.
5159 2013-05-16  Jason Merrill  <jason@redhat.com>
5161         * Make-lang.in (cc1$(exeext)): Use link mutex.
5163 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5165         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
5166         to simply use OPT_Wpointer_arith.
5167         (build_unary_op): Likewise.
5169 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
5171         PR c/19449
5172         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
5173         argument.  If set, or it temporarily for parsing of the first
5174         argument into force_folding_builtin_constant_p.
5175         (c_parser_postfix_expression): Adjust callers.
5177 2013-03-21  Richard Biener  <rguenther@suse.de>
5179         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5180         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
5182 2013-02-12  Marek Polacek  <polacek@redhat.com>
5184         PR c/44938
5185         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
5186         origtypes to NULL.
5188 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
5190         PR c/56078
5191         * c-typeck.c (set_nonincremental_init_from_string): If
5192         constructor_max_index is NULL, treat it as if tree_int_cst_lt
5193         returned false.
5194         (process_init_element): Likewise.
5196 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
5198         PR c++/55619
5199         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
5200         argument, don't call default_function_array_conversion
5201         nor c_fully_fold here.
5202         (c_parser_asm_statement): Adjust callers.
5203         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
5204         and outputs here, and call default_function_array_conversion
5205         on inputs that don't need to be addressable.
5207 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
5209         PR c/39464
5210         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
5211         warning require that both c_common_unsigned_type as well as
5212         c_common_signed_type is the same for both mvl and mvr types.
5214 2012-11-16  Diego Novillo  <dnovillo@google.com>
5216         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
5218         * c-common.c: Use new vec API in vec.h.
5219         * c-common.h: Likewise.
5220         * c-gimplify.c: Likewise.
5221         * c-pragma.c: Likewise.
5222         * c-pretty-print.c: Likewise.
5223         * c-pretty-print.h: Likewise.
5224         * c-semantics.c: Likewise.
5225         * c-decl.c: Likewise.
5226         * c-parser.c: Likewise.
5227         * c-tree.h: Likewise.
5228         * c-typeck.c: Likewise.
5230 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
5232         PR c++/54930
5233         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
5235 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5237         PR c/53066
5238         * c-decl.c (warn_if_shadowing): Do not warn if a variable
5239         shadows a function, unless the variable is a function or a
5240         pointer-to-function.
5242 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
5244         PR c/54381
5245         * c-parser.c (struct c_tree_loc_pair): Removed.
5246         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
5247         add location_t * and tree * arguments, fill in array of 3
5248         sizeof_arg trees and corresponding locs.
5249         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
5250         c_parser_expr_list callers.
5251         (c_parser_postfix_expression_after_primary): Likewise.  Pass
5252         array of 3 sizeof_arg trees and locs (corresponding to first
5253         3 arguments) to sizeof_pointer_memaccess_warning.
5255 2012-10-09  Lawrence Crowl  <crowl@google.com>
5257         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
5258         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
5259         hash table.
5261 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
5263         PR c++/54194
5264         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
5265         call.
5267 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
5269         PR c++/54427
5270         * c-typeck.c: Include c-common.h.
5271         (enum stv_conv): Moved to c-common.h.
5272         (scalar_to_vector): Moved to c-common.c.
5273         (build_binary_op): Adapt to scalar_to_vector's new prototype.
5274         * Make-lang.in: c-typeck.c depends on c-common.h.
5276 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
5278         * c-decl.c (c_write_global_declarations): Fix handling of
5279         -fdump-ada-spec*.
5281 2012-09-30  Sharad Singhai  <singhai@google.com>
5283         * c-decl.c (c_write_global_declarations): Use a different method
5284         to determine if the dump has ben initialized.
5286 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
5288         PR c/54552
5289         * c-typeck.c (c_cast_expr): When casting to a type requiring
5290         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
5291         c_fully_fold first.
5293 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
5295         PR c/54103
5296         * c-typeck.c (build_unary_op): Pass original argument of
5297         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
5298         any C_MAYBE_CONST_EXPR, if it has integer operands.
5299         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
5300         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
5301         to c_objc_common_truthvalue_conversion, then remove any
5302         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
5303         c_objc_common_truthvalue_conversion not
5304         c_common_truthvalue_conversion.
5305         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
5306         call note_integer_operands for arguments with integer operands
5307         that are not integer constants.
5309 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
5311         PR c/54559
5312         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
5313         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
5315 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
5317         PR c/54428
5318         * c-convert.c (convert): Don't call fold_convert_loc if
5319         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
5320         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
5321         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
5323 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
5325         PR c/54355
5326         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
5327         for nested and empty_ok arguments in the call to
5328         c_parser_declaration_or_fndef.
5330 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
5332         * c-tree.h (c_last_sizeof_arg): Declare.
5333         * c-parser.c (struct c_tree_loc_pair): New type.
5334         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
5335         non-NULL.
5336         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
5337         (c_parser_postfix_expression_after_primary): Likewise.  Call
5338         sizeof_pointer_memaccess_warning if needed.
5339         (sizeof_ptr_memacc_comptypes): New function.
5340         * c-typeck.c (c_last_sizeof_arg): New global variable.
5341         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
5343 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
5345         * c-lang.h (lang_decl): Add variable_size GTY option.
5347 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
5349         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
5350         * Make-lang.in: Fix dependencies.
5352 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
5354         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
5355         and add language Makefile hooks.
5356         * config-lang.in: New file.
5357         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
5358         add the required "normal" config-lang.in rules.
5359         * c-lang.h: Moved from gcc/ to here.
5360         * c-tree.h: Likewise.
5361         * c-objc-common.c: Likewise.
5362         * c-objc-common.h: Likewise.
5363         * c-typeck.c: Likewise.
5364         * c-convert.c: Likewise.
5365         * c-lang.c: Likewise.
5366         * c-aux-info.c: Likewise.
5367         * c-errors.c: Likewise.
5368         * gccspec.c: Likewise.
5369         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
5370         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
5372 Copyright (C) 2012-2018 Free Software Foundation, Inc.
5374 Copying and distribution of this file, with or without modification,
5375 are permitted in any medium without royalty provided the copyright
5376 notice and this notice are preserved.