P0409R2 - allow lambda capture [=, this]
[official-gcc.git] / gcc / c / ChangeLog
blob135445e1bbd178669141744e313b2c730d360724
1 2017-09-16  Tom de Vries  <tom@codesourcery.com>
3         PR c/81875
4         * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
5         cond itself.
7 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
9         PR c/82071
10         * c-typeck.c (ep_convert_and_check): Just call convert_and_check
11         for C11.
12         (build_conditional_expr): For C11, generate result with excess
13         precision when one argument is an integer and the other is of a
14         type using excess precision.
16 2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18         * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.
20 2017-09-13  Marek Polacek  <polacek@redhat.com>
22         PR c/82167
23         * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
24         than expr.original_type.
26 2017-09-12  Nathan Sidwell  <nathan@acm.org>
28         * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
29         resort_sorted_fields): Moved from c-family/c-common.c.
30         * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h.
32 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
34         PR c/82071
35         * c-typeck.c (build_atomic_assign): Handle argument with excess
36         precision.  Ensure any EXCESS_PRECISION_EXPR is present in
37         argument passed to build_binary_op and convert_for_assignment but
38         not for call to c_fully_fold.
39         (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early.
40         Ensure build_binary_op is called with argument with original
41         semantic type.  Avoid calling c_fully_fold with an
42         EXCESS_PRECISION_EXPR from build_binary_op.
44 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
46         PR c/81887
47         * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
49 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
50             Alan Hayward  <alan.hayward@arm.com>
51             David Sherwood  <david.sherwood@arm.com>
53         * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE.
54         (c_common_type): Likewise.  Use as_a <scalar_mode> when setting
55         m1 and m2 to the signed equivalent of a fixed-point
56         SCALAR_TYPE_MODE.
58 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
60         * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather
61         than CAN_HAVE_LOCATION_P when determining whether to use the
62         location_t value within "value".
64 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
66         * c-parser.c (c_parser_expr_list): Use c_expr::get_location ()
67         rather than peeking the location of the first token.
68         * c-tree.h (c_expr::get_location): New method.
70 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
72         * c-typeck.c (build_function_call_vec): Pass arg_loc to call
73         to check_function_arguments.
75 2017-08-18  Marek Polacek  <polacek@redhat.com>
77         * c-parser.c (c_parser_postfix_expression): Remove unused code.  Update
78         commentary.
80 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
82         PR c/53037
83         * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
84         (check_bitfield_type_and_width): Don't allow bit-field with
85         warn_if_not_aligned type.
87 2017-08-14  Martin Sebor  <msebor@redhat.com>
89         PR c/81117
90         * c-objc-common.c (c_objc_common_init): Handle 'G'.
92 2017-08-11  Marek Polacek  <polacek@redhat.com>
94         PR c/81795
95         * c-decl.c (pushtag): Only print inform if the warning was printed.
96         (grokdeclarator): Likewise.
98 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
100         * c-parser.c (c_parser_error): Rename to...
101         (c_parser_error_richloc): ...this, making static, and adding
102         "richloc" parameter, passing it to the c_parse_error call,
103         rather than calling c_parser_set_source_position_from_token.
104         (c_parser_error): Reintroduce, reimplementing in terms of the
105         above, converting return type from void to bool.
106         (class token_pair): New class.
107         (struct matching_paren_traits): New struct.
108         (matching_parens): New typedef.
109         (struct matching_brace_traits): New struct.
110         (matching_braces): New typedef.
111         (get_matching_symbol): New function.
112         (c_parser_require): Add param MATCHING_LOCATION, using it to
113         highlight matching "opening" tokens for missing "closing" tokens.
114         (c_parser_skip_until_found): Likewise.
115         (c_parser_static_assert_declaration_no_semi): Convert explicit
116         parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
117         class matching_parens, so that the pertinent open parenthesis is
118         highlighted when there are problems locating the close
119         parenthesis.
120         (c_parser_struct_or_union_specifier): Likewise.
121         (c_parser_typeof_specifier): Likewise.
122         (c_parser_alignas_specifier): Likewise.
123         (c_parser_simple_asm_expr): Likewise.
124         (c_parser_braced_init): Likewise, for matching_braces.
125         (c_parser_paren_condition): Likewise, for matching_parens.
126         (c_parser_switch_statement): Likewise.
127         (c_parser_for_statement): Likewise.
128         (c_parser_asm_statement): Likewise.
129         (c_parser_asm_operands): Likewise.
130         (c_parser_cast_expression): Likewise.
131         (c_parser_sizeof_expression): Likewise.
132         (c_parser_alignof_expression): Likewise.
133         (c_parser_generic_selection): Likewise.
134         (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
135         RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
136         RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
137         In case CPP_OPEN_PAREN, pass loc_open_paren to the
138         c_parser_skip_until_found call.
139         (c_parser_objc_class_definition): Use class matching_parens as
140         above.
141         (c_parser_objc_method_decl): Likewise.
142         (c_parser_objc_try_catch_finally_statement): Likewise.
143         (c_parser_objc_synchronized_statement): Likewise.
144         (c_parser_objc_at_property_declaration): Likewise.
145         (c_parser_oacc_wait_list): Likewise.
146         (c_parser_omp_var_list_parens): Likewise.
147         (c_parser_omp_clause_collapse): Likewise.
148         (c_parser_omp_clause_default): Likewise.
149         (c_parser_omp_clause_if): Likewise.
150         (c_parser_omp_clause_num_threads): Likewise.
151         (c_parser_omp_clause_num_tasks): Likewise.
152         (c_parser_omp_clause_grainsize): Likewise.
153         (c_parser_omp_clause_priority): Likewise.
154         (c_parser_omp_clause_hint): Likewise.
155         (c_parser_omp_clause_defaultmap): Likewise.
156         (c_parser_oacc_single_int_clause): Likewise.
157         (c_parser_omp_clause_ordered): Likewise.
158         (c_parser_omp_clause_reduction): Likewise.
159         (c_parser_omp_clause_schedule): Likewise.
160         (c_parser_omp_clause_num_teams): Likewise.
161         (c_parser_omp_clause_thread_limit): Likewise.
162         (c_parser_omp_clause_aligned): Likewise.
163         (c_parser_omp_clause_linear): Likewise.
164         (c_parser_omp_clause_safelen): Likewise.
165         (c_parser_omp_clause_simdlen): Likewise.
166         (c_parser_omp_clause_depend): Likewise.
167         (c_parser_omp_clause_map): Likewise.
168         (c_parser_omp_clause_device): Likewise.
169         (c_parser_omp_clause_dist_schedule): Likewise.
170         (c_parser_omp_clause_proc_bind): Likewise.
171         (c_parser_omp_clause_uniform): Likewise.
172         (c_parser_omp_for_loop): Likewise.
173         (c_parser_cilk_clause_vectorlength): Likewise.
174         (c_parser_cilk_clause_linear): Likewise.
175         (c_parser_transaction_expression): Likewise.
176         * c-parser.h (c_parser_require): Add param matching_location with
177         default UNKNOWN_LOCATION.
178         (c_parser_error): Convert return type from void to bool.
179         (c_parser_skip_until_found): Add param matching_location with
180         default UNKNOWN_LOCATION.
182 2017-08-09  Marek Polacek  <polacek@redhat.com>
184         * c-decl.c (build_enumerator): Use true/false instead of 1/0.
185         * c-tree.h (build_external_ref): Update declaration.
186         * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
187         (build_external_ref): Change the type of a parameter to bool.
188         (parser_build_binary_op): Use true/false instead of 1/0.
189         (pointer_diff): Likewise.
190         (build_modify_expr): Likewise.
191         (set_designator): Change the type of a parameter to bool.
192         (set_init_index): Use true/false instead of 1/0.
193         (set_init_label): Likewise.
194         (output_init_element): Change the type of a parameter to bool.
195         (output_pending_init_elements): Use true/false instead of 1/0.
196         (process_init_element): Likewise.
197         (build_binary_op): Change the type of a parameter to bool.
199 2017-08-09  Marek Polacek  <polacek@redhat.com>
201         PR c/81233
202         * c-typeck.c (pedwarn_init): Make the function take a variable list.
203         Call emit_diagnostic_valist instead of pedwarn.
204         (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
205         Print the relevant types in diagnostics.
207 2017-08-09  Marek Polacek  <polacek@redhat.com>
209         PR c/81417
210         * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
211         build_conditional_expr. 
212         * c-parser.c (c_parser_conditional_expression): Create locations for
213         EXP1 and EXP2 from their source ranges.  Pass the locations down to
214         build_conditional_expr.
215         * c-tree.h (build_conditional_expr): Update declaration.
216         * c-typeck.c (build_conditional_expr): Add location_t parameters.
217         For -Wsign-compare, also print the types.
219 2017-08-08  Martin Liska  <mliska@suse.cz>
221         * c-convert.c: Include header files.
222         * c-typeck.c: Likewise.
224 2017-08-07  Martin Liska  <mliska@suse.cz>
226         * c-parser.c (c_parser_attributes): Canonicalize name of an
227         attribute.
229 2017-08-02  Marek Polacek  <polacek@redhat.com>
231         PR c/81289
232         * c-parser.c (c_parser_unary_expression): Use set_error.
234         PR c/81448
235         PR c/81306
236         * c-warn.c (warn_for_multistatement_macros): Prevent bogus
237         warnings.  Avoid walking MACRO_MAP_LOCATIONS.
239 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
240             Martin Liska  <mliska@suse.cz>
242         * c-typeck.c (c_finish_goto_label): Build gimple predict
243         statement.
245 2017-07-31  Martin Liska  <mliska@suse.cz>
247         PR sanitize/81530
248         * c-convert.c (convert): Guard condition with flag_sanitize_p
249         also with current_function_decl non-null equality.
250         * c-decl.c (grokdeclarator): Likewise.
251         * c-typeck.c (build_binary_op): Likewise.
253 2017-07-25  Marek Polacek  <polacek@redhat.com>
255         * c-decl.c (grokfield): Remove local variable.
257 2017-07-25  Marek Polacek  <polacek@redhat.com>
259         PR c/81364
260         * c-parser.c (c_parser_else_body): Don't warn about multistatement
261         macro expansion if the body is in { }.
262         (c_parser_while_statement): Likewise.
263         (c_parser_for_statement): Likewise.
265 2017-07-18  Nathan Sidwell  <nathan@acm.org>
267         * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
269 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
271         * c-decl.c (implicitly_declare): When suggesting a missing
272         #include, provide a fix-it hint.
274 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
276         * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
277         and call that instead.
278         * c-tree.h (selftest::run_c_tests): New decl.
280 2017-06-26  Marek Polacek  <polacek@redhat.com>
282         PR c/80116
283         * c-parser.c (c_parser_if_body): Set the location of the
284         body of the conditional after parsing all the labels.  Call
285         warn_for_multistatement_macros.
286         (c_parser_else_body): Likewise.
287         (c_parser_switch_statement): Likewise.
288         (c_parser_while_statement): Likewise.
289         (c_parser_for_statement): Likewise.
290         (c_parser_statement): Add a default argument.  Save the location
291         after labels have been parsed.
292         (c_parser_c99_block_statement): Likewise.
294 2017-06-19  Richard Biener  <rguenther@suse.de>
296         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
297         negated _Literals to parse _Literal (int) -1.
299 2017-06-13  Martin Liska  <mliska@suse.cz>
301         PR sanitize/78204
302         * c-convert.c (convert): Use sanitize_flags_p.
303         * c-decl.c (grokdeclarator): Likewise.
304         * c-typeck.c (convert_for_assignment): Likewise.
305         (c_finish_return): Likewise.
306         (build_binary_op): Likewise.
308 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
310         PR c/81006
311         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
312         to sizetype before size_binop.
314 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
316         * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
317         of TDI_generic.
319 2017-06-06  Marek Polacek  <polacek@redhat.com>
321         PR c/79983
322         * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
323         ref.
324         (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
326 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
328         * c-parser.c (c_parser_binary_expression): Implement the
329         -Wsizeof_pointer_div warning.
330         (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
331         from a parenthesized expression.
332         (c_parser_expr_list): Use c_last_sizeof_loc.
333         * c-tree.h (c_last_sizeof_loc): New external.
334         * c-typeck.c (c_last_sizeof_loc): New variable.
335         (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
337 2017-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
339         PR testsuite/80580
340         * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
342 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
344         * c-objc-common.c (c_tree_printer): Gain bool and const char **
345         parameters.
347 2017-05-24  Martin Sebor  <msebor@redhat.com>
349         PR c/80731
350         * c-fold.c (c_fully_fold_internal): Adjust.
351         * c-typeck.c (parser_build_unary_op): Adjust.
353 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
355         * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
356         "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
357         "VECTOR_LENGTH".
359 2017-05-23  Marek Polacek  <polacek@redhat.com>
361         * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
362         quotes.
364 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
366         * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
367         result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
368         it returned invariant.  Call tree_invariant_p unconditionally
369         afterwards to decide whether to return expr or op0.
371 2017-05-22  Nathan Sidwell  <nathan@acm.org>
373         * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
375 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
377         * c-parser.c (c_parser_omp_clause_default): Handle
378         "OMP_CLAUSE_DEFAULT_PRESENT".
380 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
382         * config-lang.in (gtfiles): Add c-family/c-format.c.
384 2017-05-18  Nathan Sidwell  <nathan@acm.org>
386         * c-decl.c (pushdecl_top_level): Delete unused function.
388 2017-05-18  Marek Polacek  <polacek@redhat.com>
390         * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
391         (check_earlier_gotos): Likewise.
392         (define_label): Likewise.
393         (pending_xref_error): Likewise.
394         (smallest_type_quals_location): Likewise.
395         (grokdeclarator): Likewise.
396         (grokparms): Likewise.
397         (identifier_global_value): Likewise.
398         * c-typeck.c (set_nonincremental_init_from_string): Likewise.
399         (find_init_member): Likewise.
401 2017-05-18  Marek Polacek  <polacek@redhat.com>
403         * c-decl.c (start_decl): Use false/true instead of 0/1.
404         (grokdeclarator): Likewise.
405         (finish_struct): Likewise.
406         (start_function): Change the return type to bool.  Use false/true
407         instead of 0/1.
408         (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
409         * c-tree.h (start_function): Update.
410         * c-typeck.c (same_translation_unit_p): Change the return type to bool.
411         (set_designator): Change the return type to bool.  Use false/true
412         instead of 0/1.
414 2017-05-17  Marek Polacek  <polacek@redhat.com>
416         * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
417         * c-typeck.c: Likewise.
419 2017-05-17  Marek Polacek  <polacek@redhat.com>
421         PR sanitizer/80659
422         * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
423         DECL_IGNORED_P even for non-static compound literals.
425 2017-05-17  Martin Liska  <mliska@suse.cz>
427         * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
428         use it instead of int type.
430 2017-05-17  Marek Polacek  <polacek@redhat.com>
432         * c-convert.c (convert): Replace c_save_expr with save_expr.  Don't
433         call c_fully_fold.
434         (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
435         * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. 
436         * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
437         * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
438         save_expr.
439         (c_parser_conditional_expression): Likewise.
440         * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
441         * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
442         (process_init_element): Likewise.
443         (build_binary_op): Likewise.
444         (handle_omp_array_sections_1): Likewise.
446 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
448         * c-parser.c (c_parser_omp_clause_num_gangs)
449         (c_parser_omp_clause_num_workers)
450         (c_parser_omp_clause_vector_length): Merge functions into...
451         (c_parser_oacc_single_int_clause): ... this new function.  Adjust
452         all users.
454 2017-05-11  Nathan Sidwell  <nathan@acm.org>
456         * gimple-parser.c: Don't #include tree-dump.h.
458 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
460         PR testsuite/80580
461         * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
463 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
465         PR testsuite/80580
466         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
467         incorrect __MEM syntax.
469 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
471         PR testsuite/80580
472         * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
473         type of unary '*'.
475 2017-05-09  Nathan Sidwell  <nathan@acm.org>
477         * c-tree.h (pushdecl): Declare.
479 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
481         * c-decl.c (warn_defaults_to): Replace report_diagnostic
482         with diagnostic_report_diagnostic.
483         * c-errors.c (pedwarn_c99): Likewise.
484         (pedwarn_c90): Likewise.
486 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
488         PR c++/80038
489         * c-gimplify.c (c_gimplify_expr): Remove calls to
490         cilk_gimplifY_call_params_in_spawned_fn.
492 2017-04-25  David Malcolm  <dmalcolm@redhat.com>
494         * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
495         hint for removing extra semicolon.
497 2017-04-21  Jakub Jelinek  <jakub@redhat.com>
499         PR c/80468
500         * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
501         enabled, set specs->type to integer_type_node.
503 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
505         * c-array-notation.c: Fix typo in comment.
507 2017-03-29  Marek Polacek  <polacek@redhat.com>
509         PR c/79730
510         * c-decl.c (finish_decl): Check VAR_P.
512 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
514         PR middle-end/80162
515         * c-tree.h (c_mark_addressable): Add array_ref_p argument.
516         * c-typeck.c (c_mark_addressable): Likewise.  Look through
517         VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
518         to ARRAY_TYPE.
519         (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
521 2017-03-23  Marek Polacek  <polacek@redhat.com>
523         * c-tree.h: Remove a C_RID_YYCODE reference.
525 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
527         PR c/80097
528         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
529         optional COMPOUND_EXPR with ubsan instrumentation.
531 2017-03-17  Marek Polacek  <polacek@redhat.com>
533         * c-parser.c: Add C11 references.
535 2017-03-15  Marek Polacek  <polacek@redhat.com>
537         * c-parser.c (c_parser_enum_specifier): Remove redundant line.
539 2017-03-11  Marek Polacek  <polacek@redhat.com>
541         * c-decl.c (implicit_decl_warning): Add a comment.  Fix formatting.
543 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
545         PR translation/79848
546         * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
547         "%qs".
548         * c-parser.c (c_parser_oacc_shape_clause): Likewise.
550 2017-03-09  Marek Polacek  <polacek@redhat.com>
552         PR sanitizer/79757
553         * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
554         parameter declarations with initializers.
556 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
558         PR c/79969
559         * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
560         TYPE_STUB_DECL.
562 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
564         PR c/79834
565         * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
566         for "may only be used in compound statements" diagnostics, change it
567         such that the same translatable string is used for all pragmas.  For
568         PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
569         diagnostics.
570         (c_parser_omp_cancellation_point, c_parser_omp_target_update,
571         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
572         "may only be used in compound statements" diagnostics, such that the
573         same translatable string is used for all pragmas.
575 2017-03-04  Marek Polacek  <polacek@redhat.com>
577         PR c/79847
578         * c-decl.c (implicit_decl_warning): Add missing space.
580 2017-03-03  Marek Polacek  <polacek@redhat.com>
582         PR c/79758
583         * c-decl.c (store_parm_decls_oldstyle): Check if the element of
584         current_function_prototype_arg_types is error_mark_node.  Fix
585         formatting.  Use TREE_VALUE instead of TREE_TYPE.
587 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
589         PR c/79837
590         * c-parser.c (c_parser_omp_clause_reduction): Don't mention
591         %<min%> or %<max%> in the diagnostics, instead mention identifier.
592         (c_parser_omp_declare_reduction): Don't mention %<min%> in the
593         diagnostics.
595         PR c/79836
596         * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
597         instead of %<_Generic>.
598         (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
599         (c_parser_omp_target_exit_data): Use %<release%> instead of
600         %<release>.
602 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
604         * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
605         instead of just cond ? "..." : "...".
606         (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
607         for "enter"/"exit" keyword.
608         (c_finish_oacc_routine): Don't use %s to supply portions of the
609         message.
611 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
613         PR c++/79588
614         * c-parser.c (c_parser_postfix_expression_after_primary): Don't
615         handle -Wrestrict here.
616         * c-typeck.c (build_function_call_vec): Adjust
617         check_function_arguments caller.
619 2017-02-23  Richard Biener  <rguenther@suse.de>
621         PR c/79684
622         * gimple-parser.c (c_parser_gimple_statement): Use set_error
623         to initialize c_exprs to return.
624         (c_parser_gimple_binary_expression): Likewise.
625         (c_parser_gimple_unary_expression): Likewise.
626         (c_parser_gimple_postfix_expression): Likewise.
628 2017-02-22  Marek Polacek  <polacek@redhat.com>
630         PR c/79662
631         * c-typeck.c (convert_arguments): Handle error_mark_node.
633 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
635         * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
636         value of c_parser_parse_ssa_name against error_mark_node and emit
637         error if ssa name is anonymous and written as default definition.
639 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
641         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
642         FMA_EXPR.
644 2017-02-16  Jakub Jelinek  <jakub@redhat.com>
646         PR c++/79512
647         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
648         ignore #pragma omp target even when not followed by identifier.
650 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
652         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
653         (c_parser_gimple_unary_expression): Likewise.
655 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
657         * c-parser.c (c_parser_oacc_declare): Add missing space in
658         diagnostics.
660 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
662         PR c/79478
663         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
664         set_c_expr_source_range when parsing ssa-name.
666 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
667         Richard Biener  <rguenther@suse.de>
669         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
670         building IL when arguments are error_mark_node.
671         (c_parser_gimple_unary_expression): Likewise.
672         (c_parser_gimple_if_stmt): Likewise.
673         (c_parser_gimple_switch_stmt): Likewise.
674         (c_parser_gimple_return_stmt): Likewise.
675         (c_parser_parse_ssa_name): When name lookup fails do not build
676         an SSA name.  Use undeclared rather than not declared in error
677         reporting.
679 2017-02-09  Marek Polacek  <polacek@redhat.com>
681         PR c/79428
682         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
683         instead of c_parser_skip_until_found.
685 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
687         PR c/79431
688         * c-parser.c (c_parser_omp_declare_target): Don't invoke
689         symtab_node::get on automatic variables.
691 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
692             Chung-Lin Tang  <cltang@codesourcery.com>
694         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
695         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
696         semantic checking.
697         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
699 2017-02-07  Richard Biener  <rguenther@suse.de>
701         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
702         (c_parser_gimple_postfix_expression_after_primary):
703         Do not use c_build_function_call_vec to avoid folding and promotion.
704         Simplify.
706 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
708         PR lto/79061
709         * c-decl.c (pop_scope): Pass main_input_filename to
710         build_translation_unit_decl.
712 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
714         * c-parser.c: Include "read-rtl-function.h" and
715         "run-rtl-passes.h".
716         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
717         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
718         production.  Update for renaming of field "gimple_pass" to
719         "gimple_or_rtl_pass".  If __RTL was seen, call
720         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
721         to an auto_timevar, to cope with early exit.
722         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
723         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
724         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
725         Handle RID_RTL.
726         (c_parser_parse_rtl_body): New function.
727         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
728         (struct c_declspecs): Rename field "gimple_pass" to
729         "gimple_or_rtl_pass".  Add field "rtl_p".
730         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
731         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
732         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
733         (c_parser_gimple_or_rtl_pass_list): ...this.
735 2017-01-20  Marek Polacek  <polacek@redhat.com>
737         PR c/64279
738         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
740 2017-01-13  Richard Biener  <rguenther@suse.de>
742         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
743         nops.
745 2017-01-13  Richard Biener  <rguenther@suse.de>
747         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
748         _Literal ( type-name ) number.
750 2017-01-12  Richard Biener  <rguenther@suse.de>
752         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
753         __MEM.
755 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
757         PR c++/72813
758         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
759         PCH file.
761 2017-01-11  Richard Biener  <rguenther@suse.de>
763         PR bootstrap/79052
764         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
765         returns on parse errors.
767 2017-01-04  Marek Polacek  <polacek@redhat.com>
769         PR c++/64767
770         * c-parser.c (c_parser_postfix_expression): Mark zero character
771         constants by setting original_type in c_expr.
772         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
773         with a zero character constant.
774         (char_type_p): New function.
776 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
778         * c-parser.c (c_parser_declaration_or_fndef): Create a
779         rich_location at init_loc and parse it to start_init.
780         (last_init_list_comma): New global.
781         (c_parser_braced_init): Update last_init_list_comma when parsing
782         commas.  Pass it to pop_init_level.  Pass location of closing
783         brace to pop_init_level.
784         (c_parser_postfix_expression_after_paren_type): Create a
785         rich_location at type_loc and parse it to start_init.
786         (c_parser_omp_declare_reduction): Likewise for loc.
787         * c-tree.h (start_init): Add rich_location * param.
788         (pop_init_level): Add location_t param.
789         * c-typeck.c (struct initializer_stack): Add field
790         "missing_brace_richloc".
791         (start_init): Add richloc param, use it to initialize
792         the stack node's missing_brace_richloc.
793         (last_init_list_comma): New decl.
794         (finish_implicit_inits): Pass last_init_list_comma to
795         pop_init_level.
796         (push_init_level): When finding missing open braces, add fix-it
797         hints to the richloc.
798         (pop_init_level): Add "insert_before" param and pass it
799         when calling pop_init_level.  Add fixits about missing
800         close braces to any richloc.  Use the richloc for the
801         -Wmissing-braces warning.
802         (set_designator): Pass last_init_list_comma to pop_init_level.
803         (process_init_element): Likewise.
805 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
807         Update copyright years.
809 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
811         PR bootstrap/78817
812         * c-typeck.c (build_function_call_vec): If check_function_arguments
813         returns true, set TREE_NO_WARNING on CALL_EXPR.
815         PR c/77767
816         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
817         to *expr instead of overwriting it.
819 2016-12-20  Richard Biener  <rguenther@suse.de>
821         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
822         error recovery.
823         (c_parser_gimple_statement): Only build assigns for non-error
824         stmts.
825         (c_parser_gimple_postfix_expression_after): Improve error recovery.
827 2016-12-14  Martin Jambor  <mjambor@suse.cz>
829         * c-parser.c: Include omp-general.h and omp-offload.h instead of
830         omp-low.h.
831         (c_finish_oacc_routine): Adjusted call to
832         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
833         to use their new names.
834         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
835         use its new name.
836         (c_parser_oacc_update): Likewise.
837         (c_parser_omp_simd): Likewise.
838         (c_parser_omp_target_update): Likewise.
839         * c-typeck.c: Include omp-general.h instead of omp-low.h.
840         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
841         name.
842         (c_finish_omp_cancellation_point): Likewise.
843         * gimple-parser.c: Do not include omp-low.h
845 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
846             James Norris  <jnorris@codesourcery.com>
848         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
849         EXIT_DATA,WAIT} are not used in compound statements.
850         (c_parser_oacc_enter_exit_data): Update diagnostics.
852 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
854         PR c++/71973
855         * c-decl.c (diagnose_mismatched_decls): Use
856         OPT_Wbuiltin_declaration_mismatch here too.
858 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
859             Alan Hayward  <alan.hayward@arm.com>
860             David Sherwood  <david.sherwood@arm.com>
862         * c-decl.c (merge_decls): Use SET_DECL_MODE.
863         (make_label, finish_struct): Likewise.
865 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
866             Richard Biener  <rguenther@suse.de>
868         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
869         * config-lang.in (gtfiles): Add c/c-parser.h.
870         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
871         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
872         * c-parser.c (enum c_id_kind, struct c_token,
873         c_parser_next_token_is, c_parser_next_token_is_not,
874         c_parser_next_token_is_keyword,
875         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
876         Split out to ...
877         * c-parser.h: ... new header.
878         * c-parser.c: Include c-parser.h and gimple-parser.h.
879         (c_parser_peek_token, c_parser_peek_2nd_token,
880         c_token_starts_typename, c_parser_next_token_starts_declspecs,
881         c_parser_next_tokens_start_declaration, c_parser_consume_token,
882         c_parser_error, c_parser_require, c_parser_skip_until_found,
883         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
884         c_parser_type_name): Export.
885         (c_parser_tokens_buf): New function.
886         (c_parser_error): Likewise.
887         (c_parser_set_error): Likewise.
888         (c_parser_declspecs): Handle RID_GIMPLE.
889         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
890         via c_parser_parse_gimple_body.
891         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
892         c_token_starts_typename, c_parser_next_token_starts_declspecs,
893         c_parser_next_tokens_start_declaration, c_parser_consume_token,
894         c_parser_error, c_parser_require, c_parser_skip_until_found,
895         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
896         c_parser_type_name): Declare.
897         (struct c_parser): Declare forward.
898         (c_parser_tokens_buf): Declare.
899         (c_parser_error): Likewise.
900         (c_parser_set_error): Likewise.
901         * gimple-parser.c: New file.
902         * gimple-parser.h: Likewise.
904 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
906         PR c/35503
907         * c-parser.c (c_parser_postfix_expression_after_primary): Call
908         warn_for_restrict.
910 2016-09-11  Le-Chun Wu  <lcwu@google.com>
911             Mark Wielaard  <mjw@redhat.com>
913         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
914         to the given -Wshadow= variant.
916 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
918         * c-typeck.c: Include memmodel.h.
920 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
922         PR target/77957
923         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
924         instead of lhd_return_null_tree_v.
926 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
928         PR c++/69733
929         * c-decl.c (smallest_type_quals_location): New static function.
930         (grokdeclarator): Try to find the correct location for an ignored
931         qualifier.
933 2016-09-26  Marek Polacek  <polacek@redhat.com>
935         PR c/7652
936         * c-decl.c (pop_scope): Add gcc_fallthrough.
938 2016-09-26  Marek Polacek  <polacek@redhat.com>
940         PR c/7652
941         * c-parser.c (struct c_token): Add flags field.
942         (c_lex_one_token): Pass it to c_lex_with_flags.
943         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
944         into IFN_FALLTHROUGH.
945         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
946         attribute fallthrough after a case label or default label.
947         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
949 2016-09-24  Marek Polacek  <polacek@redhat.com>
951         PR c/77490
952         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
953         have boolean value.  Warn about ++/-- on booleans.
955 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
957         * c-parser.c (incomplete_record_decls): Remove unnecessary
958         = vNULL initialization of file scope vec.
960 2016-09-16  Marek Polacek  <polacek@redhat.com>
962         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
964 2016-09-14  Marek Polacek  <polacek@redhat.com>
966         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
967         (fix_array_notation_expr): Likewise.
968         * c-decl.c (finish_decl): Likewise.
969         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
970         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
971         (function_to_pointer_conversion): Use false instead of 0.
972         (convert_lvalue_to_rvalue): Likewise.
973         (parser_build_unary_op): Likewise.
974         (build_atomic_assign): Likewise.
975         (build_unary_op): Change nonconvert parameter type to bool, use
976         true/false instead of 1/0.
977         (build_binary_op): Use true instead of 1.
979 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
981         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
982         of add_fixit_insert to add_fixit_insert_before.
984 2016-09-13  Marek Polacek  <polacek@redhat.com>
986         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
987         it.
989 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
991         PR c++/77496
992         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
993         COMPOUND_EXPR to warn_for_omitted_condop.
995 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
997         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
998         c_get_substring_location for this new langhook.
1000 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1002         PR c/65467
1003         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
1004         flag_openmp.
1005         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
1006         instead of mark_exp_read on low_bound/length expression.
1007         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
1008         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1009         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1010         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
1011         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
1012         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
1013         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
1014         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
1015         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
1016         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
1017         instead of mark_expr_read.
1018         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
1019         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
1020         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
1021         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
1022         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
1023         array section bases outside of depend clause, for depend clause
1024         use convert_lvalue_to_rvalue on the base.
1025         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
1026         linear, aligned, map, to and from clauses.
1027         (c_omp_clause_copy_ctor): New function.
1029 2016-09-01  Marek Polacek  <polacek@redhat.com>
1031         PR c/7652
1032         * c-typeck.c (composite_type): Add FALLTHRU comment.
1034 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
1036         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
1037         to the insertion fixits for "struct", "union", and "enum".
1039 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
1041         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
1042         rather than add_fixit_misspelled_id.
1043         (undeclared_variable): Likewise.
1044         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
1045         now-redundant "here" params from add_fixit_insert method calls.
1046         (c_parser_parameter_declaration): Likewise.
1047         * c-typeck.c (build_component_ref): Remove now-redundant range
1048         param from add_fixit_replace method calls.
1050 2016-08-25  Marek Polacek  <polacek@redhat.com>
1052         * c-typeck.c (parser_build_binary_op): Pass LHS to
1053         warn_logical_not_parentheses.
1055 2016-08-25  Marek Polacek  <polacek@redhat.com>
1057         PR c/77323
1058         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
1059         or _FloatN or _FloatNx is not supported.
1060         (finish_declspecs): Set type to integer_type_node when _FloatN or
1061         _FloatNx is not supported.
1063 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1065         PR c/32187
1066         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
1067         (struct c_declspecs): Add field floatn_nx_idx.
1068         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
1069         and _FloatNx type specifiers.
1070         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
1071         (c_parser_declspecs, c_parser_attribute_any_word)
1072         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
1073         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
1074         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
1075         narrower than double.
1077 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1078             Martin Liska  <mliska@suse.cz>
1080         PR c/67410
1081         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
1082         % to determine val element to change.  Assert that
1083         wchar_bytes * charwidth fits into val array.
1085 2016-08-12  Marek Polacek  <polacek@redhat.com>
1087         PR c/7652
1088         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
1089         (c_parser_postfix_expression): Likewise.
1090         * c-typeck.c (build_unary_op): Adjust fall through comment.
1091         (c_mark_addressable): Likewise.
1093 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
1095         PR c/72816
1096         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
1097         array member through typedef, for orig_qual_indirect == 0 clear
1098         orig_qual_type.
1100 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1102         PR c/64955
1103         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
1104         this up to selftest::run_c_tests.
1105         (selftest::run_c_tests): New function.
1107 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
1109         * c-parser.c (struct oacc_routine_data): Add error_seen and
1110         fndecl_seen members.
1111         (c_finish_oacc_routine): Use these.
1112         (c_parser_declaration_or_fndef): Adjust.
1113         (c_parser_oacc_routine): Likewise.  Support more C language
1114         constructs, and improve diagnostics.  Move pragma context
1115         checking...
1116         (c_parser_pragma): ... here.
1118         * c-parser.c (struct oacc_routine_data): New.
1119         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
1120         Simplify code.
1121         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
1122         declare target" attribute.
1124 2016-08-01  Jan Beulich  <jbeulich@suse.com>
1126         * c-fold.c (c_fully_fold_internal): Also emit shift count
1127         warnings for vector types.
1128         * c-typeck.c (build_binary_op): Likewise.
1130 2016-07-29  Marek Polacek  <polacek@redhat.com>
1132         PR c/71742
1133         * c-decl.c (finish_struct): Rephrase an error message.
1135         PR c/71853
1136         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
1137         to error node for invalid code.
1139         PR c/71573
1140         * c-decl.c (implicitly_declare): Return decl early not only for
1141         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
1143 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
1145         PR c/71969
1146         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
1147         on GNU extern inline functions.
1149 2016-07-29  Marek Polacek  <polacek@redhat.com>
1151         PR c/71583
1152         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
1153         check expr.value.
1155 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
1157         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1159 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1161         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
1162         spellcheck-tree.h
1163         (best_macro_match): Likewise, converting from a typedef to a
1164         subclass.
1165         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
1166         (lookup_name_fuzzy): Update for change of best_macro_match to a
1167         subclass with a ctor that calls cpp_forall_identifiers.
1169 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1171         * c-decl.c (implicit_decl_warning): Update for conversion of
1172         return type of lookup_name_fuzzy to const char *.
1173         (undeclared_variable): Likewise.
1174         (lookup_name_fuzzy): Convert return type from tree to
1175         const char *.
1176         * c-parser.c (c_parser_declaration_or_fndef): Update for
1177         conversion of return type of lookup_name_fuzzy to const char *.
1178         (c_parser_parameter_declaration): Likewise.
1180 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1182         * c-parser.c (c_parser_oacc_declare): Don't scan for
1183         GOMP_MAP_POINTER.
1184         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
1185         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1186         zero-length subarrays.
1188 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
1190         PR c/71858
1191         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
1192         instead of FUZZY_LOOKUP_NAME.
1193         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
1194         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
1196 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1198         PR c/71858
1199         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
1201 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1203         * c-parser.c (c_parser_generic_selection): Make type of variable
1204         auto_vec.
1205         (c_parser_omp_declare_simd): Likewise.
1207 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1209         * c-decl.c (struct c_struct_parse_info): Change member types
1210         from vec to auto_vec.
1211         (start_struct): Adjust.
1212         (finish_struct): Likewise.
1214 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
1216         PR c/71719
1217         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
1219 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
1221         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
1222         Move pragma context checking into...
1223         (c_parser_omp_cancellation_point): ... here, and improve
1224         diagnostic messages.
1225         * c-typeck.c (c_finish_omp_cancel)
1226         (c_finish_omp_cancellation_point): Improve diagnostic messages.
1228 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1230         PR c/71685
1231         * c-typeck.c (c_build_qualified_type): Don't clear
1232         C_TYPE_INCOMPLETE_VARS for the main variant.
1234 2016-06-28  Martin Sebor  <msebor@redhat.com>
1236         PR c/71552
1237         * c-typeck.c (output_init_element): Diagnose incompatible types
1238         before non-constant initializers.
1240 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1242         * Make-lang.in: Don't cat ../stage_current if it does not exist.
1244 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1246         * Make-lang.in: Add support for autofdo.
1248 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1250         PR c/70339
1251         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
1252         (implicit_decl_warning): When issuing warnings for implicit
1253         declarations, attempt to provide a suggestion via
1254         lookup_name_fuzzy.
1255         (undeclared_variable): Likewise when issuing errors.
1256         (lookup_name_in_scope): Likewise.
1257         (struct edit_distance_traits<cpp_hashnode *>): New struct.
1258         (best_macro_match): New typedef.
1259         (find_closest_macro_cpp_cb): New function.
1260         (lookup_name_fuzzy): New function.
1261         * c-parser.c: Include gcc-rich-location.h.
1262         (c_token_starts_typename): Split out case CPP_KEYWORD into...
1263         (c_keyword_starts_typename): ...this new function.
1264         (c_parser_declaration_or_fndef): When issuing errors about
1265         missing "struct" etc, add a fixit.  For other kinds of errors,
1266         attempt to provide a suggestion via lookup_name_fuzzy.
1267         (c_parser_parms_declarator): When looking ahead to detect typos in
1268         type names, also reject CPP_KEYWORD.
1269         (c_parser_parameter_declaration): When issuing errors about
1270         unknown type names, attempt to provide a suggestion via
1271         lookup_name_fuzzy.
1272         * c-tree.h (c_keyword_starts_typename): New prototype.
1274 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
1276         PR c/71601
1277         * c-typeck.c (build_conditional_expr): Return error_mark_node if
1278         c_common_type returns error_mark_node.
1280 2016-06-19  Martin Sebor  <msebor@redhat.com>
1282         PR c/69507
1283         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
1284         __alignof__ (expression).
1286 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1288         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
1290 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1292         * c-typeck.c (build_component_ref): Simplify fixit code by
1293         using gcc_rich_location::add_fixit_misspelled_id.
1294         (set_init_label): Likewise.
1296 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1298         * c-parser.c (c_parser_initelt): Provide location of name for new
1299         location_t param of set_init_label.
1300         * c-tree.h (set_init_label): Add location_t param.
1301         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
1302         param and use it when issuing error messages about unrecognized
1303         field names.  Attempt to provide a fixit hint if appropriate,
1304         otherwise update the error message to provide the type name.
1306 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1308         PR c/71381
1309         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
1310         Loosen checking.
1312 2016-06-08  Martin Sebor  <msebor@redhat.com>
1313             Jakub Jelinek  <jakub@redhat.com>
1315         PR c++/70507
1316         PR c/68120
1317         * c-typeck.c (convert_arguments): Don't promote last argument
1318         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1320 2016-06-08  Marek Polacek  <polacek@redhat.com>
1322         PR c/71418
1323         * c-decl.c (grokdeclarator): Check TYPE_P.
1325         PR c/71426
1326         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
1327         code.
1329 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1331         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
1332         and structure element reference, capture the location of the
1333         element name token and pass it to build_component_ref.
1334         (c_parser_postfix_expression_after_primary): Likewise for
1335         structure element dereference.
1336         (c_parser_omp_variable_list): Likewise for
1337         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
1338         * c-tree.h (build_component_ref): Add location_t param.
1339         * c-typeck.c (build_component_ref): Add location_t param
1340         COMPONENT_LOC.  Use it, if available, when issuing hints about
1341         mispelled member names to provide a fixit replacement hint.
1343 2016-06-06  Marek Polacek  <polacek@redhat.com>
1345         PR c/71362
1346         * c-parser.c (c_parser_direct_declarator): Set location.
1348 2016-06-06  Marek Polacek  <polacek@redhat.com>
1350         * c-typeck.c (comptypes_internal): Handle comparisons of
1351         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
1352         TYPE_REF_CAN_ALIAS_ALL.
1354 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
1356         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
1357         arguments as addressable when async clause exists.
1359 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
1361         PR c++/71349
1362         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
1363         when combined with target construct.
1365 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
1367         * c-parser.c (c_parser_omp_clause_schedule): Warn if
1368         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
1370 2016-05-25  Marek Polacek  <polacek@redhat.com>
1372         PR c/71265
1373         * c-decl.c (c_make_fname_decl): Don't check seen_error.
1375         PR c/71266
1376         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
1378 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
1380         * c-parser.c (c_parser_oacc_declare): Add support for
1381         GOMP_MAP_FIRSTPRIVATE_POINTER.
1382         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
1383         argument with enum c_omp_region_type ort.
1384         (handle_omp_array_sections): Likewise.  Update call to
1385         handle_omp_array_sections_1.
1386         (c_finish_omp_clauses): Add specific errors and warning messages for
1387         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
1388         call to handle_omp_array_sections.
1390 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
1392         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
1394 2016-05-24  Richard Biener  <rguenther@suse.de>
1396         PR middle-end/70434
1397         PR c/69504
1398         * c-typeck.c (build_array_ref): Do not complain about indexing
1399         non-lvalue vectors.  Adjust for function name change.
1401 2016-05-20  Martin Sebor  <msebor@redhat.com>
1403         PR c/71115
1404         * c-typeck.c (error_init): Use
1405         expansion_point_location_if_in_system_header.
1406         (warning_init): Same.
1408 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
1410         PR c/71171
1411         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
1412         in error-handling.
1413         (c_parser_postfix_expression): Likewise.
1414         * c-tree.h (c_expr::set_error): New method.
1415         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
1416         that result's range is initialized.
1418 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1420         * c-typeck.c (parser_build_unary_op): Fix formatting.
1422 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1424         * c-decl.c (grokdeclarator): Remove errmsg and use of
1425         targetm.invalid_return_type.
1426         (grokparms): Remove errmsg and use of
1427         targetm.invalid_parameter_type.
1429 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1431         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
1432         function return type.
1434 2016-05-12  Marek Polacek  <polacek@redhat.com>
1436         PR c/70756
1437         * c-decl.c (build_compound_literal): Pass LOC down to
1438         c_incomplete_type_error.
1439         * c-tree.h (require_complete_type): Adjust declaration.
1440         (c_incomplete_type_error): Likewise.
1441         * c-typeck.c (require_complete_type): Add location parameter, pass it
1442         down to c_incomplete_type_error.
1443         (c_incomplete_type_error): Add location parameter, pass it down to
1444         error_at.
1445         (build_component_ref): Pass location down to c_incomplete_type_error.
1446         (default_conversion): Pass location down to require_complete_type.
1447         (build_array_ref): Likewise.
1448         (build_function_call_vec): Likewise.
1449         (convert_arguments): Likewise.
1450         (build_unary_op): Likewise.
1451         (build_c_cast): Likewise.
1452         (build_modify_expr): Likewise.
1453         (convert_for_assignment): Likewise.
1454         (c_finish_omp_clauses): Likewise.
1456 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
1458         PR c/43651
1459         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
1460         is enabled.
1461         * c-errors.c (pedwarn_c90): Return true if warned.
1462         * c-tree.h (pedwarn_c90): Change return type to bool.
1463         (enum c_declspec_word): Add new enumerator cdw_atomic.
1465 2016-05-11  Marek Polacek  <polacek@redhat.com>
1467         PR c++/71024
1468         * c-decl.c (diagnose_mismatched_decls): Factor out code to
1469         diagnose_mismatched_attributes and call it.
1471 2016-05-10  Marek Polacek  <polacek@redhat.com>
1473         PR c/70255
1474         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
1475         on a declaration following the definition.
1477 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
1479         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1480         parse it through to c_parser_c99_block_statement.
1481         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1482         caller.
1484 2016-05-04  Marek Polacek  <polacek@redhat.com>
1486         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1487         OPT_Wdangling_else.
1489 2016-05-04  Marek Polacek  <polacek@redhat.com>
1491         PR c/48778
1492         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1493         for macro expansions.
1495 2016-05-03  Marek Polacek  <polacek@redhat.com>
1497         PR c/70859
1498         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1499         check_builtin_function_arguments.
1501 2016-05-03  Richard Biener  <rguenther@suse.de>
1503         * Make-lang.in (cc1-checksum.c): For stage-final re-use
1504         the checksum from the previous stage.
1506 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
1508         * c-parser.c (c_parser_oacc_all_clauses): Update call to
1509         c_finish_omp_clauses.
1510         (c_parser_omp_all_clauses): Likewise.
1511         (c_parser_oacc_cache): Likewise.
1512         (c_parser_oacc_loop): Likewise.
1513         (omp_split_clauses): Likewise.
1514         (c_parser_omp_declare_target): Likewise.
1515         (c_parser_cilk_all_clauses): Likewise.
1516         (c_parser_cilk_for): Likewise.
1517         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1518         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1520 2016-05-02  Marek Polacek  <polacek@redhat.com>
1522         PR c/70851
1523         * c-decl.c (grokdeclarator): Diagnose when array's size has an
1524         incomplete type.
1526 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
1528         PR middle-end/70626
1529         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1530         OACC_LOOP_CLAUSE_MASK.
1531         (c_parser_oacc_kernels_parallel): Update call to
1532         c_oacc_split_loop_clauses.
1534 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
1536         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1537         argument to build_modify_expr in two cases.
1539 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1541         * c-parser.c (c_parser_postfix_expression_after_primary): Call
1542         warn_for_memset instead of warning directly here.
1544 2016-04-26  Marek Polacek  <polacek@redhat.com>
1546         PR c/67784
1547         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1548         out of ...
1549         (c_parser_for_statement): ... here.
1550         (c_parser_if_statement): Use it.
1551         (c_parser_switch_statement): Use it.
1552         (c_parser_while_statement): Use it.
1554         PR c/70791
1555         * c-decl.c (pushdecl): Pass LOCUS down to warning.
1557 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
1559         PR c++/69363
1560         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1561         instead of c_finish_cilk_clauses.
1562         * c-tree.h (c_finish_omp_clauses): Add new default argument.
1563         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
1564         floating-point variables in the linear clause for Cilk Plus.
1566 2016-04-18  Michael Matz  <matz@suse.de>
1568         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1569         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1571 2016-04-15  Marek Polacek  <polacek@redhat.com>
1573         PR c/70671
1574         * c-typeck.c (build_unary_op): Pass location down to error and
1575         warning call.
1577 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1579         PR c/70436
1580         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
1581         where needed.
1582         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
1583         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
1584         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
1585         Adjust c_parser_pragma callers.
1586         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
1587         caller.
1588         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
1589         c_parser_statement.
1590         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
1591         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
1592         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
1593         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
1594         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
1595         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
1596         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
1597         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
1598         down where needed.
1599         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
1600         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
1601         calls.
1603 2016-04-13  Marek Polacek  <polacek@redhat.com>
1605         PR c/70436
1606         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
1607         adjust callers.
1608         (c_parser_statement): Likewise.
1609         (c_parser_c99_block_statement): Likewise.
1610         (c_parser_while_statement): Likewise.
1611         (c_parser_for_statement): Likewise.
1612         (c_parser_if_body): Don't set IF_P here.
1613         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
1614         about dangling else here.
1615         * c-tree.h (c_finish_if_stmt): Adjust declaration.
1616         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
1617         warn about dangling else here.
1619 2016-04-04  Marek Polacek  <polacek@redhat.com>
1621         PR c/70307
1622         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
1624 2016-03-31  Marek Polacek  <polacek@redhat.com>
1626         PR c/70297
1627         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
1629 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
1631         PR c/70281
1632         * c-parser.c (c_parser_postfix_expression): Set the source range
1633         for uses of "__builtin_types_compatible_p".
1635 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
1637         PR c/70280
1638         * c-typeck.c (composite_type): Don't count void_list_node
1639         into len, if the list is terminated by void_list_node, start
1640         with void_list_node instead of NULL for newargs.  Stop
1641         at void_list_node.
1643 2016-03-16  Marek Polacek  <polacek@redhat.com>
1645         PR c/70093
1646         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
1647         nested functions returning VM types.
1649 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
1651         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1652         when calling c_finish_omp_clauses.
1654 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
1656         PR c/69824
1657         * c-decl.c (get_parm_info): Don't queue implicit function declarations
1658         for later.
1660 2016-03-04  Marek Polacek  <polacek@redhat.com>
1662         PR c/69798
1663         * c-parser.c (c_parser_postfix_expression): Call
1664         c_parser_cast_expression rather than c_parser_postfix_expression.
1666 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
1668         PR c/69796
1669         PR c/69974
1670         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1671         of incomplete decls to error_mark_node.
1673 2016-02-24  Marek Polacek  <polacek@redhat.com>
1675         PR c/69819
1676         * c-decl.c (finish_decl): Don't update the copy of the type of a
1677         different decl type.
1679 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1681         PR objc/69844
1682         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1683         in id_kind reclassification.
1685 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1687         PR c/69835
1688         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1690 2016-02-16  James Norris  <jnorris@codesourcery.com>
1692         PR c/64748
1693         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1695 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
1697         * c-decl.c (build_null_declspecs): Zero the entire struct.
1699         PR c/69522
1700         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
1701         callers changed.  If nested_p is true, use it to call
1702         finish_implicit_inits.
1703         * c-tree.h (finish_implicit_inits): Declare.
1704         * c-typeck.c (finish_implicit_inits): New function.  Move code
1705         from ...
1706         (push_init_level): ... here.
1707         (set_designator, process_init_element): Call finish_implicit_inits.
1709 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
1711         PR c/69768
1712         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1713         arguments for -Waddress warning.
1715 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
1717         PR c/69669
1718         * c-decl.c (finish_enum): When honoring mode attribute,
1719         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1721 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
1723         PR debug/69518
1724         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1725         all type variants, not just TYPE_MAIN_VARIANT.
1727 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
1729         PR debug/66869
1730         * c-decl.c (c_write_global_declarations_1): Warn with
1731         warn_unused_function if static prototype without definition
1732         is not C_DECL_USED.
1734 2016-01-27  Marek Polacek  <polacek@redhat.com>
1736         PR c/68062
1737         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1738         to unsigned, if needed.  Add -Wsign-compare warning.
1740 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1742         PR tree-optimization/69483
1743         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1745 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1747         PR c/24293
1748         * c-tree.h (incomplete_record_decls): Declare.
1749         * c-parser.c (incomplete_record_decls): Define.
1750         (c_parser_translation_unit): Iterate through incomplete_record_decls and
1751         report error if any decl has zero size.
1752         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1753         or enum type to incomplete_record_decls.
1755 2016-01-14  Tom de Vries  <tom@codesourcery.com>
1757         PR tree-optimization/68773
1758         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1759         set force_output.
1761 2016-01-14  Marek Polacek  <polacek@redhat.com>
1763         PR c/69262
1764         * c-decl.c (grokdeclarator): Provide more information for invalid
1765         array declarations.
1767 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
1769         * c-parser.c (c_parser_unary_expression): For dereferences, build
1770         a combined location before calling build_indirect_ref, so that
1771         error reports cover the full range, manually updating the c_expr
1772         src_range.
1774 2016-01-06  Marek Polacek  <polacek@redhat.com>
1776         PR sanitizer/69099
1777         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
1778         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
1779         NULL.
1781 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
1783         Update copyright years.
1785 2016-01-04  Marek Polacek  <polacek@redhat.com>
1787         PR c/68908
1788         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
1789         optimization to use __atomic_fetch_* built-in if possible.
1791 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
1793         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1794         into...
1795         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
1796         all users.
1798 2015-12-22  Marek Polacek  <polacek@redhat.com>
1800         PR c/69002
1801         * c-typeck.c (build_component_ref): Warn when acessing elements of
1802         atomic structures or unions.
1804 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
1806         * c-typeck.c: Include "gcc-rich-location.h".
1807         (build_binary_op): In the two places that call binary_op_error,
1808         create a gcc_rich_location and populate it with the location of
1809         the binary op and its two operands.
1811 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1813         * c-parser.c (c_parser_statement_after_labels): When calling
1814         c_finish_return, Use the return expression's location if it has
1815         one, falling back to the location of the first token within it.
1816         * c-typeck.c (c_finish_return): When issuing warnings about
1817         the incorrect presence/absence of a return value, issue a note
1818         showing the declaration of the function.
1820 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1822         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1823         to 4.
1824         (c_parser_peek_nth_token): New function.
1825         (c_parser_peek_conflict_marker): New function.
1826         (c_parser_error): Detect conflict markers and report them as such.
1828 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1830         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1831         to preserve range information for the primary expression
1832         in the call to c_parser_postfix_expression_after_primary.
1834 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
1836         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1837         expression location, falling back on the first token location,
1838         rather than always using the latter.
1840 2015-12-16  Marek Polacek  <polacek@redhat.com>
1842         PR c/64637
1843         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1844         available.
1846 2015-12-15  Marek Polacek  <polacek@redhat.com>
1848         PR c/68907
1849         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1850         artificial decl.
1852 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1854         * c-parser.c (c_parser_alignof_expression): Capture location of
1855         closing parenthesis (if any), or of end of unary expression, and
1856         use it to build a src_range for the expression.
1858 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
1860         PR c/68757
1861         * c-parser.c (c_parser_get_builtin_args): Add
1862         "out_close_paren_loc" param, and write back to it.
1863         (c_parser_postfix_expression): Capture the closing
1864         parenthesis location for RID_CHOOSE_EXPR,
1865         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1866         RID_BUILTIN_SHUFFLE and use it to set the source range
1867         for such expressions; within RID_BUILTIN_COMPLEX set
1868         the underlying location.
1870 2015-12-07  Marek Polacek  <polacek@redhat.com>
1872         PR c/68668
1873         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1874         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1876 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1878         * c-tree.h (c_build_va_arg): Adjust prototype.
1879         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1880         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1881         parameter, adjust throughout and issue an error if EXPR is a component
1882         with reverse storage order.
1884 2015-12-02  Jason Merrill  <jason@redhat.com>
1886         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1887         (c_fully_fold_internal, decl_constant_value_for_optimization):
1888         Move from c-common.c.
1889         * c-tree.h: Declare decl_constant_value_for_optimization.
1890         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1892 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
1894         PR c/68162
1895         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1896         following link from declarator to next declarator.  Track original
1897         qualified type and pass it to c_build_qualified_type.
1898         * c-typeck.c (c_build_qualified_type): Add arguments
1899         orig_qual_type and orig_qual_indirect.
1901 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
1903         * c-parser.c (c_parser_omp_clause_name)
1904         (c_parser_oacc_all_clauses): Alphabetical sorting.
1906 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1908         PR c/68533
1909         * c-decl.c (get_parm_info): Use b->locus instead of input_location
1910         for diagnostics.
1912 2015-12-01  Julian Brown  <julian@codesourcery.com>
1913             Cesar Philippidis  <cesar@codesourcery.com>
1914             James Norris  <James_Norris@mentor.com>
1916         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1917         (c_parser_oacc_clause_use_device): New function.
1918         (c_parser_oacc_all_clauses): Add use_device support.
1919         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1920         (c_parser_oacc_host_data): New function.
1921         (c_parser_omp_construct): Add host_data support.
1922         * c-tree.h (c_finish_oacc_host_data): Add prototype.
1923         * c-typeck.c (c_finish_oacc_host_data): New function.
1924         (c_finish_omp_clauses): Add use_device support.
1926 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1928         PR c/67106
1929         * c-decl.c: Set TYPE_PACKED in variants.
1931 2015-11-27  Martin Liska  <mliska@suse.cz>
1933         PR c++/68312
1934         * c-array-notation.c (fix_builtin_array_notation_fn):
1935         Use release_vec_vec instead of vec::release.
1936         (build_array_notation_expr): Likewise.
1937         (fix_conditional_array_notations_1): Likewise.
1938         (fix_array_notation_expr): Likewise.
1939         (fix_array_notation_call_expr): Likewise.
1941 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1943         PR c/63326
1944         * c-parser.c (c_parser_compound_statement_nostart): If
1945         last_label is true, use pragma_stmt instead of pragma_compound
1946         as second c_parser_pragma argument.
1947         (c_parser_omp_ordered, c_parser_omp_target_update,
1948         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
1949         false as second argument to c_parser_skip_to_pragma_eol after
1950         diagnosing standalone directives used in pragma_stmt context.
1952 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
1954         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
1955         with "if (ENABLE_OFFLOADING)".
1957 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
1959         PR objc/68438
1960         * c-parser.c (c_parser_postfix_expression): Set up source ranges
1961         for various Objective-C constructs: Class.name syntax,
1962         @selector(), @protocol(), @encode(), and [] message syntax.
1964 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1966         PR 62314
1967         * c-typeck.c (should_suggest_deref_p): New function.
1968         (build_component_ref): Special-case POINTER_TYPE when
1969         generating a "not a structure of union"  error message, and
1970         suggest a "->" rather than a ".", providing a fix-it hint.
1972 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1974         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
1975         candidate into a new function, find_closest_identifier.
1977 2015-11-19  Marek Polacek  <polacek@redhat.com>
1979         PR c/68412
1980         * c-typeck.c (parser_build_binary_op): Properly handle
1981         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
1983 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
1985         * c-parser.c (set_c_expr_source_range): Bulletproof both
1986         overloaded implementations against NULL expr->value.
1987         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
1988         values.
1989         (c_parser_unary_expression): Likewise when handling addresses of
1990         labels.
1991         (c_parser_postfix_expression): Likewise for statement expressions,
1992         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
1993         __builtin_va_arg, and for __builtin_offset_of.
1994         (c_parser_postfix_expression_after_paren_type): Initialize expr's
1995         src_range using the range of the braced initializer.
1996         (c_parser_transaction_expression): Set src_range for "ret" to a
1997         sane pair of values.
1999 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2001         * c-parser.c (c_finish_omp_declare_simd): Look for
2002         "simd" attribute as well. Update error message.
2004 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2006         * c-parser.c (c_parser_omp_declare_target): Adjust.
2008 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
2010         * c-typeck.c (c_finish_omp_clauses): Don't mark
2011         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
2013 2015-11-14  Marek Polacek  <polacek@redhat.com>
2015         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
2016         * c-typeck.c: Likewise.
2018 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2020         * c-decl.c (warn_defaults_to): Pass line_table to
2021         rich_location ctor.
2022         * c-errors.c (pedwarn_c99): Likewise.
2023         (pedwarn_c90): Likewise.
2024         * c-parser.c (set_c_expr_source_range): New functions.
2025         (c_token::get_range): New method.
2026         (c_token::get_finish): New method.
2027         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
2028         based on the range from the start of the LHS to the end of the
2029         RHS.
2030         (c_parser_conditional_expression): Likewise, based on the range
2031         from the start of the cond.value to the end of exp2.value.
2032         (c_parser_binary_expression): Call set_c_expr_source_range on
2033         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
2034         (c_parser_cast_expression): Call set_c_expr_source_range on ret
2035         based on the cast_loc through to the end of the expr.
2036         (c_parser_unary_expression): Likewise, based on the
2037         op_loc through to the end of op.
2038         (c_parser_sizeof_expression) Likewise, based on the start of the
2039         sizeof token through to either the closing paren or the end of
2040         expr.
2041         (c_parser_postfix_expression): Likewise, using the token range,
2042         or from the open paren through to the close paren for
2043         parenthesized expressions.
2044         (c_parser_postfix_expression_after_primary): Likewise, for
2045         various kinds of expression.
2046         * c-tree.h (struct c_expr): Add field "src_range".
2047         (c_expr::get_start): New method.
2048         (c_expr::get_finish): New method.
2049         (set_c_expr_source_range): New decls.
2050         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
2051         on ret for prefix unary ops.
2052         (parser_build_binary_op): Likewise, running from the start of
2053         arg1.value through to the end of arg2.value.
2055 2015-11-13  Marek Polacek  <polacek@redhat.com>
2057         PR c/68320
2058         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
2060 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2062         * c-typeck.c: Include spellcheck.h.
2063         (lookup_field_fuzzy_find_candidates): New function.
2064         (lookup_field_fuzzy): New function.
2065         (build_component_ref): If the field was not found, try using
2066         lookup_field_fuzzy and potentially offer a suggestion.
2068 2015-11-12  James Norris  <jnorris@codesourcery.com>
2069             Joseph Myers  <joseph@codesourcery.com>
2071         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
2072         (c_parser_omp_clause_name): Handle 'device_resident' clause.
2073         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2074         and PRAGMA_OMP_CLAUSE_LINK.
2075         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2076         and PRAGMA_OACC_CLAUSE_LINK.
2077         (OACC_DECLARE_CLAUSE_MASK): New definition.
2078         (c_parser_oacc_declare): New function.
2080 2015-11-12  Marek Polacek  <polacek@redhat.com>
2082         PR c/67784
2083         * c-parser.c (c_parser_for_statement): Reclassify the token in
2084         a correct scope.
2086 2015-11-11  Marek Polacek  <polacek@redhat.com>
2088         PR c/68107
2089         PR c++/68266
2090         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
2091         checking the size of an array.
2093 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2095         * c-array-notation.c: Remove unused header files.
2096         * c-aux-info.c: Likewise.
2097         * c-convert.c: Likewise.
2098         * c-decl.c: Likewise.
2099         * c-errors.c: Likewise.
2100         * c-lang.c: Likewise.
2101         * c-objc-common.c: Likewise.
2102         * c-parser.c: Likewise.
2103         * c-typeck.c: Likewise.
2104         * gccspec.c: Likewise.
2106 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2107             Cesar Philippidis  <cesar@codesourcery.com>
2108             James Norris  <jnorris@codesourcery.com>
2109             Julian Brown  <julian@codesourcery.com>
2110             Nathan Sidwell  <nathan@codesourcery.com>
2112         c/
2113         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
2114         routine arg.
2115         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
2116         (c_parser_pragma): Parse 'acc routine'.
2117         (OACC_ROUTINE_CLAUSE_MARK): Define.
2118         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
2120 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2122         PR debug/67192
2123         * c-typeck.c (c_finish_loop): For unconditional loops, set the
2124         location of the backward-goto to the start of the loop body.
2126 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2128         PR debug/67192
2129         * c-parser.c (c_parser_while_statement): Finish the loop before
2130         parsing ahead for misleading indentation.
2131         (c_parser_for_statement): Likewise.
2133 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2135         * c-decl.c (finish_struct): If the structure has reverse storage
2136         order, rewrite the type of array fields with scalar component.  Call
2137         maybe_apply_pragma_scalar_storage_order on entry.
2138         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
2139         errors on bit-fields and reverse SSO here and not...
2140         (c_mark_addressable): ...here.
2141         (output_init_element): Adjust call to initializer_constant_valid_p.
2142         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
2144 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2146         * c-decl.c (warn_defaults_to): Update for change in signature
2147         of diagnostic_set_info.
2148         * c-errors.c (pedwarn_c99): Likewise.
2149         (pedwarn_c90): Likewise.
2150         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
2151         for textinfo::set_location.
2153 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2154             Thomas Schwinge  <thomas@codesourcery.com>
2155             James Norris  <jnorris@codesourcery.com>
2157         * c-parser.c (c_parser_omp_clause_name): Add support for
2158         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
2159         (c_parser_omp_clause_default): Add is_oacc argument. Handle
2160         default(none) in OpenACC.
2161         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
2162         arguments.
2163         (c_parser_oacc_clause_tile): New function.
2164         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
2165         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
2166         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
2167         TILE}.
2168         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
2169         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
2170         FIRSTPRIVATE}.
2171         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
2172         (c_parser_oacc_update): Update the error message for missing clauses.
2173         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
2174         and OMP_CLAUSE_INDEPENDENT.
2176 2015-11-05  Marek Polacek  <polacek@redhat.com>
2178         PR c/68090
2179         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
2180         deal with pre-evaluation on invalid types.
2182 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2183             Ilya Verbin  <ilya.verbin@intel.com>
2185         * c-parser.c: Include context.h and gimple-expr.h.
2186         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
2187         monotonic together with nonmonotonic.
2188         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
2189         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
2190         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
2191         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
2192         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
2193         expressions on combined target teams before the target.
2194         (c_parser_omp_declare_target): If decl has "omp declare target" or
2195         "omp declare target link" attribute, and cgraph or varpool node already
2196         exists, then set corresponding flags.  Call c_finish_omp_clauses
2197         in the parenthesized extended-list syntax case.
2198         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
2199         declare target.
2200         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
2201         on OMP_CLAUSE_REDUCTION array sections.
2202         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
2203         into the constant offset, or for variable low-bound using
2204         POINTER_PLUS_EXPR.  For structure element based array sections use
2205         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
2206         (c_finish_omp_clauses): Drop generic_field_head, structure
2207         elements are now always mapped even as array section bases,
2208         diagnose same var in data sharing and mapping clauses.  Diagnose if
2209         linear step on declare simd is neither a constant nor a uniform
2210         parameter.  Look through POINTER_PLUS_EXPR for array section
2211         reductions.  Diagnose the same var or function appearing multiple
2212         times on the same directive.  Fix up wording for the to clause if t
2213         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
2214         modifier on kinds other than dynamic or guided or nonmonotonic
2215         modifier together with ordered clause.
2217 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2218             Chung-Lin Tang  <cltang@codesourcery.com>
2220         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
2222 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2224         * c-array-notation.c: Reorder #include's and remove duplicates.
2225         * c-aux-info.c: Likewise.
2226         * c-convert.c: Likewise.
2227         * c-decl.c: Likewise.
2228         * c-errors.c: Likewise.
2229         * c-lang.c: Likewise.
2230         * c-objc-common.c: Likewise.
2231         * c-parser.c: Likewise.
2232         * c-typeck.c: Likewise.
2234 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
2236         PR debug/66068
2237         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
2238         after calling build_qualified_type.
2240 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
2241             Thomas Schwinge  <thomas@codesourcery.com>
2242             James Norris  <jnorris@codesourcery.com>
2243             Joseph Myers  <joseph@codesourcery.com>
2244             Julian Brown  <julian@codesourcery.com>
2245             Bernd Schmidt  <bschmidt@redhat.com>
2247         * c-parser.c (c_parser_oacc_shape_clause): New.
2248         (c_parser_oacc_simple_clause): New.
2249         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
2250         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
2252 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2253             James Norris  <jnorris@codesourcery.com>
2254             Cesar Philippidis  <cesar@codesourcery.com>
2256         PR c/64765
2257         PR c/64880
2258         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
2259         parameters, and handle these.  Adjust all users.
2260         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
2261         into...
2262         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
2263         all users.
2264         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
2265         declare functions.
2266         (c_finish_omp_construct): Declare function.
2267         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
2268         Merge functions into...
2269         (c_finish_omp_construct): ... this new function.
2271 2015-10-22  Richard Biener  <rguenther@suse.de>
2273         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
2274         before folding a MINUS_EXPR.
2276 2015-10-21  Marek Polacek  <polacek@redhat.com>
2278         PR c/68024
2279         * c-decl.c (start_function): Warn about vararg functions without
2280         a prototype.
2282 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2284         * c-typeck.c (build_conditional_expr): Use boolean vector
2285         type for vector comparison.
2286         (build_vec_cmp): New.
2287         (build_binary_op): Use build_vec_cmp for comparison.
2289 2015-10-20  Marek Polacek  <polacek@redhat.com>
2291         * c-parser.c (is_cilkplus_vector_p): Don't define here.
2293 2015-10-20  Marek Polacek  <polacek@redhat.com>
2295         PR c/67964
2296         * c-parser.c (c_parser_attributes): Break out of the loop if the
2297         token after an attribute isn't a comma.
2299 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
2300             Aldy Hernandez  <aldyh@redhat.com>
2302         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
2303         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
2304         (c_parser_omp_variable_list): Handle structure elements for
2305         map, to and from clauses.  Handle array sections in reduction
2306         clause.  Formatting fixes.
2307         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
2308         if clause modifiers.
2309         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
2310         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
2311         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
2312         c_parser_omp_clause_is_device_ptr): New functions.
2313         (c_parser_omp_clause_ordered): Parse optional parameter.
2314         (c_parser_omp_clause_reduction): Handle array reductions.
2315         (c_parser_omp_clause_schedule): Parse optional simd modifier.
2316         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
2317         functions.
2318         (c_parser_omp_clause_linear): Parse linear clause modifiers.
2319         (c_parser_omp_clause_depend_sink): New function.
2320         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
2321         (c_parser_omp_clause_map): Parse release/delete map kinds and
2322         optional always modifier.
2323         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
2324         and c_finish_omp_clauses callers.
2325         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
2326         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
2327         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
2328         (OMP_CRITICAL_CLAUSE_MASK): Define.
2329         (c_parser_omp_critical): Parse critical clauses.
2330         (c_parser_omp_for_loop): Handle doacross loops, adjust
2331         c_finish_omp_for and c_finish_omp_clauses callers.
2332         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
2333         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
2334         (OMP_FOR_CLAUSE_MASK): Add linear clause.
2335         (c_parser_omp_for): Disallow ordered clause when combined with
2336         distribute.  Disallow linear clause when combined with distribute
2337         and not combined with simd.
2338         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
2339         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
2340         parse clauses and if depend clause is found, don't parse a body.
2341         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
2342         Allow target parallel without for after it.
2343         (OMP_TASK_CLAUSE_MASK): Add priority clause.
2344         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
2345         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
2346         invalid kinds.
2347         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
2348         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
2349         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
2350         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
2351         functions.
2352         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
2353         defaultmap and is_device_ptr clauses.
2354         (c_parser_omp_target): Parse target parallel and target simd.  Set
2355         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
2356         and target exit data.  Diagnose invalid map kinds.
2357         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
2358         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
2359         construct.
2360         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
2361         &omp_priv.
2362         (OMP_TASKLOOP_CLAUSE_MASK): Define.
2363         (c_parser_omp_taskloop): New function.
2364         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
2365         handle PRAGMA_OMP_TASKLOOP.
2366         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
2367         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
2368         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
2369         Add IS_OMP argument, handle structure element bases, diagnose
2370         bitfields, pass IS_OMP recursively, diagnose known zero length
2371         array sections in depend clauses, handle array sections in reduction
2372         clause, diagnose negative length even for pointers.
2373         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
2374         types, pass IS_OMP down to handle_omp_array_sections_1, handle
2375         array sections in reduction clause, set
2376         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
2377         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
2378         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
2379         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
2381 2015-10-06  Marek Polacek  <polacek@redhat.com>
2383         * c-parser.c (c_parser_statement_after_labels): Use
2384         protected_set_expr_location.
2385         (c_parser_omp_clause_num_gangs): Likewise.
2386         (c_parser_omp_clause_num_threads): Likewise.
2387         (c_parser_omp_clause_num_workers): Likewise.
2388         (c_parser_omp_clause_vector_length): Likewise.
2389         (c_parser_omp_clause_num_teams): Likewise.
2390         (c_parser_omp_clause_thread_limit): Likewise.
2391         * c-typeck.c (build_c_cast): Likewise.
2392         (c_cast_expr): Likewise.
2394 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2396         * c-typeck.c (c_tree_equal): Use real_equal instead of
2397         REAL_VALUES_EQUAL.
2399 2015-10-04  Jason Merrill  <jason@redhat.com>
2401         * c-parser.c (c_lex_one_token): Handle @synchronized.
2402         * c-decl.c (match_builtin_function_types): A declaration of a built-in
2403         can change whether the function is transaction_safe.
2405 2015-10-02  Marek Polacek  <polacek@redhat.com>
2407         PR c/67730
2408         * c-typeck.c (convert_for_assignment): Use the expansion point
2409         location throughout.
2411 2015-10-02  Marek Polacek  <polacek@redhat.com>
2413         PR c/64249
2414         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
2415         and pass it down to c_parser_if_statement.
2416         (c_parser_else_body): Add CHAIN parameter and pass it down to
2417         c_parser_statement_after_labels.
2418         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
2419         duplicated if-else-if conditions.
2421 2015-10-01  Marek Polacek  <polacek@redhat.com>
2423         * c-typeck.c (convert_for_assignment): Improve commentary.
2425 2015-09-30  Marek Polacek  <polacek@redhat.com>
2427         PR c/67730
2428         * c-typeck.c (c_finish_return): Use the expansion point location for
2429         certain "return with value" warnings.
2431 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2433         * c-parser.c (pragma_lex): Add loc argument.
2435 2015-09-15  Marek Polacek  <polacek@redhat.com>
2437         PR c/67580
2438         * c-decl.c (tag_exists_p): New function.
2439         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
2440         struct/union/enum keywords are missing.
2441         * c-tree.h (tag_exists_p): Declare.
2443 2015-09-15  Marek Polacek  <polacek@redhat.com>
2445         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
2446         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
2447         Return NULL_TREE instead of 0.
2448         (lookup_name): Return NULL_TREE instead of 0.
2449         (lookup_name_in_scope): Likewise.
2450         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
2451         (parser_xref_tag): Use false instead of 0.
2452         (start_struct): Use true instead of 1.
2453         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
2455 2015-09-14  Marek Polacek  <polacek@redhat.com>
2457         * c-typeck.c (set_nonincremental_init_from_string): Use
2458         HOST_WIDE_INT_M1U when shifting a negative value.
2460 2015-09-09  Mark Wielaard  <mjw@redhat.com>
2462         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
2463         parm against NULL.
2465 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
2467         PR c/67502
2468         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
2469         into OMP_FOR_PRE_BODY rather than before the loop.
2471 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
2473         PR c/67501
2474         * c-parser.c (c_parser_oacc_all_clauses,
2475         c_parser_omp_all_clauses): Remove invalid clause from
2476         list of clauses even if parser->error is set.
2478         PR c/67500
2479         * c-parser.c (c_parser_omp_clause_aligned,
2480         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2481         test for errors.
2482         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2483         error_mark_node.
2485         PR c/67495
2486         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2487         instead of c_parser_unary_expression.  If the result is !lvalue_p,
2488         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2490 2015-09-04  Marek Polacek  <polacek@redhat.com>
2492         PR sanitizer/67279
2493         * c-typeck.c (build_binary_op): Don't instrument static initializers.
2495 2015-09-03  Martin Sebor  <msebor@redhat.com>
2497         PR c/66516
2498         * c-typeck.c (convert_arguments, parser_build_unary_op,
2499         build_conditional_expr, c_cast_expr, convert_for_assignment,
2500         build_binary_op, _objc_common_truthvalue_conversion): Call
2501         reject_gcc_builtin.
2502         (c_decl_implicit): Define.
2504 2015-09-02  Marek Polacek  <polacek@redhat.com>
2506         PR c/67432
2507         * c-parser.c (c_parser_enum_specifier): Give a better error for
2508         an empty enum.
2510 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
2512         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2514 2015-08-12  Marek Polacek  <polacek@redhat.com>
2516         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2517         LOC to it.
2519 2015-08-03  Marek Polacek  <polacek@redhat.com>
2521         PR c/67088
2522         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2523         Use it.
2524         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2526 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
2528         * c-parser.c (c_parser_if_body): Take token_indent_info
2529         argument. Call warn_for_misleading_indentation even when the
2530         body is a semicolon.  Extract token_indent_infos corresponding
2531         to the guard, body and next tokens.  Adjust call to
2532         warn_for_misleading_indentation accordingly.
2533         (c_parser_else_body): Likewise.
2534         (c_parser_if_statement): Likewise.
2535         (c_parser_while_statement): Likewise.
2536         (c_parser_for_statement): Likewise.
2538 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
2539             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2541         * c-decl.c (get_parm_info): Remove static var. Update warning
2542         message.
2544 2015-07-27  Marek Polacek  <polacek@redhat.com>
2546         PR c++/66555
2547         PR c/54979
2548         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2550 2015-07-20  Marek Polacek  <polacek@redhat.com>
2552         PR c++/55095
2553         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2554         (build_binary_op): Warn about left shift overflows.
2556 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2558         * c-array-notation.c: Adjust includes for flags.h changes.
2559         * c-objc-common.c: Likewise.
2561 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2563         * c-array-notation.c: Adjust includes.
2564         * c-aux-info.c: Likewise.
2565         * c-convert.c: Likewise.
2566         * c-decl.c: Likewise.
2567         * c-errors.c: Likewise.
2568         * c-lang.c: Likewise.
2569         * c-objc-common.c: Likewise.
2570         * c-parser.c: Likewise.
2571         * c-typeck.c: Likewise.
2573 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2575         PR fortran/66605
2576         * c-decl.c (finish_function): Call do_warn_unused_parameter.
2578 2015-06-29  Marek Polacek  <polacek@redhat.com>
2580         PR c/66322
2581         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
2582         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
2583         about -Wswitch-bool here.
2584         (do_case): Update c_add_case_label call.
2585         (c_finish_case): Update c_do_switch_warnings call.
2587 2015-06-27  Marek Polacek  <polacek@redhat.com>
2589         * c-typeck.c: Use VECTOR_TYPE_P throughout.
2591 2015-06-26  Marek Polacek  <polacek@redhat.com>
2593         * c-array-notation.c (fix_builtin_array_notation_fn): Use
2594         INDIRECT_REF_P.
2595         * c-typeck.c (array_to_pointer_conversion): Likewise.
2596         (build_unary_op): Likewise.
2597         (c_finish_return): Likewise.
2599 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2601         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
2602         * c-parser.c: Likewise.
2604 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2606         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
2607         instead of pointer_hash.
2608         (detect_field_duplicates): Likewise.
2610 2015-06-25  Marek Polacek  <polacek@redhat.com>
2612         * c-array-notation.c: Use VAR_P throughout.
2613         * c-decl.c: Likewise.
2614         * c-objc-common.c: Likewise.
2615         * c-parser.c: Likewise.
2616         * c-typeck.c: Likewise.
2618 2015-06-25  Marek Polacek  <polacek@redhat.com>
2620         * c-decl.c: Use is_global_var throughout.
2621         * c-parser.c: Likewise.
2622         * c-typeck.c: Likewise.
2624 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
2626         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
2627         * c-aux-info.c: Likewise.
2628         * c-convert.c: Likewise.
2629         * c-decl.c: Likewise.
2630         * c-errors.c: Likewise.
2631         * c-lang.c: Likewise.
2632         * c-objc-common.c: Likewise.
2633         * c-parser.c: Likewise.
2634         * c-typeck.c: Likewise.
2636 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
2638         PR middle-end/66325
2639         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
2640         variants.
2642 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
2644         * c-decl.c (pop_scope): Register the main translation unit
2645         through the new debug hook.
2647 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2649         * c-array-notation.c : Adjust include files.
2650         * c-aux-info.c : Likewise.
2651         * c-convert.c : Likewise.
2652         * c-decl.c : Likewise.
2653         * c-errors.c : Likewise.
2654         * c-lang.c : Likewise.
2655         * c-lang.h : Likewise.
2656         * c-objc-common.c : Likewise.
2657         * c-parser.c : Likewise.
2658         * c-typeck.c : Likewise.
2660 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2662         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2663         immediately clobber it.
2664         (c_write_global_declarations_1): Remove call to
2665         check_global_declaration_1.
2666         (c_write_global_declarations_2): Remove.
2667         (c_write_final_cleanups): Rename from c_write_global_declarations.
2668         Remove call to finalize_compilation_unit.
2669         Remove calls to debugging hooks.
2670         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2671         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2672         * c-tree.h: Remove c_write_global_declarations.
2674 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2676         * c-array-notation.c: Adjust includes for restructured coretypes.h.
2677         * c-aux-info.c: Likewise.
2678         * c-convert.c: Likewise.
2679         * c-decl.c: Likewise.
2680         * c-errors.c: Likewise.
2681         * c-lang.c: Likewise.
2682         * c-objc-common.c: Likewise.
2683         * c-parser.c: Likewise.
2684         * c-typeck.c: Likewise.
2686 2015-06-04  Marek Polacek  <polacek@redhat.com>
2688         PR c/66341
2689         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2690         it is a lvalue.
2692 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2694         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2695         Warn for empty struct.
2696         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2698 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
2700         * c-decl.c (start_function): Call plugin before parsing.
2701         (finish_function): Call plugin after parsing.
2703 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2705         PR c/49551
2706         * c-decl.c (merge_decls): Merge DECL_COMMON.
2708 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
2710         * Make-lang.in (check_gcc_pallelize): Define.
2712 2015-05-22  Marek Polacek  <polacek@redhat.com>
2714         PR c/47043
2715         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2716         attributes.
2718 2015-05-21  Marek Polacek  <polacek@redhat.com>
2720         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2721         DECL_BUILT_IN.
2723 2015-05-20  Marek Polacek  <polacek@redhat.com>
2725         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2726         * c-typeck.c: Likewise.
2728 2015-05-19  Marek Polacek  <polacek@redhat.com>
2730         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2732 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
2734         PR middle-end/66199
2735         * c-parser.c (c_parser_omp_for_loop): Don't add
2736         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2737         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2738         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2739         constructs.
2741 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
2743         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
2744         swaps.
2746 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2748         PR fortran/44054
2749         * c-objc-common.c (c_tree_printer): Replace locus pointer with
2750         accessor function.
2752 2015-05-14  Marek Polacek  <polacek@redhat.com>
2754         PR c/66066
2755         PR c/66127
2756         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2757         rather than with 0.
2759 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
2761         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2762         to add a call to warn_for_misleading_indentation.
2763         (c_parser_else_body): Likewise, adding param "else_loc".
2764         (c_parser_if_statement): Check for misleading indentation.
2765         (c_parser_while_statement): Likewise.
2766         (c_parser_for_statement): Likewise.
2768 2015-05-08  Marek Polacek  <polacek@redhat.com>
2770         PR c/64918
2771         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2772         (output_init_element): Likewise.
2774 2015-05-07  Marek Polacek  <polacek@redhat.com>
2776         PR c/65179
2777         * c-typeck.c (build_binary_op): Warn when left shifting a negative
2778         value.
2780 2015-04-30  Marek Polacek  <polacek@redhat.com>
2782         * c-typeck.c (set_init_label): Call error_at instead of error and
2783         pass LOC to it.
2785         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
2786         the type of a decl.
2788         * c-typeck.c (c_build_va_arg): Clarify the error message.
2790 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2792         * c-parser.c (c_parser_oacc_enter_exit_data): Use
2793         OMP_STANDALONE_CLAUSES.
2795 2015-04-28  Marek Polacek  <polacek@redhat.com>
2797         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2799 2015-04-28  Marek Polacek  <polacek@redhat.com>
2801         PR c/65901
2802         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2804 2015-04-25  Marek Polacek  <polacek@redhat.com>
2806         PR c/52085
2807         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
2808         attribute.
2810 2015-04-23  Marek Polacek  <polacek@redhat.com>
2812         PR c/65345
2813         * c-decl.c (set_labels_context_r): New function.
2814         (store_parm_decls): Call it via walk_tree_without_duplicates.
2815         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2816         instead of create_tmp_var.  Build TARGET_EXPR instead of
2817         COMPOUND_EXPR.
2818         (build_atomic_assign): Use create_tmp_var_raw instead of
2819         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
2821 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2823         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2824         (c_parser_omp_target_update): Add missed %> to error_at ().
2826 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2828         PR target/55143
2829         * c-decl.c (c_default_pointer_mode): Remove definition.
2830         * c-tree.h (c_default_pointer_mode): Remove declaration.
2832 2015-03-27  Tobias Burnus  <burnus@net-b.de>
2834         PR c/65586
2835         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2836         error out.
2837         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2838         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2839         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2841 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2843         * c-decl.c (c_decl_attributes): Also add "omp declare target"
2844         attribute for DECL_EXTERNAL VAR_DECLs.
2846 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
2848         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2849         argument.
2851 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
2853         PR c/65120
2854         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2855         before preparing arguments to warn_logical_not_parentheses.
2857 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
2859         PR c/65120
2860         * c-typeck.c (parser_build_binary_op): Don't warn for
2861         !!x == y or !b == y where b is _Bool.
2863 2015-03-09  Marek Polacek  <polacek@redhat.com>
2865         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2866         * c-decl.c (grokdeclarator): Likewise.
2867         * c-typeck.c (build_binary_op): Likewise.
2869 2015-02-27  Marek Polacek  <polacek@redhat.com>
2871         PR c/65228
2872         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2874 2015-02-14  Marek Polacek  <polacek@redhat.com>
2876         PR c/64768
2877         * c-decl.c (grokdeclarator): Set the range of a flexible array member
2878         declared through a typedef name.
2880 2015-02-13  Marek Polacek  <polacek@redhat.com>
2882         PR c/65050
2883         * c-decl.c (grokdeclarator): Print also the type when giving
2884         the error message about array's incomplete element type.
2886 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2888         PR c/64824
2889         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2890         check in the POP macro.
2892 2015-02-09  Marek Polacek  <polacek@redhat.com>
2894         PR c/64856
2895         * c-typeck.c (process_init_element): Don't always wrap
2896         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2897         initializing a range of elements.
2899 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2901         PR c/64824
2902         PR c/64868
2903         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2905 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
2907         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2908         processing enum declaration.
2910 2015-01-29  Marek Polacek  <polacek@redhat.com>
2912         PR c/64709
2913         * c-typeck.c (pop_init_level): If constructor_elements has
2914         exactly one element with integer_zerop value, set constructor_zeroinit
2915         to 1.  Remove braces around warning_init call.
2917 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2919         PR c/64766
2920         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2921         of FUNCTION_DECLs with error_mark_node.
2923 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2925         PR c/64778
2926         * c-typeck.c (convert_arguments): Return -1 if there are
2927         error_args, even if we've diagnosed too many arguments.
2929 2015-01-21  Richard Biener  <rguenther@suse.de>
2931         PR middle-end/64313
2932         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2933         for builtins the user declared correctly.
2935 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2936             Bernd Schmidt  <bernds@codesourcery.com>
2937             Cesar Philippidis  <cesar@codesourcery.com>
2938             James Norris  <jnorris@codesourcery.com>
2939             Jakub Jelinek  <jakub@redhat.com>
2940             Ilmir Usmanov  <i.usmanov@samsung.com>
2942         * c-parser.c: Include "gomp-constants.h".
2943         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2944         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2945         Use OMP_CLAUSE_SET_MAP_KIND.
2946         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2947         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2948         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
2949         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
2950         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
2951         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
2952         "copyout", "create", "delete", "deviceptr", "gang", "host",
2953         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
2954         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
2955         "present_or_create", "pcreate", "seq", "self", "vector",
2956         "vector_length", "wait", "worker".
2957         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
2958         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
2959         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
2960         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
2961         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
2962         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
2963         (c_parser_oacc_data_clause_deviceptr)
2964         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
2965         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
2966         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
2967         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
2968         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
2969         (c_parser_oacc_parallel, c_parser_oacc_update)
2970         (c_parser_oacc_wait): New functions.
2971         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
2972         (c_finish_oacc_data): New prototypes.
2973         * c-typeck.c: Include "gomp-constants.h".
2974         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
2975         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
2976         OMP_CLAUSE_SET_MAP_KIND.
2977         (c_finish_oacc_parallel, c_finish_oacc_kernels)
2978         (c_finish_oacc_data): New functions.
2979         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
2980         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2981         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2982         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
2983         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
2984         GOMP_MAP_FORCE_DEVICEPTR.
2986 2015-01-09  Michael Collison  <michael.collison@linaro.org>
2988         * c-array-notation.c: Include hash-set.h, machmode.h,
2989         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2990         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2991         * c-aux-info.c: Ditto.
2992         * c-convert.c: Ditto.
2993         * c-decl.c: Ditto.
2994         * c-errors.c: Ditto.
2995         * c-lang.c: Dittoxs.
2996         * c-objc-common.c: Ditto.
2997         * c-parser.c: Ditto.
2998         * c-typeck.c: Include hash-set.h, machmode.h,
2999         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3000         fold-const.h, wide-int.h, inchash.h, real.h and
3001         fixed-value.h due to flattening of tree.h.
3003 2015-01-07  Marek Polacek  <polacek@redhat.com>
3005         PR c/64417
3006         * c-typeck.c (process_init_element): Disallow initialization of
3007         a flexible array member with a string constant if the structure
3008         is in an array.
3010 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3012         PR sanitizer/64344
3013         * c-typeck.c (convert_for_assignment, c_finish_return): For
3014         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
3015         types also set in_late_binary_op around convert call.
3016         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
3017         to integral type casts, if not in_late_binary_op, pass c_fully_fold
3018         result on expr as last argument to ubsan_instrument_float_cast,
3019         if in_late_binary_op, don't use c_save_expr but save_expr.
3021         Update copyright years.
3023 2015-01-05  Marek Polacek  <polacek@redhat.com>
3025         PR c/64423
3026         * c-typeck.c (build_array_ref): Pass loc down to
3027         warn_array_subscript_with_type_char.
3029 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
3031         * c-typeck.c: New behavious for pointers to arrays with qualifiers
3032         (common-pointer-type): For pointers to arrays take qualifiers from
3033         element type.
3034         (build_conditional_expr): Add warnings for lost qualifiers.
3035         (comp-target-types): Allow pointers to arrays with different qualifiers.
3036         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
3037         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
3038         to PEDWARN_FOR_QUALIFIERS.
3040 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
3042         PR sanitizer/64289
3043         * c-convert.c: Include ubsan.h.
3044         (convert): For real -> integral casts and
3045         -fsanitize=float-cast-overflow don't call convert_to_integer, but
3046         instead instrument the float cast directly.
3048 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
3050         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
3051         c_finish_stmt_expr): Remove NULL last argument from
3052         create_tmp_var_raw and create_tmp_var calls.
3053         * c-array-notation.c (fix_builtin_array_notation_fn,
3054         build_array_notation_expr, fix_conditional_array_notations_1,
3055         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
3057 2014-11-28  Marek Polacek  <polacek@redhat.com>
3059         PR c/63862
3060         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
3061         convert the right operand to integer type.
3063 2014-11-25  Marek Polacek  <polacek@redhat.com>
3065         PR c/63877
3066         * c-decl.c (start_function): Disable -Wmissing-declarations warning
3067         for inline functions.
3069 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
3071         PR target/63764
3072         * c-typeck.c (build_array_ref): Adjust
3073         convert_vector_to_pointer_for_subscript caller.  If it returns true,
3074         call non_lvalue_loc on the result.
3076 2014-11-11  Richard Biener  <rguenther@suse.de>
3078         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
3079         to true.
3081 2014-11-10  Andi Kleen  <ak@linux.intel.com>
3083         PR c/60804
3084         * c-parser.c (c_parser_statement_after_labels): Call
3085         check_no_cilk.
3086         (c_parser_if_statement): Dito.
3087         (c_parser_switch_statement): Dito.
3088         (c_parser_while_statement): Dito.
3089         (c_parser_do_statement): Dito.
3090         (c_parser_for_statement): Dito.
3091         * c-typeck.c (c_finish_loop): Dito.
3093 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
3095         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
3096         OPT_Wshift_count_overflow in the warnings.
3098 2014-10-30  Marek Polacek  <polacek@redhat.com>
3100         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
3101         print the stripped version as well, if they're not the same.
3103 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3105         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
3106         machine_mode.
3108 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
3110         * c-decl.c: Adjust include files.
3111         * c-parser.c: Ditto.
3113 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
3114             Tom Tromey  <tromey@redhat.com>
3116         * c-tree.h (enum c_oracle_request): New.
3117         (c_binding_oracle_function): New typedef.
3118         (c_binding_oracle, c_pushtag, c_bind): Declare.
3119         * c-decl.c (c_binding_oracle): New global.
3120         (I_SYMBOL_CHECKED): New macro.
3121         (i_symbol_binding): New function.
3122         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
3123         (I_TAG_CHECKED): New macro.
3124         (i_tag_binding): New function.
3125         (I_TAG_BINDING, I_TAG_DECL): Redefine.
3126         (I_LABEL_CHECKED): New macro.
3127         (i_label_binding): New function.
3128         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
3129         (c_print_identifier): Save and restore c_binding_oracle.
3130         (c_pushtag, c_bind): New functions.
3132 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
3134         * c-typeck.c: Adjust include files.
3136 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3138         PR c++/53061
3139         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
3140         initialization here...
3141         (c_initialize_diagnostics): ... but here. Set defaults after
3142         building pretty-printer.
3144 2014-10-23  Marek Polacek  <polacek@redhat.com>
3146         PR c/63626
3147         * c-decl.c (pop_scope): Don't print warning in external_scope.
3149 2014-10-19  Marek Polacek  <polacek@redhat.com>
3151         PR c/63567
3152         * c-typeck.c (output_init_element): Allow initializing objects with
3153         static storage duration with compound literals even in C99 and add
3154         pedwarn for it.
3156 2014-10-17  Marek Polacek  <polacek@redhat.com>
3158         PR c/63567
3159         * c-typeck.c (digest_init): Allow initializing objects with static
3160         storage duration with compound literals even in C99 and add pedwarn
3161         for it.
3163 2014-10-17  Marek Polacek  <polacek@redhat.com>
3165         PR c/63543
3166         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
3167         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
3168         error multiple times.  Print the type.
3170 2014-10-17  Marek Polacek  <polacek@redhat.com>
3172         PR c/63549
3173         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
3174         type.
3176 2014-10-17  Marek Polacek  <polacek@redhat.com>
3178         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
3179         (start_function): Use OPT_Wimplicit_int instead of 0.
3180         (store_parm_decls_oldstyle): Likewise.
3182 2014-10-17  Alan Modra  <amodra@gmail.com>
3184         PR middle-end/61848
3185         * c-decl.c (merge_decls): Don't merge section name or tls model
3186         to newdecl symtab node, instead merge to olddecl.  Override
3187         existing olddecl section name.  Set tls_model for all thread-local
3188         vars, not just OMP thread-private ones.  Remove incorrect comment.
3190 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
3192         * c-decl.c: Adjust include files.
3194 2014-10-14  DJ Delorie  <dj@redhat.com>
3196         * c-parser.c (c_parse_init): Add RID entries for each __intN.
3197         (c_token_starts_typename): Check all __intN, not just __int128.
3198         (c_token_starts_declspecs): Likewise.
3199         (c_parser_declspecs): Likewise.
3200         (c_parser_attribute_any_word): Likewise.
3201         (c_parser_objc_selector): Likewise.
3202         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
3203         (struct c_declspecs): Add int_n_idx field to record *which* __intN
3204         is specified.
3205         * c-decl.c (declspecs_add_type): Check for all __intN, not just
3206         __int128.
3207         (finish_declspecs): Likewise.
3209 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
3211         * c-parser.c (c_parser_all_labels): New function to replace
3212         the duplicate code.
3213         (c_parser_statement): Call the new function.
3215 2014-10-09  Marek Polacek  <polacek@redhat.com>
3217         PR c/63480
3218         * c-typeck.c (pop_init_level): Don't warn about initializing
3219         with { }.
3221 2014-10-07  Marek Polacek  <polacek@redhat.com>
3223         PR c/59717
3224         * c-decl.c (header_for_builtin_fn): New function.
3225         (implicitly_declare): Suggest which header to include.
3227 2014-10-07  Marek Polacek  <polacek@redhat.com>
3229         * c-convert.c (convert): Use error_operand_p.
3230         * c-typeck.c (require_complete_type): Likewise.
3231         (really_atomic_lvalue): Likewise.
3232         (digest_init): Likewise.
3233         (handle_omp_array_sections_1): Likewise.
3235 2014-10-03  Marek Polacek  <polacek@redhat.com>
3237         PR c/63453
3238         * c-decl.c (pop_scope): Don't warn about "inline function declared
3239         but never defined" for functions marked with gnu_inline attribute.
3241 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3243         PR c++/63249
3244         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
3245         on low_bound and length.
3247 2014-09-24  Marek Polacek  <polacek@redhat.com>
3249         PR c/61405
3250         PR c/53874
3251         * c-parser.c: Don't define CPP_KEYWORD.
3252         (c_parser_switch_statement): Pass original type to c_finish_case.
3253         * c-tree.h (c_finish_case): Update declaration.
3254         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
3255         conditionally to c_do_switch_warnings.
3257 2014-09-03  Marek Polacek  <polacek@redhat.com>
3259         PR c/62024
3260         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
3261         conversions.
3263 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
3264             Balaji V. Iyer  <balaji.v.iyer@intel.com>
3265             Igor Zamyatin  <igor.zamyatin@intel.com>
3267         * c-parser.c (c_parser_cilk_for): New function.
3268         (c_parser_cilk_grainsize): Likewise.
3269         (c_get_temp_regvar): Likewise.
3270         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
3271         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
3272         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
3273         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
3274         case.
3276 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
3278         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
3279         with using HOST_WIDE_INT without truncation to 'int'
3281 2014-08-22  Marek Polacek  <polacek@redhat.com>
3283         PR c++/62199
3284         * c-typeck.c (parser_build_binary_op): Adjust call to
3285         warn_logical_not_parentheses.
3287 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
3289         PR other/62008
3290         * c-parser.c (c_parser_array_notation): Check for correct
3291         type of an array added.
3293 2014-08-19  Marek Polacek  <polacek@redhat.com>
3295         PR c++/62153
3296         * c-typeck.c (build_binary_op): If either operand of a comparison
3297         is a boolean expression, call maybe_warn_bool_compare.
3299 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
3301         PR c/45584
3302         * c-typeck.c (build_c_cast): Do a conversion even when the
3303         TYPE_MAIN_VARIANTs are the same.
3305 2014-08-19  Marek Polacek  <polacek@redhat.com>
3307         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
3308         pedwarn_c99 instead of pedwarn.
3309         (grokfield): Likewise.
3310         (warn_defaults_to): New function.
3311         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
3312         Unconditionally call pedwarn_c99 instead of pedwarn.
3313         (start_function): Call warn_defaults_to instead of pedwarn_c99.
3314         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
3315         check flag_isoc11 before.
3316         * c-errors.c (pedwarn_c99): Change the return type to bool.
3317         Handle -Wc99-c11-compat.
3318         * c-parser.c (disable_extension_diagnostics): Handle
3319         warn_c99_c11_compat.
3320         (restore_extension_diagnostics): Likewise.
3321         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
3322         instead of pedwarn, don't check flag_isoc11 before.
3323         (c_parser_declspecs): Likewise.
3324         (c_parser_alignas_specifier): Likewise.
3325         (c_parser_alignof_expression): Likewise.
3326         (c_parser_generic_selection): Likewise.
3327         * c-tree.h (pedwarn_c99): Update declaration.
3328         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
3329         of pedwarn_c99.
3331 2014-08-19  Marek Polacek  <polacek@redhat.com>
3333         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
3334         to pedwarn_c90.
3335         * c-errors.c: Include "opts.h".
3336         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
3337         * c-parser.c (disable_extension_diagnostics): Handle negative value
3338         of warn_c90_c99_compat, too.
3339         (restore_extension_diagnostics): Likewise.
3340         (c_parser_compound_statement_nostart): Pass
3341         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
3343 2014-08-12  Marek Polacek  <polacek@redhat.com>
3345         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
3346         Add pedwarn.
3347         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
3348         Likewise.
3349         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
3351 2014-08-10  Marek Polacek  <polacek@redhat.com>
3353         PR c/51849
3354         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
3355         Call pedwarn_c90 instead of pedwarn.
3356         (check_bitfield_type_and_width): Likewise.
3357         (declspecs_add_qual): Likewise.
3358         (declspecs_add_type): Likewise.
3359         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
3360         Adjust to only call pedwarn_c90.
3361         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
3362         pedwarn_c90 instead of pedwarn.
3363         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
3364         * c-parser.c (disable_extension_diagnostics): Handle
3365         warn_c90_c99_compat.
3366         (restore_extension_diagnostics): Likewise.
3367         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
3368         pedwarn_c90 instead of pedwarn.
3369         (c_parser_initelt): Likewise.
3370         (c_parser_postfix_expression): Likewise.
3371         (c_parser_postfix_expression_after_paren_type): Likewise.
3372         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
3373         * c-tree.h: Fix formatting.
3374         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
3375         pedwarn_c90 instead of pedwarn.
3377 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
3379         * c-typeck.c: Remove include of pointer-set.h.
3381 2014-08-07  Marek Polacek  <polacek@redhat.com>
3383         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
3385 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3387         * c-typeck.c: Use hash_map instead of pointer_map.
3389 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3391         * c-decl.c: Use hash_set instead of pointer_set.
3393 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
3395         PR middle-end/61455
3396         * c-array-notation.c (expand_array_notations): Handling
3397         of DECL_EXPR added.
3399 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
3401         PR c++/60517
3402         * c-typeck.c (c_finish_return): Return 0 instead of the address of
3403         a local variable.
3405 2014-07-30  Tom Tromey  <tromey@redhat.com>
3407         * c-typeck.c (struct constructor_stack) <designator_depth>: New
3408         field.
3409         (really_start_incremental_init, push_init_level): Initialize
3410         designator_depth.
3411         (pop_init_level): Set global designator_depth.
3412         (process_init_element): Check for designated_init attribute.
3414 2014-07-20  Marek Polacek  <polacek@redhat.com>
3416         PR c/61852
3417         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
3418         (implicitly_declare): Pass location to implicit_decl_warning.
3420 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
3422         PR middle-end/61294
3423         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
3424         If non-NULL, call c_parser_check_literal_zero.
3425         (c_parser_check_literal_zero): New function.
3426         (c_parser_postfix_expression_after_primary): Adjust
3427         c_parser_expr_list caller, handle -Wmemset-transposed-args.
3429 2014-07-06  Marek Polacek  <polacek@redhat.com>
3431         PR c/6940
3432         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
3433         * c-tree.h (C_ARRAY_PARAMETER): Define.
3434         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
3435         function parameter.
3437 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
3438             Chen Gang  <gang.chen.5i5j@gmail.com>
3440         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
3441         releasing symbol.
3443 2014-07-01  Marek Polacek  <polacek@redhat.com>
3445         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
3446         instead of 0 to WARN_FOR_ASSIGNMENT.
3448 2014-07-01  Marek Polacek  <polacek@redhat.com>
3450         PR c/58286
3451         * c-typeck.c (convert_for_assignment): Pass
3452         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
3454 2014-06-30  Marek Polacek  <polacek@redhat.com>
3456         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
3457         has no_sanitize_undefined attribute.
3459 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
3461         PR middle-end/57541
3462         * c-array-notation.c (fix_builtin_array_notation_fn):
3463         Check for 0 arguments in builtin call. Check that bultin argument is
3464         correct.
3465         * c-parser.c (c_parser_array_notation): Check for incorrect initial
3466         index.
3468 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3470         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
3471         qualifiers in __auto_type for atomic types.
3472         (c_parser_typeof_specifier): Discard all type qualifiers in
3473         __typeof__ for atomic types.
3475 2014-06-25  Marek Polacek  <polacek@redhat.com>
3477         PR c/61162
3478         * c-parser.c (c_parser_statement_after_labels): Pass the location of
3479         the return expression to c_finish_return.
3481 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
3483         * c-typeck.c (c_finish_omp_clauses): Make sure
3484         OMP_CLAUSE_LINEAR_STEP has correct type.
3486 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3488         * c-decl.c: Adjust.
3490 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
3492         * c-parser.c (c_parser_omp_for_loop): For
3493         #pragma omp parallel for simd move lastprivate clause from parallel
3494         to for rather than simd.
3496 2014-06-23  Marek Polacek  <polacek@redhat.com>
3498         * c-typeck.c (parser_build_binary_op): Don't call
3499         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3501 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
3503         * c-parser.c (c_parser_omp_threadprivate): Likewise.
3504         * c-decl.c (merge_decls): Likewise.
3506 2014-06-09  Marek Polacek  <polacek@redhat.com>
3508         PR c/36446
3509         * c-typeck.c (error_init): Call inform instead of error_at.
3510         (pedwarn_init): Call inform instead of pedwarn.
3511         (warning_init): Call inform instead of warning_at.
3513 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
3515         * c-decl.c (merge_decls): Use set_decl_section_name.
3516         (duplicate_decls): Remove node if it exists.
3518 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
3520         PR c/53119
3521         * c-typeck.c (push_init_level, process_init_element,
3522         pop_init_level): Correct check for zero initialization, move
3523         missing brace warning to respect zero initialization.
3525 2014-06-05  Marek Polacek  <polacek@redhat.com>
3527         PR c/56724
3528         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3530 2014-06-05  Marek Polacek  <polacek@redhat.com>
3532         PR c/49706
3533         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3534         on the left hand side operand of a comparison. 
3536 2014-06-05  Marek Polacek  <polacek@redhat.com>
3538         PR c/48062
3539         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3540         Print note only if the warning was printed.
3542 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
3544         PR c/58942
3545         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3546         with a pointer.
3548 2014-06-03  Marek Polacek  <polacek@redhat.com>
3550         PR c/60439
3551         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3552         c_start_case.
3553         * c-tree.h (c_start_case): Update.
3554         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
3555         switch condition has boolean value.
3557 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
3559         * c-decl.c: Include builtins.h.
3560         * c-parser.c: Likewise.
3562 2014-05-27  Marek Polacek  <polacek@redhat.com>
3564         PR c/56724
3565         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
3566         error and warning calls to error_at and warning_at.  Pass location of
3567         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
3568         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3569         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
3571 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
3573         PR c/61191
3574         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
3575         function parameters.
3577 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
3579         * c-decl.c (merge_decls): Preserve symtab node pointers.
3580         (duplicate_decls): Free new decl.
3582 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3584         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
3585         initialization.
3587         * c-parser.c (c_parser_omp_target): Return bool values.
3589 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
3591         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
3592         num_teams_loc variable to num_thread_limit_loc.
3594 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3596         * c-array-notation.c (expand_array_notations): Use void_node
3597         instead of void_zero_node.
3599 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
3601         * c-decl.c (finish_struct): Adjust.
3602         (finish_enum): Likewise.
3603         (bind): Adjust.
3604         (record_inline_static): Likewise.
3605         (push_scope): Likewise.
3606         (make_label): Likewise.
3607         (lookup_label_for_goto): Likewise.
3608         (finish_struct): Likewise.
3609         (finish_enum): Likewise.
3610         (store_parm_decls): Likewise.
3611         (c_push_function_context): Likewise.
3612         * c-lang.h: Remove usage of variable_size gty attribute.
3613         * c-parser.c (c_parse_init): Adjust.
3614         (c_parse_file): Likewise.
3616 2014-05-13  Marek Polacek  <polacek@redhat.com>
3618         PR c/61162
3619         * c-typeck.c (convert_for_assignment): Pass location to
3620         WARN_FOR_ASSIGNMENT instead of input_location.
3622 2014-05-10  Marek Polacek  <polacek@redhat.com>
3624         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
3625         maybe_warn_string_init.
3626         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
3627         maybe_warn_string_init.
3628         * c-tree.h (maybe_warn_string_init): Update declaration.
3629         * c-typeck.c (maybe_warn_string_init): Add location parameter.
3630         Call pedwarn_init with loc instead of with input_location.
3631         (digest_init): Pass init_loc to maybe_warn_string_init.
3632         (pop_init_level): Call pedwarn_init with loc instead of with
3633         input_location.
3634         (set_init_index): Likewise.
3635         (process_init_element): Likewise.
3637 2014-05-09  Marek Polacek  <polacek@redhat.com>
3639         PR c/61096
3640         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
3641         (c_parser_initelt): Pass location to set_init_label.  Pass array index
3642         location to set_init_index.
3643         * c-tree.h (push_init_level): Update declaration.
3644         (pop_init_level): Likewise.
3645         (set_init_index): Likewise.
3646         (set_init_label): Likewise.
3647         * c-typeck.c (error_init): Add location parameter.  Call error_at
3648         instead of error.
3649         (digest_init): Pass init_loc to error_init.
3650         (really_start_incremental_init):
3651         (push_init_level): Add location parameter.  Pass loc to pop_init_level
3652         and error_init.
3653         (pop_init_level): Likewise.
3654         (set_designator): Add location parameter.  Pass loc to pop_init_level,
3655         push_init_level, and error_init.
3656         (set_init_index): Add location parameter.  Pass loc to error_init and
3657         set_designator.
3658         (set_init_label): Likewise.
3659         (output_init_element): Pass loc to error_init.
3660         (process_init_element): Pass loc to error_init, pop_init_level,
3661         pedwarn_init, and push_init_level.
3663 2014-05-09  Marek Polacek  <polacek@redhat.com>
3665         PR c/50459
3666         * c-parser.c (c_parser_attributes): Parse the arguments as an
3667         expression-list if the attribute takes identifier.
3669 2014-05-08  Marek Polacek  <polacek@redhat.com>
3671         PR c/61053
3672         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3673         TYPE_ALIGN_UNIT.
3675 2014-05-08  Marek Polacek  <polacek@redhat.com>
3677         PR c/61077
3678         * c-decl.c (start_function): Warn for _Atomic-qualified return type
3679         of main.
3681 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
3682             Mike Stump  <mikestump@comcast.net>
3683             Richard Sandiford  <rdsandiford@googlemail.com>
3685         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3686         (finish_enum): Use wide-int interfaces.
3687         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3688         * c-typeck.c (build_c_cast): Likewise.
3689         (set_nonincremental_init_from_string): Likewise.
3690         (c_tree_equal): Likewise.
3692 2014-05-02  Marek Polacek  <polacek@redhat.com>
3694         PR c/25801
3695         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
3696         Return size_one_node when the type is not complete.
3697         (pointer_diff): Remove comment.
3698         (build_unary_op): Improve error messages.
3700 2014-05-02  Marek Polacek  <polacek@redhat.com>
3702         * c-typeck.c (c_finish_return): Separate warning_at calls.
3704 2014-05-02  Marek Polacek  <polacek@redhat.com>
3706         * c-tree.h (error_init): Remove declaration.
3707         (pedwarn_init): Likewise.
3708         * c-typeck.c (error_init): Make static and move above.
3709         (pedwarn_init): Likewise.
3710         (warning_init): Move above.
3711         (maybe_warn_string_init): Likewise.
3713 2014-05-01  Jeff Law  <law@redhat.com>
3715         Revert:
3717         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3718         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3719         avoid goto.
3721 2014-05-02  Marek Polacek  <polacek@redhat.com>
3723         PR c/60784
3724         * c-typeck.c (push_init_level): Set constructor_designated to
3725         p->designated for structures.
3727 2014-05-01  Marek Polacek  <polacek@redhat.com>
3729         PR c/60915
3730         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3731         function-definition has an attribute after the declarator.
3733 2014-05-01  Marek Polacek  <polacek@redhat.com>
3735         PR c/60257
3736         * c-typeck.c (warning_init): Add location_t parameter.  Call
3737         warning_at instead of warning.
3738         (push_init_level): Pass input_location to warning_init.
3739         (add_pending_init): Add location_t parameter.  Pass loc to
3740         warning_init.
3741         (set_nonincremental_init): Pass input_location to add_pending_init.
3742         (set_nonincremental_init_from_string): Likewise.
3743         (output_init_element): Pass loc to warning_init and to
3744         add_pending_init.
3746 2014-05-01  Marek Polacek  <polacek@redhat.com>
3748         PR c/43395
3749         * c-typeck.c (c_finish_return): Distinguish between label and variable
3750         when warning about returning local address.
3752 2014-05-01  Marek Polacek  <polacek@redhat.com>
3754         PR c/29467
3755         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3756         in C89 mode.
3758 2014-05-01  Marek Polacek  <polacek@redhat.com>
3760         PR c/43245
3761         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3762         instead of 0 to WARN_FOR_QUALIFIERS.
3764 2014-05-01  Marek Polacek  <polacek@redhat.com>
3766         PR c/56989
3767         * c-typeck.c (default_conversion): Use better location for
3768         error call.
3770 2014-04-30  Marek Polacek  <polacek@redhat.com>
3772         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3773         also when SANITIZE_FLOAT_DIVIDE is on.
3775 2014-04-30  Marek Polacek  <polacek@redhat.com>
3777         PR c/60139
3778         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3779         and pedwarn_init.  Use loc insted of input_location.
3781 2014-04-30  Marek Polacek  <polacek@redhat.com>
3783         PR c/60351
3784         * c-typeck.c (build_binary_op): Use location when warning about
3785         shift count.
3787 2014-04-25  Marek Polacek  <polacek@redhat.com>
3789         PR c/18079
3790         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3791         always_inline/noinline and hot/cold attributes.
3793 2014-04-25  Marek Polacek  <polacek@redhat.com>
3795         PR c/60114
3796         * c-parser.c (c_parser_initelt): Pass input_location to
3797         process_init_element.
3798         (c_parser_initval): Pass loc to process_init_element.
3799         * c-tree.h (process_init_element): Adjust declaration.
3800         * c-typeck.c (push_init_level): Pass input_location to
3801         process_init_element.
3802         (pop_init_level): Likewise.
3803         (set_designator): Likewise.
3804         (output_init_element): Add location_t parameter.  Pass loc to
3805         digest_init.
3806         (output_pending_init_elements): Pass input_location to
3807         output_init_element.
3808         (process_init_element): Add location_t parameter.  Pass loc to
3809         output_init_element.
3811 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
3813         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3814         atomic-clause, allow comma in between atomic-clause and
3815         seq_cst.
3817 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
3819         PR c/59073
3820         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3821         fails, don't set OM_PARALLEL_COMBINED and return NULL.
3823 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
3825         PR middle-end/60469
3826         * c-array-notation.c (fix_builtin_array_notation_fn): Use
3827         create_tmp_var instead build_decl for creating temps.
3828         (build_array_notation_expr): Likewise.
3829         (fix_conditional_array_notations_1): Likewise.
3830         (fix_array_notation_expr): Likewise.
3831         (fix_array_notation_call_expr): Likewise.
3833 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
3835         PR c++/60689
3836         * c-tree.h (c_build_function_call_vec): New prototype.
3837         * c-typeck.c (build_function_call_vec): Don't call
3838         resolve_overloaded_builtin here.
3839         (c_build_function_call_vec): New wrapper function around
3840         build_function_call_vec.  Call resolve_overloaded_builtin here.
3841         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3842         Call c_build_function_call_vec instead of build_function_call_vec.
3843         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3844         * c-decl.c (finish_decl): Likewise.
3846 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3848         PR c/55383
3849         * c-typeck.c: Use correct format string in cast-qual warning
3851 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
3853         * c-decl.c (c_decl_attributes): Use
3854         lang_hooks.types.omp_mappable_type.
3855         * c-typeck.c (c_finish_omp_clauses): Likewise.
3857 2014-03-06  Marek Polacek  <polacek@redhat.com>
3859         PR c/60197
3860         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3861         of checking tree code.
3863 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3865         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3866         (c_parser_parameter_declaration): Likewise.
3868 2014-02-19  Marek Polacek  <polacek@redhat.com>
3870         PR c/60195
3871         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3872         Call mark_exp_read on exp.value.
3873         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
3874         TREE_ADDRESSABLE on old instead of val.
3875         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3877 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3879         * c-parser.c (c_parser_get_builtin_args): Replace calls to
3880         C_EXPR_APPEND by vec_safe_push.
3881         * c-tree.h (C_EXPR_APPEND): Remove.
3883 2014-01-31  Marek Polacek  <polacek@redhat.com>
3885         PR c/59963
3886         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3887         build_function_call_vec.
3888         (build_function_call): Likewise.
3889         (build_atomic_assign): Likewise.
3890         (build_function_call_vec): Add arg_loc parameter.  Use it.
3891         (convert_arguments): Likewise.
3892         (convert_for_assignment): Rename rhs_loc to expr_loc.
3893         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3894         (c_parser_objc_keywordexpr): Likewise.
3895         (c_parser_postfix_expression_after_primary): Call
3896         build_function_call_vec with expr_loc rather than op_loc.
3897         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
3898         build_function_call_vec.
3899         (c_parser_expr_list): Add locations parameter.  Fill it with locations
3900         of function arguments.
3901         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3903 2014-01-30  Marek Polacek  <polacek@redhat.com>
3905         PR c/59940
3906         * c-typeck.c (build_function_call_vec): Use loc parameter.
3907         (convert_arguments): Add location parameter.  Use it.
3908         (ep_convert_and_check): Likewise.
3909         (build_atomic_assign): Adjust convert_for_assignment call.
3910         (build_modify_expr): Likewise.
3911         (digest_init): Likewise.
3912         (c_finish_return): Likewise.
3913         (build_conditional_expr): Adjust ep_convert_and_check calls.
3914         (convert_for_assignment): Add rhs_loc parameter.  Use it.
3915         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3916         calls.
3918 2014-01-30  Richard Biener  <rguenther@suse.de>
3920         PR c/59905
3921         * c-typeck.c (build_function_call_vec): Do not replace calls
3922         to a function via an incompatible type with a runtime abort.
3924 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3926         * c-parser.c (c_parser_declaration_or_fndef): Replaced
3927         flag_enable_cilkplus with flag_cilkplus.
3928         (c_parser_direct_declarator_inner): Likewise.
3929         (c_parser_attribute_any_word): Likewise.
3930         (c_parser_attributes): Likewise.
3931         (c_parser_compound_statement): Likewise.
3932         (c_parser_statement_after_labels): Likewise.
3933         (c_parser_if_statement): Likewise.
3934         (c_parser_switch_statement): Likewise.
3935         (c_parser_do_statement): Likewise.
3936         (c_parser_for_statement): Likewise.
3937         (c_parser_unary_expression): Likewise.
3938         (c_parser_postfix_expression): Likewise.
3939         (c_parser_postfix_expression_after_primary): Likewise.
3940         (c_parser_postfix_expression_after_primary): Likewise.
3941         (c_parser_omp_clause_name): Likewise.
3942         (c_finish_omp_declare_simd): Likewise.
3943         (c_parser_cilk_verify_simd): Likewise.
3944         * c-typeck.c (build_array_ref): Likewise.
3945         (build_function_call_vec): Likewise.
3946         (convert_arguments): Likewise.
3947         (build_compound_expr): Likewise.
3948         (c_finish_return): Likewise.
3949         (c_finish_if_stmt): Likewise.
3950         (c_finish_loop): Likewise.
3951         (build_binary_op): Likewise.
3953 2014-01-23  Marek Polacek  <polacek@redhat.com>
3955         PR c/59846
3956         * c-typeck.c (parser_build_binary_op): Use location instead of
3957         input_location.
3958         (build_binary_op): Pass location to shorten_compare.
3960 2014-01-23  Marek Polacek  <polacek@redhat.com>
3962         PR c/58346
3963         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3964         an empty aggregate.
3966 2014-01-23  Marek Polacek  <polacek@redhat.com>
3968         PR c/59871
3969         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
3970         of a comma expression.
3971         (emit_side_effect_warnings): Likewise.
3973 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3975         PR c/59825
3976         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
3977         function to use walk_tree and moved a lot of its functionality to
3978         expand_array_notations.
3979         (expand_array_notations): New function.
3981 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3983         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
3984         attribute an attribute without value.
3986 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
3988         PR middle-end/58809
3989         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
3990         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3992 2014-01-22  Marek Polacek  <polacek@redhat.com>
3994         PR c/59891
3995         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
3996         of remove_c_maybe_const_expr on op1 and op2.
3998 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
4000         PR c/58943
4001         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
4002         effects, preevaluate rhs using SAVE_EXPR first.
4004 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4006         PR c++/59631
4007         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
4008         statements with if-elseif statements.
4010 2014-01-06  Marek Polacek  <polacek@redhat.com>
4012         PR c/57773
4013         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
4014         defined bit-field types only in ISO C.
4016 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4018         Update copyright years
4020 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4022         * c-array-notation.c: Use the standard form for the copyright notice.
4024 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4026         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
4027         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
4028         field in parser is not empty.  If not-empty, call the function
4029         c_parser_finish_omp_declare_simd.
4030         (c_parser_cilk_clause_vectorlength): Modified function to be shared
4031         between SIMD-enabled functions and #pragma simd.  Added new parameter.
4032         (c_parser_cilk_all_clauses): Modified the usage of the function
4033         c_parser_cilk_clause_vectorlength as mentioned above.
4034         (c_parser_cilk_simd_fn_vector_attrs): New function.
4035         (c_finish_cilk_simd_fn_tokens): Likewise.
4036         (is_cilkplus_vector_p): Likewise.
4037         (c_parser_omp_clause_name): Added checking for "vectorlength,"
4038         "nomask," and "mask" strings in clause name.
4039         (c_parser_omp_all_clauses): Added 3 new case statements:
4040         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
4041         PRAGMA_CILK_CLAUSE_NOMASK.
4042         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
4043         check for vector attribute and if so call the function
4044         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
4045         called the function c_finish_cilk_simd_fn_tokens.
4046         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
4047         parser field is non-empty.  If so, parse them as you would parse
4048         the omp declare simd pragma.
4049         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
4050         Added a check when step is a parameter and flag it as error.
4051         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
4052         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
4053         pragma_omp_clause.
4055 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
4057         * c-parser.c (c_parser_omp_parallel): Fix description.
4059 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4061         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
4062         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4063         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
4064         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
4066 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
4068         PR c/52023
4069         * c-parser.c (c_parser_alignas_specifier): Use
4070         c_sizeof_or_alignof_type instead of c_alignof.
4071         (c_parser_alignof_expression): Likewise, with min_alignof
4072         parameter depending on alignof spelling used.
4074 2013-12-04  Marek Polacek  <polacek@redhat.com>
4076         PR c/54113
4077         * c-decl.c (start_function): Don't warn for missing prototype for
4078         inline functions.
4080 2013-12-03  Marek Polacek  <polacek@redhat.com>
4082         PR c/59351
4083         * c-decl.c (build_compound_literal): Allow compound literals with
4084         empty initial value.
4086 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
4088         PR c/58235
4089         * c-typeck.c (build_modify_expr): Diagnose assignment to
4090         expression with array type.
4092 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4094         PR c/42262
4095         * c-typeck.c (process_init_element): Do not treat a string as
4096         initializing a whole array when used with a designator for an
4097         individual element.
4099 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
4101         PR c/57574
4102         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
4103         an inline function following a static declaration.
4105 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
4107         PR c/59310
4108         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
4109         to p_name before calling c_parser_omp_teams instead of after.
4110         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
4111         argument.  Remove unused p_name variable.
4113 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
4114             Jakub Jelinek  <jakub@redhat.com>
4116         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
4117         external_scope is NULL.
4119 2013-11-27  Tom de Vries  <tom@codesourcery.com>
4120             Marc Glisse  <marc.glisse@inria.fr>
4122         PR c++/59032
4123         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
4125 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4127         * c-typeck.c: Add required include files from gimple.h.
4129 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
4131         * c-decl.c (define_label, shadow_tag_warned)
4132         (check_bitfield_type_and_width, grokdeclarator, grokparms,
4133         store_parm_decls_newstyle, store_parm_decls_oldstyle)
4134         (declspecs_add_type): Remove use of in_system_header macro.
4135         * c-parser.c (c_parser_unary_expression): Likewise.
4136         * c-typeck.c (store_init_value, process_init_element)
4137         (c_start_case): Likewise.
4139         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
4140         macro.
4142         * c-parser.c (c_parser_set_source_position_from_token): Remove
4143         reference to in_system_header from comment.
4145 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4147         * c-decl.c (grokdeclarator): Update comment to refer to
4148         tree_to_[su]hwi rather than tree_low_cst.
4150 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4152         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
4153         tree_to_uhwi throughout.
4155 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4157         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
4158         throughout.
4160 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4162         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4163         throughout.
4165 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4167         * c-parser.c (c_parser_cilk_simd): New.
4168         (c_parser_cilk_verify_simd): New.
4169         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
4170         (c_parser_omp_for_loop): Add case for NE_EXPR.
4171         Set c_break_label for CILK_SIMD.
4172         (c_parser_cilk_clause_vectorlength): New.
4173         (c_parser_cilk_clause_linear): New.
4174         (c_parser_cilk_clause_name): New.
4175         (c_parser_cilk_all_clauses): New.
4176         * c-typeck.c (build_unary_op): Pass location argument to
4177         readonly_error.
4178         (build_modify_expr): Same.
4179         (build_asm_expr): Same.
4180         (c_finish_bc_stmt): Error on break/continue in loops.
4182 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4184         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
4186 2013-11-14  Diego Novillo  <dnovillo@google.com>
4188         * c-decl.c: Include print-tree.h.
4189         Include stor-layout.h.
4190         Include varasm.h.
4191         Include attribs.h.
4192         Include stringpool.h.
4193         * c-lang.c: Include fold-const.h.
4194         * c-parser.c: Include stringpool.h.
4195         Include attribs.h.
4196         Include stor-layout.h.
4197         Include varasm.h.
4198         Include trans-mem.h.
4199         * c-typeck.c: Include stor-layout.h.
4200         Include trans-mem.h.
4201         Include varasm.h.
4202         Include stmt.h.
4204 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4206         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
4207         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
4208         __auto_type.
4209         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
4210         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
4211         RID_AUTO_TYPE.
4212         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
4213         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
4214         (c_parser_declarator, c_parser_direct_declarator_inner)
4215         (c_parser_parameter_declaration, c_parser_type_name): All callers
4216         changed.
4217         (c_parser_declaration_or_fndef): Handle declarations with type
4218         determined from the initializer.
4220 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4222         * c-typeck.c: Include gimplify.h.
4224 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
4226         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
4227         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
4228         comment.
4229         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
4230         or _Thread_local as appropriate in diagnostics.
4231         (build_null_declspecs): Initialize ret->thread_gnu_p.
4232         (declspecs_add_scspec): Handle either __thread or _Thread_local
4233         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
4234         pedantic.  Do not disallow _Thread_local extern and _Thread_local
4235         static.
4237 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
4238             Andrew MacLeod  <amacleod@redhat.com>
4240         * c-aux-info.c (gen_type): Handle atomic qualifier.
4241         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
4242         qualifiers when compating types.
4243         (shadow_tag_warned): Handle atomic_p in declspecs.
4244         (quals_from_declspecs): Likewise.
4245         (start_decl): Use c_type_promotes_to when promoting argument
4246         types.
4247         (grokdeclarator): Handle _Atomic.
4248         (get_parm_info): Diagnose any qualifier on "void" as only
4249         parameter.
4250         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
4251         comparing types.  Use c_type_promotes_to when promoting argument
4252         types.
4253         (finish_function): Use c_type_promotes_to when promoting argument
4254         types.
4255         (build_null_declspecs): Handle atomic_p in declspecs.
4256         (declspecs_add_qual): Handle RID_ATOMIC.
4257         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
4258         (c_token_starts_declspecs): Handle RID_ATOMIC.
4259         (c_parser_declspecs): Handle atomic type specifiers and
4260         qualifiers.
4261         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
4262         from types of expressions with atomic type.
4263         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
4264         (c_parser_attribute_any_word): Handle RID_ATOMIC.
4265         (c_parser_initializer, c_parser_initelt, c_parser_initval)
4266         (c_parser_statement_after_labels, c_parser_switch_statement)
4267         (c_parser_for_statement, c_parser_expr_no_commas)
4268         (c_parser_conditional_expression, c_parser_binary_expression)
4269         (c_parser_cast_expression, c_parser_unary_expression)
4270         (c_parser_postfix_expression)
4271         (c_parser_postfix_expression_after_primary, c_parser_expression):
4272         Use convert_lvalue_to_rvalue.
4273         (c_parser_expression_conv, c_parser_expr_list): Document
4274         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
4275         (c_parser_objc_synchronized_statement): Use
4276         convert_lvalue_to_rvalue.
4277         (c_parser_objc_selector): Handle RID_ATOMIC.
4278         (c_parser_objc_receiver, c_parser_array_notation): Use
4279         convert_lvalue_to_rvalue.
4280         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
4281         _Atomic (type-name).
4282         (struct c_declspecs): Add atomic_p field.
4283         (convert_lvalue_to_rvalue): Declare.
4284         * c-typeck.c (c_type_promotes_to): Promote atomic types to
4285         corresponding atomic types.
4286         (qualify_type): Don't add _Atomic qualifiers from second argument.
4287         (comp_target_types): Do not allow _Atomic mismatches.
4288         (type_lists_compatible_p): Do not remove atomic qualifiers when
4289         comparing types.
4290         (really_atomic_lvalue, convert_lvalue_to_rvalue)
4291         (build_atomic_assign): New functions.
4292         (build_unary_op): Use build_atomic_assign for atomic increment and
4293         decrement.
4294         (build_conditional_expr): Do not treat _Atomic void as a qualified
4295         version of void.
4296         (build_modify_expr): Use build_atomic_assign for atomic LHS.
4297         (find_anonymous_field_with_type, convert_to_anonymous_field)
4298         (convert_for_assignment): Do not remove atomic qualifiers when
4299         comparing types.
4300         (digest_init): Do not accept initialization of arrays of atomic
4301         elements by string constants.
4302         (build_asm_expr): Use convert_lvalue_to_rvalue.
4303         (build_binary_op): Do not treat _Atomic void as a qualified
4304         version of void.
4306 2013-11-06  DJ Delorie  <dj@redhat.com>
4308         * c-decl.c (locate_old_decl): If a previous conflicting decl is
4309         both explicit and builtin, print the location of the explicit one.
4311 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4313         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
4314         c_parser_omp_distribute, c_parser_omp_teams,
4315         c_parser_omp_target, c_parser_omp_declare): Handle
4316         -fopenmp-simd.
4318 2013-11-03  Marek Polacek  <polacek@redhat.com>
4320         * c-decl.c (grokdeclarator): Add VLA instrumentation.
4322 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
4324         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
4325         check_dup_generic at the end, unless remove is true.
4326         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
4327         remove = true;.
4328         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
4330 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
4332         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
4333         with decl that is not pointer nor array.
4335 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4337         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
4338         a spawning function is found.
4339         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
4340         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
4341         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4342         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
4343         case.
4344         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
4345         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
4346         expr.
4347         (c_finish_return): Added a check to reject _Cilk_spawn in return
4348         expression.
4349         (build_cilk_spawn): New function.
4350         (build_cilk_sync): Likewise.
4351         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
4352         
4353 2013-10-27  Tobias Burnus  <burnus@net-b.de>
4355         PR other/33426
4356         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
4357         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
4358         (c_parser_statement_after_labels): Update calls.
4360 2013-10-24  Tobias Burnus  <burnus@net-b.de>
4362         PR other/33426
4363         * c-parser.c (c_parser_pragma, c_parser_for_statement):
4364         Handle PRAGMA_IVDEP.
4365         (c_parser_statement_after_labels): Update call.
4367 2013-10-24  Marek Polacek  <polacek@redhat.com>
4369         * c-parser.c (c_parser_struct_declaration): Add a comment.
4370         (c_parser_declarator): Don't allow _Alignas here.
4372 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
4374         * c-parser.c: Include omp-low.h.
4375         * c-typeck.c: Likewise.
4377 2013-10-17  Marek Polacek  <polacek@redhat.com>
4379         PR c/58267
4380         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
4381         Document syntax of the array-declarator.
4382         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
4383         are not permitted.
4384         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
4385         (c_parser_struct_declaration): Likewise.
4386         (c_parser_declarator): Likewise.
4387         (c_parser_direct_declarator_inner): Likewise.
4388         (c_parser_parameter_declaration): Likewise.
4389         (c_parser_type_name): Likewise.
4391 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
4393         * c-lang.h (current_omp_declare_target_attribute): New extern
4394         decl.
4395         * c-parser.c: Include c-lang.h.
4396         (struct c_parser): Change tokens to c_token *.
4397         Add tokens_buf field.  Change tokens_avail type to unsigned int.
4398         (c_parser_consume_token): If parser->tokens isn't
4399         &parser->tokens_buf[0], increment parser->tokens.
4400         (c_parser_consume_pragma): Likewise.
4401         (enum pragma_context): Add pragma_struct and pragma_param.
4402         (c_parser_external_declaration): Adjust
4403         c_parser_declaration_or_fndef caller.
4404         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
4405         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
4406         Adjust recursive call.
4407         (c_parser_struct_or_union_specifier): Use pragma_struct instead
4408         of pragma_external.
4409         (c_parser_parameter_declaration): Use pragma_param instead of
4410         pragma_external.
4411         (c_parser_compound_statement_nostart, c_parser_label,
4412         c_parser_for_statement): Adjust
4413         c_parser_declaration_or_fndef callers.
4414         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
4415         it through to c_parser_conditional_expression.
4416         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
4417         pass it through to c_parser_binary_expression.  Adjust recursive
4418         call.
4419         (c_parser_binary_expression): Remove prec argument, add
4420         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
4421         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
4422         binop matches it, use build2 instead of parser_build_binary_op.
4423         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
4424         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
4425         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
4426         Handle pragma_struct and pragma_param the same as pragma_external.
4427         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
4428         (c_parser_omp_variable_list): Parse array sections for
4429         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
4430         (c_parser_omp_clause_collapse): Fully fold collapse expression.
4431         (c_parser_omp_clause_reduction): Handle user defined reductions.
4432         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
4433         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
4434         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
4435         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
4436         c_parser_omp_clause_depend, c_parser_omp_clause_map,
4437         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
4438         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
4439         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
4440         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
4441         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
4442         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
4443         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
4444         (c_parser_omp_for_loop): Add CODE argument, pass it through
4445         to c_finish_omp_for.  Change last argument to cclauses,
4446         and adjust uses to grab parallel clauses from the array of all
4447         the split clauses.  Adjust c_parser_binary_expression,
4448         c_parser_declaration_or_fndef and c_finish_omp_for callers.
4449         (omp_split_clauses): New function.
4450         (c_parser_omp_simd): New function.
4451         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
4452         Allow the function to be called also when parsing combined constructs,
4453         and call c_parser_omp_simd when parsing for simd.
4454         (c_parser_omp_sections_scope): If section-sequence doesn't start with
4455         #pragma omp section, require exactly one structured-block instead of
4456         sequence of statements.
4457         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
4458         Allow the function to be called also when parsing combined constructs.
4459         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
4460         Allow the function to be called also when parsing combined
4461         constructs.
4462         (c_parser_omp_taskgroup, c_parser_omp_cancel,
4463         c_parser_omp_cancellation_point, c_parser_omp_distribute,
4464         c_parser_omp_teams, c_parser_omp_target_data,
4465         c_parser_omp_target_update, c_parser_omp_target,
4466         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
4467         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
4468         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
4469         (c_parser_omp_construct): Add p_name and mask vars.  Handle
4470         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
4471         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
4472         and c_parser_omp_sections callers.
4473         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
4474         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4475         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
4476         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
4477         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
4478         OMP_CLAUSE_DEPEND.
4479         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4480         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4481         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4482         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4483         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4484         * c-typeck.c: Include tree-inline.h.
4485         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4486         handle_omp_array_sections_1, handle_omp_array_sections,
4487         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4488         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4489         user defined reductions.
4490         (c_tree_equal): New function.
4491         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4492         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4493         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4494         c_check_omp_declare_reduction_r): New prototypes.
4495         * c-decl.c (current_omp_declare_target_attribute): New variable.
4496         (c_decl_attributes): New function.
4497         (start_decl, start_function): Use it instead of decl_attributes.
4498         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4499         c_omp_reduction_decl, c_omp_reduction_lookup,
4500         c_check_omp_declare_reduction_r): New functions.
4502 2013-09-25  Tom Tromey  <tromey@redhat.com>
4504         * Make-lang.in (c/gccspec.o): Remove.
4505         (CFLAGS-c/gccspec.o): New variable.
4506         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4507         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4508         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4510 2013-09-25  Tom Tromey  <tromey@redhat.com>
4512         * Make-lang.in (c/gccspec.o): Don't use subshell.
4514 2013-09-18  Marek Polacek  <polacek@redhat.com>
4516         PR sanitize/58443
4517         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4518         Remove unnecessary check.
4520 2013-09-18  Marek Polacek  <polacek@redhat.com>
4522         PR sanitizer/58411
4523         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4524         no_sanitize_undefined attribute.
4526 2013-09-13  Kai Tietz  <ktietz@redhat.com>
4528         PR target/57848
4529         * c-decl.c (c_builtin_function_ext_scope): Remove
4530         wrong assumption that it is never called on prexisting
4531         symbol.
4533 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
4535         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4537 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4539         * c-objc-common.c (c_tree_printer): Tidy.
4541 2013-08-30  Marek Polacek  <polacek@redhat.com>
4543         * c-typeck.c (build_binary_op): Add division by zero and shift
4544         instrumentation.
4546 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4547             Joseph Myers  <joseph@codesourcery.com>
4549         PR c/35649
4550         * c-typeck.c (c_common_type): Prefer double_type_node over
4551         other REAL_TYPE types with the same precision.
4552         (convert_arguments): Likewise.
4554 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4556         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4557         (c_initialize_diagnostics): Call a destructor for the early printer.
4559 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4561         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4562         printer initialization.
4564 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4566         PR c/57490
4567         * c-array-notation.c (fix_conditional_array_notations_1): Added a
4568         check for truth values.
4569         (expand_array_notation_exprs): Added truth values case.  Removed an
4570         unwanted else.  Added for-loop to walk through subtrees in default
4571         case.
4573 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4575         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
4577 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
4579         * c-parser.c (struct c_generic_association): Fix typo.
4581 2013-07-23  Tom Tromey  <tromey@redhat.com>
4582             Joseph Myers  <joseph@codesourcery.com>
4584         * c-parser.c (struct c_generic_association): New.
4585         (c_generic_association_d): New typedef.
4586         (c_parser_generic_selection): New function.
4587         (c_parser_postfix_expression): Handle RID_GENERIC.
4589 2013-07-13  Jason Merrill  <jason@redhat.com>
4591         PR c++/57793
4592         * c-decl.c (finish_struct): Check for too-large class.
4594 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
4596         PR c/57821
4597         * c-typeck.c (set_init_index): When folding, check for index overflow.
4599 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4601         * c-parser.c (c_parser_array_notation): Removed rejection of array
4602         notations in an array of function pointers.
4604 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4606         * c-array-notation.c (make_triplet_val_inv): New function.
4607         (create_cmp_incr): Likewise.
4608         (create_array_refs): Likewise.
4609         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
4610         Also modularized common parts between functions and called the function.
4611         (build_array_notation_expr): Likewise.
4612         (fix_conditional_array_notations_1): Likewise.
4613         (fix_array_notation_expr): Likewise.
4614         (fix_array_notation_call_expr): Likewise.
4616 2013-06-18  Marek Polacek  <polacek@redhat.com>
4618         PR c/57630
4619         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
4621 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4623         * c-array-notation.c (build_array_notation_expr): Reject array notation
4624         mismatch between LHS and RHS even inside a call_expr.  Also, removed
4625         a couple while statements that were dead code.
4627 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4629         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
4630         excessive precision expressions in function parameters.  Also removed
4631         couple unwanted while statements.
4633 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4635         * c-array-notation.c (expand_array_notation_exprs): Added
4636         ARRAY_NOTATION_REF case.
4637         
4638 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4640         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
4641         function to c-family/array-notation-common.c.
4642         (is_cilkplus_reduce_builtin): Likewise.
4643         (find_rank): Likewise.
4644         (extract_array_notation_exprs): Likewise.
4645         (replace_array_notations): Likewise.
4646         (find_inv_trees): Likewise.
4647         (replace_inv_trees): Likewise.
4648         (contains_array_notation_expr): Likewise.
4649         (find_correct_array_notation_type): Likewise.
4650         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4651         (struct inv_list): Moved this to c-family/array-notation-common.c.
4652         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4653         
4654 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4656         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4657         reduction functions outside the for-loop.  Added a check if the fundecl
4658         is non-NULL.  Finally, removed an unwanted if-statement, and made the
4659         body unconditional.
4661 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4663         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4664         condition of the if-statement matches the rank of else-block and then-
4665         block when array notations are used.
4666         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4667         expression after the entire function body is parsed.
4668         (c_parser_expr_no_commas): Delayed creating array notation expressions
4669         to the end of function parsing.
4670         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4671         whole if-statement instead of just the condition.
4672         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
4674 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4676         PR c/57474
4677         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4678         array to NULL_TREE if they are unused.  Also added a check for the
4679         field to be NULL before its fields are used in future.
4680         
4681 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4683         PR bootstrap/57450
4684         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4685         (build_array_notation_expr): Likewise.
4687 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4689         * c-typeck.c (build_array_ref): Added a check to see if array's
4690         index is greater than one.  If true, then emit an error.
4691         (build_function_call_vec): Exclude error reporting and checking
4692         for builtin array-notation functions.
4693         (convert_arguments): Likewise.
4694         (c_finish_return): Added a check for array notations as a return
4695         expression.  If true, then emit an error.
4696         (c_finish_loop): Added a check for array notations in a loop
4697         condition.  If true then emit an error.
4698         (lvalue_p): Added a ARRAY_NOTATION_REF case.
4699         (build_binary_op): Added a check for array notation expr inside
4700         op1 and op0.  If present, we call another function to find correct
4701         type.
4702         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4703         * c-parser.c (c_parser_compound_statement): Check if array
4704         notation code is used in tree, if so, then transform them into
4705         appropriate C code.
4706         (c_parser_expr_no_commas): Check if array notation is used in LHS
4707         or RHS, if so, then build array notation expression instead of
4708         regular modify.
4709         (c_parser_postfix_expression_after_primary): Added a check for
4710         colon(s) after square braces, if so then handle it like an array
4711         notation.  Also, break up array notations in unary op if found.
4712         (c_parser_direct_declarator_inner): Added a check for array
4713         notation.
4714         (c_parser_compound_statement): Added a check for array notation in
4715         a stmt.  If one is present, then expand array notation expr.
4716         (c_parser_if_statement): Likewise.
4717         (c_parser_switch_statement): Added a check for array notations in
4718         a switch statement's condition.  If true, then output an error.
4719         (c_parser_while_statement): Similarly, but for a while.
4720         (c_parser_do_statement): Similarly, but for a do-while.
4721         (c_parser_for_statement): Similarly, but for a for-loop.
4722         (c_parser_unary_expression): Check if array notation is used in a
4723         pre-increment or pre-decrement expression.  If true, then expand
4724         them.
4725         (c_parser_array_notation): New function.
4726         * c-array-notation.c: New file.
4727         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4728         
4729 2013-05-23  Mike Stump  <mikestump@comcast.net>
4731         * c-typeck.c (convert_for_assignment): Handle references to memory
4732         spaces better.
4734 2013-05-16  Jason Merrill  <jason@redhat.com>
4736         * Make-lang.in (cc1$(exeext)): Use link mutex.
4738 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4740         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4741         to simply use OPT_Wpointer_arith.
4742         (build_unary_op): Likewise.
4744 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
4746         PR c/19449
4747         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4748         argument.  If set, or it temporarily for parsing of the first
4749         argument into force_folding_builtin_constant_p.
4750         (c_parser_postfix_expression): Adjust callers.
4752 2013-03-21  Richard Biener  <rguenther@suse.de>
4754         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4755         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
4757 2013-02-12  Marek Polacek  <polacek@redhat.com>
4759         PR c/44938
4760         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4761         origtypes to NULL.
4763 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
4765         PR c/56078
4766         * c-typeck.c (set_nonincremental_init_from_string): If
4767         constructor_max_index is NULL, treat it as if tree_int_cst_lt
4768         returned false.
4769         (process_init_element): Likewise.
4771 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
4773         PR c++/55619
4774         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4775         argument, don't call default_function_array_conversion
4776         nor c_fully_fold here.
4777         (c_parser_asm_statement): Adjust callers.
4778         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4779         and outputs here, and call default_function_array_conversion
4780         on inputs that don't need to be addressable.
4782 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
4784         PR c/39464
4785         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4786         warning require that both c_common_unsigned_type as well as
4787         c_common_signed_type is the same for both mvl and mvr types.
4789 2012-11-16  Diego Novillo  <dnovillo@google.com>
4791         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4793         * c-common.c: Use new vec API in vec.h.
4794         * c-common.h: Likewise.
4795         * c-gimplify.c: Likewise.
4796         * c-pragma.c: Likewise.
4797         * c-pretty-print.c: Likewise.
4798         * c-pretty-print.h: Likewise.
4799         * c-semantics.c: Likewise.
4800         * c-decl.c: Likewise.
4801         * c-parser.c: Likewise.
4802         * c-tree.h: Likewise.
4803         * c-typeck.c: Likewise.
4805 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
4807         PR c++/54930
4808         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4810 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4812         PR c/53066
4813         * c-decl.c (warn_if_shadowing): Do not warn if a variable
4814         shadows a function, unless the variable is a function or a
4815         pointer-to-function.
4817 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
4819         PR c/54381
4820         * c-parser.c (struct c_tree_loc_pair): Removed.
4821         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4822         add location_t * and tree * arguments, fill in array of 3
4823         sizeof_arg trees and corresponding locs.
4824         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4825         c_parser_expr_list callers.
4826         (c_parser_postfix_expression_after_primary): Likewise.  Pass
4827         array of 3 sizeof_arg trees and locs (corresponding to first
4828         3 arguments) to sizeof_pointer_memaccess_warning.
4830 2012-10-09  Lawrence Crowl  <crowl@google.com>
4832         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4833         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4834         hash table.
4836 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
4838         PR c++/54194
4839         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4840         call.
4842 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
4844         PR c++/54427
4845         * c-typeck.c: Include c-common.h.
4846         (enum stv_conv): Moved to c-common.h.
4847         (scalar_to_vector): Moved to c-common.c.
4848         (build_binary_op): Adapt to scalar_to_vector's new prototype.
4849         * Make-lang.in: c-typeck.c depends on c-common.h.
4851 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
4853         * c-decl.c (c_write_global_declarations): Fix handling of
4854         -fdump-ada-spec*.
4856 2012-09-30  Sharad Singhai  <singhai@google.com>
4858         * c-decl.c (c_write_global_declarations): Use a different method
4859         to determine if the dump has ben initialized.
4861 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4863         PR c/54552
4864         * c-typeck.c (c_cast_expr): When casting to a type requiring
4865         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4866         c_fully_fold first.
4868 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4870         PR c/54103
4871         * c-typeck.c (build_unary_op): Pass original argument of
4872         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4873         any C_MAYBE_CONST_EXPR, if it has integer operands.
4874         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4875         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4876         to c_objc_common_truthvalue_conversion, then remove any
4877         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
4878         c_objc_common_truthvalue_conversion not
4879         c_common_truthvalue_conversion.
4880         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4881         call note_integer_operands for arguments with integer operands
4882         that are not integer constants.
4884 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
4886         PR c/54559
4887         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4888         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4890 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
4892         PR c/54428
4893         * c-convert.c (convert): Don't call fold_convert_loc if
4894         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4895         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
4896         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4898 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
4900         PR c/54355
4901         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4902         for nested and empty_ok arguments in the call to
4903         c_parser_declaration_or_fndef.
4905 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
4907         * c-tree.h (c_last_sizeof_arg): Declare.
4908         * c-parser.c (struct c_tree_loc_pair): New type.
4909         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
4910         non-NULL.
4911         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4912         (c_parser_postfix_expression_after_primary): Likewise.  Call
4913         sizeof_pointer_memaccess_warning if needed.
4914         (sizeof_ptr_memacc_comptypes): New function.
4915         * c-typeck.c (c_last_sizeof_arg): New global variable.
4916         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4918 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
4920         * c-lang.h (lang_decl): Add variable_size GTY option.
4922 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
4924         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4925         * Make-lang.in: Fix dependencies.
4927 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
4929         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4930         and add language Makefile hooks.
4931         * config-lang.in: New file.
4932         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4933         add the required "normal" config-lang.in rules.
4934         * c-lang.h: Moved from gcc/ to here.
4935         * c-tree.h: Likewise.
4936         * c-objc-common.c: Likewise.
4937         * c-objc-common.h: Likewise.
4938         * c-typeck.c: Likewise.
4939         * c-convert.c: Likewise.
4940         * c-lang.c: Likewise.
4941         * c-aux-info.c: Likewise.
4942         * c-errors.c: Likewise.
4943         * gccspec.c: Likewise.
4944         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
4945         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
4947 Copyright (C) 2012-2017 Free Software Foundation, Inc.
4949 Copying and distribution of this file, with or without modification,
4950 are permitted in any medium without royalty provided the copyright
4951 notice and this notice are preserved.