Update ChangeLog and version files for release
[official-gcc.git] / gcc / c / ChangeLog
blobee10fbeb25fb0b18ab383f10e39bb3fc31f57e7a
1 2017-07-04  Release Manager
3         * GCC 6.4.0 released.
5 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
7         PR c/81006
8         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
9         to sizetype before size_binop.
11 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
13         Backported from mainline
14         2017-03-21  Jakub Jelinek  <jakub@redhat.com>
16         PR c/80097
17         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
18         optional COMPOUND_EXPR with ubsan instrumentation.
20         2017-02-16  Jakub Jelinek  <jakub@redhat.com>
22         PR c++/79512
23         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
24         ignore #pragma omp target even when not followed by identifier.
26 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
28         Backported from mainline
29         2017-02-09  Jakub Jelinek  <jakub@redhat.com>
31         PR c/79431
32         * c-parser.c (c_parser_omp_declare_target): Don't invoke
33         symtab_node::get on automatic variables.
35 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
37         PR c/77767
38         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
39         to *expr instead of overwriting it.
41 2016-12-21  Release Manager
43         * GCC 6.3.0 released.
45 2016-11-05  Martin Sebor  <msebor@redhat.com>
47         Backport from trunk.
48         PR c/71115
49         * c-typeck.c (error_init): Use
50         expansion_point_location_if_in_system_header.
51         (warning_init): Same.
53 2016-08-22  Release Manager
55         * GCC 6.2.0 released.
57 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
58             Martin Liska  <mliska@suse.cz>
60         PR c/67410
61         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
62         % to determine val element to change.  Assert that
63         wchar_bytes * charwidth fits into val array.
65 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
67         Backported from mainline
68         2016-08-11  Jakub Jelinek  <jakub@redhat.com>
70         PR c/72816
71         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
72         array member through typedef, for orig_qual_indirect == 0 clear
73         orig_qual_type.
75 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
77         Backported from mainline
78         2016-06-29  Jakub Jelinek  <jakub@redhat.com>
80         PR c/71685
81         * c-typeck.c (c_build_qualified_type): Don't clear
82         C_TYPE_INCOMPLETE_VARS for the main variant.
84 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
86         PR c/71381
87         Backport from trunk r237290:
88         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
89         Loosen checking.
91 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
93         PR c++/71349
94         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
95         when combined with target construct.
97 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
99         Backport from trunk r236488.
100         PR c/71171
101         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
102         in error-handling.
103         (c_parser_postfix_expression): Likewise.
104         * c-tree.h (c_expr::set_error): New method.
105         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
106         that result's range is initialized.
108 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
110         PR middle-end/70626
111         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
112         OACC_LOOP_CLAUSE_MASK.
113         (c_parser_oacc_kernels_parallel): Update call to
114         c_oacc_split_loop_clauses.
116 2016-04-27  Release Manager
118         * GCC 6.1.0 released.
120 2016-04-15  Marek Polacek  <polacek@redhat.com>
122         PR c/70671
123         * c-typeck.c (build_unary_op): Pass location down to error and
124         warning call.
126 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
128         PR c/70436
129         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
130         where needed.
131         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
132         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
133         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
134         Adjust c_parser_pragma callers.
135         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
136         caller.
137         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
138         c_parser_statement.
139         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
140         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
141         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
142         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
143         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
144         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
145         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
146         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
147         down where needed.
148         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
149         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
150         calls.
152 2016-04-13  Marek Polacek  <polacek@redhat.com>
154         PR c/70436
155         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
156         adjust callers.
157         (c_parser_statement): Likewise.
158         (c_parser_c99_block_statement): Likewise.
159         (c_parser_while_statement): Likewise.
160         (c_parser_for_statement): Likewise.
161         (c_parser_if_body): Don't set IF_P here.
162         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
163         about dangling else here.
164         * c-tree.h (c_finish_if_stmt): Adjust declaration.
165         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
166         warn about dangling else here.
168 2016-04-04  Marek Polacek  <polacek@redhat.com>
170         PR c/70307
171         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
173 2016-03-31  Marek Polacek  <polacek@redhat.com>
175         PR c/70297
176         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
178 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
180         PR c/70281
181         * c-parser.c (c_parser_postfix_expression): Set the source range
182         for uses of "__builtin_types_compatible_p".
184 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
186         PR c/70280
187         * c-typeck.c (composite_type): Don't count void_list_node
188         into len, if the list is terminated by void_list_node, start
189         with void_list_node instead of NULL for newargs.  Stop
190         at void_list_node.
192 2016-03-16  Marek Polacek  <polacek@redhat.com>
194         PR c/70093
195         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
196         nested functions returning VM types.
198 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
200         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
201         when calling c_finish_omp_clauses.
203 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
205         PR c/69824
206         * c-decl.c (get_parm_info): Don't queue implicit function declarations
207         for later.
209 2016-03-04  Marek Polacek  <polacek@redhat.com>
211         PR c/69798
212         * c-parser.c (c_parser_postfix_expression): Call
213         c_parser_cast_expression rather than c_parser_postfix_expression.
215 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
217         PR c/69796
218         PR c/69974
219         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
220         of incomplete decls to error_mark_node.
222 2016-02-24  Marek Polacek  <polacek@redhat.com>
224         PR c/69819
225         * c-decl.c (finish_decl): Don't update the copy of the type of a
226         different decl type.
228 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
230         PR objc/69844
231         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
232         in id_kind reclassification.
234 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
236         PR c/69835
237         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
239 2016-02-16  James Norris  <jnorris@codesourcery.com>
241         PR c/64748
242         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
244 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
246         * c-decl.c (build_null_declspecs): Zero the entire struct.
248         PR c/69522
249         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
250         callers changed.  If nested_p is true, use it to call
251         finish_implicit_inits.
252         * c-tree.h (finish_implicit_inits): Declare.
253         * c-typeck.c (finish_implicit_inits): New function.  Move code
254         from ...
255         (push_init_level): ... here.
256         (set_designator, process_init_element): Call finish_implicit_inits.
258 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
260         PR c/69768
261         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
262         arguments for -Waddress warning.
264 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
266         PR c/69669
267         * c-decl.c (finish_enum): When honoring mode attribute,
268         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
270 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
272         PR debug/69518
273         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
274         all type variants, not just TYPE_MAIN_VARIANT.
276 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
278         PR debug/66869
279         * c-decl.c (c_write_global_declarations_1): Warn with
280         warn_unused_function if static prototype without definition
281         is not C_DECL_USED.
283 2016-01-27  Marek Polacek  <polacek@redhat.com>
285         PR c/68062
286         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
287         to unsigned, if needed.  Add -Wsign-compare warning.
289 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
291         PR tree-optimization/69483
292         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
294 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
296         PR c/24293
297         * c-tree.h (incomplete_record_decls): Declare.
298         * c-parser.c (incomplete_record_decls): Define.
299         (c_parser_translation_unit): Iterate through incomplete_record_decls and
300         report error if any decl has zero size.
301         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
302         or enum type to incomplete_record_decls.
304 2016-01-14  Tom de Vries  <tom@codesourcery.com>
306         PR tree-optimization/68773
307         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
308         set force_output.
310 2016-01-14  Marek Polacek  <polacek@redhat.com>
312         PR c/69262
313         * c-decl.c (grokdeclarator): Provide more information for invalid
314         array declarations.
316 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
318         * c-parser.c (c_parser_unary_expression): For dereferences, build
319         a combined location before calling build_indirect_ref, so that
320         error reports cover the full range, manually updating the c_expr
321         src_range.
323 2016-01-06  Marek Polacek  <polacek@redhat.com>
325         PR sanitizer/69099
326         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
327         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
328         NULL.
330 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
332         Update copyright years.
334 2016-01-04  Marek Polacek  <polacek@redhat.com>
336         PR c/68908
337         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
338         optimization to use __atomic_fetch_* built-in if possible.
340 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
342         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
343         into...
344         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
345         all users.
347 2015-12-22  Marek Polacek  <polacek@redhat.com>
349         PR c/69002
350         * c-typeck.c (build_component_ref): Warn when acessing elements of
351         atomic structures or unions.
353 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
355         * c-typeck.c: Include "gcc-rich-location.h".
356         (build_binary_op): In the two places that call binary_op_error,
357         create a gcc_rich_location and populate it with the location of
358         the binary op and its two operands.
360 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
362         * c-parser.c (c_parser_statement_after_labels): When calling
363         c_finish_return, Use the return expression's location if it has
364         one, falling back to the location of the first token within it.
365         * c-typeck.c (c_finish_return): When issuing warnings about
366         the incorrect presence/absence of a return value, issue a note
367         showing the declaration of the function.
369 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
371         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
372         to 4.
373         (c_parser_peek_nth_token): New function.
374         (c_parser_peek_conflict_marker): New function.
375         (c_parser_error): Detect conflict markers and report them as such.
377 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
379         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
380         to preserve range information for the primary expression
381         in the call to c_parser_postfix_expression_after_primary.
383 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
385         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
386         expression location, falling back on the first token location,
387         rather than always using the latter.
389 2015-12-16  Marek Polacek  <polacek@redhat.com>
391         PR c/64637
392         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
393         available.
395 2015-12-15  Marek Polacek  <polacek@redhat.com>
397         PR c/68907
398         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
399         artificial decl.
401 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
403         * c-parser.c (c_parser_alignof_expression): Capture location of
404         closing parenthesis (if any), or of end of unary expression, and
405         use it to build a src_range for the expression.
407 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
409         PR c/68757
410         * c-parser.c (c_parser_get_builtin_args): Add
411         "out_close_paren_loc" param, and write back to it.
412         (c_parser_postfix_expression): Capture the closing
413         parenthesis location for RID_CHOOSE_EXPR,
414         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
415         RID_BUILTIN_SHUFFLE and use it to set the source range
416         for such expressions; within RID_BUILTIN_COMPLEX set
417         the underlying location.
419 2015-12-07  Marek Polacek  <polacek@redhat.com>
421         PR c/68668
422         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
423         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
425 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
427         * c-tree.h (c_build_va_arg): Adjust prototype.
428         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
429         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
430         parameter, adjust throughout and issue an error if EXPR is a component
431         with reverse storage order.
433 2015-12-02  Jason Merrill  <jason@redhat.com>
435         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
436         (c_fully_fold_internal, decl_constant_value_for_optimization):
437         Move from c-common.c.
438         * c-tree.h: Declare decl_constant_value_for_optimization.
439         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
441 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
443         PR c/68162
444         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
445         following link from declarator to next declarator.  Track original
446         qualified type and pass it to c_build_qualified_type.
447         * c-typeck.c (c_build_qualified_type): Add arguments
448         orig_qual_type and orig_qual_indirect.
450 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
452         * c-parser.c (c_parser_omp_clause_name)
453         (c_parser_oacc_all_clauses): Alphabetical sorting.
455 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
457         PR c/68533
458         * c-decl.c (get_parm_info): Use b->locus instead of input_location
459         for diagnostics.
461 2015-12-01  Julian Brown  <julian@codesourcery.com>
462             Cesar Philippidis  <cesar@codesourcery.com>
463             James Norris  <James_Norris@mentor.com>
465         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
466         (c_parser_oacc_clause_use_device): New function.
467         (c_parser_oacc_all_clauses): Add use_device support.
468         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
469         (c_parser_oacc_host_data): New function.
470         (c_parser_omp_construct): Add host_data support.
471         * c-tree.h (c_finish_oacc_host_data): Add prototype.
472         * c-typeck.c (c_finish_oacc_host_data): New function.
473         (c_finish_omp_clauses): Add use_device support.
475 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
477         PR c/67106
478         * c-decl.c: Set TYPE_PACKED in variants.
480 2015-11-27  Martin Liska  <mliska@suse.cz>
482         PR c++/68312
483         * c-array-notation.c (fix_builtin_array_notation_fn):
484         Use release_vec_vec instead of vec::release.
485         (build_array_notation_expr): Likewise.
486         (fix_conditional_array_notations_1): Likewise.
487         (fix_array_notation_expr): Likewise.
488         (fix_array_notation_call_expr): Likewise.
490 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
492         PR c/63326
493         * c-parser.c (c_parser_compound_statement_nostart): If
494         last_label is true, use pragma_stmt instead of pragma_compound
495         as second c_parser_pragma argument.
496         (c_parser_omp_ordered, c_parser_omp_target_update,
497         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
498         false as second argument to c_parser_skip_to_pragma_eol after
499         diagnosing standalone directives used in pragma_stmt context.
501 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
503         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
504         with "if (ENABLE_OFFLOADING)".
506 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
508         PR objc/68438
509         * c-parser.c (c_parser_postfix_expression): Set up source ranges
510         for various Objective-C constructs: Class.name syntax,
511         @selector(), @protocol(), @encode(), and [] message syntax.
513 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
515         PR 62314
516         * c-typeck.c (should_suggest_deref_p): New function.
517         (build_component_ref): Special-case POINTER_TYPE when
518         generating a "not a structure of union"  error message, and
519         suggest a "->" rather than a ".", providing a fix-it hint.
521 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
523         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
524         candidate into a new function, find_closest_identifier.
526 2015-11-19  Marek Polacek  <polacek@redhat.com>
528         PR c/68412
529         * c-typeck.c (parser_build_binary_op): Properly handle
530         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
532 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
534         * c-parser.c (set_c_expr_source_range): Bulletproof both
535         overloaded implementations against NULL expr->value.
536         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
537         values.
538         (c_parser_unary_expression): Likewise when handling addresses of
539         labels.
540         (c_parser_postfix_expression): Likewise for statement expressions,
541         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
542         __builtin_va_arg, and for __builtin_offset_of.
543         (c_parser_postfix_expression_after_paren_type): Initialize expr's
544         src_range using the range of the braced initializer.
545         (c_parser_transaction_expression): Set src_range for "ret" to a
546         sane pair of values.
548 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
550         * c-parser.c (c_finish_omp_declare_simd): Look for
551         "simd" attribute as well. Update error message.
553 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
555         * c-parser.c (c_parser_omp_declare_target): Adjust.
557 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
559         * c-typeck.c (c_finish_omp_clauses): Don't mark
560         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
562 2015-11-14  Marek Polacek  <polacek@redhat.com>
564         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
565         * c-typeck.c: Likewise.
567 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
569         * c-decl.c (warn_defaults_to): Pass line_table to
570         rich_location ctor.
571         * c-errors.c (pedwarn_c99): Likewise.
572         (pedwarn_c90): Likewise.
573         * c-parser.c (set_c_expr_source_range): New functions.
574         (c_token::get_range): New method.
575         (c_token::get_finish): New method.
576         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
577         based on the range from the start of the LHS to the end of the
578         RHS.
579         (c_parser_conditional_expression): Likewise, based on the range
580         from the start of the cond.value to the end of exp2.value.
581         (c_parser_binary_expression): Call set_c_expr_source_range on
582         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
583         (c_parser_cast_expression): Call set_c_expr_source_range on ret
584         based on the cast_loc through to the end of the expr.
585         (c_parser_unary_expression): Likewise, based on the
586         op_loc through to the end of op.
587         (c_parser_sizeof_expression) Likewise, based on the start of the
588         sizeof token through to either the closing paren or the end of
589         expr.
590         (c_parser_postfix_expression): Likewise, using the token range,
591         or from the open paren through to the close paren for
592         parenthesized expressions.
593         (c_parser_postfix_expression_after_primary): Likewise, for
594         various kinds of expression.
595         * c-tree.h (struct c_expr): Add field "src_range".
596         (c_expr::get_start): New method.
597         (c_expr::get_finish): New method.
598         (set_c_expr_source_range): New decls.
599         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
600         on ret for prefix unary ops.
601         (parser_build_binary_op): Likewise, running from the start of
602         arg1.value through to the end of arg2.value.
604 2015-11-13  Marek Polacek  <polacek@redhat.com>
606         PR c/68320
607         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
609 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
611         * c-typeck.c: Include spellcheck.h.
612         (lookup_field_fuzzy_find_candidates): New function.
613         (lookup_field_fuzzy): New function.
614         (build_component_ref): If the field was not found, try using
615         lookup_field_fuzzy and potentially offer a suggestion.
617 2015-11-12  James Norris  <jnorris@codesourcery.com>
618             Joseph Myers  <joseph@codesourcery.com>
620         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
621         (c_parser_omp_clause_name): Handle 'device_resident' clause.
622         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
623         and PRAGMA_OMP_CLAUSE_LINK.
624         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
625         and PRAGMA_OACC_CLAUSE_LINK.
626         (OACC_DECLARE_CLAUSE_MASK): New definition.
627         (c_parser_oacc_declare): New function.
629 2015-11-12  Marek Polacek  <polacek@redhat.com>
631         PR c/67784
632         * c-parser.c (c_parser_for_statement): Reclassify the token in
633         a correct scope.
635 2015-11-11  Marek Polacek  <polacek@redhat.com>
637         PR c/68107
638         PR c++/68266
639         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
640         checking the size of an array.
642 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
644         * c-array-notation.c: Remove unused header files.
645         * c-aux-info.c: Likewise.
646         * c-convert.c: Likewise.
647         * c-decl.c: Likewise.
648         * c-errors.c: Likewise.
649         * c-lang.c: Likewise.
650         * c-objc-common.c: Likewise.
651         * c-parser.c: Likewise.
652         * c-typeck.c: Likewise.
653         * gccspec.c: Likewise.
655 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
656             Cesar Philippidis  <cesar@codesourcery.com>
657             James Norris  <jnorris@codesourcery.com>
658             Julian Brown  <julian@codesourcery.com>
659             Nathan Sidwell  <nathan@codesourcery.com>
661         c/
662         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
663         routine arg.
664         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
665         (c_parser_pragma): Parse 'acc routine'.
666         (OACC_ROUTINE_CLAUSE_MARK): Define.
667         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
669 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
671         PR debug/67192
672         * c-typeck.c (c_finish_loop): For unconditional loops, set the
673         location of the backward-goto to the start of the loop body.
675 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
677         PR debug/67192
678         * c-parser.c (c_parser_while_statement): Finish the loop before
679         parsing ahead for misleading indentation.
680         (c_parser_for_statement): Likewise.
682 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
684         * c-decl.c (finish_struct): If the structure has reverse storage
685         order, rewrite the type of array fields with scalar component.  Call
686         maybe_apply_pragma_scalar_storage_order on entry.
687         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
688         errors on bit-fields and reverse SSO here and not...
689         (c_mark_addressable): ...here.
690         (output_init_element): Adjust call to initializer_constant_valid_p.
691         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
693 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
695         * c-decl.c (warn_defaults_to): Update for change in signature
696         of diagnostic_set_info.
697         * c-errors.c (pedwarn_c99): Likewise.
698         (pedwarn_c90): Likewise.
699         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
700         for textinfo::set_location.
702 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
703             Thomas Schwinge  <thomas@codesourcery.com>
704             James Norris  <jnorris@codesourcery.com>
706         * c-parser.c (c_parser_omp_clause_name): Add support for
707         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
708         (c_parser_omp_clause_default): Add is_oacc argument. Handle
709         default(none) in OpenACC.
710         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
711         arguments.
712         (c_parser_oacc_clause_tile): New function.
713         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
714         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
715         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
716         TILE}.
717         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
718         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
719         FIRSTPRIVATE}.
720         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
721         (c_parser_oacc_update): Update the error message for missing clauses.
722         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
723         and OMP_CLAUSE_INDEPENDENT.
725 2015-11-05  Marek Polacek  <polacek@redhat.com>
727         PR c/68090
728         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
729         deal with pre-evaluation on invalid types.
731 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
732             Ilya Verbin  <ilya.verbin@intel.com>
734         * c-parser.c: Include context.h and gimple-expr.h.
735         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
736         monotonic together with nonmonotonic.
737         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
738         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
739         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
740         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
741         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
742         expressions on combined target teams before the target.
743         (c_parser_omp_declare_target): If decl has "omp declare target" or
744         "omp declare target link" attribute, and cgraph or varpool node already
745         exists, then set corresponding flags.  Call c_finish_omp_clauses
746         in the parenthesized extended-list syntax case.
747         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
748         declare target.
749         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
750         on OMP_CLAUSE_REDUCTION array sections.
751         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
752         into the constant offset, or for variable low-bound using
753         POINTER_PLUS_EXPR.  For structure element based array sections use
754         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
755         (c_finish_omp_clauses): Drop generic_field_head, structure
756         elements are now always mapped even as array section bases,
757         diagnose same var in data sharing and mapping clauses.  Diagnose if
758         linear step on declare simd is neither a constant nor a uniform
759         parameter.  Look through POINTER_PLUS_EXPR for array section
760         reductions.  Diagnose the same var or function appearing multiple
761         times on the same directive.  Fix up wording for the to clause if t
762         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
763         modifier on kinds other than dynamic or guided or nonmonotonic
764         modifier together with ordered clause.
766 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
767             Chung-Lin Tang  <cltang@codesourcery.com>
769         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
771 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
773         * c-array-notation.c: Reorder #include's and remove duplicates.
774         * c-aux-info.c: Likewise.
775         * c-convert.c: Likewise.
776         * c-decl.c: Likewise.
777         * c-errors.c: Likewise.
778         * c-lang.c: Likewise.
779         * c-objc-common.c: Likewise.
780         * c-parser.c: Likewise.
781         * c-typeck.c: Likewise.
783 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
785         PR debug/66068
786         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
787         after calling build_qualified_type.
789 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
790             Thomas Schwinge  <thomas@codesourcery.com>
791             James Norris  <jnorris@codesourcery.com>
792             Joseph Myers  <joseph@codesourcery.com>
793             Julian Brown  <julian@codesourcery.com>
794             Bernd Schmidt  <bschmidt@redhat.com>
796         * c-parser.c (c_parser_oacc_shape_clause): New.
797         (c_parser_oacc_simple_clause): New.
798         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
799         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
801 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
802             James Norris  <jnorris@codesourcery.com>
803             Cesar Philippidis  <cesar@codesourcery.com>
805         PR c/64765
806         PR c/64880
807         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
808         parameters, and handle these.  Adjust all users.
809         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
810         into...
811         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
812         all users.
813         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
814         declare functions.
815         (c_finish_omp_construct): Declare function.
816         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
817         Merge functions into...
818         (c_finish_omp_construct): ... this new function.
820 2015-10-22  Richard Biener  <rguenther@suse.de>
822         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
823         before folding a MINUS_EXPR.
825 2015-10-21  Marek Polacek  <polacek@redhat.com>
827         PR c/68024
828         * c-decl.c (start_function): Warn about vararg functions without
829         a prototype.
831 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
833         * c-typeck.c (build_conditional_expr): Use boolean vector
834         type for vector comparison.
835         (build_vec_cmp): New.
836         (build_binary_op): Use build_vec_cmp for comparison.
838 2015-10-20  Marek Polacek  <polacek@redhat.com>
840         * c-parser.c (is_cilkplus_vector_p): Don't define here.
842 2015-10-20  Marek Polacek  <polacek@redhat.com>
844         PR c/67964
845         * c-parser.c (c_parser_attributes): Break out of the loop if the
846         token after an attribute isn't a comma.
848 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
849             Aldy Hernandez  <aldyh@redhat.com>
851         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
852         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
853         (c_parser_omp_variable_list): Handle structure elements for
854         map, to and from clauses.  Handle array sections in reduction
855         clause.  Formatting fixes.
856         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
857         if clause modifiers.
858         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
859         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
860         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
861         c_parser_omp_clause_is_device_ptr): New functions.
862         (c_parser_omp_clause_ordered): Parse optional parameter.
863         (c_parser_omp_clause_reduction): Handle array reductions.
864         (c_parser_omp_clause_schedule): Parse optional simd modifier.
865         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
866         functions.
867         (c_parser_omp_clause_linear): Parse linear clause modifiers.
868         (c_parser_omp_clause_depend_sink): New function.
869         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
870         (c_parser_omp_clause_map): Parse release/delete map kinds and
871         optional always modifier.
872         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
873         and c_finish_omp_clauses callers.
874         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
875         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
876         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
877         (OMP_CRITICAL_CLAUSE_MASK): Define.
878         (c_parser_omp_critical): Parse critical clauses.
879         (c_parser_omp_for_loop): Handle doacross loops, adjust
880         c_finish_omp_for and c_finish_omp_clauses callers.
881         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
882         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
883         (OMP_FOR_CLAUSE_MASK): Add linear clause.
884         (c_parser_omp_for): Disallow ordered clause when combined with
885         distribute.  Disallow linear clause when combined with distribute
886         and not combined with simd.
887         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
888         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
889         parse clauses and if depend clause is found, don't parse a body.
890         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
891         Allow target parallel without for after it.
892         (OMP_TASK_CLAUSE_MASK): Add priority clause.
893         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
894         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
895         invalid kinds.
896         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
897         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
898         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
899         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
900         functions.
901         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
902         defaultmap and is_device_ptr clauses.
903         (c_parser_omp_target): Parse target parallel and target simd.  Set
904         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
905         and target exit data.  Diagnose invalid map kinds.
906         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
907         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
908         construct.
909         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
910         &omp_priv.
911         (OMP_TASKLOOP_CLAUSE_MASK): Define.
912         (c_parser_omp_taskloop): New function.
913         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
914         handle PRAGMA_OMP_TASKLOOP.
915         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
916         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
917         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
918         Add IS_OMP argument, handle structure element bases, diagnose
919         bitfields, pass IS_OMP recursively, diagnose known zero length
920         array sections in depend clauses, handle array sections in reduction
921         clause, diagnose negative length even for pointers.
922         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
923         types, pass IS_OMP down to handle_omp_array_sections_1, handle
924         array sections in reduction clause, set
925         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
926         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
927         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
928         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
930 2015-10-06  Marek Polacek  <polacek@redhat.com>
932         * c-parser.c (c_parser_statement_after_labels): Use
933         protected_set_expr_location.
934         (c_parser_omp_clause_num_gangs): Likewise.
935         (c_parser_omp_clause_num_threads): Likewise.
936         (c_parser_omp_clause_num_workers): Likewise.
937         (c_parser_omp_clause_vector_length): Likewise.
938         (c_parser_omp_clause_num_teams): Likewise.
939         (c_parser_omp_clause_thread_limit): Likewise.
940         * c-typeck.c (build_c_cast): Likewise.
941         (c_cast_expr): Likewise.
943 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
945         * c-typeck.c (c_tree_equal): Use real_equal instead of
946         REAL_VALUES_EQUAL.
948 2015-10-04  Jason Merrill  <jason@redhat.com>
950         * c-parser.c (c_lex_one_token): Handle @synchronized.
951         * c-decl.c (match_builtin_function_types): A declaration of a built-in
952         can change whether the function is transaction_safe.
954 2015-10-02  Marek Polacek  <polacek@redhat.com>
956         PR c/67730
957         * c-typeck.c (convert_for_assignment): Use the expansion point
958         location throughout.
960 2015-10-02  Marek Polacek  <polacek@redhat.com>
962         PR c/64249
963         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
964         and pass it down to c_parser_if_statement.
965         (c_parser_else_body): Add CHAIN parameter and pass it down to
966         c_parser_statement_after_labels.
967         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
968         duplicated if-else-if conditions.
970 2015-10-01  Marek Polacek  <polacek@redhat.com>
972         * c-typeck.c (convert_for_assignment): Improve commentary.
974 2015-09-30  Marek Polacek  <polacek@redhat.com>
976         PR c/67730
977         * c-typeck.c (c_finish_return): Use the expansion point location for
978         certain "return with value" warnings.
980 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
982         * c-parser.c (pragma_lex): Add loc argument.
984 2015-09-15  Marek Polacek  <polacek@redhat.com>
986         PR c/67580
987         * c-decl.c (tag_exists_p): New function.
988         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
989         struct/union/enum keywords are missing.
990         * c-tree.h (tag_exists_p): Declare.
992 2015-09-15  Marek Polacek  <polacek@redhat.com>
994         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
995         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
996         Return NULL_TREE instead of 0.
997         (lookup_name): Return NULL_TREE instead of 0.
998         (lookup_name_in_scope): Likewise.
999         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1000         (parser_xref_tag): Use false instead of 0.
1001         (start_struct): Use true instead of 1.
1002         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1004 2015-09-14  Marek Polacek  <polacek@redhat.com>
1006         * c-typeck.c (set_nonincremental_init_from_string): Use
1007         HOST_WIDE_INT_M1U when shifting a negative value.
1009 2015-09-09  Mark Wielaard  <mjw@redhat.com>
1011         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
1012         parm against NULL.
1014 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
1016         PR c/67502
1017         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
1018         into OMP_FOR_PRE_BODY rather than before the loop.
1020 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
1022         PR c/67501
1023         * c-parser.c (c_parser_oacc_all_clauses,
1024         c_parser_omp_all_clauses): Remove invalid clause from
1025         list of clauses even if parser->error is set.
1027         PR c/67500
1028         * c-parser.c (c_parser_omp_clause_aligned,
1029         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
1030         test for errors.
1031         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
1032         error_mark_node.
1034         PR c/67495
1035         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
1036         instead of c_parser_unary_expression.  If the result is !lvalue_p,
1037         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
1039 2015-09-04  Marek Polacek  <polacek@redhat.com>
1041         PR sanitizer/67279
1042         * c-typeck.c (build_binary_op): Don't instrument static initializers.
1044 2015-09-03  Martin Sebor  <msebor@redhat.com>
1046         PR c/66516
1047         * c-typeck.c (convert_arguments, parser_build_unary_op,
1048         build_conditional_expr, c_cast_expr, convert_for_assignment,
1049         build_binary_op, _objc_common_truthvalue_conversion): Call
1050         reject_gcc_builtin.
1051         (c_decl_implicit): Define.
1053 2015-09-02  Marek Polacek  <polacek@redhat.com>
1055         PR c/67432
1056         * c-parser.c (c_parser_enum_specifier): Give a better error for
1057         an empty enum.
1059 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1061         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
1063 2015-08-12  Marek Polacek  <polacek@redhat.com>
1065         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
1066         LOC to it.
1068 2015-08-03  Marek Polacek  <polacek@redhat.com>
1070         PR c/67088
1071         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
1072         Use it.
1073         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
1075 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
1077         * c-parser.c (c_parser_if_body): Take token_indent_info
1078         argument. Call warn_for_misleading_indentation even when the
1079         body is a semicolon.  Extract token_indent_infos corresponding
1080         to the guard, body and next tokens.  Adjust call to
1081         warn_for_misleading_indentation accordingly.
1082         (c_parser_else_body): Likewise.
1083         (c_parser_if_statement): Likewise.
1084         (c_parser_while_statement): Likewise.
1085         (c_parser_for_statement): Likewise.
1087 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
1088             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1090         * c-decl.c (get_parm_info): Remove static var. Update warning
1091         message.
1093 2015-07-27  Marek Polacek  <polacek@redhat.com>
1095         PR c++/66555
1096         PR c/54979
1097         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
1099 2015-07-20  Marek Polacek  <polacek@redhat.com>
1101         PR c++/55095
1102         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
1103         (build_binary_op): Warn about left shift overflows.
1105 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1107         * c-array-notation.c: Adjust includes for flags.h changes.
1108         * c-objc-common.c: Likewise.
1110 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
1112         * c-array-notation.c: Adjust includes.
1113         * c-aux-info.c: Likewise.
1114         * c-convert.c: Likewise.
1115         * c-decl.c: Likewise.
1116         * c-errors.c: Likewise.
1117         * c-lang.c: Likewise.
1118         * c-objc-common.c: Likewise.
1119         * c-parser.c: Likewise.
1120         * c-typeck.c: Likewise.
1122 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1124         PR fortran/66605
1125         * c-decl.c (finish_function): Call do_warn_unused_parameter.
1127 2015-06-29  Marek Polacek  <polacek@redhat.com>
1129         PR c/66322
1130         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
1131         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
1132         about -Wswitch-bool here.
1133         (do_case): Update c_add_case_label call.
1134         (c_finish_case): Update c_do_switch_warnings call.
1136 2015-06-27  Marek Polacek  <polacek@redhat.com>
1138         * c-typeck.c: Use VECTOR_TYPE_P throughout.
1140 2015-06-26  Marek Polacek  <polacek@redhat.com>
1142         * c-array-notation.c (fix_builtin_array_notation_fn): Use
1143         INDIRECT_REF_P.
1144         * c-typeck.c (array_to_pointer_conversion): Likewise.
1145         (build_unary_op): Likewise.
1146         (c_finish_return): Likewise.
1148 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1150         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
1151         * c-parser.c: Likewise.
1153 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1155         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
1156         instead of pointer_hash.
1157         (detect_field_duplicates): Likewise.
1159 2015-06-25  Marek Polacek  <polacek@redhat.com>
1161         * c-array-notation.c: Use VAR_P throughout.
1162         * c-decl.c: Likewise.
1163         * c-objc-common.c: Likewise.
1164         * c-parser.c: Likewise.
1165         * c-typeck.c: Likewise.
1167 2015-06-25  Marek Polacek  <polacek@redhat.com>
1169         * c-decl.c: Use is_global_var throughout.
1170         * c-parser.c: Likewise.
1171         * c-typeck.c: Likewise.
1173 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1175         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
1176         * c-aux-info.c: Likewise.
1177         * c-convert.c: Likewise.
1178         * c-decl.c: Likewise.
1179         * c-errors.c: Likewise.
1180         * c-lang.c: Likewise.
1181         * c-objc-common.c: Likewise.
1182         * c-parser.c: Likewise.
1183         * c-typeck.c: Likewise.
1185 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
1187         PR middle-end/66325
1188         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
1189         variants.
1191 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1193         * c-decl.c (pop_scope): Register the main translation unit
1194         through the new debug hook.
1196 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
1198         * c-array-notation.c : Adjust include files.
1199         * c-aux-info.c : Likewise.
1200         * c-convert.c : Likewise.
1201         * c-decl.c : Likewise.
1202         * c-errors.c : Likewise.
1203         * c-lang.c : Likewise.
1204         * c-lang.h : Likewise.
1205         * c-objc-common.c : Likewise.
1206         * c-parser.c : Likewise.
1207         * c-typeck.c : Likewise.
1209 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
1211         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
1212         immediately clobber it.
1213         (c_write_global_declarations_1): Remove call to
1214         check_global_declaration_1.
1215         (c_write_global_declarations_2): Remove.
1216         (c_write_final_cleanups): Rename from c_write_global_declarations.
1217         Remove call to finalize_compilation_unit.
1218         Remove calls to debugging hooks.
1219         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
1220         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
1221         * c-tree.h: Remove c_write_global_declarations.
1223 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
1225         * c-array-notation.c: Adjust includes for restructured coretypes.h.
1226         * c-aux-info.c: Likewise.
1227         * c-convert.c: Likewise.
1228         * c-decl.c: Likewise.
1229         * c-errors.c: Likewise.
1230         * c-lang.c: Likewise.
1231         * c-objc-common.c: Likewise.
1232         * c-parser.c: Likewise.
1233         * c-typeck.c: Likewise.
1235 2015-06-04  Marek Polacek  <polacek@redhat.com>
1237         PR c/66341
1238         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
1239         it is a lvalue.
1241 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1243         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
1244         Warn for empty struct.
1245         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
1247 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
1249         * c-decl.c (start_function): Call plugin before parsing.
1250         (finish_function): Call plugin after parsing.
1252 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1254         PR c/49551
1255         * c-decl.c (merge_decls): Merge DECL_COMMON.
1257 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
1259         * Make-lang.in (check_gcc_pallelize): Define.
1261 2015-05-22  Marek Polacek  <polacek@redhat.com>
1263         PR c/47043
1264         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
1265         attributes.
1267 2015-05-21  Marek Polacek  <polacek@redhat.com>
1269         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
1270         DECL_BUILT_IN.
1272 2015-05-20  Marek Polacek  <polacek@redhat.com>
1274         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1275         * c-typeck.c: Likewise.
1277 2015-05-19  Marek Polacek  <polacek@redhat.com>
1279         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
1281 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1283         PR middle-end/66199
1284         * c-parser.c (c_parser_omp_for_loop): Don't add
1285         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
1286         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
1287         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
1288         constructs.
1290 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
1292         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
1293         swaps.
1295 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1297         PR fortran/44054
1298         * c-objc-common.c (c_tree_printer): Replace locus pointer with
1299         accessor function.
1301 2015-05-14  Marek Polacek  <polacek@redhat.com>
1303         PR c/66066
1304         PR c/66127
1305         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
1306         rather than with 0.
1308 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
1310         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
1311         to add a call to warn_for_misleading_indentation.
1312         (c_parser_else_body): Likewise, adding param "else_loc".
1313         (c_parser_if_statement): Check for misleading indentation.
1314         (c_parser_while_statement): Likewise.
1315         (c_parser_for_statement): Likewise.
1317 2015-05-08  Marek Polacek  <polacek@redhat.com>
1319         PR c/64918
1320         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
1321         (output_init_element): Likewise.
1323 2015-05-07  Marek Polacek  <polacek@redhat.com>
1325         PR c/65179
1326         * c-typeck.c (build_binary_op): Warn when left shifting a negative
1327         value.
1329 2015-04-30  Marek Polacek  <polacek@redhat.com>
1331         * c-typeck.c (set_init_label): Call error_at instead of error and
1332         pass LOC to it.
1334         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
1335         the type of a decl.
1337         * c-typeck.c (c_build_va_arg): Clarify the error message.
1339 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
1341         * c-parser.c (c_parser_oacc_enter_exit_data): Use
1342         OMP_STANDALONE_CLAUSES.
1344 2015-04-28  Marek Polacek  <polacek@redhat.com>
1346         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
1348 2015-04-28  Marek Polacek  <polacek@redhat.com>
1350         PR c/65901
1351         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
1353 2015-04-25  Marek Polacek  <polacek@redhat.com>
1355         PR c/52085
1356         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
1357         attribute.
1359 2015-04-23  Marek Polacek  <polacek@redhat.com>
1361         PR c/65345
1362         * c-decl.c (set_labels_context_r): New function.
1363         (store_parm_decls): Call it via walk_tree_without_duplicates.
1364         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
1365         instead of create_tmp_var.  Build TARGET_EXPR instead of
1366         COMPOUND_EXPR.
1367         (build_atomic_assign): Use create_tmp_var_raw instead of
1368         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
1370 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
1372         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
1373         (c_parser_omp_target_update): Add missed %> to error_at ().
1375 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1377         PR target/55143
1378         * c-decl.c (c_default_pointer_mode): Remove definition.
1379         * c-tree.h (c_default_pointer_mode): Remove declaration.
1381 2015-03-27  Tobias Burnus  <burnus@net-b.de>
1383         PR c/65586
1384         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
1385         error out.
1386         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
1387         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
1388         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
1390 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
1392         * c-decl.c (c_decl_attributes): Also add "omp declare target"
1393         attribute for DECL_EXTERNAL VAR_DECLs.
1395 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
1397         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
1398         argument.
1400 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
1402         PR c/65120
1403         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
1404         before preparing arguments to warn_logical_not_parentheses.
1406 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
1408         PR c/65120
1409         * c-typeck.c (parser_build_binary_op): Don't warn for
1410         !!x == y or !b == y where b is _Bool.
1412 2015-03-09  Marek Polacek  <polacek@redhat.com>
1414         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
1415         * c-decl.c (grokdeclarator): Likewise.
1416         * c-typeck.c (build_binary_op): Likewise.
1418 2015-02-27  Marek Polacek  <polacek@redhat.com>
1420         PR c/65228
1421         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
1423 2015-02-14  Marek Polacek  <polacek@redhat.com>
1425         PR c/64768
1426         * c-decl.c (grokdeclarator): Set the range of a flexible array member
1427         declared through a typedef name.
1429 2015-02-13  Marek Polacek  <polacek@redhat.com>
1431         PR c/65050
1432         * c-decl.c (grokdeclarator): Print also the type when giving
1433         the error message about array's incomplete element type.
1435 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
1437         PR c/64824
1438         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
1439         check in the POP macro.
1441 2015-02-09  Marek Polacek  <polacek@redhat.com>
1443         PR c/64856
1444         * c-typeck.c (process_init_element): Don't always wrap
1445         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
1446         initializing a range of elements.
1448 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1450         PR c/64824
1451         PR c/64868
1452         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
1454 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
1456         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
1457         processing enum declaration.
1459 2015-01-29  Marek Polacek  <polacek@redhat.com>
1461         PR c/64709
1462         * c-typeck.c (pop_init_level): If constructor_elements has
1463         exactly one element with integer_zerop value, set constructor_zeroinit
1464         to 1.  Remove braces around warning_init call.
1466 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1468         PR c/64766
1469         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
1470         of FUNCTION_DECLs with error_mark_node.
1472 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
1474         PR c/64778
1475         * c-typeck.c (convert_arguments): Return -1 if there are
1476         error_args, even if we've diagnosed too many arguments.
1478 2015-01-21  Richard Biener  <rguenther@suse.de>
1480         PR middle-end/64313
1481         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
1482         for builtins the user declared correctly.
1484 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
1485             Bernd Schmidt  <bernds@codesourcery.com>
1486             Cesar Philippidis  <cesar@codesourcery.com>
1487             James Norris  <jnorris@codesourcery.com>
1488             Jakub Jelinek  <jakub@redhat.com>
1489             Ilmir Usmanov  <i.usmanov@samsung.com>
1491         * c-parser.c: Include "gomp-constants.h".
1492         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1493         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1494         Use OMP_CLAUSE_SET_MAP_KIND.
1495         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
1496         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
1497         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
1498         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
1499         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
1500         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
1501         "copyout", "create", "delete", "deviceptr", "gang", "host",
1502         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
1503         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1504         "present_or_create", "pcreate", "seq", "self", "vector",
1505         "vector_length", "wait", "worker".
1506         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1507         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
1508         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1509         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1510         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
1511         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
1512         (c_parser_oacc_data_clause_deviceptr)
1513         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
1514         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
1515         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
1516         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
1517         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
1518         (c_parser_oacc_parallel, c_parser_oacc_update)
1519         (c_parser_oacc_wait): New functions.
1520         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
1521         (c_finish_oacc_data): New prototypes.
1522         * c-typeck.c: Include "gomp-constants.h".
1523         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
1524         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
1525         OMP_CLAUSE_SET_MAP_KIND.
1526         (c_finish_oacc_parallel, c_finish_oacc_kernels)
1527         (c_finish_oacc_data): New functions.
1528         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
1529         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1530         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1531         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
1532         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
1533         GOMP_MAP_FORCE_DEVICEPTR.
1535 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1537         * c-array-notation.c: Include hash-set.h, machmode.h,
1538         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1539         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1540         * c-aux-info.c: Ditto.
1541         * c-convert.c: Ditto.
1542         * c-decl.c: Ditto.
1543         * c-errors.c: Ditto.
1544         * c-lang.c: Dittoxs.
1545         * c-objc-common.c: Ditto.
1546         * c-parser.c: Ditto.
1547         * c-typeck.c: Include hash-set.h, machmode.h,
1548         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1549         fold-const.h, wide-int.h, inchash.h, real.h and
1550         fixed-value.h due to flattening of tree.h.
1552 2015-01-07  Marek Polacek  <polacek@redhat.com>
1554         PR c/64417
1555         * c-typeck.c (process_init_element): Disallow initialization of
1556         a flexible array member with a string constant if the structure
1557         is in an array.
1559 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1561         PR sanitizer/64344
1562         * c-typeck.c (convert_for_assignment, c_finish_return): For
1563         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
1564         types also set in_late_binary_op around convert call.
1565         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
1566         to integral type casts, if not in_late_binary_op, pass c_fully_fold
1567         result on expr as last argument to ubsan_instrument_float_cast,
1568         if in_late_binary_op, don't use c_save_expr but save_expr.
1570         Update copyright years.
1572 2015-01-05  Marek Polacek  <polacek@redhat.com>
1574         PR c/64423
1575         * c-typeck.c (build_array_ref): Pass loc down to
1576         warn_array_subscript_with_type_char.
1578 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
1580         * c-typeck.c: New behavious for pointers to arrays with qualifiers
1581         (common-pointer-type): For pointers to arrays take qualifiers from
1582         element type.
1583         (build_conditional_expr): Add warnings for lost qualifiers.
1584         (comp-target-types): Allow pointers to arrays with different qualifiers.
1585         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
1586         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
1587         to PEDWARN_FOR_QUALIFIERS.
1589 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
1591         PR sanitizer/64289
1592         * c-convert.c: Include ubsan.h.
1593         (convert): For real -> integral casts and
1594         -fsanitize=float-cast-overflow don't call convert_to_integer, but
1595         instead instrument the float cast directly.
1597 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
1599         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
1600         c_finish_stmt_expr): Remove NULL last argument from
1601         create_tmp_var_raw and create_tmp_var calls.
1602         * c-array-notation.c (fix_builtin_array_notation_fn,
1603         build_array_notation_expr, fix_conditional_array_notations_1,
1604         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
1606 2014-11-28  Marek Polacek  <polacek@redhat.com>
1608         PR c/63862
1609         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
1610         convert the right operand to integer type.
1612 2014-11-25  Marek Polacek  <polacek@redhat.com>
1614         PR c/63877
1615         * c-decl.c (start_function): Disable -Wmissing-declarations warning
1616         for inline functions.
1618 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1620         PR target/63764
1621         * c-typeck.c (build_array_ref): Adjust
1622         convert_vector_to_pointer_for_subscript caller.  If it returns true,
1623         call non_lvalue_loc on the result.
1625 2014-11-11  Richard Biener  <rguenther@suse.de>
1627         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
1628         to true.
1630 2014-11-10  Andi Kleen  <ak@linux.intel.com>
1632         PR c/60804
1633         * c-parser.c (c_parser_statement_after_labels): Call
1634         check_no_cilk.
1635         (c_parser_if_statement): Dito.
1636         (c_parser_switch_statement): Dito.
1637         (c_parser_while_statement): Dito.
1638         (c_parser_do_statement): Dito.
1639         (c_parser_for_statement): Dito.
1640         * c-typeck.c (c_finish_loop): Dito.
1642 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
1644         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
1645         OPT_Wshift_count_overflow in the warnings.
1647 2014-10-30  Marek Polacek  <polacek@redhat.com>
1649         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
1650         print the stripped version as well, if they're not the same.
1652 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1654         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
1655         machine_mode.
1657 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1659         * c-decl.c: Adjust include files.
1660         * c-parser.c: Ditto.
1662 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1663             Tom Tromey  <tromey@redhat.com>
1665         * c-tree.h (enum c_oracle_request): New.
1666         (c_binding_oracle_function): New typedef.
1667         (c_binding_oracle, c_pushtag, c_bind): Declare.
1668         * c-decl.c (c_binding_oracle): New global.
1669         (I_SYMBOL_CHECKED): New macro.
1670         (i_symbol_binding): New function.
1671         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
1672         (I_TAG_CHECKED): New macro.
1673         (i_tag_binding): New function.
1674         (I_TAG_BINDING, I_TAG_DECL): Redefine.
1675         (I_LABEL_CHECKED): New macro.
1676         (i_label_binding): New function.
1677         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
1678         (c_print_identifier): Save and restore c_binding_oracle.
1679         (c_pushtag, c_bind): New functions.
1681 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
1683         * c-typeck.c: Adjust include files.
1685 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1687         PR c++/53061
1688         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
1689         initialization here...
1690         (c_initialize_diagnostics): ... but here. Set defaults after
1691         building pretty-printer.
1693 2014-10-23  Marek Polacek  <polacek@redhat.com>
1695         PR c/63626
1696         * c-decl.c (pop_scope): Don't print warning in external_scope.
1698 2014-10-19  Marek Polacek  <polacek@redhat.com>
1700         PR c/63567
1701         * c-typeck.c (output_init_element): Allow initializing objects with
1702         static storage duration with compound literals even in C99 and add
1703         pedwarn for it.
1705 2014-10-17  Marek Polacek  <polacek@redhat.com>
1707         PR c/63567
1708         * c-typeck.c (digest_init): Allow initializing objects with static
1709         storage duration with compound literals even in C99 and add pedwarn
1710         for it.
1712 2014-10-17  Marek Polacek  <polacek@redhat.com>
1714         PR c/63543
1715         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
1716         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
1717         error multiple times.  Print the type.
1719 2014-10-17  Marek Polacek  <polacek@redhat.com>
1721         PR c/63549
1722         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
1723         type.
1725 2014-10-17  Marek Polacek  <polacek@redhat.com>
1727         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
1728         (start_function): Use OPT_Wimplicit_int instead of 0.
1729         (store_parm_decls_oldstyle): Likewise.
1731 2014-10-17  Alan Modra  <amodra@gmail.com>
1733         PR middle-end/61848
1734         * c-decl.c (merge_decls): Don't merge section name or tls model
1735         to newdecl symtab node, instead merge to olddecl.  Override
1736         existing olddecl section name.  Set tls_model for all thread-local
1737         vars, not just OMP thread-private ones.  Remove incorrect comment.
1739 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1741         * c-decl.c: Adjust include files.
1743 2014-10-14  DJ Delorie  <dj@redhat.com>
1745         * c-parser.c (c_parse_init): Add RID entries for each __intN.
1746         (c_token_starts_typename): Check all __intN, not just __int128.
1747         (c_token_starts_declspecs): Likewise.
1748         (c_parser_declspecs): Likewise.
1749         (c_parser_attribute_any_word): Likewise.
1750         (c_parser_objc_selector): Likewise.
1751         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
1752         (struct c_declspecs): Add int_n_idx field to record *which* __intN
1753         is specified.
1754         * c-decl.c (declspecs_add_type): Check for all __intN, not just
1755         __int128.
1756         (finish_declspecs): Likewise.
1758 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
1760         * c-parser.c (c_parser_all_labels): New function to replace
1761         the duplicate code.
1762         (c_parser_statement): Call the new function.
1764 2014-10-09  Marek Polacek  <polacek@redhat.com>
1766         PR c/63480
1767         * c-typeck.c (pop_init_level): Don't warn about initializing
1768         with { }.
1770 2014-10-07  Marek Polacek  <polacek@redhat.com>
1772         PR c/59717
1773         * c-decl.c (header_for_builtin_fn): New function.
1774         (implicitly_declare): Suggest which header to include.
1776 2014-10-07  Marek Polacek  <polacek@redhat.com>
1778         * c-convert.c (convert): Use error_operand_p.
1779         * c-typeck.c (require_complete_type): Likewise.
1780         (really_atomic_lvalue): Likewise.
1781         (digest_init): Likewise.
1782         (handle_omp_array_sections_1): Likewise.
1784 2014-10-03  Marek Polacek  <polacek@redhat.com>
1786         PR c/63453
1787         * c-decl.c (pop_scope): Don't warn about "inline function declared
1788         but never defined" for functions marked with gnu_inline attribute.
1790 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
1792         PR c++/63249
1793         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
1794         on low_bound and length.
1796 2014-09-24  Marek Polacek  <polacek@redhat.com>
1798         PR c/61405
1799         PR c/53874
1800         * c-parser.c: Don't define CPP_KEYWORD.
1801         (c_parser_switch_statement): Pass original type to c_finish_case.
1802         * c-tree.h (c_finish_case): Update declaration.
1803         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
1804         conditionally to c_do_switch_warnings.
1806 2014-09-03  Marek Polacek  <polacek@redhat.com>
1808         PR c/62024
1809         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
1810         conversions.
1812 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1813             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1814             Igor Zamyatin  <igor.zamyatin@intel.com>
1816         * c-parser.c (c_parser_cilk_for): New function.
1817         (c_parser_cilk_grainsize): Likewise.
1818         (c_get_temp_regvar): Likewise.
1819         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
1820         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
1821         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
1822         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
1823         case.
1825 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
1827         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
1828         with using HOST_WIDE_INT without truncation to 'int'
1830 2014-08-22  Marek Polacek  <polacek@redhat.com>
1832         PR c++/62199
1833         * c-typeck.c (parser_build_binary_op): Adjust call to
1834         warn_logical_not_parentheses.
1836 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
1838         PR other/62008
1839         * c-parser.c (c_parser_array_notation): Check for correct
1840         type of an array added.
1842 2014-08-19  Marek Polacek  <polacek@redhat.com>
1844         PR c++/62153
1845         * c-typeck.c (build_binary_op): If either operand of a comparison
1846         is a boolean expression, call maybe_warn_bool_compare.
1848 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
1850         PR c/45584
1851         * c-typeck.c (build_c_cast): Do a conversion even when the
1852         TYPE_MAIN_VARIANTs are the same.
1854 2014-08-19  Marek Polacek  <polacek@redhat.com>
1856         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
1857         pedwarn_c99 instead of pedwarn.
1858         (grokfield): Likewise.
1859         (warn_defaults_to): New function.
1860         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
1861         Unconditionally call pedwarn_c99 instead of pedwarn.
1862         (start_function): Call warn_defaults_to instead of pedwarn_c99.
1863         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
1864         check flag_isoc11 before.
1865         * c-errors.c (pedwarn_c99): Change the return type to bool.
1866         Handle -Wc99-c11-compat.
1867         * c-parser.c (disable_extension_diagnostics): Handle
1868         warn_c99_c11_compat.
1869         (restore_extension_diagnostics): Likewise.
1870         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
1871         instead of pedwarn, don't check flag_isoc11 before.
1872         (c_parser_declspecs): Likewise.
1873         (c_parser_alignas_specifier): Likewise.
1874         (c_parser_alignof_expression): Likewise.
1875         (c_parser_generic_selection): Likewise.
1876         * c-tree.h (pedwarn_c99): Update declaration.
1877         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
1878         of pedwarn_c99.
1880 2014-08-19  Marek Polacek  <polacek@redhat.com>
1882         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
1883         to pedwarn_c90.
1884         * c-errors.c: Include "opts.h".
1885         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
1886         * c-parser.c (disable_extension_diagnostics): Handle negative value
1887         of warn_c90_c99_compat, too.
1888         (restore_extension_diagnostics): Likewise.
1889         (c_parser_compound_statement_nostart): Pass
1890         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
1892 2014-08-12  Marek Polacek  <polacek@redhat.com>
1894         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
1895         Add pedwarn.
1896         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
1897         Likewise.
1898         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
1900 2014-08-10 Marek Polacek  <polacek@redhat.com>
1902         PR c/51849
1903         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
1904         Call pedwarn_c90 instead of pedwarn.
1905         (check_bitfield_type_and_width): Likewise.
1906         (declspecs_add_qual): Likewise.
1907         (declspecs_add_type): Likewise.
1908         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
1909         Adjust to only call pedwarn_c90.
1910         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
1911         pedwarn_c90 instead of pedwarn.
1912         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
1913         * c-parser.c (disable_extension_diagnostics): Handle
1914         warn_c90_c99_compat.
1915         (restore_extension_diagnostics): Likewise.
1916         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
1917         pedwarn_c90 instead of pedwarn.
1918         (c_parser_initelt): Likewise.
1919         (c_parser_postfix_expression): Likewise.
1920         (c_parser_postfix_expression_after_paren_type): Likewise.
1921         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
1922         * c-tree.h: Fix formatting.
1923         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
1924         pedwarn_c90 instead of pedwarn.
1926 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1928         * c-typeck.c: Remove include of pointer-set.h.
1930 2014-08-07  Marek Polacek  <polacek@redhat.com>
1932         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
1934 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1936         * c-typeck.c: Use hash_map instead of pointer_map.
1938 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1940         * c-decl.c: Use hash_set instead of pointer_set.
1942 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1944         PR middle-end/61455
1945         * c-array-notation.c (expand_array_notations): Handling
1946         of DECL_EXPR added.
1948 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1950         PR c++/60517
1951         * c-typeck.c (c_finish_return): Return 0 instead of the address of
1952         a local variable.
1954 2014-07-30  Tom Tromey  <tromey@redhat.com>
1956         * c-typeck.c (struct constructor_stack) <designator_depth>: New
1957         field.
1958         (really_start_incremental_init, push_init_level): Initialize
1959         designator_depth.
1960         (pop_init_level): Set global designator_depth.
1961         (process_init_element): Check for designated_init attribute.
1963 2014-07-20  Marek Polacek  <polacek@redhat.com>
1965         PR c/61852
1966         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
1967         (implicitly_declare): Pass location to implicit_decl_warning.
1969 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1971         PR middle-end/61294
1972         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
1973         If non-NULL, call c_parser_check_literal_zero.
1974         (c_parser_check_literal_zero): New function.
1975         (c_parser_postfix_expression_after_primary): Adjust
1976         c_parser_expr_list caller, handle -Wmemset-transposed-args.
1978 2014-07-06  Marek Polacek  <polacek@redhat.com>
1980         PR c/6940
1981         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
1982         * c-tree.h (C_ARRAY_PARAMETER): Define.
1983         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
1984         function parameter.
1986 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
1987             Chen Gang <gang.chen.5i5j@gmail.com>
1989         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
1990         releasing symbol.
1992 2014-07-01  Marek Polacek  <polacek@redhat.com>
1994         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
1995         instead of 0 to WARN_FOR_ASSIGNMENT.
1997 2014-07-01  Marek Polacek  <polacek@redhat.com>
1999         PR c/58286
2000         * c-typeck.c (convert_for_assignment): Pass
2001         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2003 2014-06-30  Marek Polacek  <polacek@redhat.com>
2005         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
2006         has no_sanitize_undefined attribute.
2008 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
2010         PR middle-end/57541
2011         * c-array-notation.c (fix_builtin_array_notation_fn):
2012         Check for 0 arguments in builtin call. Check that bultin argument is
2013         correct.
2014         * c-parser.c (c_parser_array_notation): Check for incorrect initial
2015         index.
2017 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2019         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
2020         qualifiers in __auto_type for atomic types.
2021         (c_parser_typeof_specifier): Discard all type qualifiers in
2022         __typeof__ for atomic types.
2024 2014-06-25  Marek Polacek  <polacek@redhat.com>
2026         PR c/61162
2027         * c-parser.c (c_parser_statement_after_labels): Pass the location of
2028         the return expression to c_finish_return.
2030 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
2032         * c-typeck.c (c_finish_omp_clauses): Make sure
2033         OMP_CLAUSE_LINEAR_STEP has correct type.
2035 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
2037         * c-decl.c: Adjust.
2039 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
2041         * c-parser.c (c_parser_omp_for_loop): For
2042         #pragma omp parallel for simd move lastprivate clause from parallel
2043         to for rather than simd.
2045 2014-06-23  Marek Polacek  <polacek@redhat.com>
2047         * c-typeck.c (parser_build_binary_op): Don't call
2048         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
2050 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
2052         * c-parser.c (c_parser_omp_threadprivate): Likewise.
2053         * c-decl.c (merge_decls): Likewise.
2055 2014-06-09  Marek Polacek  <polacek@redhat.com>
2057         PR c/36446
2058         * c-typeck.c (error_init): Call inform instead of error_at.
2059         (pedwarn_init): Call inform instead of pedwarn.
2060         (warning_init): Call inform instead of warning_at.
2062 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
2064         * c-decl.c (merge_decls): Use set_decl_section_name.
2065         (duplicate_decls): Remove node if it exists.
2067 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
2069         PR c/53119
2070         * c-typeck.c (push_init_level, process_init_element,
2071         pop_init_level): Correct check for zero initialization, move
2072         missing brace warning to respect zero initialization.
2074 2014-06-05  Marek Polacek  <polacek@redhat.com>
2076         PR c/56724
2077         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
2079 2014-06-05  Marek Polacek  <polacek@redhat.com>
2081         PR c/49706
2082         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
2083         on the left hand side operand of a comparison. 
2085 2014-06-05  Marek Polacek  <polacek@redhat.com>
2087         PR c/48062
2088         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
2089         Print note only if the warning was printed.
2091 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
2093         PR c/58942
2094         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
2095         with a pointer.
2097 2014-06-03  Marek Polacek  <polacek@redhat.com>
2099         PR c/60439
2100         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
2101         c_start_case.
2102         * c-tree.h (c_start_case): Update.
2103         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
2104         switch condition has boolean value.
2106 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
2108         * c-decl.c: Include builtins.h.
2109         * c-parser.c: Likewise.
2111 2014-05-27  Marek Polacek  <polacek@redhat.com>
2113         PR c/56724
2114         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
2115         error and warning calls to error_at and warning_at.  Pass location of
2116         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
2117         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
2118         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
2120 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
2122         PR c/61191
2123         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
2124         function parameters.
2126 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
2128         * c-decl.c (merge_decls): Preserve symtab node pointers.
2129         (duplicate_decls): Free new decl.
2131 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
2133         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
2134         initialization.
2136         * c-parser.c (c_parser_omp_target): Return bool values.
2138 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
2140         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
2141         num_teams_loc variable to num_thread_limit_loc.
2143 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
2145         * c-array-notation.c (expand_array_notations): Use void_node
2146         instead of void_zero_node.
2148 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
2150         * c-decl.c (finish_struct): Adjust.
2151         (finish_enum): Likewise.
2152         (bind): Adjust.
2153         (record_inline_static): Likewise.
2154         (push_scope): Likewise.
2155         (make_label): Likewise.
2156         (lookup_label_for_goto): Likewise.
2157         (finish_struct): Likewise.
2158         (finish_enum): Likewise.
2159         (store_parm_decls): Likewise.
2160         (c_push_function_context): Likewise.
2161         * c-lang.h: Remove usage of variable_size gty attribute.
2162         * c-parser.c (c_parse_init): Adjust.
2163         (c_parse_file): Likewise.
2165 2014-05-13  Marek Polacek  <polacek@redhat.com>
2167         PR c/61162
2168         * c-typeck.c (convert_for_assignment): Pass location to
2169         WARN_FOR_ASSIGNMENT instead of input_location.
2171 2014-05-10  Marek Polacek  <polacek@redhat.com>
2173         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
2174         maybe_warn_string_init.
2175         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
2176         maybe_warn_string_init.
2177         * c-tree.h (maybe_warn_string_init): Update declaration.
2178         * c-typeck.c (maybe_warn_string_init): Add location parameter.
2179         Call pedwarn_init with loc instead of with input_location.
2180         (digest_init): Pass init_loc to maybe_warn_string_init.
2181         (pop_init_level): Call pedwarn_init with loc instead of with
2182         input_location.
2183         (set_init_index): Likewise.
2184         (process_init_element): Likewise.
2186 2014-05-09  Marek Polacek  <polacek@redhat.com>
2188         PR c/61096
2189         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
2190         (c_parser_initelt): Pass location to set_init_label.  Pass array index
2191         location to set_init_index.
2192         * c-tree.h (push_init_level): Update declaration.
2193         (pop_init_level): Likewise.
2194         (set_init_index): Likewise.
2195         (set_init_label): Likewise.
2196         * c-typeck.c (error_init): Add location parameter.  Call error_at
2197         instead of error.
2198         (digest_init): Pass init_loc to error_init.
2199         (really_start_incremental_init):
2200         (push_init_level): Add location parameter.  Pass loc to pop_init_level
2201         and error_init.
2202         (pop_init_level): Likewise.
2203         (set_designator): Add location parameter.  Pass loc to pop_init_level,
2204         push_init_level, and error_init.
2205         (set_init_index): Add location parameter.  Pass loc to error_init and
2206         set_designator.
2207         (set_init_label): Likewise.
2208         (output_init_element): Pass loc to error_init.
2209         (process_init_element): Pass loc to error_init, pop_init_level,
2210         pedwarn_init, and push_init_level.
2212 2014-05-09  Marek Polacek  <polacek@redhat.com>
2214         PR c/50459
2215         * c-parser.c (c_parser_attributes): Parse the arguments as an
2216         expression-list if the attribute takes identifier.
2218 2014-05-08  Marek Polacek  <polacek@redhat.com>
2220         PR c/61053
2221         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
2222         TYPE_ALIGN_UNIT.
2224 2014-05-08  Marek Polacek  <polacek@redhat.com>
2226         PR c/61077
2227         * c-decl.c (start_function): Warn for _Atomic-qualified return type
2228         of main.
2230 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
2231             Mike Stump  <mikestump@comcast.net>
2232             Richard Sandiford  <rdsandiford@googlemail.com>
2234         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
2235         (finish_enum): Use wide-int interfaces.
2236         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
2237         * c-typeck.c (build_c_cast): Likewise.
2238         (set_nonincremental_init_from_string): Likewise.
2239         (c_tree_equal): Likewise.
2241 2014-05-02  Marek Polacek  <polacek@redhat.com>
2243         PR c/25801
2244         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
2245         Return size_one_node when the type is not complete.
2246         (pointer_diff): Remove comment.
2247         (build_unary_op): Improve error messages.
2249 2014-05-02  Marek Polacek  <polacek@redhat.com>
2251         * c-typeck.c (c_finish_return): Separate warning_at calls.
2253 2014-05-02  Marek Polacek  <polacek@redhat.com>
2255         * c-tree.h (error_init): Remove declaration.
2256         (pedwarn_init): Likewise.
2257         * c-typeck.c (error_init): Make static and move above.
2258         (pedwarn_init): Likewise.
2259         (warning_init): Move above.
2260         (maybe_warn_string_init): Likewise.
2262 2014-05-01  Jeff Law  <law@redhat.com>
2264         Revert:
2266         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
2267         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
2268         avoid goto.
2270 2014-05-02  Marek Polacek  <polacek@redhat.com>
2272         PR c/60784
2273         * c-typeck.c (push_init_level): Set constructor_designated to
2274         p->designated for structures.
2276 2014-05-01  Marek Polacek  <polacek@redhat.com>
2278         PR c/60915
2279         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
2280         function-definition has an attribute after the declarator.
2282 2014-05-01  Marek Polacek  <polacek@redhat.com>
2284         PR c/60257
2285         * c-typeck.c (warning_init): Add location_t parameter.  Call
2286         warning_at instead of warning.
2287         (push_init_level): Pass input_location to warning_init.
2288         (add_pending_init): Add location_t parameter.  Pass loc to
2289         warning_init.
2290         (set_nonincremental_init): Pass input_location to add_pending_init.
2291         (set_nonincremental_init_from_string): Likewise.
2292         (output_init_element): Pass loc to warning_init and to
2293         add_pending_init.
2295 2014-05-01  Marek Polacek  <polacek@redhat.com>
2297         PR c/43395
2298         * c-typeck.c (c_finish_return): Distinguish between label and variable
2299         when warning about returning local address.
2301 2014-05-01  Marek Polacek  <polacek@redhat.com>
2303         PR c/29467
2304         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
2305         in C89 mode.
2307 2014-05-01  Marek Polacek  <polacek@redhat.com>
2309         PR c/43245
2310         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
2311         instead of 0 to WARN_FOR_QUALIFIERS.
2313 2014-05-01  Marek Polacek  <polacek@redhat.com>
2315         PR c/56989
2316         * c-typeck.c (default_conversion): Use better location for
2317         error call.
2319 2014-04-30  Marek Polacek  <polacek@redhat.com>
2321         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
2322         also when SANITIZE_FLOAT_DIVIDE is on.
2324 2014-04-30  Marek Polacek  <polacek@redhat.com>
2326         PR c/60139
2327         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
2328         and pedwarn_init.  Use loc insted of input_location.
2330 2014-04-30  Marek Polacek  <polacek@redhat.com>
2332         PR c/60351
2333         * c-typeck.c (build_binary_op): Use location when warning about
2334         shift count.
2336 2014-04-25  Marek Polacek  <polacek@redhat.com>
2338         PR c/18079
2339         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
2340         always_inline/noinline and hot/cold attributes.
2342 2014-04-25  Marek Polacek  <polacek@redhat.com>
2344         PR c/60114
2345         * c-parser.c (c_parser_initelt): Pass input_location to
2346         process_init_element.
2347         (c_parser_initval): Pass loc to process_init_element.
2348         * c-tree.h (process_init_element): Adjust declaration.
2349         * c-typeck.c (push_init_level): Pass input_location to
2350         process_init_element.
2351         (pop_init_level): Likewise.
2352         (set_designator): Likewise.
2353         (output_init_element): Add location_t parameter.  Pass loc to
2354         digest_init.
2355         (output_pending_init_elements): Pass input_location to
2356         output_init_element.
2357         (process_init_element): Add location_t parameter.  Pass loc to
2358         output_init_element.
2360 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
2362         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
2363         atomic-clause, allow comma in between atomic-clause and
2364         seq_cst.
2366 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
2368         PR c/59073
2369         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
2370         fails, don't set OM_PARALLEL_COMBINED and return NULL.
2372 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
2374         PR middle-end/60469
2375         * c-array-notation.c (fix_builtin_array_notation_fn): Use
2376         create_tmp_var instead build_decl for creating temps.
2377         (build_array_notation_expr): Likewise.
2378         (fix_conditional_array_notations_1): Likewise.
2379         (fix_array_notation_expr): Likewise.
2380         (fix_array_notation_call_expr): Likewise.
2382 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
2384         PR c++/60689
2385         * c-tree.h (c_build_function_call_vec): New prototype.
2386         * c-typeck.c (build_function_call_vec): Don't call
2387         resolve_overloaded_builtin here.
2388         (c_build_function_call_vec): New wrapper function around
2389         build_function_call_vec.  Call resolve_overloaded_builtin here.
2390         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
2391         Call c_build_function_call_vec instead of build_function_call_vec.
2392         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2393         * c-decl.c (finish_decl): Likewise.
2395 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2397         PR c/55383
2398         * c-typeck.c: Use correct format string in cast-qual warning
2400 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
2402         * c-decl.c (c_decl_attributes): Use
2403         lang_hooks.types.omp_mappable_type.
2404         * c-typeck.c (c_finish_omp_clauses): Likewise.
2406 2014-03-06  Marek Polacek  <polacek@redhat.com>
2408         PR c/60197
2409         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
2410         of checking tree code.
2412 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
2414         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
2415         (c_parser_parameter_declaration): Likewise.
2417 2014-02-19  Marek Polacek  <polacek@redhat.com>
2419         PR c/60195
2420         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
2421         Call mark_exp_read on exp.value.
2422         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
2423         TREE_ADDRESSABLE on old instead of val.
2424         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
2426 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
2428         * c-parser.c (c_parser_get_builtin_args): Replace calls to
2429         C_EXPR_APPEND by vec_safe_push.
2430         * c-tree.h (C_EXPR_APPEND): Remove.
2432 2014-01-31  Marek Polacek  <polacek@redhat.com>
2434         PR c/59963
2435         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
2436         build_function_call_vec.
2437         (build_function_call): Likewise.
2438         (build_atomic_assign): Likewise.
2439         (build_function_call_vec): Add arg_loc parameter.  Use it.
2440         (convert_arguments): Likewise.
2441         (convert_for_assignment): Rename rhs_loc to expr_loc.
2442         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
2443         (c_parser_objc_keywordexpr): Likewise.
2444         (c_parser_postfix_expression_after_primary): Call
2445         build_function_call_vec with expr_loc rather than op_loc.
2446         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
2447         build_function_call_vec.
2448         (c_parser_expr_list): Add locations parameter.  Fill it with locations
2449         of function arguments.
2450         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
2452 2014-01-30  Marek Polacek  <polacek@redhat.com>
2454         PR c/59940
2455         * c-typeck.c (build_function_call_vec): Use loc parameter.
2456         (convert_arguments): Add location parameter.  Use it.
2457         (ep_convert_and_check): Likewise.
2458         (build_atomic_assign): Adjust convert_for_assignment call.
2459         (build_modify_expr): Likewise.
2460         (digest_init): Likewise.
2461         (c_finish_return): Likewise.
2462         (build_conditional_expr): Adjust ep_convert_and_check calls.
2463         (convert_for_assignment): Add rhs_loc parameter.  Use it.
2464         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
2465         calls.
2467 2014-01-30  Richard Biener  <rguenther@suse.de>
2469         PR c/59905
2470         * c-typeck.c (build_function_call_vec): Do not replace calls
2471         to a function via an incompatible type with a runtime abort.
2473 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2475         * c-parser.c (c_parser_declaration_or_fndef): Replaced
2476         flag_enable_cilkplus with flag_cilkplus.
2477         (c_parser_direct_declarator_inner): Likewise.
2478         (c_parser_attribute_any_word): Likewise.
2479         (c_parser_attributes): Likewise.
2480         (c_parser_compound_statement): Likewise.
2481         (c_parser_statement_after_labels): Likewise.
2482         (c_parser_if_statement): Likewise.
2483         (c_parser_switch_statement): Likewise.
2484         (c_parser_do_statement): Likewise.
2485         (c_parser_for_statement): Likewise.
2486         (c_parser_unary_expression): Likewise.
2487         (c_parser_postfix_expression): Likewise.
2488         (c_parser_postfix_expression_after_primary): Likewise.
2489         (c_parser_postfix_expression_after_primary): Likewise.
2490         (c_parser_omp_clause_name): Likewise.
2491         (c_finish_omp_declare_simd): Likewise.
2492         (c_parser_cilk_verify_simd): Likewise.
2493         * c-typeck.c (build_array_ref): Likewise.
2494         (build_function_call_vec): Likewise.
2495         (convert_arguments): Likewise.
2496         (build_compound_expr): Likewise.
2497         (c_finish_return): Likewise.
2498         (c_finish_if_stmt): Likewise.
2499         (c_finish_loop): Likewise.
2500         (build_binary_op): Likewise.
2502 2014-01-23  Marek Polacek  <polacek@redhat.com>
2504         PR c/59846
2505         * c-typeck.c (parser_build_binary_op): Use location instead of
2506         input_location.
2507         (build_binary_op): Pass location to shorten_compare.
2509 2014-01-23  Marek Polacek  <polacek@redhat.com>
2511         PR c/58346
2512         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
2513         an empty aggregate.
2515 2014-01-23  Marek Polacek  <polacek@redhat.com>
2517         PR c/59871
2518         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
2519         of a comma expression.
2520         (emit_side_effect_warnings): Likewise.
2522 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2524         PR c/59825
2525         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
2526         function to use walk_tree and moved a lot of its functionality to
2527         expand_array_notations.
2528         (expand_array_notations): New function.
2530 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2532         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
2533         attribute an attribute without value.
2535 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
2537         PR middle-end/58809
2538         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
2539         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
2541 2014-01-22  Marek Polacek  <polacek@redhat.com>
2543         PR c/59891
2544         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
2545         of remove_c_maybe_const_expr on op1 and op2.
2547 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
2549         PR c/58943
2550         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
2551         effects, preevaluate rhs using SAVE_EXPR first.
2553 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2555         PR c++/59631
2556         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
2557         statements with if-elseif statements.
2559 2014-01-06  Marek Polacek  <polacek@redhat.com>
2561         PR c/57773
2562         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
2563         defined bit-field types only in ISO C.
2565 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2567         Update copyright years
2569 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2571         * c-array-notation.c: Use the standard form for the copyright notice.
2573 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2575         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
2576         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
2577         field in parser is not empty.  If not-empty, call the function
2578         c_parser_finish_omp_declare_simd.
2579         (c_parser_cilk_clause_vectorlength): Modified function to be shared
2580         between SIMD-enabled functions and #pragma simd.  Added new parameter.
2581         (c_parser_cilk_all_clauses): Modified the usage of the function
2582         c_parser_cilk_clause_vectorlength as mentioned above.
2583         (c_parser_cilk_simd_fn_vector_attrs): New function.
2584         (c_finish_cilk_simd_fn_tokens): Likewise.
2585         (is_cilkplus_vector_p): Likewise.
2586         (c_parser_omp_clause_name): Added checking for "vectorlength,"
2587         "nomask," and "mask" strings in clause name.
2588         (c_parser_omp_all_clauses): Added 3 new case statements:
2589         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
2590         PRAGMA_CILK_CLAUSE_NOMASK.
2591         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
2592         check for vector attribute and if so call the function
2593         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
2594         called the function c_finish_cilk_simd_fn_tokens.
2595         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
2596         parser field is non-empty.  If so, parse them as you would parse
2597         the omp declare simd pragma.
2598         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
2599         Added a check when step is a parameter and flag it as error.
2600         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
2601         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
2602         pragma_omp_clause.
2604 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
2606         * c-parser.c (c_parser_omp_parallel): Fix description.
2608 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2610         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
2611         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2612         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2613         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
2615 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2617         PR c/52023
2618         * c-parser.c (c_parser_alignas_specifier): Use
2619         c_sizeof_or_alignof_type instead of c_alignof.
2620         (c_parser_alignof_expression): Likewise, with min_alignof
2621         parameter depending on alignof spelling used.
2623 2013-12-04  Marek Polacek  <polacek@redhat.com>
2625         PR c/54113
2626         * c-decl.c (start_function): Don't warn for missing prototype for
2627         inline functions.
2629 2013-12-03  Marek Polacek  <polacek@redhat.com>
2631         PR c/59351
2632         * c-decl.c (build_compound_literal): Allow compound literals with
2633         empty initial value.
2635 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
2637         PR c/58235
2638         * c-typeck.c (build_modify_expr): Diagnose assignment to
2639         expression with array type.
2641 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2643         PR c/42262
2644         * c-typeck.c (process_init_element): Do not treat a string as
2645         initializing a whole array when used with a designator for an
2646         individual element.
2648 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2650         PR c/57574
2651         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
2652         an inline function following a static declaration.
2654 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
2656         PR c/59310
2657         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
2658         to p_name before calling c_parser_omp_teams instead of after.
2659         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
2660         argument.  Remove unused p_name variable.
2662 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
2663             Jakub Jelinek  <jakub@redhat.com>
2665         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
2666         external_scope is NULL.
2668 2013-11-27  Tom de Vries  <tom@codesourcery.com>
2669             Marc Glisse  <marc.glisse@inria.fr>
2671         PR c++/59032
2672         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
2674 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
2676         * c-typeck.c: Add required include files from gimple.h.
2678 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
2680         * c-decl.c (define_label, shadow_tag_warned)
2681         (check_bitfield_type_and_width, grokdeclarator, grokparms,
2682         store_parm_decls_newstyle, store_parm_decls_oldstyle)
2683         (declspecs_add_type): Remove use of in_system_header macro.
2684         * c-parser.c (c_parser_unary_expression): Likewise.
2685         * c-typeck.c (store_init_value, process_init_element)
2686         (c_start_case): Likewise.
2688         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
2689         macro.
2691         * c-parser.c (c_parser_set_source_position_from_token): Remove
2692         reference to in_system_header from comment.
2694 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2696         * c-decl.c (grokdeclarator): Update comment to refer to
2697         tree_to_[su]hwi rather than tree_low_cst.
2699 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2701         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
2702         tree_to_uhwi throughout.
2704 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2706         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
2707         throughout.
2709 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2711         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2712         throughout.
2714 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2716         * c-parser.c (c_parser_cilk_simd): New.
2717         (c_parser_cilk_verify_simd): New.
2718         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
2719         (c_parser_omp_for_loop): Add case for NE_EXPR.
2720         Set c_break_label for CILK_SIMD.
2721         (c_parser_cilk_clause_vectorlength): New.
2722         (c_parser_cilk_clause_linear): New.
2723         (c_parser_cilk_clause_name): New.
2724         (c_parser_cilk_all_clauses): New.
2725         * c-typeck.c (build_unary_op): Pass location argument to
2726         readonly_error.
2727         (build_modify_expr): Same.
2728         (build_asm_expr): Same.
2729         (c_finish_bc_stmt): Error on break/continue in loops.
2731 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2733         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
2735 2013-11-14  Diego Novillo  <dnovillo@google.com>
2737         * c-decl.c: Include print-tree.h.
2738         Include stor-layout.h.
2739         Include varasm.h.
2740         Include attribs.h.
2741         Include stringpool.h.
2742         * c-lang.c: Include fold-const.h.
2743         * c-parser.c: Include stringpool.h.
2744         Include attribs.h.
2745         Include stor-layout.h.
2746         Include varasm.h.
2747         Include trans-mem.h.
2748         * c-typeck.c: Include stor-layout.h.
2749         Include trans-mem.h.
2750         Include varasm.h.
2751         Include stmt.h.
2753 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2755         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
2756         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
2757         __auto_type.
2758         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
2759         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
2760         RID_AUTO_TYPE.
2761         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
2762         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
2763         (c_parser_declarator, c_parser_direct_declarator_inner)
2764         (c_parser_parameter_declaration, c_parser_type_name): All callers
2765         changed.
2766         (c_parser_declaration_or_fndef): Handle declarations with type
2767         determined from the initializer.
2769 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
2771         * c-typeck.c: Include gimplify.h.
2773 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
2775         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
2776         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
2777         comment.
2778         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
2779         or _Thread_local as appropriate in diagnostics.
2780         (build_null_declspecs): Initialize ret->thread_gnu_p.
2781         (declspecs_add_scspec): Handle either __thread or _Thread_local
2782         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
2783         pedantic.  Do not disallow _Thread_local extern and _Thread_local
2784         static.
2786 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
2787             Andrew MacLeod  <amacleod@redhat.com>
2789         * c-aux-info.c (gen_type): Handle atomic qualifier.
2790         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
2791         qualifiers when compating types.
2792         (shadow_tag_warned): Handle atomic_p in declspecs.
2793         (quals_from_declspecs): Likewise.
2794         (start_decl): Use c_type_promotes_to when promoting argument
2795         types.
2796         (grokdeclarator): Handle _Atomic.
2797         (get_parm_info): Diagnose any qualifier on "void" as only
2798         parameter.
2799         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
2800         comparing types.  Use c_type_promotes_to when promoting argument
2801         types.
2802         (finish_function): Use c_type_promotes_to when promoting argument
2803         types.
2804         (build_null_declspecs): Handle atomic_p in declspecs.
2805         (declspecs_add_qual): Handle RID_ATOMIC.
2806         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
2807         (c_token_starts_declspecs): Handle RID_ATOMIC.
2808         (c_parser_declspecs): Handle atomic type specifiers and
2809         qualifiers.
2810         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
2811         from types of expressions with atomic type.
2812         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
2813         (c_parser_attribute_any_word): Handle RID_ATOMIC.
2814         (c_parser_initializer, c_parser_initelt, c_parser_initval)
2815         (c_parser_statement_after_labels, c_parser_switch_statement)
2816         (c_parser_for_statement, c_parser_expr_no_commas)
2817         (c_parser_conditional_expression, c_parser_binary_expression)
2818         (c_parser_cast_expression, c_parser_unary_expression)
2819         (c_parser_postfix_expression)
2820         (c_parser_postfix_expression_after_primary, c_parser_expression):
2821         Use convert_lvalue_to_rvalue.
2822         (c_parser_expression_conv, c_parser_expr_list): Document
2823         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
2824         (c_parser_objc_synchronized_statement): Use
2825         convert_lvalue_to_rvalue.
2826         (c_parser_objc_selector): Handle RID_ATOMIC.
2827         (c_parser_objc_receiver, c_parser_array_notation): Use
2828         convert_lvalue_to_rvalue.
2829         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
2830         _Atomic (type-name).
2831         (struct c_declspecs): Add atomic_p field.
2832         (convert_lvalue_to_rvalue): Declare.
2833         * c-typeck.c (c_type_promotes_to): Promote atomic types to
2834         corresponding atomic types.
2835         (qualify_type): Don't add _Atomic qualifiers from second argument.
2836         (comp_target_types): Do not allow _Atomic mismatches.
2837         (type_lists_compatible_p): Do not remove atomic qualifiers when
2838         comparing types.
2839         (really_atomic_lvalue, convert_lvalue_to_rvalue)
2840         (build_atomic_assign): New functions.
2841         (build_unary_op): Use build_atomic_assign for atomic increment and
2842         decrement.
2843         (build_conditional_expr): Do not treat _Atomic void as a qualified
2844         version of void.
2845         (build_modify_expr): Use build_atomic_assign for atomic LHS.
2846         (find_anonymous_field_with_type, convert_to_anonymous_field)
2847         (convert_for_assignment): Do not remove atomic qualifiers when
2848         comparing types.
2849         (digest_init): Do not accept initialization of arrays of atomic
2850         elements by string constants.
2851         (build_asm_expr): Use convert_lvalue_to_rvalue.
2852         (build_binary_op): Do not treat _Atomic void as a qualified
2853         version of void.
2855 2013-11-06  DJ Delorie  <dj@redhat.com>
2857         * c-decl.c (locate_old_decl): If a previous conflicting decl is
2858         both explicit and builtin, print the location of the explicit one.
2860 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2862         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
2863         c_parser_omp_distribute, c_parser_omp_teams,
2864         c_parser_omp_target, c_parser_omp_declare): Handle
2865         -fopenmp-simd.
2867 2013-11-03  Marek Polacek  <polacek@redhat.com>
2869         * c-decl.c (grokdeclarator): Add VLA instrumentation.
2871 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
2873         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
2874         check_dup_generic at the end, unless remove is true.
2875         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
2876         remove = true;.
2877         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
2879 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
2881         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
2882         with decl that is not pointer nor array.
2884 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2886         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
2887         a spawning function is found.
2888         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
2889         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
2890         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2891         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
2892         case.
2893         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
2894         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
2895         expr.
2896         (c_finish_return): Added a check to reject _Cilk_spawn in return
2897         expression.
2898         (build_cilk_spawn): New function.
2899         (build_cilk_sync): Likewise.
2900         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
2901         
2902 2013-10-27  Tobias Burnus  <burnus@net-b.de>
2904         PR other/33426
2905         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
2906         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
2907         (c_parser_statement_after_labels): Update calls.
2909 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2911         PR other/33426
2912         * c-parser.c (c_parser_pragma, c_parser_for_statement):
2913         Handle PRAGMA_IVDEP.
2914         (c_parser_statement_after_labels): Update call.
2916 2013-10-24  Marek Polacek  <polacek@redhat.com>
2918         * c-parser.c (c_parser_struct_declaration): Add a comment.
2919         (c_parser_declarator): Don't allow _Alignas here.
2921 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
2923         * c-parser.c: Include omp-low.h.
2924         * c-typeck.c: Likewise.
2926 2013-10-17  Marek Polacek  <polacek@redhat.com>
2928         PR c/58267
2929         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
2930         Document syntax of the array-declarator.
2931         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
2932         are not permitted.
2933         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
2934         (c_parser_struct_declaration): Likewise.
2935         (c_parser_declarator): Likewise.
2936         (c_parser_direct_declarator_inner): Likewise.
2937         (c_parser_parameter_declaration): Likewise.
2938         (c_parser_type_name): Likewise.
2940 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2942         * c-lang.h (current_omp_declare_target_attribute): New extern
2943         decl.
2944         * c-parser.c: Include c-lang.h.
2945         (struct c_parser): Change tokens to c_token *.
2946         Add tokens_buf field.  Change tokens_avail type to unsigned int.
2947         (c_parser_consume_token): If parser->tokens isn't
2948         &parser->tokens_buf[0], increment parser->tokens.
2949         (c_parser_consume_pragma): Likewise.
2950         (enum pragma_context): Add pragma_struct and pragma_param.
2951         (c_parser_external_declaration): Adjust
2952         c_parser_declaration_or_fndef caller.
2953         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
2954         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
2955         Adjust recursive call.
2956         (c_parser_struct_or_union_specifier): Use pragma_struct instead
2957         of pragma_external.
2958         (c_parser_parameter_declaration): Use pragma_param instead of
2959         pragma_external.
2960         (c_parser_compound_statement_nostart, c_parser_label,
2961         c_parser_for_statement): Adjust
2962         c_parser_declaration_or_fndef callers.
2963         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
2964         it through to c_parser_conditional_expression.
2965         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
2966         pass it through to c_parser_binary_expression.  Adjust recursive
2967         call.
2968         (c_parser_binary_expression): Remove prec argument, add
2969         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
2970         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
2971         binop matches it, use build2 instead of parser_build_binary_op.
2972         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
2973         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
2974         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
2975         Handle pragma_struct and pragma_param the same as pragma_external.
2976         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
2977         (c_parser_omp_variable_list): Parse array sections for
2978         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
2979         (c_parser_omp_clause_collapse): Fully fold collapse expression.
2980         (c_parser_omp_clause_reduction): Handle user defined reductions.
2981         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
2982         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
2983         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
2984         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
2985         c_parser_omp_clause_depend, c_parser_omp_clause_map,
2986         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
2987         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
2988         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
2989         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
2990         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
2991         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
2992         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
2993         (c_parser_omp_for_loop): Add CODE argument, pass it through
2994         to c_finish_omp_for.  Change last argument to cclauses,
2995         and adjust uses to grab parallel clauses from the array of all
2996         the split clauses.  Adjust c_parser_binary_expression,
2997         c_parser_declaration_or_fndef and c_finish_omp_for callers.
2998         (omp_split_clauses): New function.
2999         (c_parser_omp_simd): New function.
3000         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3001         Allow the function to be called also when parsing combined constructs,
3002         and call c_parser_omp_simd when parsing for simd.
3003         (c_parser_omp_sections_scope): If section-sequence doesn't start with
3004         #pragma omp section, require exactly one structured-block instead of
3005         sequence of statements.
3006         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
3007         Allow the function to be called also when parsing combined constructs.
3008         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
3009         Allow the function to be called also when parsing combined
3010         constructs.
3011         (c_parser_omp_taskgroup, c_parser_omp_cancel,
3012         c_parser_omp_cancellation_point, c_parser_omp_distribute,
3013         c_parser_omp_teams, c_parser_omp_target_data,
3014         c_parser_omp_target_update, c_parser_omp_target,
3015         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
3016         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
3017         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
3018         (c_parser_omp_construct): Add p_name and mask vars.  Handle
3019         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
3020         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
3021         and c_parser_omp_sections callers.
3022         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
3023         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
3024         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
3025         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
3026         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
3027         OMP_CLAUSE_DEPEND.
3028         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
3029         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
3030         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
3031         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
3032         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
3033         * c-typeck.c: Include tree-inline.h.
3034         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
3035         handle_omp_array_sections_1, handle_omp_array_sections,
3036         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
3037         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
3038         user defined reductions.
3039         (c_tree_equal): New function.
3040         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
3041         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
3042         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
3043         c_check_omp_declare_reduction_r): New prototypes.
3044         * c-decl.c (current_omp_declare_target_attribute): New variable.
3045         (c_decl_attributes): New function.
3046         (start_decl, start_function): Use it instead of decl_attributes.
3047         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
3048         c_omp_reduction_decl, c_omp_reduction_lookup,
3049         c_check_omp_declare_reduction_r): New functions.
3051 2013-09-25  Tom Tromey  <tromey@redhat.com>
3053         * Make-lang.in (c/gccspec.o): Remove.
3054         (CFLAGS-c/gccspec.o): New variable.
3055         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
3056         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
3057         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
3059 2013-09-25  Tom Tromey  <tromey@redhat.com>
3061         * Make-lang.in (c/gccspec.o): Don't use subshell.
3063 2013-09-18  Marek Polacek  <polacek@redhat.com>
3065         PR sanitize/58443
3066         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
3067         Remove unnecessary check.
3069 2013-09-18  Marek Polacek  <polacek@redhat.com>
3071         PR sanitizer/58411
3072         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
3073         no_sanitize_undefined attribute.
3075 2013-09-13  Kai Tietz  <ktietz@redhat.com>
3077         PR target/57848
3078         * c-decl.c (c_builtin_function_ext_scope): Remove
3079         wrong assumption that it is never called on prexisting
3080         symbol.
3082 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3084         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
3086 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3088         * c-objc-common.c (c_tree_printer): Tidy.
3090 2013-08-30  Marek Polacek  <polacek@redhat.com>
3092         * c-typeck.c (build_binary_op): Add division by zero and shift
3093         instrumentation.
3095 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3096             Joseph Myers  <joseph@codesourcery.com>
3098         PR c/35649
3099         * c-typeck.c (c_common_type): Prefer double_type_node over
3100         other REAL_TYPE types with the same precision.
3101         (convert_arguments): Likewise.
3103 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3105         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
3106         (c_initialize_diagnostics): Call a destructor for the early printer.
3108 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3110         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
3111         printer initialization.
3113 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3115         PR c/57490
3116         * c-array-notation.c (fix_conditional_array_notations_1): Added a
3117         check for truth values.
3118         (expand_array_notation_exprs): Added truth values case.  Removed an
3119         unwanted else.  Added for-loop to walk through subtrees in default
3120         case.
3122 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3124         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
3126 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
3128         * c-parser.c (struct c_generic_association): Fix typo.
3130 2013-07-23  Tom Tromey  <tromey@redhat.com>
3131             Joseph Myers  <joseph@codesourcery.com>
3133         * c-parser.c (struct c_generic_association): New.
3134         (c_generic_association_d): New typedef.
3135         (c_parser_generic_selection): New function.
3136         (c_parser_postfix_expression): Handle RID_GENERIC.
3138 2013-07-13  Jason Merrill  <jason@redhat.com>
3140         PR c++/57793
3141         * c-decl.c (finish_struct): Check for too-large class.
3143 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
3145         PR c/57821
3146         * c-typeck.c (set_init_index): When folding, check for index overflow.
3148 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3150         * c-parser.c (c_parser_array_notation): Removed rejection of array
3151         notations in an array of function pointers.
3153 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3155         * c-array-notation.c (make_triplet_val_inv): New function.
3156         (create_cmp_incr): Likewise.
3157         (create_array_refs): Likewise.
3158         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
3159         Also modularized common parts between functions and called the function.
3160         (build_array_notation_expr): Likewise.
3161         (fix_conditional_array_notations_1): Likewise.
3162         (fix_array_notation_expr): Likewise.
3163         (fix_array_notation_call_expr): Likewise.
3165 2013-06-18  Marek Polacek  <polacek@redhat.com>
3167         PR c/57630
3168         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
3170 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3172         * c-array-notation.c (build_array_notation_expr): Reject array notation
3173         mismatch between LHS and RHS even inside a call_expr.  Also, removed
3174         a couple while statements that were dead code.
3176 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3178         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
3179         excessive precision expressions in function parameters.  Also removed
3180         couple unwanted while statements.
3182 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3184         * c-array-notation.c (expand_array_notation_exprs): Added
3185         ARRAY_NOTATION_REF case.
3186         
3187 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3189         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
3190         function to c-family/array-notation-common.c.
3191         (is_cilkplus_reduce_builtin): Likewise.
3192         (find_rank): Likewise.
3193         (extract_array_notation_exprs): Likewise.
3194         (replace_array_notations): Likewise.
3195         (find_inv_trees): Likewise.
3196         (replace_inv_trees): Likewise.
3197         (contains_array_notation_expr): Likewise.
3198         (find_correct_array_notation_type): Likewise.
3199         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
3200         (struct inv_list): Moved this to c-family/array-notation-common.c.
3201         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
3202         
3203 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3205         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
3206         reduction functions outside the for-loop.  Added a check if the fundecl
3207         is non-NULL.  Finally, removed an unwanted if-statement, and made the
3208         body unconditional.
3210 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3212         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
3213         condition of the if-statement matches the rank of else-block and then-
3214         block when array notations are used.
3215         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
3216         expression after the entire function body is parsed.
3217         (c_parser_expr_no_commas): Delayed creating array notation expressions
3218         to the end of function parsing.
3219         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
3220         whole if-statement instead of just the condition.
3221         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
3223 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3225         PR c/57474
3226         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
3227         array to NULL_TREE if they are unused.  Also added a check for the
3228         field to be NULL before its fields are used in future.
3229         
3230 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3232         PR bootstrap/57450
3233         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
3234         (build_array_notation_expr): Likewise.
3236 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3238         * c-typeck.c (build_array_ref): Added a check to see if array's
3239         index is greater than one.  If true, then emit an error.
3240         (build_function_call_vec): Exclude error reporting and checking
3241         for builtin array-notation functions.
3242         (convert_arguments): Likewise.
3243         (c_finish_return): Added a check for array notations as a return
3244         expression.  If true, then emit an error.
3245         (c_finish_loop): Added a check for array notations in a loop
3246         condition.  If true then emit an error.
3247         (lvalue_p): Added a ARRAY_NOTATION_REF case.
3248         (build_binary_op): Added a check for array notation expr inside
3249         op1 and op0.  If present, we call another function to find correct
3250         type.
3251         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
3252         * c-parser.c (c_parser_compound_statement): Check if array
3253         notation code is used in tree, if so, then transform them into
3254         appropriate C code.
3255         (c_parser_expr_no_commas): Check if array notation is used in LHS
3256         or RHS, if so, then build array notation expression instead of
3257         regular modify.
3258         (c_parser_postfix_expression_after_primary): Added a check for
3259         colon(s) after square braces, if so then handle it like an array
3260         notation.  Also, break up array notations in unary op if found.
3261         (c_parser_direct_declarator_inner): Added a check for array
3262         notation.
3263         (c_parser_compound_statement): Added a check for array notation in
3264         a stmt.  If one is present, then expand array notation expr.
3265         (c_parser_if_statement): Likewise.
3266         (c_parser_switch_statement): Added a check for array notations in
3267         a switch statement's condition.  If true, then output an error.
3268         (c_parser_while_statement): Similarly, but for a while.
3269         (c_parser_do_statement): Similarly, but for a do-while.
3270         (c_parser_for_statement): Similarly, but for a for-loop.
3271         (c_parser_unary_expression): Check if array notation is used in a
3272         pre-increment or pre-decrement expression.  If true, then expand
3273         them.
3274         (c_parser_array_notation): New function.
3275         * c-array-notation.c: New file.
3276         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
3277         
3278 2013-05-23  Mike Stump  <mikestump@comcast.net>
3280         * c-typeck.c (convert_for_assignment): Handle references to memory
3281         spaces better.
3283 2013-05-16  Jason Merrill  <jason@redhat.com>
3285         * Make-lang.in (cc1$(exeext)): Use link mutex.
3287 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3289         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
3290         to simply use OPT_Wpointer_arith.
3291         (build_unary_op): Likewise.
3293 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
3295         PR c/19449
3296         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
3297         argument.  If set, or it temporarily for parsing of the first
3298         argument into force_folding_builtin_constant_p.
3299         (c_parser_postfix_expression): Adjust callers.
3301 2013-03-21  Richard Biener  <rguenther@suse.de>
3303         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3304         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
3306 2013-02-12  Marek Polacek  <polacek@redhat.com>
3308         PR c/44938
3309         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
3310         origtypes to NULL.
3312 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
3314         PR c/56078
3315         * c-typeck.c (set_nonincremental_init_from_string): If
3316         constructor_max_index is NULL, treat it as if tree_int_cst_lt
3317         returned false.
3318         (process_init_element): Likewise.
3320 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
3322         PR c++/55619
3323         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
3324         argument, don't call default_function_array_conversion
3325         nor c_fully_fold here.
3326         (c_parser_asm_statement): Adjust callers.
3327         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
3328         and outputs here, and call default_function_array_conversion
3329         on inputs that don't need to be addressable.
3331 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
3333         PR c/39464
3334         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
3335         warning require that both c_common_unsigned_type as well as
3336         c_common_signed_type is the same for both mvl and mvr types.
3338 2012-11-16  Diego Novillo  <dnovillo@google.com>
3340         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3342         * c-common.c: Use new vec API in vec.h.
3343         * c-common.h: Likewise.
3344         * c-gimplify.c: Likewise.
3345         * c-pragma.c: Likewise.
3346         * c-pretty-print.c: Likewise.
3347         * c-pretty-print.h: Likewise.
3348         * c-semantics.c: Likewise.
3349         * c-decl.c: Likewise.
3350         * c-parser.c: Likewise.
3351         * c-tree.h: Likewise.
3352         * c-typeck.c: Likewise.
3354 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
3356         PR c++/54930
3357         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
3359 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3361         PR c/53066
3362         * c-decl.c (warn_if_shadowing): Do not warn if a variable
3363         shadows a function, unless the variable is a function or a
3364         pointer-to-function.
3366 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
3368         PR c/54381
3369         * c-parser.c (struct c_tree_loc_pair): Removed.
3370         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
3371         add location_t * and tree * arguments, fill in array of 3
3372         sizeof_arg trees and corresponding locs.
3373         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
3374         c_parser_expr_list callers.
3375         (c_parser_postfix_expression_after_primary): Likewise.  Pass
3376         array of 3 sizeof_arg trees and locs (corresponding to first
3377         3 arguments) to sizeof_pointer_memaccess_warning.
3379 2012-10-09  Lawrence Crowl  <crowl@google.com>
3381         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
3382         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
3383         hash table.
3385 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
3387         PR c++/54194
3388         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
3389         call.
3391 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
3393         PR c++/54427
3394         * c-typeck.c: Include c-common.h.
3395         (enum stv_conv): Moved to c-common.h.
3396         (scalar_to_vector): Moved to c-common.c.
3397         (build_binary_op): Adapt to scalar_to_vector's new prototype.
3398         * Make-lang.in: c-typeck.c depends on c-common.h.
3400 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
3402         * c-decl.c (c_write_global_declarations): Fix handling of
3403         -fdump-ada-spec*.
3405 2012-09-30  Sharad Singhai  <singhai@google.com>
3407         * c-decl.c (c_write_global_declarations): Use a different method
3408         to determine if the dump has ben initialized.
3410 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3412         PR c/54552
3413         * c-typeck.c (c_cast_expr): When casting to a type requiring
3414         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
3415         c_fully_fold first.
3417 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3419         PR c/54103
3420         * c-typeck.c (build_unary_op): Pass original argument of
3421         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
3422         any C_MAYBE_CONST_EXPR, if it has integer operands.
3423         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
3424         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
3425         to c_objc_common_truthvalue_conversion, then remove any
3426         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
3427         c_objc_common_truthvalue_conversion not
3428         c_common_truthvalue_conversion.
3429         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
3430         call note_integer_operands for arguments with integer operands
3431         that are not integer constants.
3433 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
3435         PR c/54559
3436         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
3437         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
3439 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
3441         PR c/54428
3442         * c-convert.c (convert): Don't call fold_convert_loc if
3443         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
3444         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
3445         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
3447 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
3449         PR c/54355
3450         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
3451         for nested and empty_ok arguments in the call to
3452         c_parser_declaration_or_fndef.
3454 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
3456         * c-tree.h (c_last_sizeof_arg): Declare.
3457         * c-parser.c (struct c_tree_loc_pair): New type.
3458         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
3459         non-NULL.
3460         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
3461         (c_parser_postfix_expression_after_primary): Likewise.  Call
3462         sizeof_pointer_memaccess_warning if needed.
3463         (sizeof_ptr_memacc_comptypes): New function.
3464         * c-typeck.c (c_last_sizeof_arg): New global variable.
3465         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
3467 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
3469         * c-lang.h (lang_decl): Add variable_size GTY option.
3471 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
3473         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
3474         * Make-lang.in: Fix dependencies.
3476 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
3478         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
3479         and add language Makefile hooks.
3480         * config-lang.in: New file.
3481         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
3482         add the required "normal" config-lang.in rules.
3483         * c-lang.h: Moved from gcc/ to here.
3484         * c-tree.h: Likewise.
3485         * c-objc-common.c: Likewise.
3486         * c-objc-common.h: Likewise.
3487         * c-typeck.c: Likewise.
3488         * c-convert.c: Likewise.
3489         * c-lang.c: Likewise.
3490         * c-aux-info.c: Likewise.
3491         * c-errors.c: Likewise.
3492         * gccspec.c: Likewise.
3493         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
3494         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
3496 Copyright (C) 2012-2016 Free Software Foundation, Inc.
3498 Copying and distribution of this file, with or without modification,
3499 are permitted in any medium without royalty provided the copyright
3500 notice and this notice are preserved.