Daily bump.
[official-gcc.git] / gcc / c / ChangeLog
blob42e918ad518c50de7c88801dcf413a29c69e6045
1 2021-11-23  Jakub Jelinek  <jakub@redhat.com>
3         * c-typeck.c (c_clone_omp_udr): Don't initialize
4         id.transform_lang_insert_block.
6 2021-11-19  Martin Sebor  <msebor@redhat.com>
8         PR c++/33925
9         PR c/102867
10         * c-typeck.c (maybe_warn_for_null_address): Suppress warnings for
11         code resulting from macro expansion.
13 2021-11-19  Martin Liska  <mliska@suse.cz>
15         Revert:
16         2021-11-19  Martin Liska  <mliska@suse.cz>
18         * c-parser.c (add_debug_begin_stmt): Use option directly.
20 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
22         * c-decl.c (names_builtin_p): Handle RID_BUILTIN_ASSOC_BARRIER.
23         * c-parser.c (c_parser_postfix_expression): Likewise.
25 2021-11-18  Martin Liska  <mliska@suse.cz>
27         * c-parser.c (add_debug_begin_stmt): Use option directly.
29 2021-11-17  Martin Sebor  <msebor@redhat.com>
31         PR c/101702
32         * c-decl.c (get_parm_array_spec): Strip casts earlier and fold array
33         bounds before deciding if they're constant.
35 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
37         * c-parser.c (OMP_TARGET_CLAUSE_MASK): Add
38         PRAGMA_OMP_CLAUSE_THREAD_LIMIT.
40 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
42         * c-parser.c (c_parser_omp_clause_num_teams): Parse optional
43         lower-bound and store it into OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
44         Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead of
45         OMP_CLAUSE_NUM_TEAMS_EXPR.
46         (c_parser_omp_target): For OMP_CLAUSE_NUM_TEAMS evaluate before
47         combined target teams even lower-bound expression.
49 2021-11-11  Richard Biener  <rguenther@suse.de>
51         * gimple-parser.c: Shuffle bitmap.h include.
53 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
55         PR c/103031
56         * c-convert.c (c_convert): New function, based on convert.
57         (convert): Make into wrapper of c_convert.
58         (convert_init): New function.
59         * c-typeck.c (enum impl_conv): Add ic_init_const.
60         (convert_for_assignment): Handle ic_init_const like ic_init.  Add
61         new argument to convert_and_check call.
62         (digest_init): Pass ic_init_const to convert_for_assignment for
63         initializers required to be constant.
65 2021-11-02  Richard Sandiford  <richard.sandiford@arm.com>
67         * c-tree.h (c_simulate_record_decl): Declare.
68         * c-objc-common.h (LANG_HOOKS_SIMULATE_RECORD_DECL): Override.
69         * c-decl.c (c_simulate_record_decl): New function.
71 2021-10-22  Eric Gallager  <egallager@gcc.gnu.org>
73         PR other/102663
74         * Make-lang.in: Add dummy c.install-dvi target.
76 2021-10-15  Richard Biener  <rguenther@suse.de>
78         PR c/102763
79         * gimple-parser.c
80         (c_parser_gimple_postfix_expression_after_primary): Check
81         for a pointer do be dereferenced by ->.
83 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
85         * c-parser.c (c_finish_omp_declare_variant): Change call from
86         c_omp_check_context_selector to omp_check_context_selector. Change
87         call from c_omp_mark_declare_variant to omp_mark_declare_variant.
89 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
91         * c-parser.c (c_parser_omp_structured_block_sequence): New function.
92         (c_parser_omp_scan_loop_body): Use it.
93         (c_parser_omp_sections_scope): Likewise.
95 2021-10-07  Richard Biener  <rguenther@suse.de>
97         * c-typeck.c (lvalue_p): Also allow MEM_REF and TARGET_MEM_REF.
99 2021-10-05  Richard Biener  <rguenther@suse.de>
101         PR c/102605
102         * gimple-parser.c (c_parser_gimple_postfix_expression):
103         Accept more address _Literals.
105 2021-10-04  Marek Polacek  <polacek@redhat.com>
107         PR c++/97573
108         * c-typeck.c (parser_build_binary_op): Call do_warn_array_compare.
110 2021-10-01  Martin Sebor  <msebor@redhat.com>
112         PR c/102103
113         * c-typeck.c (maybe_warn_for_null_address): New function.
114         (build_binary_op): Call it.
116 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
117             Richard Biener  <rguenther@suse.de>
119         PR sanitizer/102515
120         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
121         for division even for SANITIZE_SI_OVERFLOW.
123 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
125         * c-parser.c (c_parser_omp_clause_order): Set
126         OMP_CLAUSE_ORDER_REPRODUCIBLE for explicit reproducible: modifier.
128 2021-09-28  Andrew Pinski  <apinski@marvell.com>
130         PR c/32122
131         * c-parser.c (c_parser_statement_after_labels): Pass
132         the c_expr instead of the tree to c_finish_goto_ptr.
133         * c-typeck.c (c_finish_goto_ptr): Change the second
134         argument type to c_expr.
135         * c-tree.h (c_finish_goto_ptr): Likewise.
136         Error out if the expression was not of a pointer type.
138 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
140         * c-parser.c (c_parser_omp_clause_allocate): Parse allocate clause
141         modifiers.
143 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
145         * c-parser.c (c_parser_omp_clause_order): Parse unconstrained
146         and reproducible modifiers.
147         (OMP_DISTRIBUTE_CLAUSE_MASK): Add order clause.
149 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
151         * c-parser.c (c_parser_omp_clause_default): Handle private and
152         firstprivate arguments, adjust diagnostics on unknown argument.
154 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
156         * c-parser.c (c_parser_omp_atomic): Reject atomic swap if capture
157         is true.
159 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
161         * c-parser.c (c_parser_conditional_expression): If omp_atomic_lhs and
162         cond.value is >, < or == with omp_atomic_lhs as one of the operands,
163         don't call build_conditional_expr, instead build a COND_EXPR directly.
164         (c_parser_binary_expression): Avoid calling parser_build_binary_op
165         if omp_atomic_lhs even in more cases for >, < or ==.
166         (c_parser_omp_atomic): Update function comment for OpenMP 5.1 atomics,
167         parse OpenMP 5.1 atomics and fail, compare and weak clauses, allow
168         acq_rel on atomic read/write and acq_rel/acquire clauses on update.
169         * c-typeck.c (build_binary_op): For flag_openmp only handle
170         MIN_EXPR/MAX_EXPR.
172 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
174         * c-parser.c (c_parser_omp_flush): Parse 'seq_cst' clause on 'flush'
175         directive.
177 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
179         * c-decl.c (enum deprecated_states): Add unavailable state.
180         (merge_decls): Copy unavailability.
181         (quals_from_declspecs): Handle unavailable case.
182         (start_decl): Amend the logic handling suppression of nested
183         deprecation states to include unavailability.
184         (smallest_type_quals_location): Amend comment.
185         (grokdeclarator): Handle the unavailable deprecation state.
186         (declspecs_add_type): Set TREE_UNAVAILABLE from the decl specs.
187         * c-tree.h (struct c_declspecs): Add unavailable_p.
188         * c-typeck.c (build_component_ref): Handle unavailability.
189         (build_external_ref): Likewise.
191 2021-09-01  Roger Sayle  <roger@nextmovesoftware.com>
192             Joseph Myers  <joseph@codesourcery.com>
194         PR c/79412
195         * c-decl.c (duplicate_decls): On significant mismatches, mark the
196         types of both (non-function) decls as error_mark_node, so that the
197         middle-end can see the code is malformed.
198         (free_attr_access_data): Don't process if the type has been set to
199         error_mark_node.
201 2021-08-31  Marcel Vollweiler  <marcel@codesourcery.com>
203         * c-parser.c (c_parser_omp_clause_device): Parse device-modifiers 'device_num'
204         and 'ancestor' in 'target device' clauses.
206 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
208         * c-parser.c (c_parser_omp_clause_num_tasks,
209         c_parser_omp_clause_grainsize): Parse the optional strict: modifier.
211 2021-08-22  Martin Uecker  <muecker@gwdg.de>
213         PR c/98397
214         * c-typeck.c (comp_target_types): Change pedwarn to pedwarn_c11
215         for pointers to arrays with qualifiers.
216         (build_conditional_expr): For C23 don't lose qualifiers for pointers
217         to arrays when the other pointer is a void pointer. Update warnings.
218         (convert_for_assignment): Update warnings for C2X when converting from
219         void* with qualifiers to a pointer to array with the same qualifiers.
221 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
223         * c-parser.c (c_parser_omp_error): New function.
224         (c_parser_pragma): Handle PRAGMA_OMP_ERROR.
226 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
228         * c-parser.c (c_parser_omp_clause_depend_sink): Reject spurious
229         comma at the end of list.
230         (c_parser_omp_requires): Likewise.
232 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
234         * c-parser.c (c_parser_omp_requires): Don't call
235         c_parser_peek_2nd_token and optionally consume token if current
236         token is CPP_EOF, CPP_PRAGMA_EOL or CPP_CLOSE_PAREN.
238 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
240         * c-parser.c (c_parser_omp_nothing): New function.
241         (c_parser_pragma): Handle PRAGMA_OMP_NOTHING.
243 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
245         * c-parser.c (c_parser_statement_after_labels): Add restart label
246         near the start of the function.  If c_parser_pragma returns false,
247         goto restart.
248         (c_parser_pragma): For PRAGMA_OMP_CANCELLATION_POINT return what
249         c_parser_omp_cancellation_point returned.  For PRAGMA_OMP_DECLARE
250         return what c_parser_omp_declare returned.  Return true instead of
251         false after emitting errors that the directive is not allowed in
252         pragma_stmt context.
253         (c_parser_omp_ordered): Return true instead of
254         false after emitting errors that the directive is not allowed in
255         pragma_stmt context.
256         (c_parser_omp_target_update): Likewise.
257         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data):
258         Change return type from tree to bool, return false if the
259         directive should be ignored in pragma_stmt contexts.
260         (c_parser_omp_target): Adjust callers of c_parser_omp_target_*_data,
261         return their result directly.
262         (c_parser_omp_cancellation_point): Change return type from void to
263         bool, return false if the directive should be ignored in pragma_stmt
264         contexts.
265         (c_parser_omp_declare): Likewise.
267 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
269         * c-parser.c (OMP_SCOPE_CLAUSE_MASK): Define.
270         (c_parser_omp_scope): New function.
271         (c_parser_omp_construct): Handle PRAGMA_OMP_SCOPE.
273 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
275         * c-parser.c (c_parser_omp_clause_name): Parse filter clause name.
276         (c_parser_omp_clause_filter): New function.
277         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FILTER.
278         (OMP_MASKED_CLAUSE_MASK): Define.
279         (c_parser_omp_masked): New function.
280         (c_parser_omp_parallel): Handle parallel masked.
281         (c_parser_omp_construct): Handle PRAGMA_OMP_MASKED.
282         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_FILTER.
284 2021-08-12  Martin Uecker  <muecker@gwdg.de>
286         PR c/101838
287         PR c/29970
288         * c-typeck.c (c_expr_sizeof_type): Evaluate
289         size expressions for structs of variable size.
291 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
293         * c-parser.c (c_parser_omp_clause_proc_bind): Accept
294         'primary' as alias for 'master'.
296 2021-08-10  Martin Uecker  <muecker@gwdg.de>
298         PR c/29970
299         * c-typeck.c (c_expr_sizeof_expr): Evaluate
300         size expressions for structs of variable size.
302 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
304         * c-decl.c (c_simulate_enum_decl): Pass vec<> by pointer.
305         * c-tree.h (c_simulate_enum_decl): Likewise.
307 2021-08-06  Martin Sebor  <msebor@redhat.com>
309         * c-parser.c (c_parser_declaration_or_fndef): Adjust by-value function
310         vec arguments to by-reference.
311         (c_finish_omp_declare_simd): Same.
312         (c_parser_compound_statement_nostart): Same.
313         (c_parser_for_statement): Same.
314         (c_parser_objc_methodprotolist): Same.
315         (c_parser_oacc_routine): Same.
316         (c_parser_omp_for_loop): Same.
317         (c_parser_omp_declare_simd): Same.
319 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
320             Joseph Myers  <joseph@codesourcery.com>
321             Cesar Philippidis  <cesar@codesourcery.com>
323         * c-parser.c (c_parser_omp_clause_name): Handle 'nohost'.
324         (c_parser_oacc_all_clauses): Handle 'PRAGMA_OACC_CLAUSE_NOHOST'.
325         (OACC_ROUTINE_CLAUSE_MASK): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
326         * c-typeck.c (c_finish_omp_clauses): Handle 'OMP_CLAUSE_NOHOST'.
328 2021-07-20  Martin Sebor  <msebor@redhat.com>
330         * c-tree.h (c_build_function_call_vec): Adjust by-value argument to
331         by-const-reference.
332         * c-typeck.c (c_build_function_call_vec): Same.
334 2021-07-15  Martin Sebor  <msebor@redhat.com>
336         PR c/101289
337         PR c/97548
338         * c-decl.c (get_parm_array_spec): Strip nops.
340 2021-07-06  Martin Sebor  <msebor@redhat.com>
342         * c-objc-common.c (c_tree_printer): Remove support for %G and %K.
344 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
346         PR c/101297
347         * c-parser.c (c_parser_omp_atomic): Consume comma only if it
348         appears before a CPP_NAME.
350 2021-06-25  Martin Sebor  <msebor@redhat.com>
352         * c-decl.c (pop_scope): Replace direct uses of TREE_NO_WARNING with
353         warning_suppressed_p, suppress_warning, and copy_no_warning.
354         (diagnose_mismatched_decls): Same.
355         (duplicate_decls): Same.
356         (grokdeclarator): Same.
357         (finish_function): Same.
358         (c_write_global_declarations_1): Same.
359         * c-fold.c (c_fully_fold_internal): Same.
360         * c-parser.c (c_parser_expr_no_commas): Same.
361         (c_parser_postfix_expression): Same.
362         * c-typeck.c (array_to_pointer_conversion): Same.
363         (function_to_pointer_conversion): Same.
364         (default_function_array_conversion): Same.
365         (convert_lvalue_to_rvalue): Same.
366         (default_conversion): Same.
367         (build_indirect_ref): Same.
368         (build_function_call_vec): Same.
369         (build_atomic_assign): Same.
370         (build_unary_op): Same.
371         (c_finish_return): Same.
372         (emit_side_effect_warnings): Same.
373         (c_finish_stmt_expr): Same.
374         (c_omp_clause_copy_ctor): Same.
376 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
378         PR c/101176
379         * c-parser.c (c_parser_has_attribute_expression): Set source range for
380         the result.
382 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
384         PR c/101171
385         * c-typeck.c (build_c_cast): Don't call note_integer_operands on
386         error_mark_node.
388 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
390         * c-parser.c (omp_split_clauses): Pass C_ORT_OMP_TARGET instead of
391         C_ORT_OMP for clauses on target construct.
392         (OMP_TARGET_CLAUSE_MASK): Add in_reduction clause.
393         (c_parser_omp_target): For non-combined target add
394         map (always, tofrom:) clauses for OMP_CLAUSE_IN_REDUCTION.  Pass
395         C_ORT_OMP_TARGET to c_finish_omp_clauses.
396         * c-typeck.c (handle_omp_array_sections): Adjust ort handling
397         for addition of C_ORT_OMP_TARGET and simplify, mapping clauses are
398         never present on C_ORT_*DECLARE_SIMD.
399         (c_finish_omp_clauses): Likewise.  Handle OMP_CLAUSE_IN_REDUCTION
400         on C_ORT_OMP_TARGET, set OMP_CLAUSE_MAP_IN_REDUCTION on
401         corresponding map clauses.
403 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
405         PR inline-asm/100785
406         * c-typeck.c (c_mark_addressable): Diagnose trying to make
407         bit-fields addressable.
409 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
411         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN if DECL_ALIGN is
412         similar.
414 2021-06-14  Tobias Burnus  <tobias@codesourcery.com>
416         PR c/100913
417         * c-parser.c (c_parser_omp_clause_affinity): No need to set iterator
418         var in the error case.
420 2021-06-07  Eric Botcazou  <ebotcazou@adacore.com>
422         PR c/100920
423         * c-typeck.c (convert_for_assignment): Test fndecl_built_in_p to
424         spot built-in functions.
426 2021-06-06  Jakub Jelinek  <jakub@redhat.com>
428         PR c/100902
429         * c-parser.c (c_parser_omp_target): Call c_omp_adjust_map_clauses
430         even when target is combined with other constructs.
432 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
434         PR c/100920
435         * c-decl.c (finish_struct): Fix thinko in previous change.
436         * c-typeck.c (convert_for_assignment): Do not warn on pointer
437         assignment and initialization for storage order purposes if the
438         RHS is a call to a DECL_IS_MALLOC function.
440 2021-06-04  Martin Sebor  <msebor@redhat.com>
442         PR c/100783
443         * c-objc-common.c (print_type): Handle erroneous types.
445 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
447         PR c++/100859
448         * c-typeck.c (c_finish_omp_clauses): Move OMP_CLAUSE_AFFINITY
449         after depend only cases.
451 2021-05-31  Richard Biener  <rguenther@suse.de>
453         PR c++/88601
454         * c-decl.c (names_builtin_p): Handle RID_BUILTIN_SHUFFLEVECTOR.
455         * c-parser.c (c_parser_postfix_expression): Likewise.
457 2021-05-28  Richard Biener   <rguenther@suse.de>
459         PR c/100803
460         * gimple-parser.c (c_parser_gimple_paren_condition): Diagnose
461         invalid if conditions.
463 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
465         PR middle-end/99928
466         * c-typeck.c (handle_omp_array_sections): Copy OMP_CLAUSE_MAP_IMPLICIT.
467         (c_finish_omp_clauses): Move not just OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
468         marked clauses last, but also OMP_CLAUSE_MAP_IMPLICIT.  Add
469         map_firstprivate_head bitmap, set it for GOMP_MAP_FIRSTPRIVATE_POINTER
470         maps and silently remove OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT if it is
471         present too.  For OMP_CLAUSE_MAP_IMPLICIT silently remove the clause
472         if present in map_head, map_field_head or map_firstprivate_head
473         bitmaps.
475 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
477         * c-parser.c (c_parser_omp_clause_affinity): New.
478         (c_parser_omp_clause_name, c_parser_omp_variable_list,
479         c_parser_omp_all_clauses, OMP_TASK_CLAUSE_MASK): Handle affinity clause.
480         * c-typeck.c (handle_omp_array_sections_1, handle_omp_array_sections,
481         c_finish_omp_clauses): Likewise.
483 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
485         PR c/100653
486         * c-decl.c (finish_struct): Warn for a union containing an aggregate
487         field with a differing scalar storage order.
489 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
491         PR middle-end/99928
492         * c-typeck.c (c_finish_omp_clauses): Move firstprivate clauses with
493         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT to the end of the chain.  Don't error
494         if a decl is mentioned both in map clause and in such firstprivate
495         clause unless OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET is also set.
497 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
499         PR middle-end/99928
500         * c-parser.c (c_parser_omp_master): Set OMP_MASTER_COMBINED on
501         master when combined with taskloop.
502         (c_parser_omp_parallel): Don't set OMP_PARALLEL_COMBINED on
503         parallel master when not combined with taskloop.
505 2021-05-18  Richard Biener  <rguenther@suse.de>
507         PR c/100522
508         * gimple-parser.c (c_parser_gimple_postfix_expression_after_primary):
509         Diagnose calls to non-functions.
510         (c_parser_gimple_statement): Diagnose unexpected assignment RHS.
512 2021-05-17  Richard Biener  <rguenther@suse.de>
514         PR c/100625
515         * gimple-parser.c (c_parser_gimple_label): Avoid building
516         a GIMPLE label with NULL label decl.
518 2021-05-13  Martin Sebor  <msebor@redhat.com>
520         PR c/100550
521         * c-decl.c (get_parm_array_spec): Avoid erroneous VLA bounds.
523 2021-05-12  Marcel Vollweiler  <marcel@codesourcery.com>
525         * c-parser.c (c_parser_omp_clause_map): Support map-type-modifier
526         'close'.
528 2021-05-10  Martin Liska  <mliska@suse.cz>
530         * c-aux-info.c (affix_data_type): Use startswith
531         function instead of strncmp.
532         * c-typeck.c (build_function_call_vec): Likewise.
533         * gimple-parser.c (c_parser_gimple_parse_bb_spec): Likewise.
535 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
537         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Do not issue an error
538         on the address of a pointer field in a record with reverse SSO.
540 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
542         * c-typeck.c (c_finish_omp_clauses): Accept float + complex
543         for || and && reductions.
545 2021-04-29  Joseph Myers  <joseph@codesourcery.com>
547         * c-typeck.c (function_types_compatible_p): For C2X, treat
548         unprototyped function as compatible with non-variadic prototyped
549         function even if some argument types are changed by the default
550         argument promotions.
552 2021-04-15  Martin Sebor  <msebor@redhat.com>
554         PR c/99420
555         PR c/99972
556         * c-decl.c (pushdecl): Always propagate type attribute.
558 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
560         PR c/98852
561         * c-typeck.c (c_common_type): Do not drop attributes that
562         affect type identity.
564 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
566         PR c/99990
567         * c-decl.c (finish_decl): Don't overwrite TREE_TYPE of
568         error_mark_node.
570 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
572         PR c++/99565
573         * c-typeck.c (build_conditional_expr): Pass OEP_ADDRESS_OF_SAME_FIELD
574         to operand_equal_p.
576 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
578         PR c/99588
579         * c-typeck.c (mark_exp_read): Recognize what build_atomic_assign
580         with modifycode NOP_EXPR produces and mark the _Atomic var as read
581         if found.
582         (build_atomic_assign): For modifycode of NOP_EXPR, use COMPOUND_EXPRs
583         rather than STATEMENT_LIST.  Otherwise call mark_exp_read on lhs.
584         Set TREE_SIDE_EFFECTS on the TARGET_EXPR.
586 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
588         PR c++/99509
589         * c-decl.c (finish_decl): For 'omp declare target implicit' vars,
590         ensure that the varpool node is marked as offloadable.
592 2021-03-05  Tobias Burnus  <tobias@codesourcery.com>
594         PR c/99137
595         * c-parser.c (c_parser_oacc_clause_async): Reject comma expressions.
597 2021-02-24  Martin Sebor  <msebor@redhat.com>
599         PR middle-end/97172
600         * c-decl.c (free_attr_access_data): Clear attribute arg spec.
602 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
604         PR c/99136
605         * c-typeck.c (c_finish_return): Don't wrap retval into
606         EXCESS_PRECISION_EXPR in functions that return void.
608 2021-02-11  Marek Polacek  <polacek@redhat.com>
610         * c-parser.c (c_parser_if_statement): Use vec_free.
612 2021-02-04  Martin Sebor  <msebor@redhat.com>
614         PR c/97882
615         * c-decl.c (locate_old_decl): Add type to diagnostic output.
616         (diagnose_mismatched_decls): Same.
617         (start_function): Introduce temporaries for better readability.
618         * c-typeck.c (comptypes_internal): Only consider complete enum
619         types in comparisons with integers.
621 2021-02-01  Martin Sebor  <msebor@redhat.com>
623         PR middle-end/97172
624         * c-decl.c (free_attr_access_data): New function.
625         (c_parse_final_cleanups): Call free_attr_access_data.
627 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
629         * c-parser.c (c_parser_omp_clause_detach): New.
630         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH clause.
631         (OMP_TASK_CLAUSE_MASK): Add mask for PRAGMA_OMP_CLAUSE_DETACH.
632         * c-typeck.c (c_finish_omp_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH
633         clause.  Prevent use of detach with mergeable and overriding the
634         data sharing mode of the event handle.
636 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
638         * c-typeck.c (c_finish_omp_clauses): For reduction build array with
639         unqualified element type and then call c_build_qualified_type on the
640         ARRAY_TYPE.
642 2021-01-07  Richard Biener  <rguenther@suse.de>
644         * gimple-parser.c (c_parser_gimple_compound_statement): Only
645         reallocate loop array if it is too small.
647 2020-12-16  Martin Uecker  <muecker@gwdg.de>
649         PR c/98047
650         * c-typeck.c (build_modify_expr): Drop qualifiers.
652 2020-12-16  Martin Uecker  <muecker@gwdg.de>
654         PR c/98260
655         * c-parser.c (c_parser_expression): Look into
656         nop expression when marking expressions as read.
658 2020-12-14  Martin Liska  <mliska@suse.cz>
660         PR sanitizer/98204
661         * c-typeck.c (pointer_diff): Do not emit a top-level
662         sanitization.
663         (build_binary_op): Likewise.
665 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
667         * c-parser.c (c_parser_omp_allocate): New.
668         (c_parser_omp_construct): Call it.
670 2020-12-09  Richard Biener  <rguenther@suse.de>
672         PR c/98200
673         * gimple-parser.c (c_parser_gimple_postfix_expression): Return
674         early on error.
676 2020-12-07  Martin Uecker  <muecker@gwdg.de>
678         PR c/97981
679         * c-typeck.c (convert_lvalue_to_rvalue): Move the code
680         that drops qualifiers to the end of the function.
682 2020-11-26  Martin Uecker  <muecker@gwdg.de>
684         PR c/65455
685         PR c/92935
686         * c-parser.c (c_parser_declaration_or_fndef): Remove
687         redundant code to drop qualifiers of _Atomic types for __auto_type.
688         (c_parser_typeof_specifier): Do not drop qualifiers of _Atomic
689         types for __typeof__.
691 2020-11-24  Jakub Jelinek  <jakub@redhat.com>
693         PR c/97958
694         * c-parser.c (c_parser_binary_expression): For omp atomic binary
695         expressions, use make_node instead of build2 to avoid checking build2
696         performs.
698 2020-11-23  Joseph Myers  <joseph@codesourcery.com>
700         PR c/95630
701         * c-typeck.c (build_binary_op): Use pedwarn_c99 with OPT_Wpedantic
702         for comparisons of complete and incomplete pointers.
704 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
706         * c-aux-info.c (gen_type): Support opaque types.
708 2020-11-20  Martin Sebor  <msebor@redhat.com>
710         PR middle-end/97879
711         * c-decl.c (start_function): Set ATTR_FLAG_INTERNAL in flags.
713 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
715         PR other/97911
716         * Make-lang.in (c.serial): Change from goal to a variable.
717         (.PHONY): Drop c.serial.
719 2020-11-20  Martin Uecker  <muecker@gwdg.de>
721         * c-typeck.c (convert_lvalue_to_rvalue): Drop qualifiers.
723 2020-11-19  Jakub Jelinek  <jakub@redhat.com>
725         PR c/97860
726         * c-decl.c (get_parm_array_spec): Bail out of nelts is
727         error_operand_p.
729 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
731         * Make-lang.in (c.serial): New goal.
732         (.PHONY): Add c.serial c.prev.
733         (cc1$(exeext)): Call LINK_PROGRESS.
735 2020-11-13  Vladimir N. Makarov  <vmakarov@redhat.com>
737         * c-parser.c (c_parser_asm_statement): Parse outputs for asm
738         goto too.
739         * c-typeck.c (build_asm_expr): Remove an assert checking output
740         absence for asm goto.
742 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
744         * c-typeck.c (c_finish_omp_clauses): Don't clear
745         OMP_CLAUSE_REDUCTION_INSCAN unless reduction_seen == -2.
747 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
749         PR objc/77404
750         * c-parser.c (c_parser_objc_class_definition): Pass the
751         location of the class name to the interface declaration.
753 2020-11-10  Strager Neds  <strager.nds@gmail.com>
755         * c-decl.c (merge_decls): Use new overload of
756         set_decl_section_name.
758 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
760         * c-parser.c (c_parser_omp_target_data): Add use of
761         new c_omp_adjust_map_clauses function. Add GOMP_MAP_ATTACH_DETACH as
762         handled map clause kind.
763         (c_parser_omp_target_enter_data): Likewise.
764         (c_parser_omp_target_exit_data): Likewise.
765         (c_parser_omp_target): Likewise.
766         * c-typeck.c (handle_omp_array_sections): Adjust COMPONENT_REF case to
767         use GOMP_MAP_ATTACH_DETACH map kind for C_ORT_OMP region type.
768         (c_finish_omp_clauses): Adjust bitmap checks to allow struct decl and
769         same struct field access to co-exist on OpenMP construct.
771 2020-11-07  Martin Uecker  <muecker@gwdg.de>
773         * c-parser.c (c_parser_label): Implement mixing of labels and code.
774         (c_parser_all_labels): Likewise.
776 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
778         * c-parser.c (c_parser_objc_at_property_declaration):
779         Improve parsing fidelity. Associate better location info
780         with @property attributes.  Clean up the interface to
781         objc_add_property_declaration ().
783 2020-11-06  Nathan Sidwell  <nathan@acm.org>
785         * c-decl.c (diagnose_mismatched_decls): Rename
786         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
787         (warn_if_shadowing, implicitly_declare, names_builtin_p)
788         (collect_source_refs): Likewise.
789         * c-typeck.c (inform_declaration, inform_for_arg)
790         (convert_for_assignment): Likewise.
792 2020-11-06  Tobias Burnus  <tobias@codesourcery.com>
794         * c-parser.c (c_parser_omp_atomic): Add openacc parameter and update
795         OpenACC matching.
796         (c_parser_omp_construct): Update call.
798 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
800         PR c++/97670
801         * c-typeck.c (c_finish_omp_clauses): Look through array reductions to
802         find underlying decl to clear in the aligned_head bitmap.
804 2020-11-04  Joseph Myers  <joseph@codesourcery.com>
806         * c-decl.c (handle_nodiscard_attribute): New.
807         (std_attribute_table): Add nodiscard.
808         * c-parser.c (c_parser_std_attribute): Expect argument to
809         nodiscard attribute to be a string.  Do not special-case ignoring
810         nodiscard.
811         * c-typeck.c (maybe_warn_nodiscard): New.
812         (build_compound_expr, emit_side_effect_warnings): Call
813         maybe_warn_nodiscard.
814         (c_process_expr_stmt, c_finish_stmt_expr): Also call
815         emit_side_effect_warnings if warn_unused_result.
817 2020-10-29  Asher Gordon  <AsDaGo@posteo.net>
819         * c-typeck.c (free_all_tagged_tu_seen_up_to): Replace free
820         with XDELETE.
821         (finish_init): Likewise.
822         (pop_init_level): Likewise.
824 2020-10-28  Joseph Myers  <joseph@codesourcery.com>
826         * c-decl.c (store_parm_decls_newstyle): Use pedwarn_c11 not
827         error_at for omitted parameter name.
829 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
831         * c-parser.c (c_parser_omp_clause_name): Handle allocate.
832         (c_parser_omp_clause_allocate): New function.
833         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ALLOCATE.
834         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
835         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK,
836         OMP_TASK_CLAUSE_MASK, OMP_TASKGROUP_CLAUSE_MASK,
837         OMP_DISTRIBUTE_CLAUSE_MASK, OMP_TEAMS_CLAUSE_MASK,
838         OMP_TARGET_CLAUSE_MASK, OMP_TASKLOOP_CLAUSE_MASK): Add
839         PRAGMA_OMP_CLAUSE_ALLOCATE.
840         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ALLOCATE.
842 2020-10-27  Joseph Myers  <joseph@codesourcery.com>
844         * c-parser.c (c_parser_std_attribute_specifier): Allow duplicate
845         standard attributes.
847 2020-10-23  Marek Polacek  <polacek@redhat.com>
849         PR c++/91741
850         * c-parser.c (c_parser_binary_expression): Implement -Wsizeof-array-div.
851         (c_parser_postfix_expression): Set PAREN_SIZEOF_EXPR.
852         (c_parser_expr_list): Handle PAREN_SIZEOF_EXPR like SIZEOF_EXPR.
853         * c-tree.h (char_type_p): Declare.
854         * c-typeck.c (char_type_p): No longer static.
856 2020-10-23  Martin Sebor  <msebor@redhat.com>
858         PR middle-end/97552
859         * c-decl.c (get_parm_array_spec): Handle static VLA parameters.
861 2020-09-19  Martin Sebor  <msebor@redhat.com>
863         PR c/50584
864         * c-decl.c (lookup_last_decl): Define new function.
865         (c_decl_attributes): Call it.
866         (start_decl): Add argument and use it.
867         (finish_decl): Call build_attr_access_from_parms and decl_attributes.
868         (get_parm_array_spec): Define new function.
869         (push_parm_decl): Call get_parm_array_spec.
870         (start_function): Call warn_parm_array_mismatch.  Build attribute
871         access and add it to current function.
872         * c-parser.c (c_parser_declaration_or_fndef): Diagnose mismatches
873         in forms of array parameters.
874         * c-tree.h (start_decl): Add argument.
876 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
878         * c-decl.c (c_break_label, c_cont_label): Delete, and replace
879         with...
880         (in_statement): New.
881         (start_function): Adjust for above change.
882         (c_push_function_context, c_pop_function_context): Likewise.
883         * c-lang.h (struct language_function): Likewise.
884         * c-objc-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
885         * c-parser.c (objc_foreach_break_label, objc_foreach_continue_label):
886         New.
887         (c_parser_statement_after_labels): Adjust calls to c_finish_bc_stmt.
888         (c_parser_switch_statement): Adjust break/switch context handling
889         and calls to renamed functions.
890         (c_parser_while_statement): Adjust break/switch context handling and
891         build a WHILE_STMT.
892         (c_parser_do_statement): Ditto, with DO_STMT respectively.
893         (c_parser_for_statement): Ditto, with FOR_STMT respectively.
894         (c_parser_omp_for_loop): Adjust break/switch context handling.
895         * c-tree.h (c_break_label, c_cont_label): Delete.
896         (IN_SWITCH_STMT, IN_ITERATION_STMT): Define.
897         (IN_OMP_BLOCK, IN_OMP_FOR, IN_OBJC_FOREACH): Define.
898         (in_statement, switch_statement_break_seen_p): Declare.
899         (c_start_case, c_finish_case): Renamed to...
900         (c_start_switch, c_finish_switch).
901         (c_finish_bc_stmt): Adjust arguments.
902         * c-typeck.c (build_function_call_vec): Don't try to print
903         statements with %qE format.
904         (struct c_switch):  Rename switch_expr field to switch_stmt.
905         Add break_stmt_seen_p field.
906         (c_start_case): Rename to c_start_switch.  Build a SWITCH_STMT
907         instead of a SWITCH_EXPR.  Update for changes to struct c_switch.
908         (do_case): Update for changes to struct c_switch.
909         (c_finish_case): Rename to c_finish_switch.  Update for changes to
910         struct c_switch and change of representation from SWITCH_EXPR to
911         SWITCH_STMT.
912         (c_finish_loop): Delete.
913         (c_finish_bc_stmt): Update to reflect changes to break/continue
914         state representation.  Build a BREAK_STMT or CONTINUE_STMT instead
915         of a GOTO_EXPR except for objc foreach loops.
917 2020-09-01  Jakub Jelinek  <jakub@redhat.com>
919         PR c++/96867
920         * c-typeck.c (handle_omp_array_sections_1): Test C_ARRAY_PARAMETER
921         only on PARM_DECLs.
923 2020-08-28  Martin Sebor  <msebor@redhat.com>
925         PR c/96596
926         * c-decl.c (match_builtin_function_types): Avoid dealing with erroneous
927         argument type.
929 2020-08-27  Martin Liska  <mliska@suse.cz>
931         * gimple-parser.c (c_parser_gimple_compound_statement): Set exact argument of a vector
932         growth function to true.
934 2020-08-25  Tobias Burnus  <tobias@codesourcery.com>
936         PR c/96678
937         * c-typeck.c (handle_omp_array_sections_1): Talk about
938         array function parameter in the error message.
940 2020-08-18  Jakub Jelinek  <jakub@redhat.com>
942         PR c/96571
943         * c-parser.c (c_parser_generic_selection): Change match_found from bool
944         to int, holding index of the match.  Call mark_exp_read on the selector
945         expression and on expressions other than the selected one.
947 2020-08-01  Richard Sandiford  <richard.sandiford@arm.com>
949         PR c/96377
950         * c-typeck.c (process_init_element): Split test for whether to
951         recurse into a record, union or array into...
952         (initialize_elementwise_p): ...this new function.  Don't recurse
953         into a vector type if the initialization value is also a vector.
955 2020-07-31  Richard Biener  <rguenther@suse.de>
957         PR debug/96383
958         * c-objc-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG):
959         Define to c_common_finalize_early_debug.
961 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
963         * c-parser.c (c_parser_omp_clause_hint): Require nonnegative hint clause.
964         (c_parser_omp_critical): Permit hint(0) clause without named critical.
965         (c_parser_omp_construct): Don't assert if error_mark_node is returned.
967 2020-07-21  Sunil K Pandey  <skpgkp2@gmail.com>
969         PR target/95237
970         * c-decl.c (finish_decl): Call target hook
971         lower_local_decl_alignment to lower local decl alignment.
973 2020-07-09  Julian Brown  <julian@codesourcery.com>
974             Thomas Schwinge  <thomas@codesourcery.com>
976         PR middle-end/95270
977         * c-typeck.c (c_finish_omp_clauses): Set OMP_CLAUSE_SIZE (bias) to zero
978         for standalone attach/detach clauses.
980 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
982         * c-typeck.c (convert_for_assignment): If -Wscalar-storage-order is
983         set, warn for conversion between pointers that point to incompatible
984         scalar storage orders.
986 2020-07-07  Kaipeng Zhou  <zhoukaipeng3@huawei.com>
988         * c-parser.c (c_parser_statement_after_labels): Pass correct
989         parameters to c_parser_do_statement.
991 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
993         * c-parser.c (c_parser_expr_no_commas): Save, clear and restore
994         c_in_omp_for.
995         (c_parser_omp_for_loop): Set c_in_omp_for around some calls to avoid
996         premature c_fully_fold.  Defer explicit c_fully_fold calls to after
997         c_finish_omp_for.
998         * c-tree.h (c_in_omp_for): Declare.
999         * c-typeck.c (c_in_omp_for): Define.
1000         (build_modify_expr): Avoid c_fully_fold if c_in_omp_for.
1001         (digest_init): Likewise.
1002         (build_binary_op): Likewise.
1004 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
1006         * c-parser.c (c_parser_omp_clause_schedule): Reject modifier separated
1007         from kind by comma rather than colon.
1009 2020-06-05  Mark Wielaard  <mark@klomp.org>
1011         * c-decl.c (implicit_decl_warning): When warned and olddecl is
1012         an undeclared builtin, then add a fixit header hint, if found.
1013         (implicitly_declare): Add OPT_Wbuiltin_declaration_mismatch to
1014         warning_at about implicit builtin declaration type mismatch.
1016 2020-06-03  Mark Wielaard  <mark@klomp.org>
1018         * c-parser.c (struct c_parser): Add seen_string_literal
1019         bitfield.
1020         (c_parser_consume_token): Reset seen_string_literal.
1021         (c_parser_error_richloc): Add name_hint if seen_string_literal
1022         and next token is a CPP_NAME and we have a missing header
1023         suggestion for the name.
1024         (c_parser_string_literal): Set seen_string_literal.
1026 2020-06-03  Mark Wielaard  <mark@klomp.org>
1028         * c-parser.c (c_parser_postfix_expression_after_primary): Add
1029         scope with matching_parens after CPP_OPEN_PAREN.
1031 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
1033         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Redefine.
1035 2020-05-28  Nicolas Bértolo  <nicolasbertolo@gmail.com>
1037         * Make-lang.in: Remove extra slash.
1039 2020-05-19  Martin Liska  <mliska@suse.cz>
1041         * c-parser.c: Fix typo.
1043 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
1045         * c-parser.c (c_parser_omp_target): Set cfun->has_omp_target.
1047 2020-05-07  Richard Biener  <rguenther@suse.de>
1049         PR middle-end/94703
1050         * gimple-parser.c (c_parser_parse_ssa_name): Do not set
1051         DECL_GIMPLE_REG_P.
1053 2020-04-30  Jakub Jelinek  <jakub@redhat.com>
1055         PR c/94842
1056         * c-decl.c (set_labels_context_r): In addition to context-less
1057         LABEL_DECLs adjust also LABEL_DECLs with context equal to
1058         parent function if any.
1059         (store_parm_decls): Adjust comment.
1061 2020-04-19  Jakub Jelinek  <jakub@redhat.com>
1063         PR objc/94637
1064         * c-parser.c (c_parser_objc_selector_arg): Handle CPP_SCOPE like
1065         two CPP_COLON tokens.
1067 2020-04-17  Jakub Jelinek  <jakub@redhat.com>
1069         PR other/94629
1070         * c-parser.c (c_parser_oacc_routine): Remove redundant assignment
1071         to data.clauses.
1073 2020-04-15  Jakub Jelinek  <jakub@redhat.com>
1075         PR c/94593
1076         * c-parser.c (c_parser_pragma) <case PRAGMA_OMP_REQUIRES>: Reject
1077         requires directive when not at file scope.
1079 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
1081         PR middle-end/94120
1082         * c-decl.c (c_check_in_current_scope): New function.
1083         * c-tree.h (c_check_in_current_scope): Declare it.
1084         * c-parser.c (c_parser_oacc_declare): Add check that variables
1085         are declared in the same scope as the directive. Fix handling
1086         of namespace vars.
1088 2020-04-07  Jakub Jelinek  <jakub@redhat.com>
1090         PR c++/94512
1091         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
1092         if c_parser_omp_master succeeded.
1094 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
1096         PR gcov-profile/94029
1097         PR c/94239
1098         * c-parser.c (c_parser_declaration_or_fndef): Initialize endloc to
1099         the function_start_locus location.  Don't do that afterwards for the
1100         __GIMPLE body parsing.
1102 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
1104         PR gcov-profile/94029
1105         * c-tree.h (finish_function): Add location_t argument defaulted to
1106         input_location.
1107         * c-parser.c (c_parser_compound_statement): Add endlocp argument and
1108         set it to the locus of closing } if non-NULL.
1109         (c_parser_compound_statement_nostart): Return locus of closing }.
1110         (c_parser_parse_rtl_body): Likewise.
1111         (c_parser_declaration_or_fndef): Propagate locus of closing } to
1112         finish_function.
1113         * c-decl.c (finish_function): Add end_loc argument, use it instead of
1114         input_location to set function_end_locus.
1116 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
1118         PR c/94172
1119         * c-tree.h (C_TYPE_INCOMPLETE_VARS): Define to TYPE_LANG_SLOT_1
1120         instead of TYPE_VFIELD, and support it on {RECORD,UNION,ENUMERAL}_TYPE.
1121         (TYPE_ACTUAL_ARG_TYPES): Check that it is only used on FUNCTION_TYPEs.
1122         * c-decl.c (pushdecl): Push C_TYPE_INCOMPLETE_VARS also to
1123         ENUMERAL_TYPEs.
1124         (finish_incomplete_vars): New function, moved from finish_struct.  Use
1125         relayout_decl instead of layout_decl.
1126         (finish_struct): Remove obsolete comment about C_TYPE_INCOMPLETE_VARS
1127         being TYPE_VFIELD.  Use finish_incomplete_vars.
1128         (finish_enum): Clear C_TYPE_INCOMPLETE_VARS.  Call
1129         finish_incomplete_vars.
1130         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
1131         also on ENUMERAL_TYPEs.
1133 2020-03-16  Jakub Jelinek  <jakub@redhat.com>
1135         PR c/94179
1136         * c-fold.c (c_fully_fold_internal): Handle MEM_REF.
1138 2020-03-13  Martin Sebor  <msebor@redhat.com>
1140         PR c/94040
1141         * c-decl.c (builtin_structptr_type_count): New constant.
1142         (match_builtin_function_types): Reject decls that are incompatible
1143         in types pointed to by pointers.
1144         (diagnose_mismatched_decls): Adjust comments.
1146 2020-03-05  Joseph Myers  <joseph@codesourcery.com>
1148         PR c/93577
1149         * c-typeck.c (pop_init_level): Do not diagnose initializers as
1150         empty when initialized type is error_mark_node.
1151         (set_designator, process_init_element): Ignore initializers for
1152         elements of a variable-size type or of error_mark_node.
1154 2020-03-01  Martin Sebor  <msebor@redhat.com>
1156         PR middle-end/93926
1157         * c-decl.c (types_close_enough_to_match): New function.
1158         (match_builtin_function_types):
1159         (diagnose_mismatched_decls): Add missing inform call to a warning.
1161 2020-03-01  Martin Sebor  <msebor@redhat.com>
1163         PR c/93812
1164         * c-typeck.c (build_functype_attribute_variant): New function.
1165         (composite_type): Call it.
1167 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
1169         PR other/93912
1170         * gimple-parser.c (c_parser_gimple_parse_bb_spec_edge_probability):
1171         Rename last argument from probablity to probability.
1173 2020-02-13  Jakub Jelinek  <jakub@redhat.com>
1175         PR c/93576
1176         * c-decl.c (grokdeclarator): If this_size_varies, only push size into
1177         *expr if it has side effects.
1179 2020-01-30  Jeff Law  <law@redhat.com>
1181         PR c/88660
1182         * c-parser.c (c_parser_switch_statement): Make sure to request
1183         marking the switch expr as used.
1185 2020-01-22  Joseph Myers  <joseph@codesourcery.com>
1187         PR c/93348
1188         * c-typeck.c (build_c_cast): Call remove_c_maybe_const_expr on
1189         argument with integer operands.
1191 2020-01-16  Kerem Kat  <keremkat@gmail.com>
1193         PR c/92833
1194         * c-parser.c (c_parser_consume_token): Fix peeked token stack pop
1195         to support 4 available tokens.
1197 2020-01-15  Joseph Myers  <joseph@codesourcery.com>
1199         PR c/93072
1200         * c-decl.c (pushdecl): Use TREE_PUBLIC, not DECL_EXTERNAL, to
1201         determine whether to set DECL_CONTEXT.
1203 2020-01-13  Joseph Myers  <joseph@codesourcery.com>
1205         PR c/93241
1206         * c-typeck.c (build_c_cast): Check for expressions with integer
1207         operands that can occur in an unevaluated part of an integer
1208         constant expression and call note_integer_operands as needed.
1210 2019-01-08  Richard Biener  <rguenther@suse.de>
1212         PR middle-end/93199
1213         * gimple-parser.c (c_parser_parse_gimple_body): Remove __PHI IFN
1214         permanently.
1216 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
1218         Update copyright years.
1220 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
1222         * c-decl.c (collect_source_ref_cb): Delete.
1223         (for_each_global_decl): Rename into...
1224         (collect_source_refs): ...this.  Call collect_source_ref directly.
1225         (c_parse_final_cleanups): Always call collect_source_ref on the main
1226         input filename.
1228 2019-12-19  Julian Brown  <julian@codesourcery.com>
1229             Cesar Philippidis  <cesar@codesourcery.com>
1231         * c-parser.c (c_parser_omp_clause_name): Add parsing of attach and
1232         detach clauses.
1233         (c_parser_omp_variable_list): Add ALLOW_DEREF optional parameter.
1234         Allow deref (->) in variable lists if true.
1235         (c_parser_omp_var_list_parens): Add ALLOW_DEREF optional parameter.
1236         Pass to c_parser_omp_variable_list.
1237         (c_parser_oacc_data_clause): Support attach and detach clauses.  Update
1238         call to c_parser_omp_variable_list.
1239         (c_parser_oacc_all_clauses): Support attach and detach clauses.
1240         (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK,
1241         OACC_KERNELS_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK,
1242         OACC_SERIAL_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_ATTACH.
1243         (OACC_EXIT_DATA_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_DETACH.
1244         * c-typeck.c (handle_omp_array_sections_1): Reject subarrays for attach
1245         and detach.  Support deref.
1246         (handle_omp_array_sections): Use GOMP_MAP_ATTACH_DETACH instead of
1247         GOMP_MAP_ALWAYS_POINTER for OpenACC.
1248         (c_oacc_check_attachments): New function.
1249         (c_finish_omp_clauses): Check attach/detach arguments for being
1250         pointers using above.  Support deref.
1252 2019-12-19  Julian Brown  <julian@codesourcery.com>
1253             Maciej W. Rozycki  <macro@codesourcery.com>
1254             Tobias Burnus  <tobias@codesourcery.com>
1255             Thomas Schwinge  <thomas@codesourcery.com>
1257         * c-parser.c (c_parser_omp_clause_name): Support no_create.
1258         (c_parser_oacc_data_clause): Likewise.
1259         (c_parser_oacc_all_clauses): Likewise.
1260         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1261         (OACC_PARALLEL_CLAUSE_MASK, OACC_SERIAL_CLAUSE_MASK): Add
1262         PRAGMA_OACC_CLAUSE_NO_CREATE.
1263         * c-typeck.c (handle_omp_array_sections): Support
1264         GOMP_MAP_NO_ALLOC.
1266 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1268         * c-objc-common.c (range_label_for_type_mismatch::get_text):
1269         Replace label_text ctor calls.
1271 2019-12-04  Joseph Myers  <joseph@codesourcery.com>
1273         PR c/36941
1274         PR c/88827
1275         * c-typeck.c (convert_lvalue_to_rvalue): Call
1276         require_complete_type for arguments not of void types.
1277         (build_indirect_ref): Do not diagnose dereferencing pointers to
1278         incomplete types.
1279         * c-tree.h (C_TYPE_ERROR_REPORTED): Remove.
1281 2019-12-03  Joseph Myers  <joseph@codesourcery.com>
1283         PR c/88704
1284         * c-decl.c (store_parm_decls_oldstyle): Diagnose use of [*] in
1285         old-style parameter definitions.
1287 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
1289         PR target/92499
1291         * c-decl.c (flexible_array_type_p): Move to common code.
1293 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1295         * c-decl.c (start_decl): Allow initialization of variables whose
1296         size is a POLY_INT_CST.
1297         (finish_decl): Use verify_type_context to check whether the target
1298         allows variables with a particular type to have static or thread-local
1299         storage duration.  Don't raise a second error if such variables do
1300         not have a constant size.
1301         (grokdeclarator): Use verify_type_context to check whether the
1302         target allows fields or array elements to have a particular type.
1303         * c-typeck.c (pointer_diff): Use verify_type_context to test whether
1304         the target allows pointer difference for the types involved.
1305         (build_unary_op): Likewise for pointer increment and decrement.
1307 2019-11-29  Joseph Myers  <joseph@codesourcery.com>
1309         * c-parser.c (struct c_parser): Add members raw_tokens and
1310         raw_tokens_used.
1311         (c_lex_one_token): Add argument raw.  Handle lexing raw tokens and
1312         using previously-lexed raw tokens.
1313         (c_parser_peek_nth_token_raw)
1314         (c_parser_check_balanced_raw_token_sequence): New functions.
1315         (c_parser_nth_token_starts_std_attributes): Use
1316         c_parser_check_balanced_raw_token_sequence for Objective-C.
1318 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1320         PR c/91985
1321         * c-decl.c (finish_declspecs): Use int instead of decimal
1322         floating-point types if decimal floating-point not supported.
1324 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1326         * c-tree.h (struct c_declarator): Use a structure for id member.
1327         * c-decl.c (grokdeclarator): Extract attributes from cdk_id
1328         declarators at the start, not when handling individual declarators
1329         later.  Use u.id.id instead of u.id.
1330         (grokfield): Use u.id.id instead of u.id.
1331         (build_id_declarator): Set u.id.id and u.id.attrs.
1332         (finish_declspecs): Handle postfix attributes in case of typedef
1333         name or typeof used.
1334         * c-parser.c (c_parser_direct_declarator)
1335         (c_parser_direct_declarator_inner): Place declarator for
1336         attributes inside that for function or array, not outside.  Set
1337         u.id.attrs for identifiers.
1338         (c_parser_parameter_declaration): Use u.id.id instead of u.id.
1339         * gimple-parser.c (c_parser_gimple_declaration): Use u.id.id
1340         instead of u.id.
1342 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
1344         PR c/90677
1345         * c-decl.c (identifier_global_tag): Define.
1347 2019-11-20  Richard Biener  <rguenther@suse.de>
1349         PR c/92088
1350         * c-decl.c (grokdeclarator): Prevent inlining of nested
1351         function with VLA arguments.
1353 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
1355         * c-decl.c (c_warn_type_attributes): New function.
1356         (groktypename, grokdeclarator, finish_declspecs): Call
1357         c_warn_type_attributes before applying attributes to types.
1358         * c-tree.h (c_warn_type_attributes): Declare.
1360 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
1362         * c-decl.c (c_warn_unused_attributes): Use pedwarn not warning for
1363         standard attributes.
1364         * c-parser.c (c_parser_std_attribute): Take argument for_tm.  Use
1365         pedwarn for unknown standard attributes and return error_mark_node
1366         for them.
1368 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
1370         * c-parser.c (c_parser_parse_rtl_body): Always call
1371         run_rtl_passes, even if startwith pass is not provided.
1373 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1375         * c-parser.c (c_parser_std_attribute_specifier): Diagnose
1376         duplicate standard attributes.
1378 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1380         * c-decl.c (std_attribute_table): Add maybe_unused.
1382 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1384         * c-decl.c (std_attribute_table): Add fallthrough.
1385         * c-parser.c (c_parser_declaration_or_fndef): Diagnose fallthrough
1386         attribute at top level.
1388 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1390         * c-decl.c (std_attribute_table): New.
1391         (c_init_decl_processing): Register attributes from
1392         std_attribute_table.
1393         * c-parser.c (c_parser_attribute_arguments): Add arguments
1394         require_string and allow_empty_args.  All callers changed.
1395         (c_parser_std_attribute): Set require_string argument for
1396         "deprecated" attribute.
1398 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
1400         * c-parser.c (c_parser_postfix_expression)
1401         (c_parser_check_literal_zero): Handle CPP_UTF8CHAR.
1402         * gimple-parser.c (c_parser_gimple_postfix_expression): Likewise.
1404 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
1406         * c-typeck.c (build_conditional_expr): Use truth_type_for instead
1407         of build_same_sized_truth_vector_type.
1408         (build_vec_cmp): Likewise.
1410 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
1412         * c-parser.c (c_parser_omp_context_selector): Don't require score
1413         argument to fit into shwi, just to be INTEGER_CST.  Diagnose
1414         negative score.
1416         * c-parser.c (c_parser_omp_context_selector): Rename
1417         CTX_PROPERTY_IDLIST to CTX_PROPERTY_NAME_LIST, add CTX_PROPERTY_ID.
1418         Use CTX_PROPERTY_ID for atomic_default_mem_order, only allow a single
1419         identifier in that.  For CTX_PROPERTY_NAME_LIST, allow identifiers
1420         and string literals.
1422 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
1424         * c-tree.h (enum c_typespec_kind): Add ctsk_tagref_attrs and
1425         ctsk_tagfirstref_attrs.
1426         (struct c_declspecs): Update description of attrs.  Add
1427         postfix_attrs and non_std_attrs_seen_p.  Increase size of
1428         typespec_kind bit-field.
1429         (c_warn_unused_attributes): New declaration.
1430         (parser_xref_tag): Update prototype.
1431         * c-decl.c (c_warn_unused_attributes): New function.
1432         (shadow_tag_warned): Handle ctsk_tagfirstref_attrs and
1433         ctsk_tagref_attrs.  Handle attribute declarations.
1434         (check_compound_literal_type): Handle ctsk_tagfirstref_attrs.
1435         (grokdeclarator): Handle standard attributes.
1436         (parser_xref_tag): Add arguments have_std_attrs and attrs.  Apply
1437         attributes to incomplete type reference.
1438         (xref_tag): Update call to parser_xref_tag.
1439         (declspecs_add_addrspace, declspecs_add_type)
1440         (declspecs_add_scspec, declspecs_add_attrs): Set
1441         non_std_attrs_seen_p.
1442         (finish_declspecs): Apply postfix standard attributes to type.
1443         * c-parser.c (c_token_starts_declspecs)
1444         (c_token_starts_declaration, c_parser_next_token_starts_declspecs)
1445         (c_parser_next_tokens_start_declaration): Update comments.
1446         (c_parser_consume_token, c_parser_consume_pragma): Handle moving
1447         parser->tokens[2] to parser->tokens[1].
1448         (c_parser_nth_token_starts_std_attributes)
1449         (c_parser_std_attribute_specifier_sequence): New functions.
1450         (c_parser_declaration_or_fndef): Add arguments have_attrs and
1451         attrs.  All callers changed.  Handle standard attributes.
1452         (c_parser_parms_declarator, c_parser_parms_list_declarator)
1453         (c_parser_parameter_declaration): Add argument have_gnu_attrs.
1454         All callers changed.
1455         (c_parser_declspecs): Add arguments start_std_attr_ok and
1456         end_std_attr_ok.  All callers changed.  Handle standard
1457         attributes.
1458         (c_parser_enum_specifier, c_parser_struct_or_union_specifier)
1459         (c_parser_direct_declarator, c_parser_direct_declarator_inner)
1460         (c_parser_compound_statement_nostart, c_parser_all_labels)
1461         (c_parser_label, c_parser_statement, c_parser_for_statement):
1462         Handle standard attributes.
1463         * c-parser.h (c_parser_declspecs): Update prototype.
1464         * gimple-parser.c (c_parser_gimple_declaration): Update call to
1465         c_parser_declspecs.
1467 2019-11-12  Martin Liska  <mliska@suse.cz>
1469         * gimple-parser.c: Do not include params.h.
1471 2019-11-12  Martin Liska  <mliska@suse.cz>
1473         * gimple-parser.c (c_parser_parse_gimple_body): Replace old parameter syntax
1474         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
1475         macro.
1477 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
1478             Frederik Harwath  <frederik@codesourcery.com>
1480         gcc/c/
1481         * c-parser.c (OACC_SERIAL_CLAUSE_MASK): New macro.
1482         (c_parser_oacc_kernels_parallel): Rename function to...
1483         (c_parser_oacc_compute): ... this.  Handle PRAGMA_OACC_SERIAL.
1484         (c_parser_omp_construct): Update accordingly.
1487 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
1489         * c-parser.c (c_parser_translation_unit): Diagnose declare target
1490         without corresponding end declare target.
1492 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
1494         * c-convert.c (convert): Only handle vector conversions if one of
1495         the types satisfies gnu_vector_type_p or if -flax-vector-conversions
1496         allows it.
1497         * c-typeck.c (build_array_ref): Only allow vector indexing if the
1498         vectors satisfy gnu_vector_type_p.
1499         (build_unary_op): Only allow unary operators to be applied to
1500         vectors if they satisfy gnu_vector_type_p.
1501         (digest_init): Only allow by-element initialization of vectors
1502         if they satisfy gnu_vector_type_p.
1503         (really_start_incremental_init): Likewise.
1504         (push_init_level): Likewise.
1505         (pop_init_level): Likewise.
1506         (process_init_element): Likewise.
1507         (build_binary_op): Only allow binary operators to be applied to
1508         vectors if they satisfy gnu_vector_type_p.
1510 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
1512         * c-decl.c (grokparms): Convert () in a function definition to
1513         (void) for C2x.
1514         (store_parm_decls_oldstyle): Pedwarn for C2x.
1515         (store_parm_decls): Update comment about () not generating a
1516         prototype.
1518 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
1520         * c-parser.c (c_parser_attribute_arguments): New function.
1521         Factored out of c_parser_gnu_attribute.
1522         (c_parser_gnu_attribute): Use c_parser_attribute_arguments.
1523         (c_parser_balanced_token_sequence, c_parser_std_attribute)
1524         (c_parser_std_attribute_specifier): New functions.
1525         (c_parser_transaction_attributes): Use
1526         c_parser_std_attribute_specifier.
1528 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
1530         * c-parser.c (c_parser): Remove lex_untranslated_string.  Add
1531         lex_joined_string and translate_strings_p.
1532         (c_lex_one_token): Pass 0 or C_LEX_STRING_NO_JOIN to
1533         c_lex_with_flags.
1534         (c_parser_string_literal): New function.
1535         (c_parser_static_assert_declaration_no_semi): Use
1536         c_parser_string_literal.  Do not set lex_untranslated_string.
1537         (c_parser_asm_string_literal): Use c_parser_string_literal.
1538         (c_parser_simple_asm_expr): Do not set lex_untranslated_string.
1539         (c_parser_gnu_attributes): Set and restore translate_strings_p
1540         instead of lex_untranslated_string.
1541         (c_parser_asm_statement): Do not set lex_untranslated_string.
1542         (c_parser_asm_operands): Likewise.
1543         (c_parser_has_attribute_expression): Set and restore
1544         translate_strings_p instead of lex_untranslated_string.
1545         (c_parser_postfix_expression): Use c_parser_string_literal.
1546         (pragma_lex): Likewise.
1547         (c_parser_pragma_pch_preprocess): Set lex_joined_string.
1548         (c_parse_file): Set translate_strings_p.
1549         * gimple-parser.c (c_parser_gimple_postfix_expression)
1550         (c_parser_gimple_or_rtl_pass_list): Use c_parser_string_literal.
1551         * c-parser.c (c_parser_string_literal): Declare function.
1553 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
1555         * c-parser.c (c_finish_omp_declare_variant): Use
1556         omp_get_context_selector instead of c_omp_get_context_selector.
1558 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1560         * c-tree.h (c_simulate_enum_decl): Declare.
1561         * c-decl.c (c_simulate_enum_decl): New function.
1562         * c-objc-common.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define to the above.
1564 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1566         * c-tree.h (c_simulate_builtin_function_decl): Declare.
1567         * c-decl.c (c_simulate_builtin_function_decl): New function.
1568         * c-objc-common.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define
1569         to the above.
1571 2019-10-28  Martin Sebor  <msebor@redhat.com>
1573         PR c/66970
1574         * c-decl.c (names_builtin_p): Define a new function.
1576 2019-10-28  Richard Biener  <rguenther@suse.de>
1578         PR c/92249
1579         * gimple-parser.c (c_parser_parse_gimple_body): Make
1580         current_bb the entry block initially to easier recover
1581         from errors.
1582         (c_parser_gimple_compound_statement): Adjust.
1584 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
1586         * c-parser.c (c_finish_omp_declare_variant): Use
1587         omp_context_selector_matches instead of
1588         c_omp_context_selector_matches.
1589         * c-decl.c (c_decl_attributes): Add "omp declare target block"
1590         attribute in between declare target and end declare target
1591         pragmas.
1593 2019-10-15  Joseph Myers  <joseph@codesourcery.com>
1595         * c-parser.c (c_parser_attribute_any_word): Rename to
1596         c_parser_gnu_attribute_any_word.  All callers changed.
1597         (c_parser_attribute): Rename to c_parser_gnu_attribute.  All
1598         callers changed.
1599         (c_parser_attributes): Rename to c_parser_gnu_attributes.  All
1600         callers changed.
1601         (c_parser_declaration_or_fndef, c_parser_declspecs)
1602         (c_parser_enum_specifier, c_parser_struct_or_union_specifier)
1603         (c_parser_struct_declaration, c_parser_declarator)
1604         (c_parser_gnu_attribute, c_parser_compound_statement)
1605         (c_parser_label, c_parser_statement, c_parser_objc_method_decl)
1606         (c_parser_transaction_attributes): Add "gnu-" prefix to names of
1607         attribute-related syntax productions.
1609 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
1611         * c-objc-common.c (useful_aka_type_p): Replace with...
1612         (get_aka_type): ...this new function.  Given the original type,
1613         decide which aka type to print (if any).  Only look through typedefs
1614         if user_facing_original_type_p.
1615         (print_type): Update accordingly.
1617 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
1619         * c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument
1620         into int NESTED, if it is 2, diagnose missing commas in between
1621         clauses.
1622         (c_parser_omp_context_selector): Pass 2 as last argument to
1623         c_parser_omp_all_clauses.
1625 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
1627         * c-parser.c (c_parser_omp_context_selector): Improve error recovery.
1628         For simd properties, put them directly into TREE_VALUE.
1629         (c_finish_omp_declare_variant): Call c_omp_mark_declare_variant.
1630         If c_omp_context_selector_matches is 0, don't add attribute, otherwise
1631         add "omp declare variant base" attribute rather than
1632         "omp declare variant".
1634 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
1636         * c-decl.c (declspecs_add_type): Use pedwarn_c11 for DFP types.
1638 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
1640         * c-parser.c (c_parser_omp_all_clauses): Add NESTED_P argument, if
1641         true, terminate processing on closing paren and don't skip to end of
1642         pragma line.
1643         (c_parser_omp_declare_simd): Handle also declare variant.
1644         (omp_construct_selectors, omp_device_selectors,
1645         omp_implementation_selectors, omp_user_selectors): New variables.
1646         (c_parser_omp_context_selector,
1647         c_parser_omp_context_selector_specification,
1648         c_finish_omp_declare_variant): New functions.
1649         (c_finish_omp_declare_simd): Handle both declare simd and
1650         declare variant.
1651         (c_parser_omp_declare): Handle declare variant.
1653 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
1655         * c-parser.c (c_parser_asm_statement): Handle CPP_SCOPE like two
1656         CPP_COLON tokens.
1658 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1660         * c-objc-common.c (useful_aka_type_p): New function.
1661         (print_type): Use it to decide whether an aka type is worth printing.
1663 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
1665         PR c++/88203
1666         * c-parser.c (c_parser_predefined_identifier): New function.
1667         (c_parser_postfix_expression): Use it.
1668         (c_parser_omp_variable_list): Parse predefined identifiers.
1669         * c-typeck.c (c_finish_omp_clauses): Allow predefined variables
1670         in shared and firstprivate clauses, even when they are predetermined
1671         shared.
1673 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
1675         * c-typeck.c (build_function_call_vec): Take the original function
1676         decl as an optional final parameter.  Pass all built-in calls to
1677         check_builtin_function_arguments.
1679 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1681         PR c/91815
1682         * c-decl.c (pushdecl): In C detect duplicate declarations across scopes
1683         of identifiers in the external scope only for variables and functions.
1685 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1687         PR c/78736
1688         * c-typeck.c (convert_for_assignment): Handle Wenum-conversion.
1690 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
1692         PR pch/61250
1693         * c-parser.c (c_parse_file): Call c_common_no_more_pch ()
1694         after determining that the first token is not
1695         PRAGMA_GCC_PCH_PREPROCESS.
1697 2019-08-22  Eric Botcazou  <ebotcazou@adacore.com>
1699         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_ARGUMENTS of a
1700         FUNCTION_DECL to the right value in the presence of nested declarators.
1702 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1704         PR middle-end/91421
1705         * c-decl.c (merge_decls): Use copy_decl_built_in_function.
1707 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1709         PR middle-end/91421
1710         * c-decl.c (header_for_builtin_fn): Take a FUNCTION_DECL instead
1711         of a built_in_function.
1712         (diagnose_mismatched_decls, implicitly_declare): Update accordingly.
1714 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
1716         * c-parser.c (c_parser_omp_clause_name): Parse device_type.
1717         (c_parser_omp_clause_device_type): New function.
1718         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
1719         (OMP_DECLARE_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
1720         (c_parser_omp_declare_target): Handle device_type clauses.  Remove
1721         diagnostics for declare target with clauses nested in clause-less
1722         declare target declaration-definition-seq.
1723         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_DEVICE_TYPE.
1725 2019-08-09  Jakub Jelinek  <jakub@redhat.com>
1727         * c-parser.c (check_no_duplicate_clause): Simplify using
1728         omp_find_clause.
1729         (c_parser_omp_clause_if): Fix up printing of target {enter,exit} data
1730         directive name modifiers.
1731         (c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause.
1733         PR c/91401
1734         * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the
1735         check_no_duplicate_clause call.  Comment it out, instead emit a
1736         warning for duplicate dist_schedule clauses.
1738 2019-08-08  Richard Sandiford  <richard.sandiford@arm.com>
1740         * c-decl.c (finish_enum): Clear C_TYPE_BEING_DEFINED.
1742 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
1744         * c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP
1745         OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap
1746         instead of generic_head to track duplicates.
1748 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
1750         * c-parser.c (c_parser_omp_clause_name): Parse use_device_addr clause.
1751         (c_parser_omp_clause_use_device_addr): New function.
1752         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.
1753         (OMP_TARGET_DATA_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.
1754         (c_parser_omp_target_data): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR
1755         like PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR, adjust diagnostics about no
1756         map or use_device_* clauses.
1757         * c-typeck.c (c_finish_omp_clauses): For OMP_CLAUSE_USE_DEVICE_PTR
1758         in OpenMP, require pointer type rather than pointer or array type.
1759         Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1761 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
1763         PR c/91192
1764         * c-parser.c (c_parser_sizeof_expression): Call set_c_expr_source_range
1765         even if finish is UNKNOWN_LOCATION, just use start as finish in that
1766         case.
1768 2019-07-25  Martin Liska  <mliska@suse.cz>
1769             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
1771         PR c++/23383
1772         * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag.
1774 2019-07-25  Martin Liska  <mliska@suse.cz>
1776         * c-decl.c (merge_decls): Use new macros
1777         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
1779 2019-07-23  Richard Biener  <rguenther@suse.de>
1781         PR tree-optimization/83518
1782         * gimple-parser.c (c_parser_parse_gimple_body): When we have
1783         a CFG also rebuild cgraph edges.
1785 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1787         * c-parser.c (c_parser_omp_clause_name): Handle bind clause.
1788         (c_parser_omp_clause_bind): New function.
1789         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_BIND.
1790         (OMP_LOOP_CLAUSE_MASK): Define.
1791         (c_parser_omp_loop): New function.
1792         (c_parser_omp_parallel, c_parser_omp_teams): Handle parsing of
1793         loop combined with parallel or teams.
1794         (c_parser_omp_construct): Handle PRAGMA_OMP_LOOP.
1795         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_BIND.
1797 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
1799         PR c/53633
1800         * c-decl.c (finish_function): Check targetm.warn_func_return
1801         before issuing a -Wreturn-type warning.
1803 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
1805         * gimple-parser.c (c_parser_gimple_try_stmt): New.
1806         (c_parser_compound_statement): Call it.
1808 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
1810         * c-parser.c (c_parser_omp_clause_name): Handle order clause.
1811         (c_parser_omp_clause_order): New function.
1812         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ORDER.
1813         (OMP_SIMD_CLAUSE_MASK, OMP_FOR_CLAUSE_MASK): Add
1814         PRAGMA_OMP_CLAUSE_ORDER.
1815         * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ORDER.
1817 2019-07-10  Richard Biener  <rguenther@suse.de>
1819         * gimple-parser.c (c_parser_gimple_postfix_expression): Support
1820         _Literal (int *) &x for address literals.
1822 2019-07-09  Martin Sebor  <msebor@redhat.com>
1824         PR c++/61339
1825         * c-decl.c (xref_tag): Change class-key of PODs to struct and others
1826         to class.
1827         (field_decl_cmp): Same.
1828         * c-parser.c (c_parser_struct_or_union_specifier): Same.
1829         * c-tree.h: Same.
1830         * gimple-parser.c (c_parser_gimple_compound_statement): Same.
1832 2019-07-09  Martin Sebor  <msebor@redhat.com>
1834         PR c++/61339
1835         * c-decl.c: Change class-key from class to struct and vice versa
1836         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
1837         * gimple-parser.c: Same.
1839 2019-07-01  Richard Biener  <rguenther@suse.de>
1841         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
1842         _Literal (char *) &"foo" for address literals pointing to
1843         STRING_CSTs.
1845 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1847         * c-parser.c (c_parse_init): Create keyword for "__intN__" type.
1848         * c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
1849         C incompatibility if alternate "__intN__" form is used.
1851 2019-06-24  Martin Sebor  <msebor@redhat.com>
1853         * c-typeck.c (build_binary_op): Hyphenate floating-point.
1855 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
1857         * c-parser.c (c_parser_pragma): Reject PRAGMA_OMP_SCAN.
1858         (c_parser_omp_clause_reduction): Don't sorry_at on inscan reductions.
1859         (c_parser_omp_scan_loop_body): New function.
1860         (c_parser_omp_for_loop): Call c_parser_omp_scan_loop_body if there are
1861         inscan reduction clauses.
1862         * c-typeck.c (c_finish_omp_clauses): Reject mixing inscan with
1863         non-inscan reductions on the same construct, or inscan reductions with
1864         ordered or schedule clauses, or inscan array reductions.
1866 2019-06-05  Martin Sebor  <msebor@redhat.com>
1868         PR c/90737
1869         * c-typeck.c (c_finish_return): Only consider functions returning
1870         pointers as candidates for -Wreturn-local-addr.
1872 2019-06-05  Martin Sebor  <msebor@redhat.com>
1874         * c-decl.c (start_decl): Adjust quoting and hyphenation
1875         in diagnostics.
1876         (finish_decl): Same.
1877         (finish_enum): Same.
1878         (start_function): Same.
1879         (declspecs_add_type): Same.
1880         * c-parser.c (warn_for_abs): Same.
1881         * c-typeck.c (build_binary_op): Same.
1883 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
1885         PR c/89433
1886         * c-parser.c (c_finish_oacc_routine): Rework checking if already
1887         marked with an OpenACC 'routine' directive.
1889         PR c/89433
1890         * c-parser.c (c_parser_oacc_routine): Normalize order of clauses.
1891         (c_finish_oacc_routine): Call oacc_verify_routine_clauses.
1893         PR c/89433
1894         * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine'
1895         clauses from "omp declare target" attribute.
1897 2019-05-16  Martin Sebor  <msebor@redhat.com>
1899         * c-decl.c (start_decl): Quote keywords, operators, and
1900         types in diagnostics.
1901         (finish_decl): Same.
1902         * c-parser.c (c_parser_asm_statement): Same.
1903         (c_parser_conditional_expression): Same.
1904         (c_parser_transaction_cancel): Same.
1905         * c-typeck.c (c_common_type): Same.
1906         (build_conditional_expr): Same.
1907         (digest_init): Same.
1908         (process_init_element): Same.
1909         (build_binary_op): Same.
1911 2019-05-17  Richard Biener  <rguenther@suse.de>
1913         * gimple-parser.c (c_parser_gimple_statement): Handle __VEC_PERM.
1914         (c_parser_gimple_unary_expression): Likewise.
1915         (c_parser_gimple_parentized_ternary_expression): New function.
1917 2019-05-16  Richard Biener  <rguenther@suse.de>
1919         * gimple-parser.c (c_parser_gimple_statement): Handle __BIT_INSERT.
1920         (c_parser_gimple_unary_expression): Likewise.
1922 2019-05-15  Richard Biener  <rguenther@suse.de>
1924         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
1925         __BIT_FIELD_REF.
1927 2019-05-14  Richard Biener  <rguenther@suse.de>
1929         * gimple-parser.c (c_parser_gimple_statement): Remove
1930         questionable auto-promotion to VIEW_CONVERT_EXPR.
1931         (c_parser_gimple_typespec): Split out from __MEM parsing.
1932         (c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT.
1933         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1934         as __VIEW_CONVERT with -gimple.
1936 2019-05-09  Martin Liska  <mliska@suse.cz>
1938         * gimple-parser.c (c_parser_gimple_statement): Support __MIN and
1939         __MAX.
1940         (c_parser_gimple_unary_expression): Parse also binary expression
1941         __MIN and __MAX.
1942         (c_parser_gimple_parentized_binary_expression): New function.
1944 2019-05-09  Martin Liska  <mliska@suse.cz>
1946         * gimple-parser.c (struct gimple_parser): Add probability.
1947         for gimple_parser_edge.
1948         (gimple_parser::push_edge): Add new argument probability.
1949         (c_parser_gimple_parse_bb_spec): Parse also probability
1950         if present.
1951         (c_parser_parse_gimple_body): Set edge probability.
1952         (c_parser_gimple_compound_statement): Consume token
1953         before calling c_parser_gimple_goto_stmt.
1954         Parse BB counts.
1955         (c_parser_gimple_statement): Pass new argument.
1956         (c_parser_gimple_goto_stmt): Likewise.
1957         (c_parser_gimple_if_stmt): Likewise.
1958         (c_parser_gimple_or_rtl_pass_list): Parse hot_bb_threshold.
1959         * c-parser.c (c_parser_declaration_or_fndef): Pass
1960         hot_bb_threshold argument.
1961         * c-tree.h (struct c_declspecs): Add hot_bb_threshold
1962         field.
1963         (c_parser_gimple_parse_bb_spec_edge_probability): New.
1965 2019-04-26  Jakub Jelinek  <jakub@redhat.com>
1967         PR debug/90197
1968         * c-tree.h (c_finish_loop): Add 2 further location_t arguments.
1969         * c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller.
1970         (c_parser_do_statement): Likewise.
1971         (c_parser_for_statement): Likewise.  Formatting fixes.
1972         * c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments,
1973         emit DEBUG_BEGIN_STMTs if needed.
1975 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
1977         PR c/89888
1978         * c-typeck.c (struct c_switch): Remove outside_range_p member.
1979         (c_start_case): Don't clear it.
1980         (do_case): Adjust c_add_case_label caller.
1981         (c_finish_case): Adjust c_do_switch_warnings caller.
1983         PR c++/90108
1984         * c-decl.c (merge_decls): If remove is main variant and
1985         DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE
1986         variant that has newdecl as TYPE_NAME if any.
1988 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
1990         PR c/89933
1991         * c-decl.c (merge_decls): When newdecl's type is its main variant,
1992         don't try to remove it from the variant list, but instead assert
1993         it has no variants.
1995 2019-04-01  Richard Biener  <rguenther@suse.de>
1997         PR c/71598
1998         * c-tree.h (c_get_alias_set): Declare.
1999         * c-objc-common.h (LANG_HOOKS_GET_ALIAS_SET): Use c_get_alias_set.
2000         * c-objc-common.c (c_get_alias_set): Treat enumeral types
2001         as the underlying integer type.
2003 2019-03-19  Martin Sebor  <msebor@redhat.com>
2005         PR tree-optimization/89688
2006         * c-decl.c (finish_decl): Call braced_lists_to_string for more
2007         kinds of initializers.
2009 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
2011         PR c/89734
2012         * c-decl.c (grokdeclarator): Call c_build_qualified_type on function
2013         return type even if quals_used is 0.  Formatting fixes.
2015 2019-03-14  Richard Biener  <rguenther@suse.de>
2017         * c-tree.h (enum c_declspec_il): New.
2018         (struct c_declspecs): Merge gimple_p and rtl_p into declspec_il
2019         enum bitfield.
2020         * c-parser.c (c_parser_declaration_or_fndef): Adjust accordingly.
2021         Pass start pass and declspec_il to c_parser_parse_gimple_body.
2022         (c_parser_declspecs): Adjust.
2023         * gimple-parser.c: Include cfg.h, cfghooks.h, cfganal.h, tree-cfg.h,
2024         gimple-iterator.h, cfgloop.h, tree-phinodes.h, tree-into-ssa.h
2025         and bitmap.h.
2026         (struct gimple_parser): New.
2027         (gimple_parser::push_edge): New method.
2028         (c_parser_gimple_parse_bb_spec): New helper.
2029         (c_parser_parse_gimple_body): Get start pass and IL specification.
2030         Initialize SSA and CFG.
2031         (c_parser_gimple_compound_statement): Handle CFG and SSA build.
2032         Build a gimple_parser parsing state and pass it along.
2033         (c_parser_gimple_statement): Change intermittend __PHI internal
2034         function argument for the edge.
2035         (c_parser_gimple_or_rtl_pass_list): Handle ssa, cfg flags.
2036         (c_parser_gimple_goto_stmt): Record edges to build.
2037         (c_parser_gimple_if_stmt): Likewise.
2038         * gimple-parser.h (c_parser_parse_gimple_body): Adjust.
2039         (c_parser_gimple_or_rtl_pass_list): Likewise.
2041 2019-03-11  Martin Liska  <mliska@suse.cz>
2043         * c-decl.c (check_for_loop_decls): Wrap an option name
2044         in a string format message and fix GNU coding style.
2045         * c-parser.c (c_parser_declspecs): Likewise.
2047 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
2049         PR tree-optimization/89550
2050         * c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at
2051         returned true.
2052         (c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn
2053         or warning returned true.
2055 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
2057         PR c/89525
2058         * c-typeck.c (convert_arguments): Call inform_declaration only if
2059         the previous warning_at call returned true.
2061 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2063         * c-parser.c (c_parser_oacc_shape_clause): Add loc formal
2064         parameter.  Adjust all users.
2065         (c_parser_oacc_simple_clause): Replace parser with loc formal
2066         parameter.  Adjust all users.
2068 2019-02-19  Chung-Lin Tang  <cltang@codesourcery.com>
2070         PR c/87924
2071         * c-parser.c (c_parser_oacc_clause_wait): Add representation of wait
2072         clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments.
2074 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
2076         PR c/89340
2077         * c-decl.c (start_function): Clear TREE_PUBLIC on nested functions
2078         before c_decl_attributes rather than after it.
2080 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
2082         PR c/89211
2083         * c-parser.c (c_parser_declaration_or_fndef): Don't update
2084         DECL_ARGUMENTS of d if it has been defined already.  Use a single if
2085         instead of 3 nested ifs.
2087 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
2089         PR c/88584
2090         * c-decl.c (finish_decl): Do not complete array types for arrays
2091         with external linkage not at file scope.
2093 2019-02-05  Richard Biener  <rguenther@suse.de>
2095         PR c/88606
2096         * c-decl.c (finish_struct): Reset TYPE_TRANSPARENT_AGGR on
2097         all type variants when not supported.
2099 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
2101         PR c/89061
2102         * c-tree.h (C_DECL_COMPOUND_LITERAL_P): Define.
2103         * c-decl.c (decl_jump_unsafe): Return false for
2104         C_DECL_COMPOUND_LITERAL_P decls.
2105         (build_compound_literal): Set C_DECL_COMPOUND_LITERAL_P.
2107 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
2109         PR c/89045
2110         * c-decl.c (build_compound_literal): Don't pushdecl if in parameter
2111         scope.
2113         PR c/86125
2114         * c-decl.c (last_fileptr_type): Remove.
2115         (last_structptr_types): New variable.
2116         (match_builtin_function_types): Compare TYPE_MAIN_VARIANT of
2117         {old,new}rettype instead of the types themselves.  Assert
2118         last_structptr_types array has the same number of elements
2119         as builtin_structptr_types array.  Use TYPE_MAIN_VARIANT for
2120         argument oldtype and newtype.  Instead of handling
2121         just fileptr_type_node specially, handle all builtin_structptr_types
2122         pointer nodes.  Formatting fix.
2124 2019-01-24  Martin Sebor  <msebor@redhat.com>
2126         PR c/86125
2127         PR c/88886
2128         PR middle-end/86308
2129         * c-decl.c (match_builtin_function_types): Add arguments.
2130         (diagnose_mismatched_decls): Diagnose mismatched declarations
2131         of built-ins more strictly.
2133 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
2135         PR c++/88976
2136         * c-typeck.c (c_finish_omp_cancel): Diagnose more than one if
2137         on #pragma omp cancel with different modifiers.
2139 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
2141         PR c/51628
2142         PR c/88664
2143         * c-typeck.c (convert_for_assignment): Upate the
2144         warn_for_address_or_pointer_of_packed_member call.
2146 2019-01-16  Tom Honermann  <tom@honermann.net>
2147             Jason Merrill  <jason@redhat.com>
2149         * c-typeck.c (digest_init): Revised the error message produced for
2150         ill-formed cases of array initialization with a string literal.
2151         (error_init): Make variadic.
2153 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
2155         * c-typeck.c (convert_for_assignment): Fix a comment typo.
2157 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
2159         PR c/88701
2160         * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl
2161         if current_function_decl is non-NULL.
2163 2019-01-07  Joseph Myers  <joseph@codesourcery.com>
2165         PR c/88720
2166         PR c/88726
2167         * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
2168         whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
2169         functions declared but never defined only for external scope, not
2170         for other scopes.
2172 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
2174         PR c++/85052
2175         * c-parser.c (c_parser_postfix_expression): Parse
2176         __builtin_convertvector.
2178 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2180         Update copyright years.
2182 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
2184         PR c/51628
2185         * c-typeck.c (convert_for_assignment): Call
2186         warn_for_address_or_pointer_of_packed_member.
2188 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
2190         * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give
2191         a more specific error message (instead of just falling through).
2193 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
2195         * c-parser.c (c_parser_asm_statement): Keep track of the location each
2196         asm qualifier is first seen; use that to give nicer "duplicate asm
2197         qualifier" messages.  Delete 'quals" variable, instead pass the
2198         "is_volatile_ flag to build_asm_stmt directly.
2199         * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree.
2200         * c-typeck.c (build_asm_stmt): Ditto; adjust.
2202 2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
2204         * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without
2205         "done" boolean variable.
2207 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
2209         PR c++/87504
2210         * c-typeck.c (class maybe_range_label_for_tree_type_mismatch):
2211         Move from here to gcc-rich-location.h and gcc-rich-location.c.
2212         (build_binary_op): Use struct op_location_t and
2213         class binary_op_rich_location.
2215 2018-12-11  Jakub Jelinek  <jakub@redhat.com>
2217         PR sanitizer/88426
2218         * c-convert.c (convert): Call c_fully_fold before calling
2219         ubsan_instrument_float_cast.
2221 2018-12-08  Segher Boessenkool  <segher@kernel.crashing.org>
2223         * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line
2224         setting "quals".
2226 2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
2228         * c-parser.c (c_parser_asm_statement): Detect the inline keyword
2229         after asm.  Pass a flag for it to build_asm_expr.
2230         * c-tree.h (build_asm_expr): Update declaration.
2231         * c-typeck.c (build_asm_stmt): Add is_inline parameter.  Use it to
2232         set ASM_INLINE_P.
2234 2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
2236         PR inline-asm/55681
2237         * c-parser.c (c_parser_asm_statement): Update grammar.  Allow any
2238         combination of volatile and goto, in any order, without repetitions.
2240 2018-12-04  James Norris  <jnorris@codesourcery.com>
2241             Cesar Philippidis  <cesar@codesourcery.com>
2242             Julian Brown  <julian@codesourcery.com>
2244         * c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic
2245         code.
2247 2018-11-30  Richard Biener  <rguenther@suse.de>
2249         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
2250         _Literal (type) { ... } as empty aggregate or vector constructor.
2252 2018-11-29  Martin Sebor  <msebor@redhat.com>
2254         PR c/88091
2255         * c-typeck.c (convert_argument): Add a parameter.  Adjust indentation.
2256         (convert_arguments): Add comments.  Pass additional argument to
2257         the function above.
2259 2018-11-29  Martin Sebor  <msebor@redhat.com>
2261         PR c/88172
2262         PR testsuite/88208
2263         * c-decl.c (declspec_add_alignas): Adjust call to check_user_alignment.
2265 2018-11-23  Martin Sebor  <msebor@redhat.com>
2267         PR testsuite/88098
2268         * c-typeck.c (convert_arguments): Call builtin_decl_explicit instead.
2269         (maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion.
2271 2018-11-20  Martin Sebor  <msebor@redhat.com>
2273         * c-parser.c (c_parser_has_attribute_expression): New function.
2274         (c_parser_attribute): New function.
2275         (c_parser_attributes): Move code into c_parser_attribute.
2276         (c_parser_unary_expression): Handle RID_HAS_ATTRIBUTE_EXPRESSION.
2278 2018-11-15  Martin Sebor  <msebor@redhat.com>
2280         PR c/83656
2281         * c-decl.c (header_for_builtin_fn): Declare.
2282         (diagnose_mismatched_decls): Diagnose declarations of built-in
2283         functions without a prototype.
2284         * c-typeck.c (maybe_warn_builtin_no_proto_arg): New function.
2285         (convert_argument): Same.
2286         (convert_arguments): Factor code out into convert_argument.
2287         Detect mismatches between built-in formal arguments in calls
2288         to built-in without prototype.
2289         (build_conditional_expr): Same.
2290         (type_or_builtin_type): New function.
2291         (convert_for_assignment): Add argument.  Conditionally issue
2292         warnings instead of errors for mismatches.
2294 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
2296         * c-decl.c: Replace "source_location" with "location_t".
2297         * c-tree.h: Likewise.
2298         * c-typeck.c: Likewise.
2299         * gimple-parser.c: Likewise.
2301 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
2303         * c-parser.c (c_parser_omp_clause_final): Use
2304         c_parser_expr_no_commas, convert_lvalue_to_rvalue,
2305         c_objc_common_truthvalue_conversion, c_fully_fold and parentheses
2306         parsing instead of c_parser_paren_condition.
2307         (c_parser_omp_clause_if): Use c_parser_expr_no_commas,
2308         convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and
2309         c_fully_fold instead of c_parser_condition.
2310         (c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks,
2311         c_parser_omp_clause_grainsize, c_parser_omp_clause_priority,
2312         c_parser_omp_clause_hint, c_parser_omp_clause_num_teams,
2313         c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use
2314         c_parser_expr_no_commas instead of c_parser_expression.
2316         * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on
2317         reduction clause with inscan modifier.
2319         * c-parser.c (c_parser_omp_requires): Call sorry_at on requires
2320         clauses other than atomic_default_mem_order.
2322 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
2324         * c-parser.c: Include memmode.h.
2325         (c_parser_omp_depobj, c_parser_omp_requires): New functions.
2326         (c_parser_pragma): Handle PRAGMA_OMP_DEPOBJ and PRAGMA_OMP_REQUIRES.
2327         (c_parser_omp_clause_name): Handle nontemporal, in_reduction and
2328         task_reduction clauses.
2329         (c_parser_omp_variable_list): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION.
2330         For OMP_CLAUSE_DEPEND, parse clause operands as either an array
2331         section, or lvalue assignment expression.
2332         (c_parser_omp_clause_if): Handle cancel and simd modifiers.
2333         (c_parser_omp_clause_lastprivate): Parse optional
2334         conditional: modifier.
2335         (c_parser_omp_clause_hint): Require constant integer expression rather
2336         than just integer expression.
2337         (c_parser_omp_clause_defaultmap): Parse new kinds of defaultmap
2338         clause.
2339         (c_parser_omp_clause_reduction): Add IS_OMP and KIND arguments.
2340         Parse reduction modifiers.  Pass KIND to c_parser_omp_variable_list.
2341         (c_parser_omp_clause_nontemporal, c_parser_omp_iterators): New
2342         functions.
2343         (c_parser_omp_clause_depend): Parse iterator modifier and handle
2344         iterators.  Parse mutexinoutset and depobj kinds.
2345         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction
2346         callers.
2347         (c_parser_omp_all_clauses): Likewise.  Handle
2348         PRAGMA_OMP_CLAUSE_NONTEMPORAL and
2349         PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
2350         (c_parser_omp_atomic): Parse hint and memory order clauses.  Handle
2351         default memory order from requires directive if any.  Adjust
2352         c_finish_omp_atomic caller.
2353         (c_parser_omp_critical): Allow comma in between (name) and hint clause.
2354         (c_parser_omp_flush): Parse flush with memory-order-clause.
2355         (c_parser_omp_for_loop): Allow NE_EXPR even in
2356         OpenMP loops, adjust c_finish_omp_for caller.
2357         (OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses.
2358         (c_parser_omp_master): Add p_name, mask and cclauses arguments.
2359         Allow to be called while parsing combined parallel master.
2360         Parse combined master taskloop{, simd}.
2361         (c_parser_omp_parallel): Parse combined
2362         parallel master{, taskloop{, simd}} constructs.
2363         (OMP_TASK_CLAUSE_MASK): Add in_reduction clause.
2364         (OMP_TASKGROUP_CLAUSE_MASK): Define.
2365         (c_parser_omp_taskgroup): Add LOC argument.  Parse taskgroup clauses.
2366         (OMP_TASKWAIT_CLAUSE_MASK): Define.
2367         (c_parser_omp_taskwait): Handle taskwait with depend clauses.
2368         (c_parser_omp_teams): Force a BIND_EXPR with BLOCK
2369         around teams body.  Use SET_EXPR_LOCATION.
2370         (c_parser_omp_target_data): Allow target data
2371         with only use_device_ptr clauses.
2372         (c_parser_omp_target): Use SET_EXPR_LOCATION.  Set
2373         OMP_REQUIRES_TARGET_USED bit in omp_requires_mask.
2374         (c_parser_omp_requires): New function.
2375         (c_finish_taskloop_clauses): New function.
2376         (OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses.
2377         (c_parser_omp_taskloop): Use c_finish_taskloop_clauses.  Add forward
2378         declaration.  Disallow in_reduction clause when combined with parallel
2379         master.
2380         (c_parser_omp_construct): Adjust c_parser_omp_master and
2381         c_parser_omp_taskgroup callers.
2382         * c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier
2383         other than cancel.
2384         (handle_omp_array_sections_1): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION
2385         like OMP_CLAUSE_REDUCTION.
2386         (handle_omp_array_sections): Likewise.  Call save_expr on array
2387         reductions before calling build_index_type.  Handle depend clauses
2388         with iterators.
2389         (struct c_find_omp_var_s): New type.
2390         (c_find_omp_var_r, c_omp_finish_iterators): New functions.
2391         (c_finish_omp_clauses): Don't diagnose nonmonotonic clause
2392         with static, runtime or auto schedule kinds.  Call save_expr for whole
2393         array reduction sizes.  Diagnose reductions with zero sized elements
2394         or variable length structures.  Diagnose nogroup clause used with
2395         reduction clause(s).  Handle depend clause with
2396         OMP_CLAUSE_DEPEND_DEPOBJ.  Diagnose bit-fields.  Require
2397         omp_depend_t type for OMP_CLAUSE_DEPEND_DEPOBJ kinds and
2398         some different type for other kinds.  Use build_unary_op with
2399         ADDR_EXPR and build_indirect_ref instead of c_mark_addressable.
2400         Handle depend clauses with iterators.  Remove no longer needed special
2401         case that predetermined const qualified vars may be specified in
2402         firstprivate clause.  Complain if const qualified vars are mentioned
2403         in data-sharing clauses other than firstprivate or shared.  Use
2404         error_at with OMP_CLAUSE_LOCATION (c) as first argument instead of
2405         error.  Formatting fix.  Handle OMP_CLAUSE_NONTEMPORAL and
2406         OMP_CLAUSE_{IN,TASK}_REDUCTION.  Allow any lvalue as
2407         OMP_CLAUSE_DEPEND operand (besides array section), adjust diagnostics.
2409 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
2411         * c-decl.c (implicit_decl_warning): Update "is there a suggestion"
2412         logic for change to name_hint::operator bool.
2413         (undeclared_variable): Likewise.
2414         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
2415         (c_parser_parameter_declaration): Likewise.
2417 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
2419         * c-errors.c (pedwarn_c11): New function.
2420         * c-parser.c (disable_extension_diagnostics): Save
2421         warn_c11_c2x_compat and set it to 0.
2422         (restore_extension_diagnostics): Restore warn_c11_c2x_compat.
2423         (c_parser_static_assert_declaration_no_semi): Handle
2424         _Static_assert without string constant.
2425         * c-tree.h (pedwarn_c11): New prototype.
2427 2018-10-17  David Malcolm  <dmalcolm@redhat.com>
2429         * Make-lang.in (selftest-c): New.
2430         (C_SELFTEST_FLAGS, C_SELFTEST_DEPS, s-selftest-c, selftest-c-gdb)
2431         (selftest-gdb, selftest-c-valgrind, selftest-valgrind): Move here
2432         from gcc/Makefile.in.
2434 2018-10-02  Richard Biener  <rguenther@suse.de>
2436         * c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE.
2438 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
2440         PR c/87390
2441         * c-typeck.c (build_binary_op): Use excess precision for
2442         comparisons of integers and floating-point for C11 and later.
2444 2018-09-26  Martin Jambor  <mjambor@suse.cz>
2446         PR c/87347
2447         * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL.  Fix
2448         comment.
2450 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
2452         * c-objc-common.c (range_label_for_type_mismatch::get_text):
2453         Update for new param.
2454         * c-typeck.c (maybe_range_label_for_tree_type_mismatch::get_text):
2455         Likewise.
2457 2018-09-17  Martin Jambor  <mjambor@suse.cz>
2459         PR c/63886
2460         * c-parser.c: (warn_for_abs): New function.
2461         (c_parser_postfix_expression_after_primary): Call it.
2463 2018-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2465         * c-typeck.c (digest_init): Shorten overlength strings.
2467 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2469         * c-decl.c (finish_decl): Call complete_flexible_array_elts.
2471 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2473         * c-decl.c (finish_decl): Call braced_list_to_string here ...
2474         * c-parser.c (c_parser_declaration_or_fndef): ... instead of here.
2476 2018-08-30  Alexander Monakov  <amonakov@ispras.ru>
2478         * gimple-parser.c (c_parser_gimple_binary_expression): Accept infix
2479         "__MULT_HIGHPART" for MULT_HIGHPART_EXPR.
2481 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
2483         PR 87091
2484         * c-decl.c (implicitly_declare): Update call to
2485         maybe_add_include_fixit to suggest overriding the location, as it
2486         is for a note.
2487         * c-objc-common.c (c_tree_printer): Update for conversion of
2488         show_caret_p to a tri-state.
2490 2018-08-27  Martin Liska  <mliska@suse.cz>
2492         * c-decl.c (locate_old_decl): Use new function
2493         fndecl_built_in_p and remove check for FUNCTION_DECL if
2494         possible.
2495         (diagnose_mismatched_decls): Likewise.
2496         (merge_decls): Likewise.
2497         (warn_if_shadowing): Likewise.
2498         (pushdecl): Likewise.
2499         (implicitly_declare): Likewise.
2500         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2501         * c-tree.h (C_DECL_ISNT_PROTOTYPE): Likewise.
2502         * c-typeck.c (build_function_call_vec): Likewise.
2503         (convert_arguments): Likewise.
2505 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
2507         PR other/84889
2508         * c-decl.c (pushtag): Add auto_diagnostic_group instance.
2509         (diagnose_mismatched_decls): Likewise, in various places.
2510         (warn_if_shadowing): Likewise.
2511         (implicit_decl_warning): Likewise.
2512         (implicitly_declare): Likewise.
2513         (undeclared_variable): Likewise.
2514         (declare_label): Likewise.
2515         (grokdeclarator): Likewise.
2516         (start_function): Likewise.
2517         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
2518         (c_parser_parameter_declaration): Likewise.
2519         (c_parser_binary_expression): Likewise.
2520         * c-typeck.c (c_expr_sizeof_expr): Likewise.
2521         (parser_build_binary_op): Likewise.
2522         (build_unary_op): Likewise.
2523         (error_init): Likewise.
2524         (pedwarn_init): Likewise.
2525         (warning_init): Likewise.
2526         (convert_for_assignment): Likewise.
2528 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
2530         * c-objc-common.c: Include "gcc-rich-location.h".
2531         (c_tree_printer): Move implemenation of '%T' to...
2532         (print_type): ...this new function.
2533         (range_label_for_type_mismatch::get_text): New function.
2534         * c-typeck.c (convert_for_assignment): Add type labels to the rhs
2535         range for the various ic_argpass cases.
2536         (class maybe_range_label_for_tree_type_mismatch): New class.
2537         (build_binary_op): Use it when calling binary_op_error.
2539 2018-08-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2541         * c-decl.c (start_decl): Do not warn if variables is named as main
2542         and is a local variable.
2544 2018-08-15  Iain Sandoe  <iain@sandoe.co.uk>
2546         PR c/19315
2547         * c-decl.c (finish_decl): Don't add the 'extern' storage class to
2548         objects of unknown size.
2550 2018-08-13  Martin Sebor  <msebor@redhat.com>
2552         PR tree-optimization/71625
2553         * c-parser.c (c_parser_declaration_or_fndef): Call
2554         braced_list_to_string.
2556 2018-08-03  Bogdan Harjoc  <harjoc@gmail.com>
2558         PR c/86690
2559         * c-typeck.c (lookup_field): Do not use TYPE_LANG_SPECIFIC after
2560         errors.
2562 2018-08-01  Martin Sebor  <msebor@redhat.com>
2564         PR tree-optimization/86650
2565         * c-objc-common.c (c_tree_printer): Move usage of EXPR_LOCATION (t)
2566         and TREE_BLOCK (t) from within percent_K_format to this callsite.
2568 2018-08-01  Jakub Jelinek  <jakub@redhat.com>
2570         PR c/85704
2571         * c-typeck.c (init_field_decl_cmp): New function.
2572         (output_pending_init_elements): Use it for field comparisons
2573         instead of pure bit_position comparisons.
2575 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
2577         * c-decl.c (c_decl_attributes): Don't diagnose vars without mappable
2578         type here, instead add "omp declare target implicit" attribute.
2579         (finish_decl): Diagnose vars without mappable type here.
2581 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
2582             Thomas Schwinge  <thomas@codesourcery.com>
2583             Cesar Philippidis  <cesar@codesourcery.com>
2585         * c-parser.c (c_parser_omp_clause_name): Add support for finalize
2586         and if_present. Make present_or_{copy,copyin,copyout,create} aliases
2587         to their non-present_or_* counterparts. Make 'self' an alias to
2588         PRAGMA_OACC_CLAUSE_HOST.
2589         (c_parser_oacc_data_clause): Update GOMP mappings for
2590         PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove
2591         PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}.
2592         (c_parser_oacc_all_clauses): Handle finalize and if_present clauses.
2593         Remove support for present_or_* clauses.
2594         (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
2595         (OACC_PARALLEL_CLAUSE_MASK): Likewise.
2596         (OACC_DECLARE_CLAUSE_MASK): Likewise.
2597         (OACC_DATA_CLAUSE_MASK): Likewise.
2598         (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
2599         (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause.
2600         (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT.
2601         (c_parser_oacc_declare): Remove PRESENT_OR_* clauses.
2602         * c-typeck.c (c_finish_omp_clauses): Handle IF_PRESENT and FINALIZE.
2604 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
2606         * c-typeck.c (build_unary_op): Handle ABSU_EXPR;
2607         * gimple-parser.c (c_parser_gimple_statement): Likewise.
2608         (c_parser_gimple_unary_expression): Likewise.
2610 2018-06-15  Jakub Jelinek  <jakub@redhat.com>
2612         PR c/86093
2613         * c-typeck.c (pointer_diff): Cast both pointers to unqualified types
2614         before doing POINTER_DIFF_EXPR.
2616 2018-06-07  Marek Polacek  <polacek@redhat.com>
2618         PR c/85318
2619         * c-decl.c (check_for_loop_decls): Add -Wc90-c99-compat warning about
2620         for loop initial declarations.
2622 2018-05-30  David Pagan  <dave.pagan@oracle.com>
2624         PR c/55976
2625         * c-decl.c (grokdeclarator): Update check for return type warnings.
2626         (start_function): Likewise.
2627         (finish_function): Likewise.
2628         * c-typeck.c (c_finish_return): Update check for return type warnings.
2629         Pass OPT_Wreturn_type to pedwarn when appropriate.
2631 2018-05-18  Richard Sandiford  <richard.sandiford@linaro.org>
2633         * gimple-parser.c (c_parser_gimple_postfix_expression): Remove
2634         __FMA_EXPR handlng.
2636 2018-05-17  Richard Sandiford  <richard.sandiford@linaro.org>
2638         * gimple-parser.c: Include internal-fn.h.
2639         (c_parser_gimple_statement): Treat a leading CPP_DOT as a call.
2640         (c_parser_gimple_call_internal): New function.
2641         (c_parser_gimple_postfix_expression): Use it to handle CPP_DOT.
2642         Fix typos in comment.
2644 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
2646         PR c++/85662
2647         * c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than
2648         fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the
2649         fold_convert_loc.
2650         * c-typeck.c (build_unary_op): Use fold_offsetof rather than
2651         fold_offsetof_1, pass argtype as TYPE to it and drop the
2652         fold_convert_loc.
2654 2018-05-02  David Pagan  <dave.pagan@oracle.com>
2656         PR c/30552
2657         * c-decl.c (old_style_parameter_scope): New function.
2658         * c-parser.c (c_parser_postfix_expression): Check for statement
2659         expressions in old-style function parameter list declarations.
2660         * c-parser.h (old_style_parameter_scope): New extern declaration.
2662 2018-04-25  Jakub Jelinek  <jakub@redhat.com>
2664         PR sanitizer/84307
2665         * c-decl.c (build_compound_literal): Call pushdecl (decl) even when
2666         it is not TREE_STATIC.
2667         * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark
2668         not just the COMPOUND_LITERAL_EXPR node itself addressable, but also
2669         its COMPOUND_LITERAL_EXPR_DECL.
2671 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
2673         * c-parser.c (c_parser_postfix_expression): For __builtin_tgmath
2674         where all functions return the same _FloatN or _FloatNx type,
2675         treat integer types as _Float64 instead of double.
2677 2018-03-21  Jakub Jelinek  <jakub@redhat.com>
2679         PR c/84999
2680         * c-typeck.c (build_binary_op): If c_common_type_for_size fails when
2681         building vector comparison, diagnose it and return error_mark_node.
2683 2018-03-15  Jakub Jelinek  <jakub@redhat.com>
2685         PR c/84853
2686         * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>:
2687         If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has
2688         INTEGER_TYPE element type.
2690 2018-03-13  David Pagan  <dave.pagan@oracle.com>
2692         PR c/46921
2693         * c-typeck.c (output_init_element): Ensure field initializer
2694         expression is always evaluated if there are side effects.
2696 2018-03-06  Jakub Jelinek  <jakub@redhat.com>
2698         PR c/84721
2699         * c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if
2700         !building_stmt_list_p ().
2702 2018-02-13  Richard Sandiford  <richard.sandiford@linaro.org>
2704         PR c/84305
2705         * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL
2706         in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR
2707         and include the BIND_EXPR in the list of things that need to be
2708         pre-evaluated.
2710 2018-02-09  Nathan Sidwell  <nathan@acm.org>
2712         PR c/84293
2713         * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location
2714         to strict_aliasing_warning.
2716 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
2718         * c-typeck.c (really_start_incremental_init, push_init_level,
2719         set_nonincremental_init, output_init_element, process_init_element):
2720         Use DECL_UNNAMED_BIT_FIELD.
2722 2018-01-31  Marek Polacek  <polacek@redhat.com>
2724         PR c/81779
2725         * c-parser.c (c_parser_compound_statement_nostart): Call
2726         expansion_point_location_if_in_system_header.
2728 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
2730         PR c++/83814
2731         * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just
2732         the C part.
2734 2018-01-13  Jakub Jelinek  <jakub@redhat.com>
2736         PR c/83801
2737         * c-tree.h (decl_constant_value_1): Add a bool argument.
2738         * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow
2739         returning a CONSTRUCTOR if it is true.  Use error_operand_p.
2740         (decl_constant_value): Adjust caller.
2741         * c-fold.c (c_fully_fold_internal): If in_init, pass true to
2742         decl_constant_value_1 as IN_INIT.  Otherwise, punt if
2743         decl_constant_value returns initializer that has BLKmode or
2744         array type.
2745         (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval.
2747 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
2748             Alan Hayward  <alan.hayward@arm.com>
2749             David Sherwood  <david.sherwood@arm.com>
2751         * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial
2752         TYPE_VECTOR_SUBPARTS.
2754 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
2756         Update copyright years.
2758 2018-01-01  Jakub Jelinek  <jakub@redhat.com>
2760         PR c/83595
2761         * c-parser.c (c_parser_braced_init, c_parser_initelt,
2762         c_parser_conditional_expression, c_parser_cast_expression,
2763         c_parser_sizeof_expression, c_parser_alignof_expression,
2764         c_parser_postfix_expression, c_parser_omp_declare_reduction,
2765         c_parser_transaction_expression): Use set_error () method instead
2766         of setting value member to error_mark_node.
2768 2017-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2770         * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N>
2771         and _Float<N>X built-in functions.
2773 2017-12-22  Jakub Jelinek  <jakub@redhat.com>
2775         PR debug/83550
2776         * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on
2777         TYPE_STUB_DECL and call rest_of_type_compilation before processing
2778         incomplete vars rather than after it.
2780         PR debug/83547
2781         * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as
2782         indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first,
2783         and consider empty ones if there are no other stmts.  For
2784         -Wunused-value walk all statements before the one only followed by
2785         DEBUG_BEGIN_STMTs.
2787 2017-12-22  Mike Stump  <mikestump@comcast.net>
2788             Eric Botcazou  <ebotcazou@adacore.com>
2790         * c-parser.c (c_parser_while_statement): Add unroll parameter and
2791         build ANNOTATE_EXPR if present.  Add 3rd operand to ANNOTATE_EXPR.
2792         (c_parser_do_statement): Likewise.
2793         (c_parser_for_statement): Likewise.
2794         (c_parser_statement_after_labels): Adjust calls to above.
2795         (c_parse_pragma_ivdep): New static function.
2796         (c_parser_pragma_unroll): Likewise.
2797         (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll.
2798         <PRAGMA_UNROLL>: New case.
2800 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
2802         * c-typeck.c (comptypes_internal, function_types_compatible_p,
2803         perform_integral_promotions, digest_init): Replace Yoda conditions
2804         with typical order conditions.
2805         * c-decl.c (check_bitfield_type_and_width): Likewise.
2807 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2809         * c-typeck.c (c_safe_arg_type_equiv_p,
2810         c_safe_function_type_cast_p): New function.
2811         (build_c_cast): Implement -Wcast-function-type.
2813 2017-12-14  Richard Biener  <rguenther@suse.de>
2815         PR c/83415
2816         * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR
2817         like REALPART_EXPR for the behavior of whether its operand
2818         is an lvalue.
2820 2017-12-12  Marek Polacek  <polacek@redhat.com>
2822         PR c/82679
2823         * c-decl.c (grokdeclarator): Check declspecs insted of atomicp.
2825 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
2827         * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true.
2828         * c-parser.c (add_debug_begin_stmt): New.
2829         (c_parser_declaration_or_fndef): Call it.
2830         (c_parser_compound_statement_nostart): Likewise.
2831         (c_parser_statement_after_labels): Likewise.
2832         * c-typeck (c_finish_stmt_expr): Skip begin stmts markers.
2834 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
2836         * c-decl.c (build_compound_literal): Add parameter alignas_align
2837         and set alignment of decl if nonzero.
2838         * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS.
2839         (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a
2840         qualifier.
2841         (c_parser_struct_declaration): Update syntax comment.
2842         (c_parser_type_name): Add alignas_ok argument and pass it to
2843         c_parser_declspecs.
2844         (c_parser_cast_expression): Pass true to c_parser_type_name and
2845         give error if a cast used an _Alignas specifier.
2846         (c_parser_sizeof_expression): Pass true to c_parser_type_name and
2847         give error if sizeof (type-name) used an _Alignas specifier.
2848         (c_parser_alignof_expression): Pass true to c_parser_type_name and
2849         give error if _Alignof (type-name) used an _Alignas specifier.
2850         (c_parser_postfix_expression_after_paren_type): Check specified
2851         alignment for a compound literal and pass it to
2852         build_compound_literal.
2853         * c-parser.h (c_parser_type_name): Update prototype.
2854         * c-tree.h (build_compound_literal): Update prototype.
2856 2017-12-07  Martin Sebor  <msebor@redhat.com>
2858         PR c/81544
2859         * c-decl.c (c_decl_attributes): Look up existing declaration and
2860         pass it to decl_attributes.
2862 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
2864         PR c/83236
2865         * c-decl.c (lookup_name_fuzzy): Don't suggest names that are
2866         reserved for use by the implementation.
2868 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
2870         * c-decl.c: Include "c-family/c-spellcheck.h".
2872 2017-12-05  Martin Liska  <mliska@suse.cz>
2873             Jakub Jelinek  <jakub@redhat.com>
2875         * c-typeck.c (pointer_diff): Add new argument and instrument
2876         pointer subtraction.
2877         (build_binary_op): Similar for pointer comparison.
2879 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
2881         PR c/79153
2882         * c-parser.c: Include tree-iterator.h.
2883         (c_parser_switch_statement): Emit LABEL_EXPR for the break label
2884         into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P
2885         on it.
2887         PR c/83222
2888         * c-tree.h (decl_constant_value_1): Declare.
2889         * c-typeck.c (decl_constant_value_1): New function.
2890         (decl_constant_value): Use it.
2891         * c-fold.c (c_fully_fold_internal): If in_init, use
2892         decl_constant_value_1 instead of decl_constant_value.
2894 2017-11-30  Jakub Jelinek  <jakub@redhat.com>
2896         * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;.
2898 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
2900         PR sanitizer/81275
2901         * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if
2902         c_switch_covers_all_cases_p returns true.
2904 2017-11-28  Julia Koval  <julia.koval@intel.com>
2905             Sebastian Peryt  <sebastian.peryt@intel.com>
2907         * Make-lang.in (c/c-array-notation.o): Remove.
2908         * c-array-notation.c: Delete.
2909         * c-decl.c: Remove cilkplus condition.
2910         * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for,
2911         c_parser_cilk_verify_simd, c_parser_array_notation,
2912         c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize,
2913         c_parser_cilk_simd_fn_vector_attrs,
2914         c_finish_cilk_simd_fn_tokens): Delete.
2915         (c_parser_declaration_or_fndef): Remove cilkplus condition.
2916         (c_parser_direct_declarator_inner): Ditto.
2917         (CILK_SIMD_FN_CLAUSE_MASK): Delete.
2918         (c_parser_attributes, c_parser_compound_statement,
2919         c_parser_statement_after_labels, c_parser_if_statement,
2920         c_parser_switch_statement, c_parser_while_statement,
2921         c_parser_do_statement, c_parser_for_statement,
2922         c_parser_unary_expression, c_parser_postfix_expression,
2923         c_parser_postfix_expression_after_primary,
2924         c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses,
2925         c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus
2926         support.
2927         * c-typeck.c (build_array_ref, build_function_call_vec,
2928         convert_arguments,
2929         lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt,
2930         c_finish_loop, build_binary_op): Remove cilkplus support.
2932 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
2934         * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead
2935         of build3.
2937 2017-11-14  Boris Kolpackov  <boris@codesynthesis.com>
2939         * Make-lang.in (c.install-plugin): Install backend import library.
2941 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
2943         * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in
2944         pragma_stmt context.
2946 2017-11-23  Mike Stump  <mikestump@comcast.net>
2947             Eric Botcazou  <ebotcazou@adacore.com>
2949         * c-parser.c (c_parser_while_statement): Pass 3rd operand to
2950         ANNOTATE_EXPR.
2951         (c_parser_do_statement): Likewise.
2952         (c_parser_for_statement): Likewise.
2954 2017-11-22  David Malcolm  <dmalcolm@redhat.com>
2956         PR c++/62170
2957         * c-objc-common.c (c_tree_printer): Convert penultimate param from
2958         bool to bool *.  Within '%T' handling, if showing an "aka", use
2959         "quoted" param to add appropriate quoting.
2961 2017-11-22  Marek Polacek  <polacek@redhat.com>
2963         PR c++/60336
2964         PR middle-end/67239
2965         PR target/68355
2966         * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields.
2968 2017-11-21  David Malcolm  <dmalcolm@redhat.com>
2970         PR c/83056
2971         * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from
2972         earlier failed lookups.
2974 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
2976         * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR.
2977         * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR.
2979 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
2981         PR c/81404
2982         * c-decl.c: Include "c-family/known-headers.h".
2983         (get_c_name_hint): Rename to get_stdlib_header_for_name and move
2984         to known-headers.cc.
2985         (class suggest_missing_header): Move to known-header.h.
2986         (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather
2987         than get_c_name_hint.
2989 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
2991         * c-decl.c (get_c_name_hint): New function.
2992         (class suggest_missing_header): New class.
2993         (lookup_name_fuzzy): Call get_c_name_hint and use it to
2994         suggest missing headers to the user.
2996 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
2998         * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h.
2999         Include "c-family/name-hint.h"
3000         (implicit_decl_warning): Convert "hint" from
3001         const char * to name_hint.  Pass location to
3002         lookup_name_fuzzy.  Suppress any deferred diagnostic if the
3003         warning was not printed.
3004         (undeclared_variable): Likewise for "guessed_id".
3005         (lookup_name_fuzzy): Convert return type from const char *
3006         to name_hint.  Add location_t param.
3007         * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h.
3008         Include "c-family/name-hint.h"
3009         (c_parser_declaration_or_fndef): Convert "hint" from
3010         const char * to name_hint.  Pass location to lookup_name_fuzzy.
3011         (c_parser_parameter_declaration): Likewise.
3013 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
3015         PR c/66618
3016         PR c/69960
3017         * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold
3018         where needed.
3019         * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr,
3020         handle_omp_array_sections): Likewise.
3021         (digest_init): Don't call decl_constant_value_for_optimization.
3022         * c-tree.h (decl_constant_value_for_optimization): Removed.
3023         * c-fold.c (c_fold_array_ref): New function.
3024         (c_fully_fold_internal): Add LVAL argument, propagate it through
3025         recursive calls.  For VAR_P call decl_constant_value and
3026         unshare if not LVAL and either optimizing or IN_INIT.  Remove
3027         decl_constant_value_for_optimization calls.  If IN_INIT and not LVAL,
3028         fold ARRAY_REF with STRING_CST and INTEGER_CST operands.
3029         (c_fully_fold): Add LVAL argument, pass it through to
3030         c_fully_fold_internal.
3031         (decl_constant_value_for_optimization): Removed.
3033 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
3035         PR c/81156
3036         * c-parser.c (check_tgmath_function): New function.
3037         (enum tgmath_parm_kind): New enum.
3038         (c_parser_postfix_expression): Handle __builtin_tgmath.
3040 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
3042         * c-decl.c (implicit_decl_warning): Update for renaming of
3043         pedwarn_at_rich_loc and warning_at_rich_loc.
3044         (implicitly_declare): Likewise for renaming of inform_at_rich_loc.
3045         (undeclared_variable): Likewise for renaming of error_at_rich_loc.
3046         * c-parser.c (c_parser_declaration_or_fndef): Likewise.
3047         (c_parser_struct_or_union_specifier): Likewise for renaming of
3048         pedwarn_at_rich_loc.
3049         (c_parser_parameter_declaration): Likewise for renaming of
3050         error_at_rich_loc.
3051         * c-typeck.c (build_component_ref): Likewise.
3052         (build_unary_op): Likewise for renaming of inform_at_rich_loc.
3053         (pop_init_level): Likewise for renaming of warning_at_rich_loc.
3054         (set_init_label): Likewise for renaming of error_at_rich_loc.
3056 2017-10-30  Richard Biener  <rguenther@suse.de>
3058         * gimple-parser.c (c_parser_gimple_statement): Parse conditional
3059         stmts.
3061 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3063         * c-decl.c (header_for_builtin_fn): Add support for copysign, fma,
3064         fmax, fmin, and sqrt _Float<N> and _Float<N>X variants.
3066 2017-10-25  David Malcolm  <dmalcolm@redhat.com>
3068         PR c/7356
3069         * c-parser.c (c_parser_declaration_or_fndef): Detect missing
3070         semicolons.
3072 2017-10-25  Jakub Jelinek  <jakub@redhat.com>
3074         PR libstdc++/81706
3075         * c-decl.c (merge_decls): Copy "omp declare simd" attributes from
3076         newdecl to corresponding __builtin_ if any.
3078 2017-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
3080         PR c++/82466
3081         * c-decl.c (diagnose_mismatched_decls): Use
3082         OPT_Wbuiltin_declaration_mismatch.
3084 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
3086         * c-parser.c (c_parser_require): Add "type_is_unique" param and
3087         use it to guard calls to maybe_suggest_missing_token_insertion.
3088         (c_parser_parms_list_declarator): Override default value of new
3089         "type_is_unique" param to c_parser_require.
3090         (c_parser_asm_statement): Likewise.
3091         * c-parser.h (c_parser_require): Add "type_is_unique" param,
3092         defaulting to true.
3094 2017-10-11  Nathan Sidwell  <nathan@acm.org>
3096         * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too.
3098 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
3100         * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when
3101         operating on trees as wide_ints.
3102         * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise.
3103         (c_tree_equal): Likewise.
3105 2017-10-04  David Malcolm  <dmalcolm@redhat.com>
3107         * c-decl.c (push_parm_decl): Store c_parm's location into the
3108         PARAM_DECL.
3109         (build_c_parm): Add "loc" param and store it within the c_parm.
3110         * c-parser.c (struct c_parser): Add "last_token_location" field.
3111         (c_parser_consume_token): Store location of the token into the
3112         new field.
3113         (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS
3114         when handling a FUNCTION_DECL, if it doesn't already have them.
3115         (c_parser_parameter_declaration): Generate a location for the
3116         parameter, and pass it to the call to build_c_parm.
3117         * c-tree.h (struct c_parm): Add field "loc".
3118         (build_c_parm): Add location_t param.
3119         * c-typeck.c (get_fndecl_argument_location): New function.
3120         (inform_for_arg): New function.
3121         (convert_for_assignment): Use inform_for_arg when dealing with
3122         ic_argpass.
3124 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
3126         * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if
3127         width is non-NULL.
3128         (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL,
3129         don't SET_DECL_C_BIT_FIELD here.
3131         PR c/82340
3132         * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
3133         instead of trying to set just TREE_READONLY manually.
3135 2017-09-16  Tom de Vries  <tom@codesourcery.com>
3137         PR c/81875
3138         * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
3139         cond itself.
3141 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
3143         PR c/82071
3144         * c-typeck.c (ep_convert_and_check): Just call convert_and_check
3145         for C11.
3146         (build_conditional_expr): For C11, generate result with excess
3147         precision when one argument is an integer and the other is of a
3148         type using excess precision.
3150 2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3152         * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.
3154 2017-09-13  Marek Polacek  <polacek@redhat.com>
3156         PR c/82167
3157         * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
3158         than expr.original_type.
3160 2017-09-12  Nathan Sidwell  <nathan@acm.org>
3162         * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
3163         resort_sorted_fields): Moved from c-family/c-common.c.
3164         * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h.
3166 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
3168         PR c/82071
3169         * c-typeck.c (build_atomic_assign): Handle argument with excess
3170         precision.  Ensure any EXCESS_PRECISION_EXPR is present in
3171         argument passed to build_binary_op and convert_for_assignment but
3172         not for call to c_fully_fold.
3173         (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early.
3174         Ensure build_binary_op is called with argument with original
3175         semantic type.  Avoid calling c_fully_fold with an
3176         EXCESS_PRECISION_EXPR from build_binary_op.
3178 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
3180         PR c/81887
3181         * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
3183 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
3184             Alan Hayward  <alan.hayward@arm.com>
3185             David Sherwood  <david.sherwood@arm.com>
3187         * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE.
3188         (c_common_type): Likewise.  Use as_a <scalar_mode> when setting
3189         m1 and m2 to the signed equivalent of a fixed-point
3190         SCALAR_TYPE_MODE.
3192 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
3194         * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather
3195         than CAN_HAVE_LOCATION_P when determining whether to use the
3196         location_t value within "value".
3198 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
3200         * c-parser.c (c_parser_expr_list): Use c_expr::get_location ()
3201         rather than peeking the location of the first token.
3202         * c-tree.h (c_expr::get_location): New method.
3204 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
3206         * c-typeck.c (build_function_call_vec): Pass arg_loc to call
3207         to check_function_arguments.
3209 2017-08-18  Marek Polacek  <polacek@redhat.com>
3211         * c-parser.c (c_parser_postfix_expression): Remove unused code.  Update
3212         commentary.
3214 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3216         PR c/53037
3217         * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
3218         (check_bitfield_type_and_width): Don't allow bit-field with
3219         warn_if_not_aligned type.
3221 2017-08-14  Martin Sebor  <msebor@redhat.com>
3223         PR c/81117
3224         * c-objc-common.c (c_objc_common_init): Handle 'G'.
3226 2017-08-11  Marek Polacek  <polacek@redhat.com>
3228         PR c/81795
3229         * c-decl.c (pushtag): Only print inform if the warning was printed.
3230         (grokdeclarator): Likewise.
3232 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
3234         * c-parser.c (c_parser_error): Rename to...
3235         (c_parser_error_richloc): ...this, making static, and adding
3236         "richloc" parameter, passing it to the c_parse_error call,
3237         rather than calling c_parser_set_source_position_from_token.
3238         (c_parser_error): Reintroduce, reimplementing in terms of the
3239         above, converting return type from void to bool.
3240         (class token_pair): New class.
3241         (struct matching_paren_traits): New struct.
3242         (matching_parens): New typedef.
3243         (struct matching_brace_traits): New struct.
3244         (matching_braces): New typedef.
3245         (get_matching_symbol): New function.
3246         (c_parser_require): Add param MATCHING_LOCATION, using it to
3247         highlight matching "opening" tokens for missing "closing" tokens.
3248         (c_parser_skip_until_found): Likewise.
3249         (c_parser_static_assert_declaration_no_semi): Convert explicit
3250         parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
3251         class matching_parens, so that the pertinent open parenthesis is
3252         highlighted when there are problems locating the close
3253         parenthesis.
3254         (c_parser_struct_or_union_specifier): Likewise.
3255         (c_parser_typeof_specifier): Likewise.
3256         (c_parser_alignas_specifier): Likewise.
3257         (c_parser_simple_asm_expr): Likewise.
3258         (c_parser_braced_init): Likewise, for matching_braces.
3259         (c_parser_paren_condition): Likewise, for matching_parens.
3260         (c_parser_switch_statement): Likewise.
3261         (c_parser_for_statement): Likewise.
3262         (c_parser_asm_statement): Likewise.
3263         (c_parser_asm_operands): Likewise.
3264         (c_parser_cast_expression): Likewise.
3265         (c_parser_sizeof_expression): Likewise.
3266         (c_parser_alignof_expression): Likewise.
3267         (c_parser_generic_selection): Likewise.
3268         (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
3269         RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
3270         RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
3271         In case CPP_OPEN_PAREN, pass loc_open_paren to the
3272         c_parser_skip_until_found call.
3273         (c_parser_objc_class_definition): Use class matching_parens as
3274         above.
3275         (c_parser_objc_method_decl): Likewise.
3276         (c_parser_objc_try_catch_finally_statement): Likewise.
3277         (c_parser_objc_synchronized_statement): Likewise.
3278         (c_parser_objc_at_property_declaration): Likewise.
3279         (c_parser_oacc_wait_list): Likewise.
3280         (c_parser_omp_var_list_parens): Likewise.
3281         (c_parser_omp_clause_collapse): Likewise.
3282         (c_parser_omp_clause_default): Likewise.
3283         (c_parser_omp_clause_if): Likewise.
3284         (c_parser_omp_clause_num_threads): Likewise.
3285         (c_parser_omp_clause_num_tasks): Likewise.
3286         (c_parser_omp_clause_grainsize): Likewise.
3287         (c_parser_omp_clause_priority): Likewise.
3288         (c_parser_omp_clause_hint): Likewise.
3289         (c_parser_omp_clause_defaultmap): Likewise.
3290         (c_parser_oacc_single_int_clause): Likewise.
3291         (c_parser_omp_clause_ordered): Likewise.
3292         (c_parser_omp_clause_reduction): Likewise.
3293         (c_parser_omp_clause_schedule): Likewise.
3294         (c_parser_omp_clause_num_teams): Likewise.
3295         (c_parser_omp_clause_thread_limit): Likewise.
3296         (c_parser_omp_clause_aligned): Likewise.
3297         (c_parser_omp_clause_linear): Likewise.
3298         (c_parser_omp_clause_safelen): Likewise.
3299         (c_parser_omp_clause_simdlen): Likewise.
3300         (c_parser_omp_clause_depend): Likewise.
3301         (c_parser_omp_clause_map): Likewise.
3302         (c_parser_omp_clause_device): Likewise.
3303         (c_parser_omp_clause_dist_schedule): Likewise.
3304         (c_parser_omp_clause_proc_bind): Likewise.
3305         (c_parser_omp_clause_uniform): Likewise.
3306         (c_parser_omp_for_loop): Likewise.
3307         (c_parser_cilk_clause_vectorlength): Likewise.
3308         (c_parser_cilk_clause_linear): Likewise.
3309         (c_parser_transaction_expression): Likewise.
3310         * c-parser.h (c_parser_require): Add param matching_location with
3311         default UNKNOWN_LOCATION.
3312         (c_parser_error): Convert return type from void to bool.
3313         (c_parser_skip_until_found): Add param matching_location with
3314         default UNKNOWN_LOCATION.
3316 2017-08-09  Marek Polacek  <polacek@redhat.com>
3318         * c-decl.c (build_enumerator): Use true/false instead of 1/0.
3319         * c-tree.h (build_external_ref): Update declaration.
3320         * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
3321         (build_external_ref): Change the type of a parameter to bool.
3322         (parser_build_binary_op): Use true/false instead of 1/0.
3323         (pointer_diff): Likewise.
3324         (build_modify_expr): Likewise.
3325         (set_designator): Change the type of a parameter to bool.
3326         (set_init_index): Use true/false instead of 1/0.
3327         (set_init_label): Likewise.
3328         (output_init_element): Change the type of a parameter to bool.
3329         (output_pending_init_elements): Use true/false instead of 1/0.
3330         (process_init_element): Likewise.
3331         (build_binary_op): Change the type of a parameter to bool.
3333 2017-08-09  Marek Polacek  <polacek@redhat.com>
3335         PR c/81233
3336         * c-typeck.c (pedwarn_init): Make the function take a variable list.
3337         Call emit_diagnostic_valist instead of pedwarn.
3338         (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
3339         Print the relevant types in diagnostics.
3341 2017-08-09  Marek Polacek  <polacek@redhat.com>
3343         PR c/81417
3344         * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
3345         build_conditional_expr.
3346         * c-parser.c (c_parser_conditional_expression): Create locations for
3347         EXP1 and EXP2 from their source ranges.  Pass the locations down to
3348         build_conditional_expr.
3349         * c-tree.h (build_conditional_expr): Update declaration.
3350         * c-typeck.c (build_conditional_expr): Add location_t parameters.
3351         For -Wsign-compare, also print the types.
3353 2017-08-08  Martin Liska  <mliska@suse.cz>
3355         * c-convert.c: Include header files.
3356         * c-typeck.c: Likewise.
3358 2017-08-07  Martin Liska  <mliska@suse.cz>
3360         * c-parser.c (c_parser_attributes): Canonicalize name of an
3361         attribute.
3363 2017-08-02  Marek Polacek  <polacek@redhat.com>
3365         PR c/81289
3366         * c-parser.c (c_parser_unary_expression): Use set_error.
3368         PR c/81448
3369         PR c/81306
3370         * c-warn.c (warn_for_multistatement_macros): Prevent bogus
3371         warnings.  Avoid walking MACRO_MAP_LOCATIONS.
3373 2017-07-31  Jan Hubicka  <hubicka@ucw.cz>
3374             Martin Liska  <mliska@suse.cz>
3376         * c-typeck.c (c_finish_goto_label): Build gimple predict
3377         statement.
3379 2017-07-31  Martin Liska  <mliska@suse.cz>
3381         PR sanitize/81530
3382         * c-convert.c (convert): Guard condition with flag_sanitize_p
3383         also with current_function_decl non-null equality.
3384         * c-decl.c (grokdeclarator): Likewise.
3385         * c-typeck.c (build_binary_op): Likewise.
3387 2017-07-25  Marek Polacek  <polacek@redhat.com>
3389         * c-decl.c (grokfield): Remove local variable.
3391 2017-07-25  Marek Polacek  <polacek@redhat.com>
3393         PR c/81364
3394         * c-parser.c (c_parser_else_body): Don't warn about multistatement
3395         macro expansion if the body is in { }.
3396         (c_parser_while_statement): Likewise.
3397         (c_parser_for_statement): Likewise.
3399 2017-07-18  Nathan Sidwell  <nathan@acm.org>
3401         * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
3403 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
3405         * c-decl.c (implicitly_declare): When suggesting a missing
3406         #include, provide a fix-it hint.
3408 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
3410         * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
3411         and call that instead.
3412         * c-tree.h (selftest::run_c_tests): New decl.
3414 2017-06-26  Marek Polacek  <polacek@redhat.com>
3416         PR c/80116
3417         * c-parser.c (c_parser_if_body): Set the location of the
3418         body of the conditional after parsing all the labels.  Call
3419         warn_for_multistatement_macros.
3420         (c_parser_else_body): Likewise.
3421         (c_parser_switch_statement): Likewise.
3422         (c_parser_while_statement): Likewise.
3423         (c_parser_for_statement): Likewise.
3424         (c_parser_statement): Add a default argument.  Save the location
3425         after labels have been parsed.
3426         (c_parser_c99_block_statement): Likewise.
3428 2017-06-19  Richard Biener  <rguenther@suse.de>
3430         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
3431         negated _Literals to parse _Literal (int) -1.
3433 2017-06-13  Martin Liska  <mliska@suse.cz>
3435         PR sanitize/78204
3436         * c-convert.c (convert): Use sanitize_flags_p.
3437         * c-decl.c (grokdeclarator): Likewise.
3438         * c-typeck.c (convert_for_assignment): Likewise.
3439         (c_finish_return): Likewise.
3440         (build_binary_op): Likewise.
3442 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
3444         PR c/81006
3445         * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
3446         to sizetype before size_binop.
3448 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
3450         * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
3451         of TDI_generic.
3453 2017-06-06  Marek Polacek  <polacek@redhat.com>
3455         PR c/79983
3456         * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
3457         ref.
3458         (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
3460 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3462         * c-parser.c (c_parser_binary_expression): Implement the
3463         -Wsizeof_pointer_div warning.
3464         (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
3465         from a parenthesized expression.
3466         (c_parser_expr_list): Use c_last_sizeof_loc.
3467         * c-tree.h (c_last_sizeof_loc): New external.
3468         * c-typeck.c (c_last_sizeof_loc): New variable.
3469         (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
3471 2017-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
3473         PR testsuite/80580
3474         * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
3476 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
3478         * c-objc-common.c (c_tree_printer): Gain bool and const char **
3479         parameters.
3481 2017-05-24  Martin Sebor  <msebor@redhat.com>
3483         PR c/80731
3484         * c-fold.c (c_fully_fold_internal): Adjust.
3485         * c-typeck.c (parser_build_unary_op): Adjust.
3487 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3489         * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
3490         "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
3491         "VECTOR_LENGTH".
3493 2017-05-23  Marek Polacek  <polacek@redhat.com>
3495         * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
3496         quotes.
3498 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
3500         * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
3501         result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
3502         it returned invariant.  Call tree_invariant_p unconditionally
3503         afterwards to decide whether to return expr or op0.
3505 2017-05-22  Nathan Sidwell  <nathan@acm.org>
3507         * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
3509 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
3511         * c-parser.c (c_parser_omp_clause_default): Handle
3512         "OMP_CLAUSE_DEFAULT_PRESENT".
3514 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3516         * config-lang.in (gtfiles): Add c-family/c-format.c.
3518 2017-05-18  Nathan Sidwell  <nathan@acm.org>
3520         * c-decl.c (pushdecl_top_level): Delete unused function.
3522 2017-05-18  Marek Polacek  <polacek@redhat.com>
3524         * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
3525         (check_earlier_gotos): Likewise.
3526         (define_label): Likewise.
3527         (pending_xref_error): Likewise.
3528         (smallest_type_quals_location): Likewise.
3529         (grokdeclarator): Likewise.
3530         (grokparms): Likewise.
3531         (identifier_global_value): Likewise.
3532         * c-typeck.c (set_nonincremental_init_from_string): Likewise.
3533         (find_init_member): Likewise.
3535 2017-05-18  Marek Polacek  <polacek@redhat.com>
3537         * c-decl.c (start_decl): Use false/true instead of 0/1.
3538         (grokdeclarator): Likewise.
3539         (finish_struct): Likewise.
3540         (start_function): Change the return type to bool.  Use false/true
3541         instead of 0/1.
3542         (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
3543         * c-tree.h (start_function): Update.
3544         * c-typeck.c (same_translation_unit_p): Change the return type to bool.
3545         (set_designator): Change the return type to bool.  Use false/true
3546         instead of 0/1.
3548 2017-05-17  Marek Polacek  <polacek@redhat.com>
3550         * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
3551         * c-typeck.c: Likewise.
3553 2017-05-17  Marek Polacek  <polacek@redhat.com>
3555         PR sanitizer/80659
3556         * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
3557         DECL_IGNORED_P even for non-static compound literals.
3559 2017-05-17  Martin Liska  <mliska@suse.cz>
3561         * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
3562         use it instead of int type.
3564 2017-05-17  Marek Polacek  <polacek@redhat.com>
3566         * c-convert.c (convert): Replace c_save_expr with save_expr.  Don't
3567         call c_fully_fold.
3568         (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
3569         * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr.
3570         * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
3571         * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
3572         save_expr.
3573         (c_parser_conditional_expression): Likewise.
3574         * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
3575         * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
3576         (process_init_element): Likewise.
3577         (build_binary_op): Likewise.
3578         (handle_omp_array_sections_1): Likewise.
3580 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3582         * c-parser.c (c_parser_omp_clause_num_gangs)
3583         (c_parser_omp_clause_num_workers)
3584         (c_parser_omp_clause_vector_length): Merge functions into...
3585         (c_parser_oacc_single_int_clause): ... this new function.  Adjust
3586         all users.
3588 2017-05-11  Nathan Sidwell  <nathan@acm.org>
3590         * gimple-parser.c: Don't #include tree-dump.h.
3592 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3594         PR testsuite/80580
3595         * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
3597 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3599         PR testsuite/80580
3600         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
3601         incorrect __MEM syntax.
3603 2017-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3605         PR testsuite/80580
3606         * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
3607         type of unary '*'.
3609 2017-05-09  Nathan Sidwell  <nathan@acm.org>
3611         * c-tree.h (pushdecl): Declare.
3613 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
3615         * c-decl.c (warn_defaults_to): Replace report_diagnostic
3616         with diagnostic_report_diagnostic.
3617         * c-errors.c (pedwarn_c99): Likewise.
3618         (pedwarn_c90): Likewise.
3620 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
3622         PR c++/80038
3623         * c-gimplify.c (c_gimplify_expr): Remove calls to
3624         cilk_gimplifY_call_params_in_spawned_fn.
3626 2017-04-25  David Malcolm  <dmalcolm@redhat.com>
3628         * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
3629         hint for removing extra semicolon.
3631 2017-04-21  Jakub Jelinek  <jakub@redhat.com>
3633         PR c/80468
3634         * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
3635         enabled, set specs->type to integer_type_node.
3637 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
3639         * c-array-notation.c: Fix typo in comment.
3641 2017-03-29  Marek Polacek  <polacek@redhat.com>
3643         PR c/79730
3644         * c-decl.c (finish_decl): Check VAR_P.
3646 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
3648         PR middle-end/80162
3649         * c-tree.h (c_mark_addressable): Add array_ref_p argument.
3650         * c-typeck.c (c_mark_addressable): Likewise.  Look through
3651         VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
3652         to ARRAY_TYPE.
3653         (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
3655 2017-03-23  Marek Polacek  <polacek@redhat.com>
3657         * c-tree.h: Remove a C_RID_YYCODE reference.
3659 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
3661         PR c/80097
3662         * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
3663         optional COMPOUND_EXPR with ubsan instrumentation.
3665 2017-03-17  Marek Polacek  <polacek@redhat.com>
3667         * c-parser.c: Add C11 references.
3669 2017-03-15  Marek Polacek  <polacek@redhat.com>
3671         * c-parser.c (c_parser_enum_specifier): Remove redundant line.
3673 2017-03-11  Marek Polacek  <polacek@redhat.com>
3675         * c-decl.c (implicit_decl_warning): Add a comment.  Fix formatting.
3677 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
3679         PR translation/79848
3680         * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
3681         "%qs".
3682         * c-parser.c (c_parser_oacc_shape_clause): Likewise.
3684 2017-03-09  Marek Polacek  <polacek@redhat.com>
3686         PR sanitizer/79757
3687         * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
3688         parameter declarations with initializers.
3690 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
3692         PR c/79969
3693         * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
3694         TYPE_STUB_DECL.
3696 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
3698         PR c/79834
3699         * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
3700         for "may only be used in compound statements" diagnostics, change it
3701         such that the same translatable string is used for all pragmas.  For
3702         PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
3703         diagnostics.
3704         (c_parser_omp_cancellation_point, c_parser_omp_target_update,
3705         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
3706         "may only be used in compound statements" diagnostics, such that the
3707         same translatable string is used for all pragmas.
3709 2017-03-04  Marek Polacek  <polacek@redhat.com>
3711         PR c/79847
3712         * c-decl.c (implicit_decl_warning): Add missing space.
3714 2017-03-03  Marek Polacek  <polacek@redhat.com>
3716         PR c/79758
3717         * c-decl.c (store_parm_decls_oldstyle): Check if the element of
3718         current_function_prototype_arg_types is error_mark_node.  Fix
3719         formatting.  Use TREE_VALUE instead of TREE_TYPE.
3721 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
3723         PR c/79837
3724         * c-parser.c (c_parser_omp_clause_reduction): Don't mention
3725         %<min%> or %<max%> in the diagnostics, instead mention identifier.
3726         (c_parser_omp_declare_reduction): Don't mention %<min%> in the
3727         diagnostics.
3729         PR c/79836
3730         * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
3731         instead of %<_Generic>.
3732         (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
3733         (c_parser_omp_target_exit_data): Use %<release%> instead of
3734         %<release>.
3736 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
3738         * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
3739         instead of just cond ? "..." : "...".
3740         (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
3741         for "enter"/"exit" keyword.
3742         (c_finish_oacc_routine): Don't use %s to supply portions of the
3743         message.
3745 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
3747         PR c++/79588
3748         * c-parser.c (c_parser_postfix_expression_after_primary): Don't
3749         handle -Wrestrict here.
3750         * c-typeck.c (build_function_call_vec): Adjust
3751         check_function_arguments caller.
3753 2017-02-23  Richard Biener  <rguenther@suse.de>
3755         PR c/79684
3756         * gimple-parser.c (c_parser_gimple_statement): Use set_error
3757         to initialize c_exprs to return.
3758         (c_parser_gimple_binary_expression): Likewise.
3759         (c_parser_gimple_unary_expression): Likewise.
3760         (c_parser_gimple_postfix_expression): Likewise.
3762 2017-02-22  Marek Polacek  <polacek@redhat.com>
3764         PR c/79662
3765         * c-typeck.c (convert_arguments): Handle error_mark_node.
3767 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3769         * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
3770         value of c_parser_parse_ssa_name against error_mark_node and emit
3771         error if ssa name is anonymous and written as default definition.
3773 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3775         * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
3776         FMA_EXPR.
3778 2017-02-16  Jakub Jelinek  <jakub@redhat.com>
3780         PR c++/79512
3781         * c-parser.c (c_parser_omp_target): For -fopenmp-simd
3782         ignore #pragma omp target even when not followed by identifier.
3784 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3786         * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
3787         (c_parser_gimple_unary_expression): Likewise.
3789 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3791         * c-parser.c (c_parser_oacc_declare): Add missing space in
3792         diagnostics.
3794 2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3796         PR c/79478
3797         * gimple-parser.c (c_parser_gimple_postfix_expression): Call
3798         set_c_expr_source_range when parsing ssa-name.
3800 2017-02-10  Prasad Ghangal  <prasad.ghangal@gmail.com>
3801             Richard Biener  <rguenther@suse.de>
3803         * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
3804         building IL when arguments are error_mark_node.
3805         (c_parser_gimple_unary_expression): Likewise.
3806         (c_parser_gimple_if_stmt): Likewise.
3807         (c_parser_gimple_switch_stmt): Likewise.
3808         (c_parser_gimple_return_stmt): Likewise.
3809         (c_parser_parse_ssa_name): When name lookup fails do not build
3810         an SSA name.  Use undeclared rather than not declared in error
3811         reporting.
3813 2017-02-09  Marek Polacek  <polacek@redhat.com>
3815         PR c/79428
3816         * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
3817         instead of c_parser_skip_until_found.
3819 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
3821         PR c/79431
3822         * c-parser.c (c_parser_omp_declare_target): Don't invoke
3823         symtab_node::get on automatic variables.
3825 2016-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3826             Chung-Lin Tang  <cltang@codesourcery.com>
3828         * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
3829         (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
3830         semantic checking.
3831         * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
3833 2017-02-07  Richard Biener  <rguenther@suse.de>
3835         * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
3836         (c_parser_gimple_postfix_expression_after_primary):
3837         Do not use c_build_function_call_vec to avoid folding and promotion.
3838         Simplify.
3840 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
3842         PR lto/79061
3843         * c-decl.c (pop_scope): Pass main_input_filename to
3844         build_translation_unit_decl.
3846 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
3848         * c-parser.c: Include "read-rtl-function.h" and
3849         "run-rtl-passes.h".
3850         (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
3851         grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
3852         production.  Update for renaming of field "gimple_pass" to
3853         "gimple_or_rtl_pass".  If __RTL was seen, call
3854         c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
3855         to an auto_timevar, to cope with early exit.
3856         (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
3857         field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
3858         c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
3859         Handle RID_RTL.
3860         (c_parser_parse_rtl_body): New function.
3861         * c-tree.h (enum c_declspec_word): Add cdw_rtl.
3862         (struct c_declspecs): Rename field "gimple_pass" to
3863         "gimple_or_rtl_pass".  Add field "rtl_p".
3864         * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
3865         (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
3866         * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
3867         (c_parser_gimple_or_rtl_pass_list): ...this.
3869 2017-01-20  Marek Polacek  <polacek@redhat.com>
3871         PR c/64279
3872         * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
3874 2017-01-13  Richard Biener  <rguenther@suse.de>
3876         * gimple-parser.c (c_parser_gimple_compound_statement): Handle
3877         nops.
3879 2017-01-13  Richard Biener  <rguenther@suse.de>
3881         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
3882         _Literal ( type-name ) number.
3884 2017-01-12  Richard Biener  <rguenther@suse.de>
3886         * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
3887         __MEM.
3889 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
3891         PR c++/72813
3892         * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
3893         PCH file.
3895 2017-01-11  Richard Biener  <rguenther@suse.de>
3897         PR bootstrap/79052
3898         * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
3899         returns on parse errors.
3901 2017-01-04  Marek Polacek  <polacek@redhat.com>
3903         PR c++/64767
3904         * c-parser.c (c_parser_postfix_expression): Mark zero character
3905         constants by setting original_type in c_expr.
3906         * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
3907         with a zero character constant.
3908         (char_type_p): New function.
3910 2017-01-04  David Malcolm  <dmalcolm@redhat.com>
3912         * c-parser.c (c_parser_declaration_or_fndef): Create a
3913         rich_location at init_loc and parse it to start_init.
3914         (last_init_list_comma): New global.
3915         (c_parser_braced_init): Update last_init_list_comma when parsing
3916         commas.  Pass it to pop_init_level.  Pass location of closing
3917         brace to pop_init_level.
3918         (c_parser_postfix_expression_after_paren_type): Create a
3919         rich_location at type_loc and parse it to start_init.
3920         (c_parser_omp_declare_reduction): Likewise for loc.
3921         * c-tree.h (start_init): Add rich_location * param.
3922         (pop_init_level): Add location_t param.
3923         * c-typeck.c (struct initializer_stack): Add field
3924         "missing_brace_richloc".
3925         (start_init): Add richloc param, use it to initialize
3926         the stack node's missing_brace_richloc.
3927         (last_init_list_comma): New decl.
3928         (finish_implicit_inits): Pass last_init_list_comma to
3929         pop_init_level.
3930         (push_init_level): When finding missing open braces, add fix-it
3931         hints to the richloc.
3932         (pop_init_level): Add "insert_before" param and pass it
3933         when calling pop_init_level.  Add fixits about missing
3934         close braces to any richloc.  Use the richloc for the
3935         -Wmissing-braces warning.
3936         (set_designator): Pass last_init_list_comma to pop_init_level.
3937         (process_init_element): Likewise.
3939 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
3941         Update copyright years.
3943 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
3945         PR bootstrap/78817
3946         * c-typeck.c (build_function_call_vec): If check_function_arguments
3947         returns true, set TREE_NO_WARNING on CALL_EXPR.
3949         PR c/77767
3950         * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
3951         to *expr instead of overwriting it.
3953 2016-12-20  Richard Biener  <rguenther@suse.de>
3955         * gimple-parser.c (c_parser_gimple_compound_statement): Improve
3956         error recovery.
3957         (c_parser_gimple_statement): Only build assigns for non-error
3958         stmts.
3959         (c_parser_gimple_postfix_expression_after): Improve error recovery.
3961 2016-12-14  Martin Jambor  <mjambor@suse.cz>
3963         * c-parser.c: Include omp-general.h and omp-offload.h instead of
3964         omp-low.h.
3965         (c_finish_oacc_routine): Adjusted call to
3966         get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
3967         to use their new names.
3968         (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
3969         use its new name.
3970         (c_parser_oacc_update): Likewise.
3971         (c_parser_omp_simd): Likewise.
3972         (c_parser_omp_target_update): Likewise.
3973         * c-typeck.c: Include omp-general.h instead of omp-low.h.
3974         (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
3975         name.
3976         (c_finish_omp_cancellation_point): Likewise.
3977         * gimple-parser.c: Do not include omp-low.h
3979 2016-12-02  Cesar Philippidis  <cesar@codesourcery.com>
3980             James Norris  <jnorris@codesourcery.com>
3982         * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
3983         EXIT_DATA,WAIT} are not used in compound statements.
3984         (c_parser_oacc_enter_exit_data): Update diagnostics.
3986 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3988         PR c++/71973
3989         * c-decl.c (diagnose_mismatched_decls): Use
3990         OPT_Wbuiltin_declaration_mismatch here too.
3992 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3993             Alan Hayward  <alan.hayward@arm.com>
3994             David Sherwood  <david.sherwood@arm.com>
3996         * c-decl.c (merge_decls): Use SET_DECL_MODE.
3997         (make_label, finish_struct): Likewise.
3999 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
4000             Richard Biener  <rguenther@suse.de>
4002         * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
4003         * config-lang.in (gtfiles): Add c/c-parser.h.
4004         * c-tree.h (enum c_declspec_word): Add cdw_gimple.
4005         (struct c_declspecs): Add gimple_pass member and gimple_p flag.
4006         * c-parser.c (enum c_id_kind, struct c_token,
4007         c_parser_next_token_is, c_parser_next_token_is_not,
4008         c_parser_next_token_is_keyword,
4009         enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
4010         Split out to ...
4011         * c-parser.h: ... new header.
4012         * c-parser.c: Include c-parser.h and gimple-parser.h.
4013         (c_parser_peek_token, c_parser_peek_2nd_token,
4014         c_token_starts_typename, c_parser_next_token_starts_declspecs,
4015         c_parser_next_tokens_start_declaration, c_parser_consume_token,
4016         c_parser_error, c_parser_require, c_parser_skip_until_found,
4017         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
4018         c_parser_type_name): Export.
4019         (c_parser_tokens_buf): New function.
4020         (c_parser_error): Likewise.
4021         (c_parser_set_error): Likewise.
4022         (c_parser_declspecs): Handle RID_GIMPLE.
4023         (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
4024         via c_parser_parse_gimple_body.
4025         * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
4026         c_token_starts_typename, c_parser_next_token_starts_declspecs,
4027         c_parser_next_tokens_start_declaration, c_parser_consume_token,
4028         c_parser_error, c_parser_require, c_parser_skip_until_found,
4029         c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
4030         c_parser_type_name): Declare.
4031         (struct c_parser): Declare forward.
4032         (c_parser_tokens_buf): Declare.
4033         (c_parser_error): Likewise.
4034         (c_parser_set_error): Likewise.
4035         * gimple-parser.c: New file.
4036         * gimple-parser.h: Likewise.
4038 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4040         PR c/35503
4041         * c-parser.c (c_parser_postfix_expression_after_primary): Call
4042         warn_for_restrict.
4044 2016-09-11  Le-Chun Wu  <lcwu@google.com>
4045             Mark Wielaard  <mjw@redhat.com>
4047         * c-decl.c (warn_if_shadowing): Use the warning code corresponding
4048         to the given -Wshadow= variant.
4050 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4052         * c-typeck.c: Include memmodel.h.
4054 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
4056         PR target/77957
4057         * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
4058         instead of lhd_return_null_tree_v.
4060 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
4062         PR c++/69733
4063         * c-decl.c (smallest_type_quals_location): New static function.
4064         (grokdeclarator): Try to find the correct location for an ignored
4065         qualifier.
4067 2016-09-26  Marek Polacek  <polacek@redhat.com>
4069         PR c/7652
4070         * c-decl.c (pop_scope): Add gcc_fallthrough.
4072 2016-09-26  Marek Polacek  <polacek@redhat.com>
4074         PR c/7652
4075         * c-parser.c (struct c_token): Add flags field.
4076         (c_lex_one_token): Pass it to c_lex_with_flags.
4077         (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
4078         into IFN_FALLTHROUGH.
4079         (c_parser_label): Set FALLTHROUGH_LABEL_P on labels.  Handle
4080         attribute fallthrough after a case label or default label.
4081         (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
4083 2016-09-24  Marek Polacek  <polacek@redhat.com>
4085         PR c/77490
4086         * c-typeck.c (build_unary_op): Warn about bit not on expressions that
4087         have boolean value.  Warn about ++/-- on booleans.
4089 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
4091         * c-parser.c (incomplete_record_decls): Remove unnecessary
4092         = vNULL initialization of file scope vec.
4094 2016-09-16  Marek Polacek  <polacek@redhat.com>
4096         * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
4098 2016-09-14  Marek Polacek  <polacek@redhat.com>
4100         * c-array-notation.c (create_cmp_incr): Use false instead of 0.
4101         (fix_array_notation_expr): Likewise.
4102         * c-decl.c (finish_decl): Likewise.
4103         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
4104         * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
4105         (function_to_pointer_conversion): Use false instead of 0.
4106         (convert_lvalue_to_rvalue): Likewise.
4107         (parser_build_unary_op): Likewise.
4108         (build_atomic_assign): Likewise.
4109         (build_unary_op): Change nonconvert parameter type to bool, use
4110         true/false instead of 1/0.
4111         (build_binary_op): Use true instead of 1.
4113 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
4115         * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
4116         of add_fixit_insert to add_fixit_insert_before.
4118 2016-09-13  Marek Polacek  <polacek@redhat.com>
4120         * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT.  Use
4121         it.
4123 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4125         PR c++/77496
4126         * c-parser.c (c_parser_conditional_expression): Pass the rightmost
4127         COMPOUND_EXPR to warn_for_omitted_condop.
4129 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
4131         * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
4132         c_get_substring_location for this new langhook.
4134 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4136         PR c/65467
4137         * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
4138         flag_openmp.
4139         (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
4140         instead of mark_exp_read on low_bound/length expression.
4141         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
4142         c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
4143         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
4144         c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
4145         c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
4146         c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
4147         c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
4148         c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
4149         c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
4150         c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
4151         instead of mark_expr_read.
4152         (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
4153         * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
4154         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
4155         * c-tree.h (c_omp_clause_copy_ctor): New prototype.
4156         * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
4157         array section bases outside of depend clause, for depend clause
4158         use convert_lvalue_to_rvalue on the base.
4159         (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
4160         linear, aligned, map, to and from clauses.
4161         (c_omp_clause_copy_ctor): New function.
4163 2016-09-01  Marek Polacek  <polacek@redhat.com>
4165         PR c/7652
4166         * c-typeck.c (composite_type): Add FALLTHRU comment.
4168 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4170         * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
4171         to the insertion fixits for "struct", "union", and "enum".
4173 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4175         * c-decl.c (implicit_decl_warning): Use add_fixit_replace
4176         rather than add_fixit_misspelled_id.
4177         (undeclared_variable): Likewise.
4178         * c-parser.c (c_parser_declaration_or_fndef): Likewise.  Remove
4179         now-redundant "here" params from add_fixit_insert method calls.
4180         (c_parser_parameter_declaration): Likewise.
4181         * c-typeck.c (build_component_ref): Remove now-redundant range
4182         param from add_fixit_replace method calls.
4184 2016-08-25  Marek Polacek  <polacek@redhat.com>
4186         * c-typeck.c (parser_build_binary_op): Pass LHS to
4187         warn_logical_not_parentheses.
4189 2016-08-25  Marek Polacek  <polacek@redhat.com>
4191         PR c/77323
4192         * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
4193         or _FloatN or _FloatNx is not supported.
4194         (finish_declspecs): Set type to integer_type_node when _FloatN or
4195         _FloatNx is not supported.
4197 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
4199         PR c/32187
4200         * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
4201         (struct c_declspecs): Add field floatn_nx_idx.
4202         * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
4203         and _FloatNx type specifiers.
4204         * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
4205         (c_parser_declspecs, c_parser_attribute_any_word)
4206         (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
4207         * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
4208         (convert_arguments): Avoid promoting _FloatN and _FloatNx types
4209         narrower than double.
4211 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4212             Martin Liska  <mliska@suse.cz>
4214         PR c/67410
4215         * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
4216         % to determine val element to change.  Assert that
4217         wchar_bytes * charwidth fits into val array.
4219 2016-08-12  Marek Polacek  <polacek@redhat.com>
4221         PR c/7652
4222         * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
4223         (c_parser_postfix_expression): Likewise.
4224         * c-typeck.c (build_unary_op): Adjust fall through comment.
4225         (c_mark_addressable): Likewise.
4227 2016-08-11  Jakub Jelinek  <jakub@redhat.com>
4229         PR c/72816
4230         * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
4231         array member through typedef, for orig_qual_indirect == 0 clear
4232         orig_qual_type.
4234 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
4236         PR c/64955
4237         * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
4238         this up to selftest::run_c_tests.
4239         (selftest::run_c_tests): New function.
4241 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
4243         * c-parser.c (struct oacc_routine_data): Add error_seen and
4244         fndecl_seen members.
4245         (c_finish_oacc_routine): Use these.
4246         (c_parser_declaration_or_fndef): Adjust.
4247         (c_parser_oacc_routine): Likewise.  Support more C language
4248         constructs, and improve diagnostics.  Move pragma context
4249         checking...
4250         (c_parser_pragma): ... here.
4252         * c-parser.c (struct oacc_routine_data): New.
4253         (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
4254         Simplify code.
4255         (c_finish_oacc_routine): Likewise.  Don't attach clauses to "omp
4256         declare target" attribute.
4258 2016-08-01  Jan Beulich  <jbeulich@suse.com>
4260         * c-fold.c (c_fully_fold_internal): Also emit shift count
4261         warnings for vector types.
4262         * c-typeck.c (build_binary_op): Likewise.
4264 2016-07-29  Marek Polacek  <polacek@redhat.com>
4266         PR c/71742
4267         * c-decl.c (finish_struct): Rephrase an error message.
4269         PR c/71853
4270         * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
4271         to error node for invalid code.
4273         PR c/71573
4274         * c-decl.c (implicitly_declare): Return decl early not only for
4275         error_mark_nodes, but for anything that is not a FUNCTION_DECL.
4277 2016-07-29  Jakub Jelinek  <jakub@redhat.com>
4279         PR c/71969
4280         * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
4281         on GNU extern inline functions.
4283 2016-07-29  Marek Polacek  <polacek@redhat.com>
4285         PR c/71583
4286         * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
4287         check expr.value.
4289 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
4291         * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
4293 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
4295         * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
4296         spellcheck-tree.h
4297         (best_macro_match): Likewise, converting from a typedef to a
4298         subclass.
4299         (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
4300         (lookup_name_fuzzy): Update for change of best_macro_match to a
4301         subclass with a ctor that calls cpp_forall_identifiers.
4303 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
4305         * c-decl.c (implicit_decl_warning): Update for conversion of
4306         return type of lookup_name_fuzzy to const char *.
4307         (undeclared_variable): Likewise.
4308         (lookup_name_fuzzy): Convert return type from tree to
4309         const char *.
4310         * c-parser.c (c_parser_declaration_or_fndef): Update for
4311         conversion of return type of lookup_name_fuzzy to const char *.
4312         (c_parser_parameter_declaration): Likewise.
4314 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
4316         * c-parser.c (c_parser_oacc_declare): Don't scan for
4317         GOMP_MAP_POINTER.
4318         * c-typeck.c (handle_omp_array_sections): Mark data clauses with
4319         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
4320         zero-length subarrays.
4322 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
4324         PR c/71858
4325         * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
4326         instead of FUZZY_LOOKUP_NAME.
4327         (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
4328         FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
4330 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
4332         PR c/71858
4333         * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
4335 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4337         * c-parser.c (c_parser_generic_selection): Make type of variable
4338         auto_vec.
4339         (c_parser_omp_declare_simd): Likewise.
4341 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4343         * c-decl.c (struct c_struct_parse_info): Change member types
4344         from vec to auto_vec.
4345         (start_struct): Adjust.
4346         (finish_struct): Likewise.
4348 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
4350         PR c/71719
4351         * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
4353 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
4355         * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
4356         Move pragma context checking into...
4357         (c_parser_omp_cancellation_point): ... here, and improve
4358         diagnostic messages.
4359         * c-typeck.c (c_finish_omp_cancel)
4360         (c_finish_omp_cancellation_point): Improve diagnostic messages.
4362 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
4364         PR c/71685
4365         * c-typeck.c (c_build_qualified_type): Don't clear
4366         C_TYPE_INCOMPLETE_VARS for the main variant.
4368 2016-06-28  Martin Sebor  <msebor@redhat.com>
4370         PR c/71552
4371         * c-typeck.c (output_init_element): Diagnose incompatible types
4372         before non-constant initializers.
4374 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
4376         * Make-lang.in: Don't cat ../stage_current if it does not exist.
4378 2016-06-23  Andi Kleen  <ak@linux.intel.com>
4380         * Make-lang.in: Add support for autofdo.
4382 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
4384         PR c/70339
4385         * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
4386         (implicit_decl_warning): When issuing warnings for implicit
4387         declarations, attempt to provide a suggestion via
4388         lookup_name_fuzzy.
4389         (undeclared_variable): Likewise when issuing errors.
4390         (lookup_name_in_scope): Likewise.
4391         (struct edit_distance_traits<cpp_hashnode *>): New struct.
4392         (best_macro_match): New typedef.
4393         (find_closest_macro_cpp_cb): New function.
4394         (lookup_name_fuzzy): New function.
4395         * c-parser.c: Include gcc-rich-location.h.
4396         (c_token_starts_typename): Split out case CPP_KEYWORD into...
4397         (c_keyword_starts_typename): ...this new function.
4398         (c_parser_declaration_or_fndef): When issuing errors about
4399         missing "struct" etc, add a fixit.  For other kinds of errors,
4400         attempt to provide a suggestion via lookup_name_fuzzy.
4401         (c_parser_parms_declarator): When looking ahead to detect typos in
4402         type names, also reject CPP_KEYWORD.
4403         (c_parser_parameter_declaration): When issuing errors about
4404         unknown type names, attempt to provide a suggestion via
4405         lookup_name_fuzzy.
4406         * c-tree.h (c_keyword_starts_typename): New prototype.
4408 2016-06-20  Joseph Myers  <joseph@codesourcery.com>
4410         PR c/71601
4411         * c-typeck.c (build_conditional_expr): Return error_mark_node if
4412         c_common_type returns error_mark_node.
4414 2016-06-19  Martin Sebor  <msebor@redhat.com>
4416         PR c/69507
4417         * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
4418         __alignof__ (expression).
4420 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4422         * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
4424 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4426         * c-typeck.c (build_component_ref): Simplify fixit code by
4427         using gcc_rich_location::add_fixit_misspelled_id.
4428         (set_init_label): Likewise.
4430 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4432         * c-parser.c (c_parser_initelt): Provide location of name for new
4433         location_t param of set_init_label.
4434         * c-tree.h (set_init_label): Add location_t param.
4435         * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
4436         param and use it when issuing error messages about unrecognized
4437         field names.  Attempt to provide a fixit hint if appropriate,
4438         otherwise update the error message to provide the type name.
4440 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4442         PR c/71381
4443         * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
4444         Loosen checking.
4446 2016-06-08  Martin Sebor  <msebor@redhat.com>
4447             Jakub Jelinek  <jakub@redhat.com>
4449         PR c++/70507
4450         PR c/68120
4451         * c-typeck.c (convert_arguments): Don't promote last argument
4452         of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4454 2016-06-08  Marek Polacek  <polacek@redhat.com>
4456         PR c/71418
4457         * c-decl.c (grokdeclarator): Check TYPE_P.
4459         PR c/71426
4460         * c-decl.c (get_parm_info): Don't crash on an assert on invalid
4461         code.
4463 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
4465         * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
4466         and structure element reference, capture the location of the
4467         element name token and pass it to build_component_ref.
4468         (c_parser_postfix_expression_after_primary): Likewise for
4469         structure element dereference.
4470         (c_parser_omp_variable_list): Likewise for
4471         OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
4472         * c-tree.h (build_component_ref): Add location_t param.
4473         * c-typeck.c (build_component_ref): Add location_t param
4474         COMPONENT_LOC.  Use it, if available, when issuing hints about
4475         mispelled member names to provide a fixit replacement hint.
4477 2016-06-06  Marek Polacek  <polacek@redhat.com>
4479         PR c/71362
4480         * c-parser.c (c_parser_direct_declarator): Set location.
4482 2016-06-06  Marek Polacek  <polacek@redhat.com>
4484         * c-typeck.c (comptypes_internal): Handle comparisons of
4485         INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
4486         TYPE_REF_CAN_ALIAS_ALL.
4488 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
4490         * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
4491         arguments as addressable when async clause exists.
4493 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
4495         PR c++/71349
4496         * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
4497         when combined with target construct.
4499 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4501         * c-parser.c (c_parser_omp_clause_schedule): Warn if
4502         OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
4504 2016-05-25  Marek Polacek  <polacek@redhat.com>
4506         PR c/71265
4507         * c-decl.c (c_make_fname_decl): Don't check seen_error.
4509         PR c/71266
4510         * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
4512 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4514         * c-parser.c (c_parser_oacc_declare): Add support for
4515         GOMP_MAP_FIRSTPRIVATE_POINTER.
4516         * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
4517         argument with enum c_omp_region_type ort.
4518         (handle_omp_array_sections): Likewise.  Update call to
4519         handle_omp_array_sections_1.
4520         (c_finish_omp_clauses): Add specific errors and warning messages for
4521         OpenACC.  Use firsrtprivate pointers for OpenACC subarrays.  Update
4522         call to handle_omp_array_sections.
4524 2016-05-24  Thomas Schwinge  <thomas@codesourcery.com>
4526         * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
4528 2016-05-24  Richard Biener  <rguenther@suse.de>
4530         PR middle-end/70434
4531         PR c/69504
4532         * c-typeck.c (build_array_ref): Do not complain about indexing
4533         non-lvalue vectors.  Adjust for function name change.
4535 2016-05-20  Martin Sebor  <msebor@redhat.com>
4537         PR c/71115
4538         * c-typeck.c (error_init): Use
4539         expansion_point_location_if_in_system_header.
4540         (warning_init): Same.
4542 2016-05-19  David Malcolm  <dmalcolm@redhat.com>
4544         PR c/71171
4545         * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
4546         in error-handling.
4547         (c_parser_postfix_expression): Likewise.
4548         * c-tree.h (c_expr::set_error): New method.
4549         * c-typeck.c (parser_build_binary_op): In error-handling, ensure
4550         that result's range is initialized.
4552 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4554         * c-typeck.c (parser_build_unary_op): Fix formatting.
4556 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4558         * c-decl.c (grokdeclarator): Remove errmsg and use of
4559         targetm.invalid_return_type.
4560         (grokparms): Remove errmsg and use of
4561         targetm.invalid_parameter_type.
4563 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
4565         * c-decl.c (grokdeclarator): For C11, discard qualifiers on
4566         function return type.
4568 2016-05-12  Marek Polacek  <polacek@redhat.com>
4570         PR c/70756
4571         * c-decl.c (build_compound_literal): Pass LOC down to
4572         c_incomplete_type_error.
4573         * c-tree.h (require_complete_type): Adjust declaration.
4574         (c_incomplete_type_error): Likewise.
4575         * c-typeck.c (require_complete_type): Add location parameter, pass it
4576         down to c_incomplete_type_error.
4577         (c_incomplete_type_error): Add location parameter, pass it down to
4578         error_at.
4579         (build_component_ref): Pass location down to c_incomplete_type_error.
4580         (default_conversion): Pass location down to require_complete_type.
4581         (build_array_ref): Likewise.
4582         (build_function_call_vec): Likewise.
4583         (convert_arguments): Likewise.
4584         (build_unary_op): Likewise.
4585         (build_c_cast): Likewise.
4586         (build_modify_expr): Likewise.
4587         (convert_for_assignment): Likewise.
4588         (c_finish_omp_clauses): Likewise.
4590 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
4592         PR c/43651
4593         * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
4594         is enabled.
4595         * c-errors.c (pedwarn_c90): Return true if warned.
4596         * c-tree.h (pedwarn_c90): Change return type to bool.
4597         (enum c_declspec_word): Add new enumerator cdw_atomic.
4599 2016-05-11  Marek Polacek  <polacek@redhat.com>
4601         PR c++/71024
4602         * c-decl.c (diagnose_mismatched_decls): Factor out code to
4603         diagnose_mismatched_attributes and call it.
4605 2016-05-10  Marek Polacek  <polacek@redhat.com>
4607         PR c/70255
4608         * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
4609         on a declaration following the definition.
4611 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
4613         * c-parser.c (c_parser_switch_statement): Add IF_P argument,
4614         parse it through to c_parser_c99_block_statement.
4615         (c_parser_statement_after_labels): Adjust c_parser_switch_statement
4616         caller.
4618 2016-05-04  Marek Polacek  <polacek@redhat.com>
4620         * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
4621         OPT_Wdangling_else.
4623 2016-05-04  Marek Polacek  <polacek@redhat.com>
4625         PR c/48778
4626         * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
4627         for macro expansions.
4629 2016-05-03  Marek Polacek  <polacek@redhat.com>
4631         PR c/70859
4632         * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
4633         check_builtin_function_arguments.
4635 2016-05-03  Richard Biener  <rguenther@suse.de>
4637         * Make-lang.in (cc1-checksum.c): For stage-final re-use
4638         the checksum from the previous stage.
4640 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
4642         * c-parser.c (c_parser_oacc_all_clauses): Update call to
4643         c_finish_omp_clauses.
4644         (c_parser_omp_all_clauses): Likewise.
4645         (c_parser_oacc_cache): Likewise.
4646         (c_parser_oacc_loop): Likewise.
4647         (omp_split_clauses): Likewise.
4648         (c_parser_omp_declare_target): Likewise.
4649         (c_parser_cilk_all_clauses): Likewise.
4650         (c_parser_cilk_for): Likewise.
4651         * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
4652         is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
4654 2016-05-02  Marek Polacek  <polacek@redhat.com>
4656         PR c/70851
4657         * c-decl.c (grokdeclarator): Diagnose when array's size has an
4658         incomplete type.
4660 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
4662         PR middle-end/70626
4663         * c-parser.c (c_parser_oacc_loop): Don't augment mask with
4664         OACC_LOOP_CLAUSE_MASK.
4665         (c_parser_oacc_kernels_parallel): Update call to
4666         c_oacc_split_loop_clauses.
4668 2016-04-28  Andrew MacLeod  <amacleod@redhat.com>
4670         * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
4671         argument to build_modify_expr in two cases.
4673 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
4675         * c-parser.c (c_parser_postfix_expression_after_primary): Call
4676         warn_for_memset instead of warning directly here.
4678 2016-04-26  Marek Polacek  <polacek@redhat.com>
4680         PR c/67784
4681         * c-parser.c (c_parser_maybe_reclassify_token): New function factored
4682         out of ...
4683         (c_parser_for_statement): ... here.
4684         (c_parser_if_statement): Use it.
4685         (c_parser_switch_statement): Use it.
4686         (c_parser_while_statement): Use it.
4688         PR c/70791
4689         * c-decl.c (pushdecl): Pass LOCUS down to warning.
4691 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
4693         PR c++/69363
4694         * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
4695         instead of c_finish_cilk_clauses.
4696         * c-tree.h (c_finish_omp_clauses): Add new default argument.
4697         * c-typeck.c (c_finish_omp_clauses): Add new argument.  Allow
4698         floating-point variables in the linear clause for Cilk Plus.
4700 2016-04-18  Michael Matz  <matz@suse.de>
4702         * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
4703         (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
4705 2016-04-15  Marek Polacek  <polacek@redhat.com>
4707         PR c/70671
4708         * c-typeck.c (build_unary_op): Pass location down to error and
4709         warning call.
4711 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4713         PR c/70436
4714         * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
4715         where needed.
4716         (c_parser_external_declaration, c_parser_struct_or_union_specifier,
4717         c_parser_parameter_declaration, c_parser_compound_statement_nostart,
4718         c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
4719         Adjust c_parser_pragma callers.
4720         (c_parser_statement_after_labels): Likewise.  Adjust c_parser_cilk_for
4721         caller.
4722         (c_parser_omp_structured_block): Add IF_P argument, pass it down to
4723         c_parser_statement.
4724         (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
4725         c_parser_oacc_kernels_parallel, c_parser_omp_critical,
4726         c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
4727         c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
4728         c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
4729         c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
4730         c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
4731         c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
4732         down where needed.
4733         (c_parser_omp_for_loop): Likewise.  Clear IF_P if nbraces.
4734         (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
4735         calls.
4737 2016-04-13  Marek Polacek  <polacek@redhat.com>
4739         PR c/70436
4740         * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
4741         adjust callers.
4742         (c_parser_statement): Likewise.
4743         (c_parser_c99_block_statement): Likewise.
4744         (c_parser_while_statement): Likewise.
4745         (c_parser_for_statement): Likewise.
4746         (c_parser_if_body): Don't set IF_P here.
4747         (c_parser_if_statement): Add IF_P argument.  Set IF_P here.  Warn
4748         about dangling else here.
4749         * c-tree.h (c_finish_if_stmt): Adjust declaration.
4750         * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter.  Don't
4751         warn about dangling else here.
4753 2016-04-04  Marek Polacek  <polacek@redhat.com>
4755         PR c/70307
4756         * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
4758 2016-03-31  Marek Polacek  <polacek@redhat.com>
4760         PR c/70297
4761         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
4763 2016-03-18  David Malcolm  <dmalcolm@redhat.com>
4765         PR c/70281
4766         * c-parser.c (c_parser_postfix_expression): Set the source range
4767         for uses of "__builtin_types_compatible_p".
4769 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
4771         PR c/70280
4772         * c-typeck.c (composite_type): Don't count void_list_node
4773         into len, if the list is terminated by void_list_node, start
4774         with void_list_node instead of NULL for newargs.  Stop
4775         at void_list_node.
4777 2016-03-16  Marek Polacek  <polacek@redhat.com>
4779         PR c/70093
4780         * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
4781         nested functions returning VM types.
4783 2016-03-09  Cesar Philippidis  <cesar@codesourcery.com>
4785         * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
4786         when calling c_finish_omp_clauses.
4788 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
4790         PR c/69824
4791         * c-decl.c (get_parm_info): Don't queue implicit function declarations
4792         for later.
4794 2016-03-04  Marek Polacek  <polacek@redhat.com>
4796         PR c/69798
4797         * c-parser.c (c_parser_postfix_expression): Call
4798         c_parser_cast_expression rather than c_parser_postfix_expression.
4800 2016-03-01  Jakub Jelinek  <jakub@redhat.com>
4802         PR c/69796
4803         PR c/69974
4804         * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
4805         of incomplete decls to error_mark_node.
4807 2016-02-24  Marek Polacek  <polacek@redhat.com>
4809         PR c/69819
4810         * c-decl.c (finish_decl): Don't update the copy of the type of a
4811         different decl type.
4813 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
4815         PR objc/69844
4816         * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
4817         in id_kind reclassification.
4819 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
4821         PR c/69835
4822         * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
4824 2016-02-16  James Norris  <jnorris@codesourcery.com>
4826         PR c/64748
4827         * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
4829 2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
4831         * c-decl.c (build_null_declspecs): Zero the entire struct.
4833         PR c/69522
4834         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
4835         callers changed.  If nested_p is true, use it to call
4836         finish_implicit_inits.
4837         * c-tree.h (finish_implicit_inits): Declare.
4838         * c-typeck.c (finish_implicit_inits): New function.  Move code
4839         from ...
4840         (push_init_level): ... here.
4841         (set_designator, process_init_element): Call finish_implicit_inits.
4843 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
4845         PR c/69768
4846         * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
4847         arguments for -Waddress warning.
4849 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
4851         PR c/69669
4852         * c-decl.c (finish_enum): When honoring mode attribute,
4853         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4855 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
4857         PR debug/69518
4858         * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
4859         all type variants, not just TYPE_MAIN_VARIANT.
4861 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
4863         PR debug/66869
4864         * c-decl.c (c_write_global_declarations_1): Warn with
4865         warn_unused_function if static prototype without definition
4866         is not C_DECL_USED.
4868 2016-01-27  Marek Polacek  <polacek@redhat.com>
4870         PR c/68062
4871         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
4872         to unsigned, if needed.  Add -Wsign-compare warning.
4874 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4876         PR tree-optimization/69483
4877         * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
4879 2016-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4881         PR c/24293
4882         * c-tree.h (incomplete_record_decls): Declare.
4883         * c-parser.c (incomplete_record_decls): Define.
4884         (c_parser_translation_unit): Iterate through incomplete_record_decls and
4885         report error if any decl has zero size.
4886         * c-decl.c (finish_decl): Append static decl with incomplete struct/union
4887         or enum type to incomplete_record_decls.
4889 2016-01-14  Tom de Vries  <tom@codesourcery.com>
4891         PR tree-optimization/68773
4892         * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
4893         set force_output.
4895 2016-01-14  Marek Polacek  <polacek@redhat.com>
4897         PR c/69262
4898         * c-decl.c (grokdeclarator): Provide more information for invalid
4899         array declarations.
4901 2016-01-06  David Malcolm  <dmalcolm@redhat.com>
4903         * c-parser.c (c_parser_unary_expression): For dereferences, build
4904         a combined location before calling build_indirect_ref, so that
4905         error reports cover the full range, manually updating the c_expr
4906         src_range.
4908 2016-01-06  Marek Polacek  <polacek@redhat.com>
4910         PR sanitizer/69099
4911         * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
4912         ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
4913         NULL.
4915 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
4917         Update copyright years.
4919 2016-01-04  Marek Polacek  <polacek@redhat.com>
4921         PR c/68908
4922         * c-typeck.c (build_atomic_assign): Improve commentary.  Add
4923         optimization to use __atomic_fetch_* built-in if possible.
4925 2015-12-23  Thomas Schwinge  <thomas@codesourcery.com>
4927         * c-parser.c (c_parser_oacc_clause_use_device): Merge function
4928         into...
4929         (c_parser_omp_clause_use_device_ptr): ... this function.  Adjust
4930         all users.
4932 2015-12-22  Marek Polacek  <polacek@redhat.com>
4934         PR c/69002
4935         * c-typeck.c (build_component_ref): Warn when acessing elements of
4936         atomic structures or unions.
4938 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
4940         * c-typeck.c: Include "gcc-rich-location.h".
4941         (build_binary_op): In the two places that call binary_op_error,
4942         create a gcc_rich_location and populate it with the location of
4943         the binary op and its two operands.
4945 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
4947         * c-parser.c (c_parser_statement_after_labels): When calling
4948         c_finish_return, Use the return expression's location if it has
4949         one, falling back to the location of the first token within it.
4950         * c-typeck.c (c_finish_return): When issuing warnings about
4951         the incorrect presence/absence of a return value, issue a note
4952         showing the declaration of the function.
4954 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
4956         * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
4957         to 4.
4958         (c_parser_peek_nth_token): New function.
4959         (c_parser_peek_conflict_marker): New function.
4960         (c_parser_error): Detect conflict markers and report them as such.
4962 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
4964         * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
4965         to preserve range information for the primary expression
4966         in the call to c_parser_postfix_expression_after_primary.
4968 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
4970         * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
4971         expression location, falling back on the first token location,
4972         rather than always using the latter.
4974 2015-12-16  Marek Polacek  <polacek@redhat.com>
4976         PR c/64637
4977         * c-typeck.c (c_process_expr_stmt): Use location of the expression if
4978         available.
4980 2015-12-15  Marek Polacek  <polacek@redhat.com>
4982         PR c/68907
4983         * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
4984         artificial decl.
4986 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
4988         * c-parser.c (c_parser_alignof_expression): Capture location of
4989         closing parenthesis (if any), or of end of unary expression, and
4990         use it to build a src_range for the expression.
4992 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
4994         PR c/68757
4995         * c-parser.c (c_parser_get_builtin_args): Add
4996         "out_close_paren_loc" param, and write back to it.
4997         (c_parser_postfix_expression): Capture the closing
4998         parenthesis location for RID_CHOOSE_EXPR,
4999         RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
5000         RID_BUILTIN_SHUFFLE and use it to set the source range
5001         for such expressions; within RID_BUILTIN_COMPLEX set
5002         the underlying location.
5004 2015-12-07  Marek Polacek  <polacek@redhat.com>
5006         PR c/68668
5007         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
5008         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
5010 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
5012         * c-tree.h (c_build_va_arg): Adjust prototype.
5013         * c-parser.c (c_parser_postfix_expression): Adjust call to above.
5014         * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
5015         parameter, adjust throughout and issue an error if EXPR is a component
5016         with reverse storage order.
5018 2015-12-02  Jason Merrill  <jason@redhat.com>
5020         * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
5021         (c_fully_fold_internal, decl_constant_value_for_optimization):
5022         Move from c-common.c.
5023         * c-tree.h: Declare decl_constant_value_for_optimization.
5024         * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
5026 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
5028         PR c/68162
5029         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
5030         following link from declarator to next declarator.  Track original
5031         qualified type and pass it to c_build_qualified_type.
5032         * c-typeck.c (c_build_qualified_type): Add arguments
5033         orig_qual_type and orig_qual_indirect.
5035 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
5037         * c-parser.c (c_parser_omp_clause_name)
5038         (c_parser_oacc_all_clauses): Alphabetical sorting.
5040 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
5042         PR c/68533
5043         * c-decl.c (get_parm_info): Use b->locus instead of input_location
5044         for diagnostics.
5046 2015-12-01  Julian Brown  <julian@codesourcery.com>
5047             Cesar Philippidis  <cesar@codesourcery.com>
5048             James Norris  <James_Norris@mentor.com>
5050         * c-parser.c (c_parser_omp_clause_name): Add use_device support.
5051         (c_parser_oacc_clause_use_device): New function.
5052         (c_parser_oacc_all_clauses): Add use_device support.
5053         (OACC_HOST_DATA_CLAUSE_MASK): New macro.
5054         (c_parser_oacc_host_data): New function.
5055         (c_parser_omp_construct): Add host_data support.
5056         * c-tree.h (c_finish_oacc_host_data): Add prototype.
5057         * c-typeck.c (c_finish_oacc_host_data): New function.
5058         (c_finish_omp_clauses): Add use_device support.
5060 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
5062         PR c/67106
5063         * c-decl.c: Set TYPE_PACKED in variants.
5065 2015-11-27  Martin Liska  <mliska@suse.cz>
5067         PR c++/68312
5068         * c-array-notation.c (fix_builtin_array_notation_fn):
5069         Use release_vec_vec instead of vec::release.
5070         (build_array_notation_expr): Likewise.
5071         (fix_conditional_array_notations_1): Likewise.
5072         (fix_array_notation_expr): Likewise.
5073         (fix_array_notation_call_expr): Likewise.
5075 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
5077         PR c/63326
5078         * c-parser.c (c_parser_compound_statement_nostart): If
5079         last_label is true, use pragma_stmt instead of pragma_compound
5080         as second c_parser_pragma argument.
5081         (c_parser_omp_ordered, c_parser_omp_target_update,
5082         c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
5083         false as second argument to c_parser_skip_to_pragma_eol after
5084         diagnosing standalone directives used in pragma_stmt context.
5086 2015-11-24  Ilya Verbin  <ilya.verbin@intel.com>
5088         * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
5089         with "if (ENABLE_OFFLOADING)".
5091 2015-11-23  David Malcolm  <dmalcolm@redhat.com>
5093         PR objc/68438
5094         * c-parser.c (c_parser_postfix_expression): Set up source ranges
5095         for various Objective-C constructs: Class.name syntax,
5096         @selector(), @protocol(), @encode(), and [] message syntax.
5098 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
5100         PR 62314
5101         * c-typeck.c (should_suggest_deref_p): New function.
5102         (build_component_ref): Special-case POINTER_TYPE when
5103         generating a "not a structure of union"  error message, and
5104         suggest a "->" rather than a ".", providing a fix-it hint.
5106 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
5108         * c-typeck.c (lookup_field_fuzzy): Move determination of closest
5109         candidate into a new function, find_closest_identifier.
5111 2015-11-19  Marek Polacek  <polacek@redhat.com>
5113         PR c/68412
5114         * c-typeck.c (parser_build_binary_op): Properly handle
5115         C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
5117 2015-11-17  David Malcolm  <dmalcolm@redhat.com>
5119         * c-parser.c (set_c_expr_source_range): Bulletproof both
5120         overloaded implementations against NULL expr->value.
5121         (c_parser_braced_init): Set src_range for "ret" to a sane pair of
5122         values.
5123         (c_parser_unary_expression): Likewise when handling addresses of
5124         labels.
5125         (c_parser_postfix_expression): Likewise for statement expressions,
5126         for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
5127         __builtin_va_arg, and for __builtin_offset_of.
5128         (c_parser_postfix_expression_after_paren_type): Initialize expr's
5129         src_range using the range of the braced initializer.
5130         (c_parser_transaction_expression): Set src_range for "ret" to a
5131         sane pair of values.
5133 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
5135         * c-parser.c (c_finish_omp_declare_simd): Look for
5136         "simd" attribute as well. Update error message.
5138 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5140         * c-parser.c (c_parser_omp_declare_target): Adjust.
5142 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
5144         * c-typeck.c (c_finish_omp_clauses): Don't mark
5145         GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
5147 2015-11-14  Marek Polacek  <polacek@redhat.com>
5149         * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
5150         * c-typeck.c: Likewise.
5152 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5154         * c-decl.c (warn_defaults_to): Pass line_table to
5155         rich_location ctor.
5156         * c-errors.c (pedwarn_c99): Likewise.
5157         (pedwarn_c90): Likewise.
5158         * c-parser.c (set_c_expr_source_range): New functions.
5159         (c_token::get_range): New method.
5160         (c_token::get_finish): New method.
5161         (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
5162         based on the range from the start of the LHS to the end of the
5163         RHS.
5164         (c_parser_conditional_expression): Likewise, based on the range
5165         from the start of the cond.value to the end of exp2.value.
5166         (c_parser_binary_expression): Call set_c_expr_source_range on
5167         the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
5168         (c_parser_cast_expression): Call set_c_expr_source_range on ret
5169         based on the cast_loc through to the end of the expr.
5170         (c_parser_unary_expression): Likewise, based on the
5171         op_loc through to the end of op.
5172         (c_parser_sizeof_expression) Likewise, based on the start of the
5173         sizeof token through to either the closing paren or the end of
5174         expr.
5175         (c_parser_postfix_expression): Likewise, using the token range,
5176         or from the open paren through to the close paren for
5177         parenthesized expressions.
5178         (c_parser_postfix_expression_after_primary): Likewise, for
5179         various kinds of expression.
5180         * c-tree.h (struct c_expr): Add field "src_range".
5181         (c_expr::get_start): New method.
5182         (c_expr::get_finish): New method.
5183         (set_c_expr_source_range): New decls.
5184         * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
5185         on ret for prefix unary ops.
5186         (parser_build_binary_op): Likewise, running from the start of
5187         arg1.value through to the end of arg2.value.
5189 2015-11-13  Marek Polacek  <polacek@redhat.com>
5191         PR c/68320
5192         * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
5194 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5196         * c-typeck.c: Include spellcheck.h.
5197         (lookup_field_fuzzy_find_candidates): New function.
5198         (lookup_field_fuzzy): New function.
5199         (build_component_ref): If the field was not found, try using
5200         lookup_field_fuzzy and potentially offer a suggestion.
5202 2015-11-12  James Norris  <jnorris@codesourcery.com>
5203             Joseph Myers  <joseph@codesourcery.com>
5205         * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
5206         (c_parser_omp_clause_name): Handle 'device_resident' clause.
5207         (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
5208         and PRAGMA_OMP_CLAUSE_LINK.
5209         (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
5210         and PRAGMA_OACC_CLAUSE_LINK.
5211         (OACC_DECLARE_CLAUSE_MASK): New definition.
5212         (c_parser_oacc_declare): New function.
5214 2015-11-12  Marek Polacek  <polacek@redhat.com>
5216         PR c/67784
5217         * c-parser.c (c_parser_for_statement): Reclassify the token in
5218         a correct scope.
5220 2015-11-11  Marek Polacek  <polacek@redhat.com>
5222         PR c/68107
5223         PR c++/68266
5224         * c-decl.c (grokdeclarator): Call valid_array_size_p.  Remove code
5225         checking the size of an array.
5227 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
5229         * c-array-notation.c: Remove unused header files.
5230         * c-aux-info.c: Likewise.
5231         * c-convert.c: Likewise.
5232         * c-decl.c: Likewise.
5233         * c-errors.c: Likewise.
5234         * c-lang.c: Likewise.
5235         * c-objc-common.c: Likewise.
5236         * c-parser.c: Likewise.
5237         * c-typeck.c: Likewise.
5238         * gccspec.c: Likewise.
5240 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
5241             Cesar Philippidis  <cesar@codesourcery.com>
5242             James Norris  <jnorris@codesourcery.com>
5243             Julian Brown  <julian@codesourcery.com>
5244             Nathan Sidwell  <nathan@codesourcery.com>
5246         * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
5247         routine arg.
5248         (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
5249         (c_parser_pragma): Parse 'acc routine'.
5250         (OACC_ROUTINE_CLAUSE_MARK): Define.
5251         (c_parser_oacc_routine, (c_finish_oacc_routine): New.
5253 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5255         PR debug/67192
5256         * c-typeck.c (c_finish_loop): For unconditional loops, set the
5257         location of the backward-goto to the start of the loop body.
5259 2015-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5261         PR debug/67192
5262         * c-parser.c (c_parser_while_statement): Finish the loop before
5263         parsing ahead for misleading indentation.
5264         (c_parser_for_statement): Likewise.
5266 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5268         * c-decl.c (finish_struct): If the structure has reverse storage
5269         order, rewrite the type of array fields with scalar component.  Call
5270         maybe_apply_pragma_scalar_storage_order on entry.
5271         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs.  Issue
5272         errors on bit-fields and reverse SSO here and not...
5273         (c_mark_addressable): ...here.
5274         (output_init_element): Adjust call to initializer_constant_valid_p.
5275         (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
5277 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5279         * c-decl.c (warn_defaults_to): Update for change in signature
5280         of diagnostic_set_info.
5281         * c-errors.c (pedwarn_c99): Likewise.
5282         (pedwarn_c90): Likewise.
5283         * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
5284         for textinfo::set_location.
5286 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
5287             Thomas Schwinge  <thomas@codesourcery.com>
5288             James Norris  <jnorris@codesourcery.com>
5290         * c-parser.c (c_parser_omp_clause_name): Add support for
5291         PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
5292         (c_parser_omp_clause_default): Add is_oacc argument. Handle
5293         default(none) in OpenACC.
5294         (c_parser_oacc_shape_clause): Allow pointer variables as gang static
5295         arguments.
5296         (c_parser_oacc_clause_tile): New function.
5297         (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
5298         OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
5299         (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
5300         TILE}.
5301         (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
5302         (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
5303         FIRSTPRIVATE}.
5304         (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
5305         (c_parser_oacc_update): Update the error message for missing clauses.
5306         * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
5307         and OMP_CLAUSE_INDEPENDENT.
5309 2015-11-05  Marek Polacek  <polacek@redhat.com>
5311         PR c/68090
5312         * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
5313         deal with pre-evaluation on invalid types.
5315 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
5316             Ilya Verbin  <ilya.verbin@intel.com>
5318         * c-parser.c: Include context.h and gimple-expr.h.
5319         (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
5320         monotonic together with nonmonotonic.
5321         (c_parser_omp_for_loop): Call c_omp_check_loop_iv.  Call add_stmt here.
5322         (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
5323         (c_parser_omp_target_data, c_parser_omp_target_enter_data,
5324         c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
5325         (c_parser_omp_target): Likewise.  Evaluate num_teams and thread_limit
5326         expressions on combined target teams before the target.
5327         (c_parser_omp_declare_target): If decl has "omp declare target" or
5328         "omp declare target link" attribute, and cgraph or varpool node already
5329         exists, then set corresponding flags.  Call c_finish_omp_clauses
5330         in the parenthesized extended-list syntax case.
5331         * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
5332         declare target.
5333         * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
5334         on OMP_CLAUSE_REDUCTION array sections.
5335         (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
5336         into the constant offset, or for variable low-bound using
5337         POINTER_PLUS_EXPR.  For structure element based array sections use
5338         GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
5339         (c_finish_omp_clauses): Drop generic_field_head, structure
5340         elements are now always mapped even as array section bases,
5341         diagnose same var in data sharing and mapping clauses.  Diagnose if
5342         linear step on declare simd is neither a constant nor a uniform
5343         parameter.  Look through POINTER_PLUS_EXPR for array section
5344         reductions.  Diagnose the same var or function appearing multiple
5345         times on the same directive.  Fix up wording for the to clause if t
5346         is neither a FUNCTION_DECL nor a VAR_DECL.  Diagnose nonmonotonic
5347         modifier on kinds other than dynamic or guided or nonmonotonic
5348         modifier together with ordered clause.
5350 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
5351             Chung-Lin Tang  <cltang@codesourcery.com>
5353         * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
5355 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
5357         * c-array-notation.c: Reorder #include's and remove duplicates.
5358         * c-aux-info.c: Likewise.
5359         * c-convert.c: Likewise.
5360         * c-decl.c: Likewise.
5361         * c-errors.c: Likewise.
5362         * c-lang.c: Likewise.
5363         * c-objc-common.c: Likewise.
5364         * c-parser.c: Likewise.
5365         * c-typeck.c: Likewise.
5367 2015-10-26  Jim Wilson  <jim.wilson@linaro.org>
5369         PR debug/66068
5370         * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
5371         after calling build_qualified_type.
5373 2015-10-27  Cesar Philippidis  <cesar@codesourcery.com>
5374             Thomas Schwinge  <thomas@codesourcery.com>
5375             James Norris  <jnorris@codesourcery.com>
5376             Joseph Myers  <joseph@codesourcery.com>
5377             Julian Brown  <julian@codesourcery.com>
5378             Bernd Schmidt  <bschmidt@redhat.com>
5380         * c-parser.c (c_parser_oacc_shape_clause): New.
5381         (c_parser_oacc_simple_clause): New.
5382         (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
5383         (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
5385 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
5386             James Norris  <jnorris@codesourcery.com>
5387             Cesar Philippidis  <cesar@codesourcery.com>
5389         PR c/64765
5390         PR c/64880
5391         * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
5392         parameters, and handle these.  Adjust all users.
5393         (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
5394         into...
5395         (c_parser_oacc_kernels_parallel): ... this new function.  Adjust
5396         all users.
5397         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
5398         declare functions.
5399         (c_finish_omp_construct): Declare function.
5400         * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
5401         Merge functions into...
5402         (c_finish_omp_construct): ... this new function.
5404 2015-10-22  Richard Biener  <rguenther@suse.de>
5406         * c-typeck.c (c_finish_omp_clauses): Properly convert operands
5407         before folding a MINUS_EXPR.
5409 2015-10-21  Marek Polacek  <polacek@redhat.com>
5411         PR c/68024
5412         * c-decl.c (start_function): Warn about vararg functions without
5413         a prototype.
5415 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5417         * c-typeck.c (build_conditional_expr): Use boolean vector
5418         type for vector comparison.
5419         (build_vec_cmp): New.
5420         (build_binary_op): Use build_vec_cmp for comparison.
5422 2015-10-20  Marek Polacek  <polacek@redhat.com>
5424         * c-parser.c (is_cilkplus_vector_p): Don't define here.
5426 2015-10-20  Marek Polacek  <polacek@redhat.com>
5428         PR c/67964
5429         * c-parser.c (c_parser_attributes): Break out of the loop if the
5430         token after an attribute isn't a comma.
5432 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
5433             Aldy Hernandez  <aldyh@redhat.com>
5435         * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
5436         (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
5437         (c_parser_omp_variable_list): Handle structure elements for
5438         map, to and from clauses.  Handle array sections in reduction
5439         clause.  Formatting fixes.
5440         (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
5441         if clause modifiers.
5442         (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
5443         c_parser_omp_clause_priority, c_parser_omp_clause_hint,
5444         c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
5445         c_parser_omp_clause_is_device_ptr): New functions.
5446         (c_parser_omp_clause_ordered): Parse optional parameter.
5447         (c_parser_omp_clause_reduction): Handle array reductions.
5448         (c_parser_omp_clause_schedule): Parse optional simd modifier.
5449         (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
5450         functions.
5451         (c_parser_omp_clause_linear): Parse linear clause modifiers.
5452         (c_parser_omp_clause_depend_sink): New function.
5453         (c_parser_omp_clause_depend): Parse source/sink depend kinds.
5454         (c_parser_omp_clause_map): Parse release/delete map kinds and
5455         optional always modifier.
5456         (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
5457         and c_finish_omp_clauses callers.
5458         (c_parser_omp_all_clauses): Likewise.  Parse OpenMP 4.5 clauses.
5459         Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
5460         (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
5461         (OMP_CRITICAL_CLAUSE_MASK): Define.
5462         (c_parser_omp_critical): Parse critical clauses.
5463         (c_parser_omp_for_loop): Handle doacross loops, adjust
5464         c_finish_omp_for and c_finish_omp_clauses callers.
5465         (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
5466         (c_parser_omp_simd): Allow ordered clause if it has no parameter.
5467         (OMP_FOR_CLAUSE_MASK): Add linear clause.
5468         (c_parser_omp_for): Disallow ordered clause when combined with
5469         distribute.  Disallow linear clause when combined with distribute
5470         and not combined with simd.
5471         (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
5472         (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
5473         parse clauses and if depend clause is found, don't parse a body.
5474         (c_parser_omp_parallel): Disallow copyin clause on target parallel.
5475         Allow target parallel without for after it.
5476         (OMP_TASK_CLAUSE_MASK): Add priority clause.
5477         (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
5478         (c_parser_omp_target_data): Diagnose no map clauses or clauses with
5479         invalid kinds.
5480         (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
5481         (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
5482         OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
5483         (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
5484         functions.
5485         (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
5486         defaultmap and is_device_ptr clauses.
5487         (c_parser_omp_target): Parse target parallel and target simd.  Set
5488         OMP_TARGET_COMBINED on combined constructs.  Parse target enter data
5489         and target exit data.  Diagnose invalid map kinds.
5490         (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
5491         (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
5492         construct.
5493         (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
5494         &omp_priv.
5495         (OMP_TASKLOOP_CLAUSE_MASK): Define.
5496         (c_parser_omp_taskloop): New function.
5497         (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
5498         handle PRAGMA_OMP_TASKLOOP.
5499         (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
5500         * c-tree.h (c_finish_omp_clauses): Add two new arguments.
5501         * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
5502         Add IS_OMP argument, handle structure element bases, diagnose
5503         bitfields, pass IS_OMP recursively, diagnose known zero length
5504         array sections in depend clauses, handle array sections in reduction
5505         clause, diagnose negative length even for pointers.
5506         (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
5507         types, pass IS_OMP down to handle_omp_array_sections_1, handle
5508         array sections in reduction clause, set
5509         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
5510         length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
5511         (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
5512         Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
5514 2015-10-06  Marek Polacek  <polacek@redhat.com>
5516         * c-parser.c (c_parser_statement_after_labels): Use
5517         protected_set_expr_location.
5518         (c_parser_omp_clause_num_gangs): Likewise.
5519         (c_parser_omp_clause_num_threads): Likewise.
5520         (c_parser_omp_clause_num_workers): Likewise.
5521         (c_parser_omp_clause_vector_length): Likewise.
5522         (c_parser_omp_clause_num_teams): Likewise.
5523         (c_parser_omp_clause_thread_limit): Likewise.
5524         * c-typeck.c (build_c_cast): Likewise.
5525         (c_cast_expr): Likewise.
5527 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5529         * c-typeck.c (c_tree_equal): Use real_equal instead of
5530         REAL_VALUES_EQUAL.
5532 2015-10-04  Jason Merrill  <jason@redhat.com>
5534         * c-parser.c (c_lex_one_token): Handle @synchronized.
5535         * c-decl.c (match_builtin_function_types): A declaration of a built-in
5536         can change whether the function is transaction_safe.
5538 2015-10-02  Marek Polacek  <polacek@redhat.com>
5540         PR c/67730
5541         * c-typeck.c (convert_for_assignment): Use the expansion point
5542         location throughout.
5544 2015-10-02  Marek Polacek  <polacek@redhat.com>
5546         PR c/64249
5547         * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
5548         and pass it down to c_parser_if_statement.
5549         (c_parser_else_body): Add CHAIN parameter and pass it down to
5550         c_parser_statement_after_labels.
5551         (c_parser_if_statement): Add CHAIN parameter.  Add code to warn about
5552         duplicated if-else-if conditions.
5554 2015-10-01  Marek Polacek  <polacek@redhat.com>
5556         * c-typeck.c (convert_for_assignment): Improve commentary.
5558 2015-09-30  Marek Polacek  <polacek@redhat.com>
5560         PR c/67730
5561         * c-typeck.c (c_finish_return): Use the expansion point location for
5562         certain "return with value" warnings.
5564 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5566         * c-parser.c (pragma_lex): Add loc argument.
5568 2015-09-15  Marek Polacek  <polacek@redhat.com>
5570         PR c/67580
5571         * c-decl.c (tag_exists_p): New function.
5572         * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
5573         struct/union/enum keywords are missing.
5574         * c-tree.h (tag_exists_p): Declare.
5576 2015-09-15  Marek Polacek  <polacek@redhat.com>
5578         * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
5579         (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
5580         Return NULL_TREE instead of 0.
5581         (lookup_name): Return NULL_TREE instead of 0.
5582         (lookup_name_in_scope): Likewise.
5583         (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
5584         (parser_xref_tag): Use false instead of 0.
5585         (start_struct): Use true instead of 1.
5586         (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
5588 2015-09-14  Marek Polacek  <polacek@redhat.com>
5590         * c-typeck.c (set_nonincremental_init_from_string): Use
5591         HOST_WIDE_INT_M1U when shifting a negative value.
5593 2015-09-09  Mark Wielaard  <mjw@redhat.com>
5595         * c-typeck.c (build_binary_op): Check and warn when nonnull arg
5596         parm against NULL.
5598 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
5600         PR c/67502
5601         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
5602         into OMP_FOR_PRE_BODY rather than before the loop.
5604 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
5606         PR c/67501
5607         * c-parser.c (c_parser_oacc_all_clauses,
5608         c_parser_omp_all_clauses): Remove invalid clause from
5609         list of clauses even if parser->error is set.
5611         PR c/67500
5612         * c-parser.c (c_parser_omp_clause_aligned,
5613         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
5614         test for errors.
5615         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
5616         error_mark_node.
5618         PR c/67495
5619         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
5620         instead of c_parser_unary_expression.  If the result is !lvalue_p,
5621         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
5623 2015-09-04  Marek Polacek  <polacek@redhat.com>
5625         PR sanitizer/67279
5626         * c-typeck.c (build_binary_op): Don't instrument static initializers.
5628 2015-09-03  Martin Sebor  <msebor@redhat.com>
5630         PR c/66516
5631         * c-typeck.c (convert_arguments, parser_build_unary_op,
5632         build_conditional_expr, c_cast_expr, convert_for_assignment,
5633         build_binary_op, _objc_common_truthvalue_conversion): Call
5634         reject_gcc_builtin.
5635         (c_decl_implicit): Define.
5637 2015-09-02  Marek Polacek  <polacek@redhat.com>
5639         PR c/67432
5640         * c-parser.c (c_parser_enum_specifier): Give a better error for
5641         an empty enum.
5643 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
5645         * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
5647 2015-08-12  Marek Polacek  <polacek@redhat.com>
5649         * c-decl.c (grokdeclarator): Call error_at instead of error and pass
5650         LOC to it.
5652 2015-08-03  Marek Polacek  <polacek@redhat.com>
5654         PR c/67088
5655         * c-decl.c (check_bitfield_type_and_width): Add location parameter.
5656         Use it.
5657         (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
5659 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
5661         * c-parser.c (c_parser_if_body): Take token_indent_info
5662         argument. Call warn_for_misleading_indentation even when the
5663         body is a semicolon.  Extract token_indent_infos corresponding
5664         to the guard, body and next tokens.  Adjust call to
5665         warn_for_misleading_indentation accordingly.
5666         (c_parser_else_body): Likewise.
5667         (c_parser_if_statement): Likewise.
5668         (c_parser_while_statement): Likewise.
5669         (c_parser_for_statement): Likewise.
5671 2015-07-28  Luis Felipe Strano Moraes  <luis.strano@gmail.com>
5672             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5674         * c-decl.c (get_parm_info): Remove static var. Update warning
5675         message.
5677 2015-07-27  Marek Polacek  <polacek@redhat.com>
5679         PR c++/66555
5680         PR c/54979
5681         * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
5683 2015-07-20  Marek Polacek  <polacek@redhat.com>
5685         PR c++/55095
5686         * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
5687         (build_binary_op): Warn about left shift overflows.
5689 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
5691         * c-array-notation.c: Adjust includes for flags.h changes.
5692         * c-objc-common.c: Likewise.
5694 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
5696         * c-array-notation.c: Adjust includes.
5697         * c-aux-info.c: Likewise.
5698         * c-convert.c: Likewise.
5699         * c-decl.c: Likewise.
5700         * c-errors.c: Likewise.
5701         * c-lang.c: Likewise.
5702         * c-objc-common.c: Likewise.
5703         * c-parser.c: Likewise.
5704         * c-typeck.c: Likewise.
5706 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5708         PR fortran/66605
5709         * c-decl.c (finish_function): Call do_warn_unused_parameter.
5711 2015-06-29  Marek Polacek  <polacek@redhat.com>
5713         PR c/66322
5714         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
5715         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
5716         about -Wswitch-bool here.
5717         (do_case): Update c_add_case_label call.
5718         (c_finish_case): Update c_do_switch_warnings call.
5720 2015-06-27  Marek Polacek  <polacek@redhat.com>
5722         * c-typeck.c: Use VECTOR_TYPE_P throughout.
5724 2015-06-26  Marek Polacek  <polacek@redhat.com>
5726         * c-array-notation.c (fix_builtin_array_notation_fn): Use
5727         INDIRECT_REF_P.
5728         * c-typeck.c (array_to_pointer_conversion): Likewise.
5729         (build_unary_op): Likewise.
5730         (c_finish_return): Likewise.
5732 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5734         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
5735         * c-parser.c: Likewise.
5737 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5739         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
5740         instead of pointer_hash.
5741         (detect_field_duplicates): Likewise.
5743 2015-06-25  Marek Polacek  <polacek@redhat.com>
5745         * c-array-notation.c: Use VAR_P throughout.
5746         * c-decl.c: Likewise.
5747         * c-objc-common.c: Likewise.
5748         * c-parser.c: Likewise.
5749         * c-typeck.c: Likewise.
5751 2015-06-25  Marek Polacek  <polacek@redhat.com>
5753         * c-decl.c: Use is_global_var throughout.
5754         * c-parser.c: Likewise.
5755         * c-typeck.c: Likewise.
5757 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5759         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
5760         * c-aux-info.c: Likewise.
5761         * c-convert.c: Likewise.
5762         * c-decl.c: Likewise.
5763         * c-errors.c: Likewise.
5764         * c-lang.c: Likewise.
5765         * c-objc-common.c: Likewise.
5766         * c-parser.c: Likewise.
5767         * c-typeck.c: Likewise.
5769 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
5771         PR middle-end/66325
5772         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
5773         variants.
5775 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
5777         * c-decl.c (pop_scope): Register the main translation unit
5778         through the new debug hook.
5780 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
5782         * c-array-notation.c : Adjust include files.
5783         * c-aux-info.c : Likewise.
5784         * c-convert.c : Likewise.
5785         * c-decl.c : Likewise.
5786         * c-errors.c : Likewise.
5787         * c-lang.c : Likewise.
5788         * c-lang.h : Likewise.
5789         * c-objc-common.c : Likewise.
5790         * c-parser.c : Likewise.
5791         * c-typeck.c : Likewise.
5793 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
5795         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
5796         immediately clobber it.
5797         (c_write_global_declarations_1): Remove call to
5798         check_global_declaration_1.
5799         (c_write_global_declarations_2): Remove.
5800         (c_write_final_cleanups): Rename from c_write_global_declarations.
5801         Remove call to finalize_compilation_unit.
5802         Remove calls to debugging hooks.
5803         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
5804         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
5805         * c-tree.h: Remove c_write_global_declarations.
5807 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
5809         * c-array-notation.c: Adjust includes for restructured coretypes.h.
5810         * c-aux-info.c: Likewise.
5811         * c-convert.c: Likewise.
5812         * c-decl.c: Likewise.
5813         * c-errors.c: Likewise.
5814         * c-lang.c: Likewise.
5815         * c-objc-common.c: Likewise.
5816         * c-parser.c: Likewise.
5817         * c-typeck.c: Likewise.
5819 2015-06-04  Marek Polacek  <polacek@redhat.com>
5821         PR c/66341
5822         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
5823         it is a lvalue.
5825 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5827         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
5828         Warn for empty struct.
5829         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
5831 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
5833         * c-decl.c (start_function): Call plugin before parsing.
5834         (finish_function): Call plugin after parsing.
5836 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5838         PR c/49551
5839         * c-decl.c (merge_decls): Merge DECL_COMMON.
5841 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
5843         * Make-lang.in (check_gcc_pallelize): Define.
5845 2015-05-22  Marek Polacek  <polacek@redhat.com>
5847         PR c/47043
5848         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
5849         attributes.
5851 2015-05-21  Marek Polacek  <polacek@redhat.com>
5853         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
5854         DECL_BUILT_IN.
5856 2015-05-20  Marek Polacek  <polacek@redhat.com>
5858         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
5859         * c-typeck.c: Likewise.
5861 2015-05-19  Marek Polacek  <polacek@redhat.com>
5863         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
5865 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5867         PR middle-end/66199
5868         * c-parser.c (c_parser_omp_for_loop): Don't add
5869         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
5870         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
5871         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
5872         constructs.
5874 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
5876         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
5877         swaps.
5879 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5881         PR fortran/44054
5882         * c-objc-common.c (c_tree_printer): Replace locus pointer with
5883         accessor function.
5885 2015-05-14  Marek Polacek  <polacek@redhat.com>
5887         PR c/66066
5888         PR c/66127
5889         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
5890         rather than with 0.
5892 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
5894         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
5895         to add a call to warn_for_misleading_indentation.
5896         (c_parser_else_body): Likewise, adding param "else_loc".
5897         (c_parser_if_statement): Check for misleading indentation.
5898         (c_parser_while_statement): Likewise.
5899         (c_parser_for_statement): Likewise.
5901 2015-05-08  Marek Polacek  <polacek@redhat.com>
5903         PR c/64918
5904         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
5905         (output_init_element): Likewise.
5907 2015-05-07  Marek Polacek  <polacek@redhat.com>
5909         PR c/65179
5910         * c-typeck.c (build_binary_op): Warn when left shifting a negative
5911         value.
5913 2015-04-30  Marek Polacek  <polacek@redhat.com>
5915         * c-typeck.c (set_init_label): Call error_at instead of error and
5916         pass LOC to it.
5918         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
5919         the type of a decl.
5921         * c-typeck.c (c_build_va_arg): Clarify the error message.
5923 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
5925         * c-parser.c (c_parser_oacc_enter_exit_data): Use
5926         OMP_STANDALONE_CLAUSES.
5928 2015-04-28  Marek Polacek  <polacek@redhat.com>
5930         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
5932 2015-04-28  Marek Polacek  <polacek@redhat.com>
5934         PR c/65901
5935         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
5937 2015-04-25  Marek Polacek  <polacek@redhat.com>
5939         PR c/52085
5940         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
5941         attribute.
5943 2015-04-23  Marek Polacek  <polacek@redhat.com>
5945         PR c/65345
5946         * c-decl.c (set_labels_context_r): New function.
5947         (store_parm_decls): Call it via walk_tree_without_duplicates.
5948         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
5949         instead of create_tmp_var.  Build TARGET_EXPR instead of
5950         COMPOUND_EXPR.
5951         (build_atomic_assign): Use create_tmp_var_raw instead of
5952         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
5954 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
5956         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
5957         (c_parser_omp_target_update): Add missed %> to error_at ().
5959 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5961         PR target/55143
5962         * c-decl.c (c_default_pointer_mode): Remove definition.
5963         * c-tree.h (c_default_pointer_mode): Remove declaration.
5965 2015-03-27  Tobias Burnus  <burnus@net-b.de>
5967         PR c/65586
5968         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
5969         error out.
5970         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
5971         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
5972         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
5974 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
5976         * c-decl.c (c_decl_attributes): Also add "omp declare target"
5977         attribute for DECL_EXTERNAL VAR_DECLs.
5979 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
5981         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
5982         argument.
5984 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
5986         PR c/65120
5987         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
5988         before preparing arguments to warn_logical_not_parentheses.
5990 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
5992         PR c/65120
5993         * c-typeck.c (parser_build_binary_op): Don't warn for
5994         !!x == y or !b == y where b is _Bool.
5996 2015-03-09  Marek Polacek  <polacek@redhat.com>
5998         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
5999         * c-decl.c (grokdeclarator): Likewise.
6000         * c-typeck.c (build_binary_op): Likewise.
6002 2015-02-27  Marek Polacek  <polacek@redhat.com>
6004         PR c/65228
6005         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
6007 2015-02-14  Marek Polacek  <polacek@redhat.com>
6009         PR c/64768
6010         * c-decl.c (grokdeclarator): Set the range of a flexible array member
6011         declared through a typedef name.
6013 2015-02-13  Marek Polacek  <polacek@redhat.com>
6015         PR c/65050
6016         * c-decl.c (grokdeclarator): Print also the type when giving
6017         the error message about array's incomplete element type.
6019 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
6021         PR c/64824
6022         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
6023         check in the POP macro.
6025 2015-02-09  Marek Polacek  <polacek@redhat.com>
6027         PR c/64856
6028         * c-typeck.c (process_init_element): Don't always wrap
6029         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
6030         initializing a range of elements.
6032 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
6034         PR c/64824
6035         PR c/64868
6036         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
6038 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
6040         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
6041         processing enum declaration.
6043 2015-01-29  Marek Polacek  <polacek@redhat.com>
6045         PR c/64709
6046         * c-typeck.c (pop_init_level): If constructor_elements has
6047         exactly one element with integer_zerop value, set constructor_zeroinit
6048         to 1.  Remove braces around warning_init call.
6050 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6052         PR c/64766
6053         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
6054         of FUNCTION_DECLs with error_mark_node.
6056 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
6058         PR c/64778
6059         * c-typeck.c (convert_arguments): Return -1 if there are
6060         error_args, even if we've diagnosed too many arguments.
6062 2015-01-21  Richard Biener  <rguenther@suse.de>
6064         PR middle-end/64313
6065         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
6066         for builtins the user declared correctly.
6068 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
6069             Bernd Schmidt  <bernds@codesourcery.com>
6070             Cesar Philippidis  <cesar@codesourcery.com>
6071             James Norris  <jnorris@codesourcery.com>
6072             Jakub Jelinek  <jakub@redhat.com>
6073             Ilmir Usmanov  <i.usmanov@samsung.com>
6075         * c-parser.c: Include "gomp-constants.h".
6076         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
6077         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
6078         Use OMP_CLAUSE_SET_MAP_KIND.
6079         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
6080         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
6081         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
6082         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
6083         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
6084         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
6085         "copyout", "create", "delete", "deviceptr", "gang", "host",
6086         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
6087         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
6088         "present_or_create", "pcreate", "seq", "self", "vector",
6089         "vector_length", "wait", "worker".
6090         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
6091         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
6092         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
6093         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
6094         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
6095         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
6096         (c_parser_oacc_data_clause_deviceptr)
6097         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
6098         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
6099         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
6100         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
6101         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
6102         (c_parser_oacc_parallel, c_parser_oacc_update)
6103         (c_parser_oacc_wait): New functions.
6104         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
6105         (c_finish_oacc_data): New prototypes.
6106         * c-typeck.c: Include "gomp-constants.h".
6107         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
6108         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
6109         OMP_CLAUSE_SET_MAP_KIND.
6110         (c_finish_oacc_parallel, c_finish_oacc_kernels)
6111         (c_finish_oacc_data): New functions.
6112         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
6113         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
6114         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
6115         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
6116         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
6117         GOMP_MAP_FORCE_DEVICEPTR.
6119 2015-01-09  Michael Collison  <michael.collison@linaro.org>
6121         * c-array-notation.c: Include hash-set.h, machmode.h,
6122         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6123         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
6124         * c-aux-info.c: Ditto.
6125         * c-convert.c: Ditto.
6126         * c-decl.c: Ditto.
6127         * c-errors.c: Ditto.
6128         * c-lang.c: Dittoxs.
6129         * c-objc-common.c: Ditto.
6130         * c-parser.c: Ditto.
6131         * c-typeck.c: Include hash-set.h, machmode.h,
6132         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6133         fold-const.h, wide-int.h, inchash.h, real.h and
6134         fixed-value.h due to flattening of tree.h.
6136 2015-01-07  Marek Polacek  <polacek@redhat.com>
6138         PR c/64417
6139         * c-typeck.c (process_init_element): Disallow initialization of
6140         a flexible array member with a string constant if the structure
6141         is in an array.
6143 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6145         PR sanitizer/64344
6146         * c-typeck.c (convert_for_assignment, c_finish_return): For
6147         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
6148         types also set in_late_binary_op around convert call.
6149         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
6150         to integral type casts, if not in_late_binary_op, pass c_fully_fold
6151         result on expr as last argument to ubsan_instrument_float_cast,
6152         if in_late_binary_op, don't use c_save_expr but save_expr.
6154         Update copyright years.
6156 2015-01-05  Marek Polacek  <polacek@redhat.com>
6158         PR c/64423
6159         * c-typeck.c (build_array_ref): Pass loc down to
6160         warn_array_subscript_with_type_char.
6162 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
6164         * c-typeck.c: New behavious for pointers to arrays with qualifiers
6165         (common-pointer-type): For pointers to arrays take qualifiers from
6166         element type.
6167         (build_conditional_expr): Add warnings for lost qualifiers.
6168         (comp-target-types): Allow pointers to arrays with different qualifiers.
6169         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
6170         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
6171         to PEDWARN_FOR_QUALIFIERS.
6173 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
6175         PR sanitizer/64289
6176         * c-convert.c: Include ubsan.h.
6177         (convert): For real -> integral casts and
6178         -fsanitize=float-cast-overflow don't call convert_to_integer, but
6179         instead instrument the float cast directly.
6181 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
6183         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
6184         c_finish_stmt_expr): Remove NULL last argument from
6185         create_tmp_var_raw and create_tmp_var calls.
6186         * c-array-notation.c (fix_builtin_array_notation_fn,
6187         build_array_notation_expr, fix_conditional_array_notations_1,
6188         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
6190 2014-11-28  Marek Polacek  <polacek@redhat.com>
6192         PR c/63862
6193         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
6194         convert the right operand to integer type.
6196 2014-11-25  Marek Polacek  <polacek@redhat.com>
6198         PR c/63877
6199         * c-decl.c (start_function): Disable -Wmissing-declarations warning
6200         for inline functions.
6202 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
6204         PR target/63764
6205         * c-typeck.c (build_array_ref): Adjust
6206         convert_vector_to_pointer_for_subscript caller.  If it returns true,
6207         call non_lvalue_loc on the result.
6209 2014-11-11  Richard Biener  <rguenther@suse.de>
6211         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
6212         to true.
6214 2014-11-10  Andi Kleen  <ak@linux.intel.com>
6216         PR c/60804
6217         * c-parser.c (c_parser_statement_after_labels): Call
6218         check_no_cilk.
6219         (c_parser_if_statement): Dito.
6220         (c_parser_switch_statement): Dito.
6221         (c_parser_while_statement): Dito.
6222         (c_parser_do_statement): Dito.
6223         (c_parser_for_statement): Dito.
6224         * c-typeck.c (c_finish_loop): Dito.
6226 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
6228         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
6229         OPT_Wshift_count_overflow in the warnings.
6231 2014-10-30  Marek Polacek  <polacek@redhat.com>
6233         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
6234         print the stripped version as well, if they're not the same.
6236 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6238         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
6239         machine_mode.
6241 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
6243         * c-decl.c: Adjust include files.
6244         * c-parser.c: Ditto.
6246 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
6247             Tom Tromey  <tromey@redhat.com>
6249         * c-tree.h (enum c_oracle_request): New.
6250         (c_binding_oracle_function): New typedef.
6251         (c_binding_oracle, c_pushtag, c_bind): Declare.
6252         * c-decl.c (c_binding_oracle): New global.
6253         (I_SYMBOL_CHECKED): New macro.
6254         (i_symbol_binding): New function.
6255         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
6256         (I_TAG_CHECKED): New macro.
6257         (i_tag_binding): New function.
6258         (I_TAG_BINDING, I_TAG_DECL): Redefine.
6259         (I_LABEL_CHECKED): New macro.
6260         (i_label_binding): New function.
6261         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
6262         (c_print_identifier): Save and restore c_binding_oracle.
6263         (c_pushtag, c_bind): New functions.
6265 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
6267         * c-typeck.c: Adjust include files.
6269 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6271         PR c++/53061
6272         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
6273         initialization here...
6274         (c_initialize_diagnostics): ... but here. Set defaults after
6275         building pretty-printer.
6277 2014-10-23  Marek Polacek  <polacek@redhat.com>
6279         PR c/63626
6280         * c-decl.c (pop_scope): Don't print warning in external_scope.
6282 2014-10-19  Marek Polacek  <polacek@redhat.com>
6284         PR c/63567
6285         * c-typeck.c (output_init_element): Allow initializing objects with
6286         static storage duration with compound literals even in C99 and add
6287         pedwarn for it.
6289 2014-10-17  Marek Polacek  <polacek@redhat.com>
6291         PR c/63567
6292         * c-typeck.c (digest_init): Allow initializing objects with static
6293         storage duration with compound literals even in C99 and add pedwarn
6294         for it.
6296 2014-10-17  Marek Polacek  <polacek@redhat.com>
6298         PR c/63543
6299         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
6300         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
6301         error multiple times.  Print the type.
6303 2014-10-17  Marek Polacek  <polacek@redhat.com>
6305         PR c/63549
6306         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
6307         type.
6309 2014-10-17  Marek Polacek  <polacek@redhat.com>
6311         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
6312         (start_function): Use OPT_Wimplicit_int instead of 0.
6313         (store_parm_decls_oldstyle): Likewise.
6315 2014-10-17  Alan Modra  <amodra@gmail.com>
6317         PR middle-end/61848
6318         * c-decl.c (merge_decls): Don't merge section name or tls model
6319         to newdecl symtab node, instead merge to olddecl.  Override
6320         existing olddecl section name.  Set tls_model for all thread-local
6321         vars, not just OMP thread-private ones.  Remove incorrect comment.
6323 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
6325         * c-decl.c: Adjust include files.
6327 2014-10-14  DJ Delorie  <dj@redhat.com>
6329         * c-parser.c (c_parse_init): Add RID entries for each __intN.
6330         (c_token_starts_typename): Check all __intN, not just __int128.
6331         (c_token_starts_declspecs): Likewise.
6332         (c_parser_declspecs): Likewise.
6333         (c_parser_attribute_any_word): Likewise.
6334         (c_parser_objc_selector): Likewise.
6335         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
6336         (struct c_declspecs): Add int_n_idx field to record *which* __intN
6337         is specified.
6338         * c-decl.c (declspecs_add_type): Check for all __intN, not just
6339         __int128.
6340         (finish_declspecs): Likewise.
6342 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
6344         * c-parser.c (c_parser_all_labels): New function to replace
6345         the duplicate code.
6346         (c_parser_statement): Call the new function.
6348 2014-10-09  Marek Polacek  <polacek@redhat.com>
6350         PR c/63480
6351         * c-typeck.c (pop_init_level): Don't warn about initializing
6352         with { }.
6354 2014-10-07  Marek Polacek  <polacek@redhat.com>
6356         PR c/59717
6357         * c-decl.c (header_for_builtin_fn): New function.
6358         (implicitly_declare): Suggest which header to include.
6360 2014-10-07  Marek Polacek  <polacek@redhat.com>
6362         * c-convert.c (convert): Use error_operand_p.
6363         * c-typeck.c (require_complete_type): Likewise.
6364         (really_atomic_lvalue): Likewise.
6365         (digest_init): Likewise.
6366         (handle_omp_array_sections_1): Likewise.
6368 2014-10-03  Marek Polacek  <polacek@redhat.com>
6370         PR c/63453
6371         * c-decl.c (pop_scope): Don't warn about "inline function declared
6372         but never defined" for functions marked with gnu_inline attribute.
6374 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
6376         PR c++/63249
6377         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
6378         on low_bound and length.
6380 2014-09-24  Marek Polacek  <polacek@redhat.com>
6382         PR c/61405
6383         PR c/53874
6384         * c-parser.c: Don't define CPP_KEYWORD.
6385         (c_parser_switch_statement): Pass original type to c_finish_case.
6386         * c-tree.h (c_finish_case): Update declaration.
6387         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
6388         conditionally to c_do_switch_warnings.
6390 2014-09-03  Marek Polacek  <polacek@redhat.com>
6392         PR c/62024
6393         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
6394         conversions.
6396 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
6397             Balaji V. Iyer  <balaji.v.iyer@intel.com>
6398             Igor Zamyatin  <igor.zamyatin@intel.com>
6400         * c-parser.c (c_parser_cilk_for): New function.
6401         (c_parser_cilk_grainsize): Likewise.
6402         (c_get_temp_regvar): Likewise.
6403         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
6404         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
6405         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
6406         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
6407         case.
6409 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
6411         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
6412         with using HOST_WIDE_INT without truncation to 'int'
6414 2014-08-22  Marek Polacek  <polacek@redhat.com>
6416         PR c++/62199
6417         * c-typeck.c (parser_build_binary_op): Adjust call to
6418         warn_logical_not_parentheses.
6420 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
6422         PR other/62008
6423         * c-parser.c (c_parser_array_notation): Check for correct
6424         type of an array added.
6426 2014-08-19  Marek Polacek  <polacek@redhat.com>
6428         PR c++/62153
6429         * c-typeck.c (build_binary_op): If either operand of a comparison
6430         is a boolean expression, call maybe_warn_bool_compare.
6432 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
6434         PR c/45584
6435         * c-typeck.c (build_c_cast): Do a conversion even when the
6436         TYPE_MAIN_VARIANTs are the same.
6438 2014-08-19  Marek Polacek  <polacek@redhat.com>
6440         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
6441         pedwarn_c99 instead of pedwarn.
6442         (grokfield): Likewise.
6443         (warn_defaults_to): New function.
6444         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
6445         Unconditionally call pedwarn_c99 instead of pedwarn.
6446         (start_function): Call warn_defaults_to instead of pedwarn_c99.
6447         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
6448         check flag_isoc11 before.
6449         * c-errors.c (pedwarn_c99): Change the return type to bool.
6450         Handle -Wc99-c11-compat.
6451         * c-parser.c (disable_extension_diagnostics): Handle
6452         warn_c99_c11_compat.
6453         (restore_extension_diagnostics): Likewise.
6454         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
6455         instead of pedwarn, don't check flag_isoc11 before.
6456         (c_parser_declspecs): Likewise.
6457         (c_parser_alignas_specifier): Likewise.
6458         (c_parser_alignof_expression): Likewise.
6459         (c_parser_generic_selection): Likewise.
6460         * c-tree.h (pedwarn_c99): Update declaration.
6461         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
6462         of pedwarn_c99.
6464 2014-08-19  Marek Polacek  <polacek@redhat.com>
6466         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
6467         to pedwarn_c90.
6468         * c-errors.c: Include "opts.h".
6469         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
6470         * c-parser.c (disable_extension_diagnostics): Handle negative value
6471         of warn_c90_c99_compat, too.
6472         (restore_extension_diagnostics): Likewise.
6473         (c_parser_compound_statement_nostart): Pass
6474         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
6476 2014-08-12  Marek Polacek  <polacek@redhat.com>
6478         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
6479         Add pedwarn.
6480         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
6481         Likewise.
6482         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
6484 2014-08-10  Marek Polacek  <polacek@redhat.com>
6486         PR c/51849
6487         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
6488         Call pedwarn_c90 instead of pedwarn.
6489         (check_bitfield_type_and_width): Likewise.
6490         (declspecs_add_qual): Likewise.
6491         (declspecs_add_type): Likewise.
6492         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
6493         Adjust to only call pedwarn_c90.
6494         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
6495         pedwarn_c90 instead of pedwarn.
6496         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
6497         * c-parser.c (disable_extension_diagnostics): Handle
6498         warn_c90_c99_compat.
6499         (restore_extension_diagnostics): Likewise.
6500         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
6501         pedwarn_c90 instead of pedwarn.
6502         (c_parser_initelt): Likewise.
6503         (c_parser_postfix_expression): Likewise.
6504         (c_parser_postfix_expression_after_paren_type): Likewise.
6505         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
6506         * c-tree.h: Fix formatting.
6507         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
6508         pedwarn_c90 instead of pedwarn.
6510 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
6512         * c-typeck.c: Remove include of pointer-set.h.
6514 2014-08-07  Marek Polacek  <polacek@redhat.com>
6516         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
6518 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
6520         * c-typeck.c: Use hash_map instead of pointer_map.
6522 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
6524         * c-decl.c: Use hash_set instead of pointer_set.
6526 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
6528         PR middle-end/61455
6529         * c-array-notation.c (expand_array_notations): Handling
6530         of DECL_EXPR added.
6532 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
6534         PR c++/60517
6535         * c-typeck.c (c_finish_return): Return 0 instead of the address of
6536         a local variable.
6538 2014-07-30  Tom Tromey  <tromey@redhat.com>
6540         * c-typeck.c (struct constructor_stack) <designator_depth>: New
6541         field.
6542         (really_start_incremental_init, push_init_level): Initialize
6543         designator_depth.
6544         (pop_init_level): Set global designator_depth.
6545         (process_init_element): Check for designated_init attribute.
6547 2014-07-20  Marek Polacek  <polacek@redhat.com>
6549         PR c/61852
6550         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
6551         (implicitly_declare): Pass location to implicit_decl_warning.
6553 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
6555         PR middle-end/61294
6556         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
6557         If non-NULL, call c_parser_check_literal_zero.
6558         (c_parser_check_literal_zero): New function.
6559         (c_parser_postfix_expression_after_primary): Adjust
6560         c_parser_expr_list caller, handle -Wmemset-transposed-args.
6562 2014-07-06  Marek Polacek  <polacek@redhat.com>
6564         PR c/6940
6565         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
6566         * c-tree.h (C_ARRAY_PARAMETER): Define.
6567         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
6568         function parameter.
6570 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
6571             Chen Gang  <gang.chen.5i5j@gmail.com>
6573         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
6574         releasing symbol.
6576 2014-07-01  Marek Polacek  <polacek@redhat.com>
6578         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
6579         instead of 0 to WARN_FOR_ASSIGNMENT.
6581 2014-07-01  Marek Polacek  <polacek@redhat.com>
6583         PR c/58286
6584         * c-typeck.c (convert_for_assignment): Pass
6585         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
6587 2014-06-30  Marek Polacek  <polacek@redhat.com>
6589         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
6590         has no_sanitize_undefined attribute.
6592 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
6594         PR middle-end/57541
6595         * c-array-notation.c (fix_builtin_array_notation_fn):
6596         Check for 0 arguments in builtin call. Check that bultin argument is
6597         correct.
6598         * c-parser.c (c_parser_array_notation): Check for incorrect initial
6599         index.
6601 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6603         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
6604         qualifiers in __auto_type for atomic types.
6605         (c_parser_typeof_specifier): Discard all type qualifiers in
6606         __typeof__ for atomic types.
6608 2014-06-25  Marek Polacek  <polacek@redhat.com>
6610         PR c/61162
6611         * c-parser.c (c_parser_statement_after_labels): Pass the location of
6612         the return expression to c_finish_return.
6614 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
6616         * c-typeck.c (c_finish_omp_clauses): Make sure
6617         OMP_CLAUSE_LINEAR_STEP has correct type.
6619 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
6621         * c-decl.c: Adjust.
6623 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
6625         * c-parser.c (c_parser_omp_for_loop): For
6626         #pragma omp parallel for simd move lastprivate clause from parallel
6627         to for rather than simd.
6629 2014-06-23  Marek Polacek  <polacek@redhat.com>
6631         * c-typeck.c (parser_build_binary_op): Don't call
6632         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
6634 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
6636         * c-parser.c (c_parser_omp_threadprivate): Likewise.
6637         * c-decl.c (merge_decls): Likewise.
6639 2014-06-09  Marek Polacek  <polacek@redhat.com>
6641         PR c/36446
6642         * c-typeck.c (error_init): Call inform instead of error_at.
6643         (pedwarn_init): Call inform instead of pedwarn.
6644         (warning_init): Call inform instead of warning_at.
6646 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6648         * c-decl.c (merge_decls): Use set_decl_section_name.
6649         (duplicate_decls): Remove node if it exists.
6651 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
6653         PR c/53119
6654         * c-typeck.c (push_init_level, process_init_element,
6655         pop_init_level): Correct check for zero initialization, move
6656         missing brace warning to respect zero initialization.
6658 2014-06-05  Marek Polacek  <polacek@redhat.com>
6660         PR c/56724
6661         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
6663 2014-06-05  Marek Polacek  <polacek@redhat.com>
6665         PR c/49706
6666         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
6667         on the left hand side operand of a comparison.
6669 2014-06-05  Marek Polacek  <polacek@redhat.com>
6671         PR c/48062
6672         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
6673         Print note only if the warning was printed.
6675 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
6677         PR c/58942
6678         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
6679         with a pointer.
6681 2014-06-03  Marek Polacek  <polacek@redhat.com>
6683         PR c/60439
6684         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
6685         c_start_case.
6686         * c-tree.h (c_start_case): Update.
6687         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
6688         switch condition has boolean value.
6690 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
6692         * c-decl.c: Include builtins.h.
6693         * c-parser.c: Likewise.
6695 2014-05-27  Marek Polacek  <polacek@redhat.com>
6697         PR c/56724
6698         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
6699         error and warning calls to error_at and warning_at.  Pass location of
6700         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
6701         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
6702         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
6704 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
6706         PR c/61191
6707         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
6708         function parameters.
6710 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6712         * c-decl.c (merge_decls): Preserve symtab node pointers.
6713         (duplicate_decls): Free new decl.
6715 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
6717         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
6718         initialization.
6720         * c-parser.c (c_parser_omp_target): Return bool values.
6722 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6724         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
6725         num_teams_loc variable to num_thread_limit_loc.
6727 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6729         * c-array-notation.c (expand_array_notations): Use void_node
6730         instead of void_zero_node.
6732 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6734         * c-decl.c (finish_struct): Adjust.
6735         (finish_enum): Likewise.
6736         (bind): Adjust.
6737         (record_inline_static): Likewise.
6738         (push_scope): Likewise.
6739         (make_label): Likewise.
6740         (lookup_label_for_goto): Likewise.
6741         (finish_struct): Likewise.
6742         (finish_enum): Likewise.
6743         (store_parm_decls): Likewise.
6744         (c_push_function_context): Likewise.
6745         * c-lang.h: Remove usage of variable_size gty attribute.
6746         * c-parser.c (c_parse_init): Adjust.
6747         (c_parse_file): Likewise.
6749 2014-05-13  Marek Polacek  <polacek@redhat.com>
6751         PR c/61162
6752         * c-typeck.c (convert_for_assignment): Pass location to
6753         WARN_FOR_ASSIGNMENT instead of input_location.
6755 2014-05-10  Marek Polacek  <polacek@redhat.com>
6757         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
6758         maybe_warn_string_init.
6759         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
6760         maybe_warn_string_init.
6761         * c-tree.h (maybe_warn_string_init): Update declaration.
6762         * c-typeck.c (maybe_warn_string_init): Add location parameter.
6763         Call pedwarn_init with loc instead of with input_location.
6764         (digest_init): Pass init_loc to maybe_warn_string_init.
6765         (pop_init_level): Call pedwarn_init with loc instead of with
6766         input_location.
6767         (set_init_index): Likewise.
6768         (process_init_element): Likewise.
6770 2014-05-09  Marek Polacek  <polacek@redhat.com>
6772         PR c/61096
6773         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
6774         (c_parser_initelt): Pass location to set_init_label.  Pass array index
6775         location to set_init_index.
6776         * c-tree.h (push_init_level): Update declaration.
6777         (pop_init_level): Likewise.
6778         (set_init_index): Likewise.
6779         (set_init_label): Likewise.
6780         * c-typeck.c (error_init): Add location parameter.  Call error_at
6781         instead of error.
6782         (digest_init): Pass init_loc to error_init.
6783         (really_start_incremental_init):
6784         (push_init_level): Add location parameter.  Pass loc to pop_init_level
6785         and error_init.
6786         (pop_init_level): Likewise.
6787         (set_designator): Add location parameter.  Pass loc to pop_init_level,
6788         push_init_level, and error_init.
6789         (set_init_index): Add location parameter.  Pass loc to error_init and
6790         set_designator.
6791         (set_init_label): Likewise.
6792         (output_init_element): Pass loc to error_init.
6793         (process_init_element): Pass loc to error_init, pop_init_level,
6794         pedwarn_init, and push_init_level.
6796 2014-05-09  Marek Polacek  <polacek@redhat.com>
6798         PR c/50459
6799         * c-parser.c (c_parser_attributes): Parse the arguments as an
6800         expression-list if the attribute takes identifier.
6802 2014-05-08  Marek Polacek  <polacek@redhat.com>
6804         PR c/61053
6805         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
6806         TYPE_ALIGN_UNIT.
6808 2014-05-08  Marek Polacek  <polacek@redhat.com>
6810         PR c/61077
6811         * c-decl.c (start_function): Warn for _Atomic-qualified return type
6812         of main.
6814 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
6815             Mike Stump  <mikestump@comcast.net>
6816             Richard Sandiford  <rdsandiford@googlemail.com>
6818         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
6819         (finish_enum): Use wide-int interfaces.
6820         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
6821         * c-typeck.c (build_c_cast): Likewise.
6822         (set_nonincremental_init_from_string): Likewise.
6823         (c_tree_equal): Likewise.
6825 2014-05-02  Marek Polacek  <polacek@redhat.com>
6827         PR c/25801
6828         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
6829         Return size_one_node when the type is not complete.
6830         (pointer_diff): Remove comment.
6831         (build_unary_op): Improve error messages.
6833 2014-05-02  Marek Polacek  <polacek@redhat.com>
6835         * c-typeck.c (c_finish_return): Separate warning_at calls.
6837 2014-05-02  Marek Polacek  <polacek@redhat.com>
6839         * c-tree.h (error_init): Remove declaration.
6840         (pedwarn_init): Likewise.
6841         * c-typeck.c (error_init): Make static and move above.
6842         (pedwarn_init): Likewise.
6843         (warning_init): Move above.
6844         (maybe_warn_string_init): Likewise.
6846 2014-05-01  Jeff Law  <law@redhat.com>
6848         Revert:
6850         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6851         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
6852         avoid goto.
6854 2014-05-02  Marek Polacek  <polacek@redhat.com>
6856         PR c/60784
6857         * c-typeck.c (push_init_level): Set constructor_designated to
6858         p->designated for structures.
6860 2014-05-01  Marek Polacek  <polacek@redhat.com>
6862         PR c/60915
6863         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
6864         function-definition has an attribute after the declarator.
6866 2014-05-01  Marek Polacek  <polacek@redhat.com>
6868         PR c/60257
6869         * c-typeck.c (warning_init): Add location_t parameter.  Call
6870         warning_at instead of warning.
6871         (push_init_level): Pass input_location to warning_init.
6872         (add_pending_init): Add location_t parameter.  Pass loc to
6873         warning_init.
6874         (set_nonincremental_init): Pass input_location to add_pending_init.
6875         (set_nonincremental_init_from_string): Likewise.
6876         (output_init_element): Pass loc to warning_init and to
6877         add_pending_init.
6879 2014-05-01  Marek Polacek  <polacek@redhat.com>
6881         PR c/43395
6882         * c-typeck.c (c_finish_return): Distinguish between label and variable
6883         when warning about returning local address.
6885 2014-05-01  Marek Polacek  <polacek@redhat.com>
6887         PR c/29467
6888         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
6889         in C89 mode.
6891 2014-05-01  Marek Polacek  <polacek@redhat.com>
6893         PR c/43245
6894         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
6895         instead of 0 to WARN_FOR_QUALIFIERS.
6897 2014-05-01  Marek Polacek  <polacek@redhat.com>
6899         PR c/56989
6900         * c-typeck.c (default_conversion): Use better location for
6901         error call.
6903 2014-04-30  Marek Polacek  <polacek@redhat.com>
6905         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
6906         also when SANITIZE_FLOAT_DIVIDE is on.
6908 2014-04-30  Marek Polacek  <polacek@redhat.com>
6910         PR c/60139
6911         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
6912         and pedwarn_init.  Use loc insted of input_location.
6914 2014-04-30  Marek Polacek  <polacek@redhat.com>
6916         PR c/60351
6917         * c-typeck.c (build_binary_op): Use location when warning about
6918         shift count.
6920 2014-04-25  Marek Polacek  <polacek@redhat.com>
6922         PR c/18079
6923         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
6924         always_inline/noinline and hot/cold attributes.
6926 2014-04-25  Marek Polacek  <polacek@redhat.com>
6928         PR c/60114
6929         * c-parser.c (c_parser_initelt): Pass input_location to
6930         process_init_element.
6931         (c_parser_initval): Pass loc to process_init_element.
6932         * c-tree.h (process_init_element): Adjust declaration.
6933         * c-typeck.c (push_init_level): Pass input_location to
6934         process_init_element.
6935         (pop_init_level): Likewise.
6936         (set_designator): Likewise.
6937         (output_init_element): Add location_t parameter.  Pass loc to
6938         digest_init.
6939         (output_pending_init_elements): Pass input_location to
6940         output_init_element.
6941         (process_init_element): Add location_t parameter.  Pass loc to
6942         output_init_element.
6944 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
6946         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
6947         atomic-clause, allow comma in between atomic-clause and
6948         seq_cst.
6950 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
6952         PR c/59073
6953         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
6954         fails, don't set OM_PARALLEL_COMBINED and return NULL.
6956 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
6958         PR middle-end/60469
6959         * c-array-notation.c (fix_builtin_array_notation_fn): Use
6960         create_tmp_var instead build_decl for creating temps.
6961         (build_array_notation_expr): Likewise.
6962         (fix_conditional_array_notations_1): Likewise.
6963         (fix_array_notation_expr): Likewise.
6964         (fix_array_notation_call_expr): Likewise.
6966 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
6968         PR c++/60689
6969         * c-tree.h (c_build_function_call_vec): New prototype.
6970         * c-typeck.c (build_function_call_vec): Don't call
6971         resolve_overloaded_builtin here.
6972         (c_build_function_call_vec): New wrapper function around
6973         build_function_call_vec.  Call resolve_overloaded_builtin here.
6974         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
6975         Call c_build_function_call_vec instead of build_function_call_vec.
6976         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
6977         * c-decl.c (finish_decl): Likewise.
6979 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6981         PR c/55383
6982         * c-typeck.c: Use correct format string in cast-qual warning
6984 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
6986         * c-decl.c (c_decl_attributes): Use
6987         lang_hooks.types.omp_mappable_type.
6988         * c-typeck.c (c_finish_omp_clauses): Likewise.
6990 2014-03-06  Marek Polacek  <polacek@redhat.com>
6992         PR c/60197
6993         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
6994         of checking tree code.
6996 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6998         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
6999         (c_parser_parameter_declaration): Likewise.
7001 2014-02-19  Marek Polacek  <polacek@redhat.com>
7003         PR c/60195
7004         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
7005         Call mark_exp_read on exp.value.
7006         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
7007         TREE_ADDRESSABLE on old instead of val.
7008         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
7010 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
7012         * c-parser.c (c_parser_get_builtin_args): Replace calls to
7013         C_EXPR_APPEND by vec_safe_push.
7014         * c-tree.h (C_EXPR_APPEND): Remove.
7016 2014-01-31  Marek Polacek  <polacek@redhat.com>
7018         PR c/59963
7019         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
7020         build_function_call_vec.
7021         (build_function_call): Likewise.
7022         (build_atomic_assign): Likewise.
7023         (build_function_call_vec): Add arg_loc parameter.  Use it.
7024         (convert_arguments): Likewise.
7025         (convert_for_assignment): Rename rhs_loc to expr_loc.
7026         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
7027         (c_parser_objc_keywordexpr): Likewise.
7028         (c_parser_postfix_expression_after_primary): Call
7029         build_function_call_vec with expr_loc rather than op_loc.
7030         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
7031         build_function_call_vec.
7032         (c_parser_expr_list): Add locations parameter.  Fill it with locations
7033         of function arguments.
7034         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
7036 2014-01-30  Marek Polacek  <polacek@redhat.com>
7038         PR c/59940
7039         * c-typeck.c (build_function_call_vec): Use loc parameter.
7040         (convert_arguments): Add location parameter.  Use it.
7041         (ep_convert_and_check): Likewise.
7042         (build_atomic_assign): Adjust convert_for_assignment call.
7043         (build_modify_expr): Likewise.
7044         (digest_init): Likewise.
7045         (c_finish_return): Likewise.
7046         (build_conditional_expr): Adjust ep_convert_and_check calls.
7047         (convert_for_assignment): Add rhs_loc parameter.  Use it.
7048         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
7049         calls.
7051 2014-01-30  Richard Biener  <rguenther@suse.de>
7053         PR c/59905
7054         * c-typeck.c (build_function_call_vec): Do not replace calls
7055         to a function via an incompatible type with a runtime abort.
7057 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7059         * c-parser.c (c_parser_declaration_or_fndef): Replaced
7060         flag_enable_cilkplus with flag_cilkplus.
7061         (c_parser_direct_declarator_inner): Likewise.
7062         (c_parser_attribute_any_word): Likewise.
7063         (c_parser_attributes): Likewise.
7064         (c_parser_compound_statement): Likewise.
7065         (c_parser_statement_after_labels): Likewise.
7066         (c_parser_if_statement): Likewise.
7067         (c_parser_switch_statement): Likewise.
7068         (c_parser_do_statement): Likewise.
7069         (c_parser_for_statement): Likewise.
7070         (c_parser_unary_expression): Likewise.
7071         (c_parser_postfix_expression): Likewise.
7072         (c_parser_postfix_expression_after_primary): Likewise.
7073         (c_parser_postfix_expression_after_primary): Likewise.
7074         (c_parser_omp_clause_name): Likewise.
7075         (c_finish_omp_declare_simd): Likewise.
7076         (c_parser_cilk_verify_simd): Likewise.
7077         * c-typeck.c (build_array_ref): Likewise.
7078         (build_function_call_vec): Likewise.
7079         (convert_arguments): Likewise.
7080         (build_compound_expr): Likewise.
7081         (c_finish_return): Likewise.
7082         (c_finish_if_stmt): Likewise.
7083         (c_finish_loop): Likewise.
7084         (build_binary_op): Likewise.
7086 2014-01-23  Marek Polacek  <polacek@redhat.com>
7088         PR c/59846
7089         * c-typeck.c (parser_build_binary_op): Use location instead of
7090         input_location.
7091         (build_binary_op): Pass location to shorten_compare.
7093 2014-01-23  Marek Polacek  <polacek@redhat.com>
7095         PR c/58346
7096         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
7097         an empty aggregate.
7099 2014-01-23  Marek Polacek  <polacek@redhat.com>
7101         PR c/59871
7102         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
7103         of a comma expression.
7104         (emit_side_effect_warnings): Likewise.
7106 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7108         PR c/59825
7109         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
7110         function to use walk_tree and moved a lot of its functionality to
7111         expand_array_notations.
7112         (expand_array_notations): New function.
7114 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7116         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
7117         attribute an attribute without value.
7119 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
7121         PR middle-end/58809
7122         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
7123         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
7125 2014-01-22  Marek Polacek  <polacek@redhat.com>
7127         PR c/59891
7128         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
7129         of remove_c_maybe_const_expr on op1 and op2.
7131 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
7133         PR c/58943
7134         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
7135         effects, preevaluate rhs using SAVE_EXPR first.
7137 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7139         PR c++/59631
7140         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
7141         statements with if-elseif statements.
7143 2014-01-06  Marek Polacek  <polacek@redhat.com>
7145         PR c/57773
7146         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
7147         defined bit-field types only in ISO C.
7149 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7151         Update copyright years
7153 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7155         * c-array-notation.c: Use the standard form for the copyright notice.
7157 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7159         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
7160         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
7161         field in parser is not empty.  If not-empty, call the function
7162         c_parser_finish_omp_declare_simd.
7163         (c_parser_cilk_clause_vectorlength): Modified function to be shared
7164         between SIMD-enabled functions and #pragma simd.  Added new parameter.
7165         (c_parser_cilk_all_clauses): Modified the usage of the function
7166         c_parser_cilk_clause_vectorlength as mentioned above.
7167         (c_parser_cilk_simd_fn_vector_attrs): New function.
7168         (c_finish_cilk_simd_fn_tokens): Likewise.
7169         (is_cilkplus_vector_p): Likewise.
7170         (c_parser_omp_clause_name): Added checking for "vectorlength,"
7171         "nomask," and "mask" strings in clause name.
7172         (c_parser_omp_all_clauses): Added 3 new case statements:
7173         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
7174         PRAGMA_CILK_CLAUSE_NOMASK.
7175         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
7176         check for vector attribute and if so call the function
7177         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
7178         called the function c_finish_cilk_simd_fn_tokens.
7179         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
7180         parser field is non-empty.  If so, parse them as you would parse
7181         the omp declare simd pragma.
7182         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
7183         Added a check when step is a parameter and flag it as error.
7184         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
7185         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
7186         pragma_omp_clause.
7188 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
7190         * c-parser.c (c_parser_omp_parallel): Fix description.
7192 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7194         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
7195         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
7196         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7197         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
7199 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
7201         PR c/52023
7202         * c-parser.c (c_parser_alignas_specifier): Use
7203         c_sizeof_or_alignof_type instead of c_alignof.
7204         (c_parser_alignof_expression): Likewise, with min_alignof
7205         parameter depending on alignof spelling used.
7207 2013-12-04  Marek Polacek  <polacek@redhat.com>
7209         PR c/54113
7210         * c-decl.c (start_function): Don't warn for missing prototype for
7211         inline functions.
7213 2013-12-03  Marek Polacek  <polacek@redhat.com>
7215         PR c/59351
7216         * c-decl.c (build_compound_literal): Allow compound literals with
7217         empty initial value.
7219 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
7221         PR c/58235
7222         * c-typeck.c (build_modify_expr): Diagnose assignment to
7223         expression with array type.
7225 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
7227         PR c/42262
7228         * c-typeck.c (process_init_element): Do not treat a string as
7229         initializing a whole array when used with a designator for an
7230         individual element.
7232 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
7234         PR c/57574
7235         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
7236         an inline function following a static declaration.
7238 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
7240         PR c/59310
7241         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
7242         to p_name before calling c_parser_omp_teams instead of after.
7243         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
7244         argument.  Remove unused p_name variable.
7246 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
7247             Jakub Jelinek  <jakub@redhat.com>
7249         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
7250         external_scope is NULL.
7252 2013-11-27  Tom de Vries  <tom@codesourcery.com>
7253             Marc Glisse  <marc.glisse@inria.fr>
7255         PR c++/59032
7256         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
7258 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
7260         * c-typeck.c: Add required include files from gimple.h.
7262 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
7264         * c-decl.c (define_label, shadow_tag_warned)
7265         (check_bitfield_type_and_width, grokdeclarator, grokparms,
7266         store_parm_decls_newstyle, store_parm_decls_oldstyle)
7267         (declspecs_add_type): Remove use of in_system_header macro.
7268         * c-parser.c (c_parser_unary_expression): Likewise.
7269         * c-typeck.c (store_init_value, process_init_element)
7270         (c_start_case): Likewise.
7272         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
7273         macro.
7275         * c-parser.c (c_parser_set_source_position_from_token): Remove
7276         reference to in_system_header from comment.
7278 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7280         * c-decl.c (grokdeclarator): Update comment to refer to
7281         tree_to_[su]hwi rather than tree_low_cst.
7283 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7285         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
7286         tree_to_uhwi throughout.
7288 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7290         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
7291         throughout.
7293 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7295         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
7296         throughout.
7298 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
7300         * c-parser.c (c_parser_cilk_simd): New.
7301         (c_parser_cilk_verify_simd): New.
7302         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
7303         (c_parser_omp_for_loop): Add case for NE_EXPR.
7304         Set c_break_label for CILK_SIMD.
7305         (c_parser_cilk_clause_vectorlength): New.
7306         (c_parser_cilk_clause_linear): New.
7307         (c_parser_cilk_clause_name): New.
7308         (c_parser_cilk_all_clauses): New.
7309         * c-typeck.c (build_unary_op): Pass location argument to
7310         readonly_error.
7311         (build_modify_expr): Same.
7312         (build_asm_expr): Same.
7313         (c_finish_bc_stmt): Error on break/continue in loops.
7315 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
7317         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
7319 2013-11-14  Diego Novillo  <dnovillo@google.com>
7321         * c-decl.c: Include print-tree.h.
7322         Include stor-layout.h.
7323         Include varasm.h.
7324         Include attribs.h.
7325         Include stringpool.h.
7326         * c-lang.c: Include fold-const.h.
7327         * c-parser.c: Include stringpool.h.
7328         Include attribs.h.
7329         Include stor-layout.h.
7330         Include varasm.h.
7331         Include trans-mem.h.
7332         * c-typeck.c: Include stor-layout.h.
7333         Include trans-mem.h.
7334         Include varasm.h.
7335         Include stmt.h.
7337 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
7339         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
7340         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
7341         __auto_type.
7342         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
7343         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
7344         RID_AUTO_TYPE.
7345         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
7346         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
7347         (c_parser_declarator, c_parser_direct_declarator_inner)
7348         (c_parser_parameter_declaration, c_parser_type_name): All callers
7349         changed.
7350         (c_parser_declaration_or_fndef): Handle declarations with type
7351         determined from the initializer.
7353 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
7355         * c-typeck.c: Include gimplify.h.
7357 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
7359         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
7360         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
7361         comment.
7362         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
7363         or _Thread_local as appropriate in diagnostics.
7364         (build_null_declspecs): Initialize ret->thread_gnu_p.
7365         (declspecs_add_scspec): Handle either __thread or _Thread_local
7366         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
7367         pedantic.  Do not disallow _Thread_local extern and _Thread_local
7368         static.
7370 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
7371             Andrew MacLeod  <amacleod@redhat.com>
7373         * c-aux-info.c (gen_type): Handle atomic qualifier.
7374         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
7375         qualifiers when compating types.
7376         (shadow_tag_warned): Handle atomic_p in declspecs.
7377         (quals_from_declspecs): Likewise.
7378         (start_decl): Use c_type_promotes_to when promoting argument
7379         types.
7380         (grokdeclarator): Handle _Atomic.
7381         (get_parm_info): Diagnose any qualifier on "void" as only
7382         parameter.
7383         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
7384         comparing types.  Use c_type_promotes_to when promoting argument
7385         types.
7386         (finish_function): Use c_type_promotes_to when promoting argument
7387         types.
7388         (build_null_declspecs): Handle atomic_p in declspecs.
7389         (declspecs_add_qual): Handle RID_ATOMIC.
7390         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
7391         (c_token_starts_declspecs): Handle RID_ATOMIC.
7392         (c_parser_declspecs): Handle atomic type specifiers and
7393         qualifiers.
7394         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
7395         from types of expressions with atomic type.
7396         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
7397         (c_parser_attribute_any_word): Handle RID_ATOMIC.
7398         (c_parser_initializer, c_parser_initelt, c_parser_initval)
7399         (c_parser_statement_after_labels, c_parser_switch_statement)
7400         (c_parser_for_statement, c_parser_expr_no_commas)
7401         (c_parser_conditional_expression, c_parser_binary_expression)
7402         (c_parser_cast_expression, c_parser_unary_expression)
7403         (c_parser_postfix_expression)
7404         (c_parser_postfix_expression_after_primary, c_parser_expression):
7405         Use convert_lvalue_to_rvalue.
7406         (c_parser_expression_conv, c_parser_expr_list): Document
7407         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
7408         (c_parser_objc_synchronized_statement): Use
7409         convert_lvalue_to_rvalue.
7410         (c_parser_objc_selector): Handle RID_ATOMIC.
7411         (c_parser_objc_receiver, c_parser_array_notation): Use
7412         convert_lvalue_to_rvalue.
7413         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
7414         _Atomic (type-name).
7415         (struct c_declspecs): Add atomic_p field.
7416         (convert_lvalue_to_rvalue): Declare.
7417         * c-typeck.c (c_type_promotes_to): Promote atomic types to
7418         corresponding atomic types.
7419         (qualify_type): Don't add _Atomic qualifiers from second argument.
7420         (comp_target_types): Do not allow _Atomic mismatches.
7421         (type_lists_compatible_p): Do not remove atomic qualifiers when
7422         comparing types.
7423         (really_atomic_lvalue, convert_lvalue_to_rvalue)
7424         (build_atomic_assign): New functions.
7425         (build_unary_op): Use build_atomic_assign for atomic increment and
7426         decrement.
7427         (build_conditional_expr): Do not treat _Atomic void as a qualified
7428         version of void.
7429         (build_modify_expr): Use build_atomic_assign for atomic LHS.
7430         (find_anonymous_field_with_type, convert_to_anonymous_field)
7431         (convert_for_assignment): Do not remove atomic qualifiers when
7432         comparing types.
7433         (digest_init): Do not accept initialization of arrays of atomic
7434         elements by string constants.
7435         (build_asm_expr): Use convert_lvalue_to_rvalue.
7436         (build_binary_op): Do not treat _Atomic void as a qualified
7437         version of void.
7439 2013-11-06  DJ Delorie  <dj@redhat.com>
7441         * c-decl.c (locate_old_decl): If a previous conflicting decl is
7442         both explicit and builtin, print the location of the explicit one.
7444 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7446         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
7447         c_parser_omp_distribute, c_parser_omp_teams,
7448         c_parser_omp_target, c_parser_omp_declare): Handle
7449         -fopenmp-simd.
7451 2013-11-03  Marek Polacek  <polacek@redhat.com>
7453         * c-decl.c (grokdeclarator): Add VLA instrumentation.
7455 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
7457         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
7458         check_dup_generic at the end, unless remove is true.
7459         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
7460         remove = true;.
7461         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
7463 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7465         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
7466         with decl that is not pointer nor array.
7468 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7470         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
7471         a spawning function is found.
7472         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
7473         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7474         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
7475         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
7476         case.
7477         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
7478         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
7479         expr.
7480         (c_finish_return): Added a check to reject _Cilk_spawn in return
7481         expression.
7482         (build_cilk_spawn): New function.
7483         (build_cilk_sync): Likewise.
7484         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
7486 2013-10-27  Tobias Burnus  <burnus@net-b.de>
7488         PR other/33426
7489         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
7490         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
7491         (c_parser_statement_after_labels): Update calls.
7493 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7495         PR other/33426
7496         * c-parser.c (c_parser_pragma, c_parser_for_statement):
7497         Handle PRAGMA_IVDEP.
7498         (c_parser_statement_after_labels): Update call.
7500 2013-10-24  Marek Polacek  <polacek@redhat.com>
7502         * c-parser.c (c_parser_struct_declaration): Add a comment.
7503         (c_parser_declarator): Don't allow _Alignas here.
7505 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
7507         * c-parser.c: Include omp-low.h.
7508         * c-typeck.c: Likewise.
7510 2013-10-17  Marek Polacek  <polacek@redhat.com>
7512         PR c/58267
7513         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
7514         Document syntax of the array-declarator.
7515         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
7516         are not permitted.
7517         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
7518         (c_parser_struct_declaration): Likewise.
7519         (c_parser_declarator): Likewise.
7520         (c_parser_direct_declarator_inner): Likewise.
7521         (c_parser_parameter_declaration): Likewise.
7522         (c_parser_type_name): Likewise.
7524 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
7526         * c-lang.h (current_omp_declare_target_attribute): New extern
7527         decl.
7528         * c-parser.c: Include c-lang.h.
7529         (struct c_parser): Change tokens to c_token *.
7530         Add tokens_buf field.  Change tokens_avail type to unsigned int.
7531         (c_parser_consume_token): If parser->tokens isn't
7532         &parser->tokens_buf[0], increment parser->tokens.
7533         (c_parser_consume_pragma): Likewise.
7534         (enum pragma_context): Add pragma_struct and pragma_param.
7535         (c_parser_external_declaration): Adjust
7536         c_parser_declaration_or_fndef caller.
7537         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
7538         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
7539         Adjust recursive call.
7540         (c_parser_struct_or_union_specifier): Use pragma_struct instead
7541         of pragma_external.
7542         (c_parser_parameter_declaration): Use pragma_param instead of
7543         pragma_external.
7544         (c_parser_compound_statement_nostart, c_parser_label,
7545         c_parser_for_statement): Adjust
7546         c_parser_declaration_or_fndef callers.
7547         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
7548         it through to c_parser_conditional_expression.
7549         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
7550         pass it through to c_parser_binary_expression.  Adjust recursive
7551         call.
7552         (c_parser_binary_expression): Remove prec argument, add
7553         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
7554         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
7555         binop matches it, use build2 instead of parser_build_binary_op.
7556         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
7557         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
7558         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
7559         Handle pragma_struct and pragma_param the same as pragma_external.
7560         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
7561         (c_parser_omp_variable_list): Parse array sections for
7562         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
7563         (c_parser_omp_clause_collapse): Fully fold collapse expression.
7564         (c_parser_omp_clause_reduction): Handle user defined reductions.
7565         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
7566         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
7567         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
7568         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
7569         c_parser_omp_clause_depend, c_parser_omp_clause_map,
7570         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
7571         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
7572         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
7573         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
7574         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
7575         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
7576         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
7577         (c_parser_omp_for_loop): Add CODE argument, pass it through
7578         to c_finish_omp_for.  Change last argument to cclauses,
7579         and adjust uses to grab parallel clauses from the array of all
7580         the split clauses.  Adjust c_parser_binary_expression,
7581         c_parser_declaration_or_fndef and c_finish_omp_for callers.
7582         (omp_split_clauses): New function.
7583         (c_parser_omp_simd): New function.
7584         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
7585         Allow the function to be called also when parsing combined constructs,
7586         and call c_parser_omp_simd when parsing for simd.
7587         (c_parser_omp_sections_scope): If section-sequence doesn't start with
7588         #pragma omp section, require exactly one structured-block instead of
7589         sequence of statements.
7590         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
7591         Allow the function to be called also when parsing combined constructs.
7592         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
7593         Allow the function to be called also when parsing combined
7594         constructs.
7595         (c_parser_omp_taskgroup, c_parser_omp_cancel,
7596         c_parser_omp_cancellation_point, c_parser_omp_distribute,
7597         c_parser_omp_teams, c_parser_omp_target_data,
7598         c_parser_omp_target_update, c_parser_omp_target,
7599         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
7600         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
7601         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
7602         (c_parser_omp_construct): Add p_name and mask vars.  Handle
7603         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
7604         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
7605         and c_parser_omp_sections callers.
7606         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
7607         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
7608         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
7609         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
7610         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
7611         OMP_CLAUSE_DEPEND.
7612         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
7613         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
7614         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
7615         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
7616         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
7617         * c-typeck.c: Include tree-inline.h.
7618         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
7619         handle_omp_array_sections_1, handle_omp_array_sections,
7620         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
7621         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
7622         user defined reductions.
7623         (c_tree_equal): New function.
7624         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
7625         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
7626         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
7627         c_check_omp_declare_reduction_r): New prototypes.
7628         * c-decl.c (current_omp_declare_target_attribute): New variable.
7629         (c_decl_attributes): New function.
7630         (start_decl, start_function): Use it instead of decl_attributes.
7631         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
7632         c_omp_reduction_decl, c_omp_reduction_lookup,
7633         c_check_omp_declare_reduction_r): New functions.
7635 2013-09-25  Tom Tromey  <tromey@redhat.com>
7637         * Make-lang.in (c/gccspec.o): Remove.
7638         (CFLAGS-c/gccspec.o): New variable.
7639         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
7640         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
7641         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
7643 2013-09-25  Tom Tromey  <tromey@redhat.com>
7645         * Make-lang.in (c/gccspec.o): Don't use subshell.
7647 2013-09-18  Marek Polacek  <polacek@redhat.com>
7649         PR sanitize/58443
7650         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
7651         Remove unnecessary check.
7653 2013-09-18  Marek Polacek  <polacek@redhat.com>
7655         PR sanitizer/58411
7656         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
7657         no_sanitize_undefined attribute.
7659 2013-09-13  Kai Tietz  <ktietz@redhat.com>
7661         PR target/57848
7662         * c-decl.c (c_builtin_function_ext_scope): Remove
7663         wrong assumption that it is never called on prexisting
7664         symbol.
7666 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7668         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
7670 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7672         * c-objc-common.c (c_tree_printer): Tidy.
7674 2013-08-30  Marek Polacek  <polacek@redhat.com>
7676         * c-typeck.c (build_binary_op): Add division by zero and shift
7677         instrumentation.
7679 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
7680             Joseph Myers  <joseph@codesourcery.com>
7682         PR c/35649
7683         * c-typeck.c (c_common_type): Prefer double_type_node over
7684         other REAL_TYPE types with the same precision.
7685         (convert_arguments): Likewise.
7687 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7689         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
7690         (c_initialize_diagnostics): Call a destructor for the early printer.
7692 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7694         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
7695         printer initialization.
7697 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7699         PR c/57490
7700         * c-array-notation.c (fix_conditional_array_notations_1): Added a
7701         check for truth values.
7702         (expand_array_notation_exprs): Added truth values case.  Removed an
7703         unwanted else.  Added for-loop to walk through subtrees in default
7704         case.
7706 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7708         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
7710 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
7712         * c-parser.c (struct c_generic_association): Fix typo.
7714 2013-07-23  Tom Tromey  <tromey@redhat.com>
7715             Joseph Myers  <joseph@codesourcery.com>
7717         * c-parser.c (struct c_generic_association): New.
7718         (c_generic_association_d): New typedef.
7719         (c_parser_generic_selection): New function.
7720         (c_parser_postfix_expression): Handle RID_GENERIC.
7722 2013-07-13  Jason Merrill  <jason@redhat.com>
7724         PR c++/57793
7725         * c-decl.c (finish_struct): Check for too-large class.
7727 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
7729         PR c/57821
7730         * c-typeck.c (set_init_index): When folding, check for index overflow.
7732 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7734         * c-parser.c (c_parser_array_notation): Removed rejection of array
7735         notations in an array of function pointers.
7737 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7739         * c-array-notation.c (make_triplet_val_inv): New function.
7740         (create_cmp_incr): Likewise.
7741         (create_array_refs): Likewise.
7742         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
7743         Also modularized common parts between functions and called the function.
7744         (build_array_notation_expr): Likewise.
7745         (fix_conditional_array_notations_1): Likewise.
7746         (fix_array_notation_expr): Likewise.
7747         (fix_array_notation_call_expr): Likewise.
7749 2013-06-18  Marek Polacek  <polacek@redhat.com>
7751         PR c/57630
7752         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
7754 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7756         * c-array-notation.c (build_array_notation_expr): Reject array notation
7757         mismatch between LHS and RHS even inside a call_expr.  Also, removed
7758         a couple while statements that were dead code.
7760 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7762         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
7763         excessive precision expressions in function parameters.  Also removed
7764         couple unwanted while statements.
7766 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7768         * c-array-notation.c (expand_array_notation_exprs): Added
7769         ARRAY_NOTATION_REF case.
7771 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7773         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
7774         function to c-family/array-notation-common.c.
7775         (is_cilkplus_reduce_builtin): Likewise.
7776         (find_rank): Likewise.
7777         (extract_array_notation_exprs): Likewise.
7778         (replace_array_notations): Likewise.
7779         (find_inv_trees): Likewise.
7780         (replace_inv_trees): Likewise.
7781         (contains_array_notation_expr): Likewise.
7782         (find_correct_array_notation_type): Likewise.
7783         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
7784         (struct inv_list): Moved this to c-family/array-notation-common.c.
7785         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
7787 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7789         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
7790         reduction functions outside the for-loop.  Added a check if the fundecl
7791         is non-NULL.  Finally, removed an unwanted if-statement, and made the
7792         body unconditional.
7794 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7796         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
7797         condition of the if-statement matches the rank of else-block and then-
7798         block when array notations are used.
7799         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
7800         expression after the entire function body is parsed.
7801         (c_parser_expr_no_commas): Delayed creating array notation expressions
7802         to the end of function parsing.
7803         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
7804         whole if-statement instead of just the condition.
7805         (expand_array_notation_exprs): Added MODIFY_EXPR case.
7807 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7809         PR c/57474
7810         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
7811         array to NULL_TREE if they are unused.  Also added a check for the
7812         field to be NULL before its fields are used in future.
7814 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7816         PR bootstrap/57450
7817         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
7818         (build_array_notation_expr): Likewise.
7820 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7822         * c-typeck.c (build_array_ref): Added a check to see if array's
7823         index is greater than one.  If true, then emit an error.
7824         (build_function_call_vec): Exclude error reporting and checking
7825         for builtin array-notation functions.
7826         (convert_arguments): Likewise.
7827         (c_finish_return): Added a check for array notations as a return
7828         expression.  If true, then emit an error.
7829         (c_finish_loop): Added a check for array notations in a loop
7830         condition.  If true then emit an error.
7831         (lvalue_p): Added a ARRAY_NOTATION_REF case.
7832         (build_binary_op): Added a check for array notation expr inside
7833         op1 and op0.  If present, we call another function to find correct
7834         type.
7835         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
7836         * c-parser.c (c_parser_compound_statement): Check if array
7837         notation code is used in tree, if so, then transform them into
7838         appropriate C code.
7839         (c_parser_expr_no_commas): Check if array notation is used in LHS
7840         or RHS, if so, then build array notation expression instead of
7841         regular modify.
7842         (c_parser_postfix_expression_after_primary): Added a check for
7843         colon(s) after square braces, if so then handle it like an array
7844         notation.  Also, break up array notations in unary op if found.
7845         (c_parser_direct_declarator_inner): Added a check for array
7846         notation.
7847         (c_parser_compound_statement): Added a check for array notation in
7848         a stmt.  If one is present, then expand array notation expr.
7849         (c_parser_if_statement): Likewise.
7850         (c_parser_switch_statement): Added a check for array notations in
7851         a switch statement's condition.  If true, then output an error.
7852         (c_parser_while_statement): Similarly, but for a while.
7853         (c_parser_do_statement): Similarly, but for a do-while.
7854         (c_parser_for_statement): Similarly, but for a for-loop.
7855         (c_parser_unary_expression): Check if array notation is used in a
7856         pre-increment or pre-decrement expression.  If true, then expand
7857         them.
7858         (c_parser_array_notation): New function.
7859         * c-array-notation.c: New file.
7860         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
7862 2013-05-23  Mike Stump  <mikestump@comcast.net>
7864         * c-typeck.c (convert_for_assignment): Handle references to memory
7865         spaces better.
7867 2013-05-16  Jason Merrill  <jason@redhat.com>
7869         * Make-lang.in (cc1$(exeext)): Use link mutex.
7871 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7873         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
7874         to simply use OPT_Wpointer_arith.
7875         (build_unary_op): Likewise.
7877 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7879         PR c/19449
7880         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
7881         argument.  If set, or it temporarily for parsing of the first
7882         argument into force_folding_builtin_constant_p.
7883         (c_parser_postfix_expression): Adjust callers.
7885 2013-03-21  Richard Biener  <rguenther@suse.de>
7887         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7888         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
7890 2013-02-12  Marek Polacek  <polacek@redhat.com>
7892         PR c/44938
7893         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
7894         origtypes to NULL.
7896 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
7898         PR c/56078
7899         * c-typeck.c (set_nonincremental_init_from_string): If
7900         constructor_max_index is NULL, treat it as if tree_int_cst_lt
7901         returned false.
7902         (process_init_element): Likewise.
7904 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
7906         PR c++/55619
7907         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
7908         argument, don't call default_function_array_conversion
7909         nor c_fully_fold here.
7910         (c_parser_asm_statement): Adjust callers.
7911         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
7912         and outputs here, and call default_function_array_conversion
7913         on inputs that don't need to be addressable.
7915 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
7917         PR c/39464
7918         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
7919         warning require that both c_common_unsigned_type as well as
7920         c_common_signed_type is the same for both mvl and mvr types.
7922 2012-11-16  Diego Novillo  <dnovillo@google.com>
7924         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
7926         * c-common.c: Use new vec API in vec.h.
7927         * c-common.h: Likewise.
7928         * c-gimplify.c: Likewise.
7929         * c-pragma.c: Likewise.
7930         * c-pretty-print.c: Likewise.
7931         * c-pretty-print.h: Likewise.
7932         * c-semantics.c: Likewise.
7933         * c-decl.c: Likewise.
7934         * c-parser.c: Likewise.
7935         * c-tree.h: Likewise.
7936         * c-typeck.c: Likewise.
7938 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
7940         PR c++/54930
7941         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
7943 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7945         PR c/53066
7946         * c-decl.c (warn_if_shadowing): Do not warn if a variable
7947         shadows a function, unless the variable is a function or a
7948         pointer-to-function.
7950 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
7952         PR c/54381
7953         * c-parser.c (struct c_tree_loc_pair): Removed.
7954         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
7955         add location_t * and tree * arguments, fill in array of 3
7956         sizeof_arg trees and corresponding locs.
7957         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
7958         c_parser_expr_list callers.
7959         (c_parser_postfix_expression_after_primary): Likewise.  Pass
7960         array of 3 sizeof_arg trees and locs (corresponding to first
7961         3 arguments) to sizeof_pointer_memaccess_warning.
7963 2012-10-09  Lawrence Crowl  <crowl@google.com>
7965         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
7966         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
7967         hash table.
7969 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
7971         PR c++/54194
7972         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
7973         call.
7975 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
7977         PR c++/54427
7978         * c-typeck.c: Include c-common.h.
7979         (enum stv_conv): Moved to c-common.h.
7980         (scalar_to_vector): Moved to c-common.c.
7981         (build_binary_op): Adapt to scalar_to_vector's new prototype.
7982         * Make-lang.in: c-typeck.c depends on c-common.h.
7984 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
7986         * c-decl.c (c_write_global_declarations): Fix handling of
7987         -fdump-ada-spec*.
7989 2012-09-30  Sharad Singhai  <singhai@google.com>
7991         * c-decl.c (c_write_global_declarations): Use a different method
7992         to determine if the dump has ben initialized.
7994 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
7996         PR c/54552
7997         * c-typeck.c (c_cast_expr): When casting to a type requiring
7998         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
7999         c_fully_fold first.
8001 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
8003         PR c/54103
8004         * c-typeck.c (build_unary_op): Pass original argument of
8005         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
8006         any C_MAYBE_CONST_EXPR, if it has integer operands.
8007         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
8008         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
8009         to c_objc_common_truthvalue_conversion, then remove any
8010         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
8011         c_objc_common_truthvalue_conversion not
8012         c_common_truthvalue_conversion.
8013         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
8014         call note_integer_operands for arguments with integer operands
8015         that are not integer constants.
8017 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
8019         PR c/54559
8020         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
8021         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
8023 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
8025         PR c/54428
8026         * c-convert.c (convert): Don't call fold_convert_loc if
8027         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
8028         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
8029         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
8031 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
8033         PR c/54355
8034         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
8035         for nested and empty_ok arguments in the call to
8036         c_parser_declaration_or_fndef.
8038 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
8040         * c-tree.h (c_last_sizeof_arg): Declare.
8041         * c-parser.c (struct c_tree_loc_pair): New type.
8042         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
8043         non-NULL.
8044         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
8045         (c_parser_postfix_expression_after_primary): Likewise.  Call
8046         sizeof_pointer_memaccess_warning if needed.
8047         (sizeof_ptr_memacc_comptypes): New function.
8048         * c-typeck.c (c_last_sizeof_arg): New global variable.
8049         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
8051 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
8053         * c-lang.h (lang_decl): Add variable_size GTY option.
8055 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
8057         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
8058         * Make-lang.in: Fix dependencies.
8060 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
8062         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
8063         and add language Makefile hooks.
8064         * config-lang.in: New file.
8065         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
8066         add the required "normal" config-lang.in rules.
8067         * c-lang.h: Moved from gcc/ to here.
8068         * c-tree.h: Likewise.
8069         * c-objc-common.c: Likewise.
8070         * c-objc-common.h: Likewise.
8071         * c-typeck.c: Likewise.
8072         * c-convert.c: Likewise.
8073         * c-lang.c: Likewise.
8074         * c-aux-info.c: Likewise.
8075         * c-errors.c: Likewise.
8076         * gccspec.c: Likewise.
8077         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
8078         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
8080 Copyright (C) 2012-2021 Free Software Foundation, Inc.
8082 Copying and distribution of this file, with or without modification,
8083 are permitted in any medium without royalty provided the copyright
8084 notice and this notice are preserved.