Update ChangeLog and version files for release
[official-gcc.git] / gcc / c / ChangeLog
blobf4132fc1108242ee44d882b737a7af72f273cb30
1 2015-07-16  Release Manager
3         * GCC 5.2.0 released.
5 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
7         * c-decl.c (pop_scope): Register the main translation unit
8         through the new debug hook.
10 2015-05-22  Jakub Jelinek  <jakub@redhat.com>
12         Backported from mainline
13         2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15         PR middle-end/66199
16         * c-parser.c (c_parser_omp_for_loop): Don't add
17         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
18         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
19         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
20         constructs.
22 2015-04-22  Release Manager
24         * GCC 5.1.0 released.
26 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
28         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
29         (c_parser_omp_target_update): Add missed %> to error_at ().
31 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33         PR target/55143
34         * c-decl.c (c_default_pointer_mode): Remove definition.
35         * c-tree.h (c_default_pointer_mode): Remove declaration.
37 2015-03-27  Tobias Burnus  <burnus@net-b.de>
39         PR c/65586
40         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
41         error out.
42         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
43         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
44         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
46 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
48         * c-decl.c (c_decl_attributes): Also add "omp declare target"
49         attribute for DECL_EXTERNAL VAR_DECLs.
51 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
53         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
54         argument.
56 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
58         PR c/65120
59         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
60         before preparing arguments to warn_logical_not_parentheses.
62 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
64         PR c/65120
65         * c-typeck.c (parser_build_binary_op): Don't warn for
66         !!x == y or !b == y where b is _Bool.
68 2015-03-09  Marek Polacek  <polacek@redhat.com>
70         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
71         * c-decl.c (grokdeclarator): Likewise.
72         * c-typeck.c (build_binary_op): Likewise.
74 2015-02-27  Marek Polacek  <polacek@redhat.com>
76         PR c/65228
77         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
79 2015-02-14  Marek Polacek  <polacek@redhat.com>
81         PR c/64768
82         * c-decl.c (grokdeclarator): Set the range of a flexible array member
83         declared through a typedef name.
85 2015-02-13  Marek Polacek  <polacek@redhat.com>
87         PR c/65050
88         * c-decl.c (grokdeclarator): Print also the type when giving
89         the error message about array's incomplete element type.
91 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
93         PR c/64824
94         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
95         check in the POP macro.
97 2015-02-09  Marek Polacek  <polacek@redhat.com>
99         PR c/64856
100         * c-typeck.c (process_init_element): Don't always wrap
101         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
102         initializing a range of elements.
104 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
106         PR c/64824
107         PR c/64868
108         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
110 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
112         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
113         processing enum declaration.
115 2015-01-29  Marek Polacek  <polacek@redhat.com>
117         PR c/64709
118         * c-typeck.c (pop_init_level): If constructor_elements has
119         exactly one element with integer_zerop value, set constructor_zeroinit
120         to 1.  Remove braces around warning_init call.
122 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
124         PR c/64766
125         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
126         of FUNCTION_DECLs with error_mark_node.
128 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
130         PR c/64778
131         * c-typeck.c (convert_arguments): Return -1 if there are
132         error_args, even if we've diagnosed too many arguments.
134 2015-01-21  Richard Biener  <rguenther@suse.de>
136         PR middle-end/64313
137         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
138         for builtins the user declared correctly.
140 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
141             Bernd Schmidt  <bernds@codesourcery.com>
142             Cesar Philippidis  <cesar@codesourcery.com>
143             James Norris  <jnorris@codesourcery.com>
144             Jakub Jelinek  <jakub@redhat.com>
145             Ilmir Usmanov  <i.usmanov@samsung.com>
147         * c-parser.c: Include "gomp-constants.h".
148         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
149         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
150         Use OMP_CLAUSE_SET_MAP_KIND.
151         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
152         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
153         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
154         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
155         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
156         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
157         "copyout", "create", "delete", "deviceptr", "gang", "host",
158         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
159         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
160         "present_or_create", "pcreate", "seq", "self", "vector",
161         "vector_length", "wait", "worker".
162         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
163         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
164         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
165         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
166         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
167         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
168         (c_parser_oacc_data_clause_deviceptr)
169         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
170         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
171         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
172         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
173         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
174         (c_parser_oacc_parallel, c_parser_oacc_update)
175         (c_parser_oacc_wait): New functions.
176         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
177         (c_finish_oacc_data): New prototypes.
178         * c-typeck.c: Include "gomp-constants.h".
179         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
180         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
181         OMP_CLAUSE_SET_MAP_KIND.
182         (c_finish_oacc_parallel, c_finish_oacc_kernels)
183         (c_finish_oacc_data): New functions.
184         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
185         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
186         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
187         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
188         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
189         GOMP_MAP_FORCE_DEVICEPTR.
191 2015-01-09  Michael Collison  <michael.collison@linaro.org>
193         * c-array-notation.c: Include hash-set.h, machmode.h,
194         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
195         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
196         * c-aux-info.c: Ditto.
197         * c-convert.c: Ditto.
198         * c-decl.c: Ditto.
199         * c-errors.c: Ditto.
200         * c-lang.c: Dittoxs.
201         * c-objc-common.c: Ditto.
202         * c-parser.c: Ditto.
203         * c-typeck.c: Include hash-set.h, machmode.h,
204         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
205         fold-const.h, wide-int.h, inchash.h, real.h and
206         fixed-value.h due to flattening of tree.h.
208 2015-01-07  Marek Polacek  <polacek@redhat.com>
210         PR c/64417
211         * c-typeck.c (process_init_element): Disallow initialization of
212         a flexible array member with a string constant if the structure
213         is in an array.
215 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
217         PR sanitizer/64344
218         * c-typeck.c (convert_for_assignment, c_finish_return): For
219         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
220         types also set in_late_binary_op around convert call.
221         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
222         to integral type casts, if not in_late_binary_op, pass c_fully_fold
223         result on expr as last argument to ubsan_instrument_float_cast,
224         if in_late_binary_op, don't use c_save_expr but save_expr.
226         Update copyright years.
228 2015-01-05  Marek Polacek  <polacek@redhat.com>
230         PR c/64423
231         * c-typeck.c (build_array_ref): Pass loc down to
232         warn_array_subscript_with_type_char.
234 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
236         * c-typeck.c: New behavious for pointers to arrays with qualifiers
237         (common-pointer-type): For pointers to arrays take qualifiers from
238         element type.
239         (build_conditional_expr): Add warnings for lost qualifiers.
240         (comp-target-types): Allow pointers to arrays with different qualifiers.
241         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
242         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
243         to PEDWARN_FOR_QUALIFIERS.
245 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
247         PR sanitizer/64289
248         * c-convert.c: Include ubsan.h.
249         (convert): For real -> integral casts and
250         -fsanitize=float-cast-overflow don't call convert_to_integer, but
251         instead instrument the float cast directly.
253 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
255         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
256         c_finish_stmt_expr): Remove NULL last argument from
257         create_tmp_var_raw and create_tmp_var calls.
258         * c-array-notation.c (fix_builtin_array_notation_fn,
259         build_array_notation_expr, fix_conditional_array_notations_1,
260         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
262 2014-11-28  Marek Polacek  <polacek@redhat.com>
264         PR c/63862
265         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
266         convert the right operand to integer type.
268 2014-11-25  Marek Polacek  <polacek@redhat.com>
270         PR c/63877
271         * c-decl.c (start_function): Disable -Wmissing-declarations warning
272         for inline functions.
274 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
276         PR target/63764
277         * c-typeck.c (build_array_ref): Adjust
278         convert_vector_to_pointer_for_subscript caller.  If it returns true,
279         call non_lvalue_loc on the result.
281 2014-11-11  Richard Biener  <rguenther@suse.de>
283         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
284         to true.
286 2014-11-10  Andi Kleen  <ak@linux.intel.com>
288         PR c/60804
289         * c-parser.c (c_parser_statement_after_labels): Call
290         check_no_cilk.
291         (c_parser_if_statement): Dito.
292         (c_parser_switch_statement): Dito.
293         (c_parser_while_statement): Dito.
294         (c_parser_do_statement): Dito.
295         (c_parser_for_statement): Dito.
296         * c-typeck.c (c_finish_loop): Dito.
298 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
300         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
301         OPT_Wshift_count_overflow in the warnings.
303 2014-10-30  Marek Polacek  <polacek@redhat.com>
305         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
306         print the stripped version as well, if they're not the same.
308 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
310         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
311         machine_mode.
313 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
315         * c-decl.c: Adjust include files.
316         * c-parser.c: Ditto.
318 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
319             Tom Tromey  <tromey@redhat.com>
321         * c-tree.h (enum c_oracle_request): New.
322         (c_binding_oracle_function): New typedef.
323         (c_binding_oracle, c_pushtag, c_bind): Declare.
324         * c-decl.c (c_binding_oracle): New global.
325         (I_SYMBOL_CHECKED): New macro.
326         (i_symbol_binding): New function.
327         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
328         (I_TAG_CHECKED): New macro.
329         (i_tag_binding): New function.
330         (I_TAG_BINDING, I_TAG_DECL): Redefine.
331         (I_LABEL_CHECKED): New macro.
332         (i_label_binding): New function.
333         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
334         (c_print_identifier): Save and restore c_binding_oracle.
335         (c_pushtag, c_bind): New functions.
337 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
339         * c-typeck.c: Adjust include files.
341 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
343         PR c++/53061
344         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
345         initialization here...
346         (c_initialize_diagnostics): ... but here. Set defaults after
347         building pretty-printer.
349 2014-10-23  Marek Polacek  <polacek@redhat.com>
351         PR c/63626
352         * c-decl.c (pop_scope): Don't print warning in external_scope.
354 2014-10-19  Marek Polacek  <polacek@redhat.com>
356         PR c/63567
357         * c-typeck.c (output_init_element): Allow initializing objects with
358         static storage duration with compound literals even in C99 and add
359         pedwarn for it.
361 2014-10-17  Marek Polacek  <polacek@redhat.com>
363         PR c/63567
364         * c-typeck.c (digest_init): Allow initializing objects with static
365         storage duration with compound literals even in C99 and add pedwarn
366         for it.
368 2014-10-17  Marek Polacek  <polacek@redhat.com>
370         PR c/63543
371         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
372         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
373         error multiple times.  Print the type.
375 2014-10-17  Marek Polacek  <polacek@redhat.com>
377         PR c/63549
378         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
379         type.
381 2014-10-17  Marek Polacek  <polacek@redhat.com>
383         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
384         (start_function): Use OPT_Wimplicit_int instead of 0.
385         (store_parm_decls_oldstyle): Likewise.
387 2014-10-17  Alan Modra  <amodra@gmail.com>
389         PR middle-end/61848
390         * c-decl.c (merge_decls): Don't merge section name or tls model
391         to newdecl symtab node, instead merge to olddecl.  Override
392         existing olddecl section name.  Set tls_model for all thread-local
393         vars, not just OMP thread-private ones.  Remove incorrect comment.
395 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
397         * c-decl.c: Adjust include files.
399 2014-10-14  DJ Delorie  <dj@redhat.com>
401         * c-parser.c (c_parse_init): Add RID entries for each __intN.
402         (c_token_starts_typename): Check all __intN, not just __int128.
403         (c_token_starts_declspecs): Likewise.
404         (c_parser_declspecs): Likewise.
405         (c_parser_attribute_any_word): Likewise.
406         (c_parser_objc_selector): Likewise.
407         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
408         (struct c_declspecs): Add int_n_idx field to record *which* __intN
409         is specified.
410         * c-decl.c (declspecs_add_type): Check for all __intN, not just
411         __int128.
412         (finish_declspecs): Likewise.
414 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
416         * c-parser.c (c_parser_all_labels): New function to replace
417         the duplicate code.
418         (c_parser_statement): Call the new function.
420 2014-10-09  Marek Polacek  <polacek@redhat.com>
422         PR c/63480
423         * c-typeck.c (pop_init_level): Don't warn about initializing
424         with { }.
426 2014-10-07  Marek Polacek  <polacek@redhat.com>
428         PR c/59717
429         * c-decl.c (header_for_builtin_fn): New function.
430         (implicitly_declare): Suggest which header to include.
432 2014-10-07  Marek Polacek  <polacek@redhat.com>
434         * c-convert.c (convert): Use error_operand_p.
435         * c-typeck.c (require_complete_type): Likewise.
436         (really_atomic_lvalue): Likewise.
437         (digest_init): Likewise.
438         (handle_omp_array_sections_1): Likewise.
440 2014-10-03  Marek Polacek  <polacek@redhat.com>
442         PR c/63453
443         * c-decl.c (pop_scope): Don't warn about "inline function declared
444         but never defined" for functions marked with gnu_inline attribute.
446 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
448         PR c++/63249
449         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
450         on low_bound and length.
452 2014-09-24  Marek Polacek  <polacek@redhat.com>
454         PR c/61405
455         PR c/53874
456         * c-parser.c: Don't define CPP_KEYWORD.
457         (c_parser_switch_statement): Pass original type to c_finish_case.
458         * c-tree.h (c_finish_case): Update declaration.
459         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
460         conditionally to c_do_switch_warnings.
462 2014-09-03  Marek Polacek  <polacek@redhat.com>
464         PR c/62024
465         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
466         conversions.
468 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
469             Balaji V. Iyer  <balaji.v.iyer@intel.com>
470             Igor Zamyatin  <igor.zamyatin@intel.com>
472         * c-parser.c (c_parser_cilk_for): New function.
473         (c_parser_cilk_grainsize): Likewise.
474         (c_get_temp_regvar): Likewise.
475         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
476         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
477         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
478         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
479         case.
481 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
483         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
484         with using HOST_WIDE_INT without truncation to 'int'
486 2014-08-22  Marek Polacek  <polacek@redhat.com>
488         PR c++/62199
489         * c-typeck.c (parser_build_binary_op): Adjust call to
490         warn_logical_not_parentheses.
492 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
494         PR other/62008
495         * c-parser.c (c_parser_array_notation): Check for correct
496         type of an array added.
498 2014-08-19  Marek Polacek  <polacek@redhat.com>
500         PR c++/62153
501         * c-typeck.c (build_binary_op): If either operand of a comparison
502         is a boolean expression, call maybe_warn_bool_compare.
504 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
506         PR c/45584
507         * c-typeck.c (build_c_cast): Do a conversion even when the
508         TYPE_MAIN_VARIANTs are the same.
510 2014-08-19  Marek Polacek  <polacek@redhat.com>
512         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
513         pedwarn_c99 instead of pedwarn.
514         (grokfield): Likewise.
515         (warn_defaults_to): New function.
516         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
517         Unconditionally call pedwarn_c99 instead of pedwarn.
518         (start_function): Call warn_defaults_to instead of pedwarn_c99.
519         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
520         check flag_isoc11 before.
521         * c-errors.c (pedwarn_c99): Change the return type to bool.
522         Handle -Wc99-c11-compat.
523         * c-parser.c (disable_extension_diagnostics): Handle
524         warn_c99_c11_compat.
525         (restore_extension_diagnostics): Likewise.
526         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
527         instead of pedwarn, don't check flag_isoc11 before.
528         (c_parser_declspecs): Likewise.
529         (c_parser_alignas_specifier): Likewise.
530         (c_parser_alignof_expression): Likewise.
531         (c_parser_generic_selection): Likewise.
532         * c-tree.h (pedwarn_c99): Update declaration.
533         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
534         of pedwarn_c99.
536 2014-08-19  Marek Polacek  <polacek@redhat.com>
538         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
539         to pedwarn_c90.
540         * c-errors.c: Include "opts.h".
541         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
542         * c-parser.c (disable_extension_diagnostics): Handle negative value
543         of warn_c90_c99_compat, too.
544         (restore_extension_diagnostics): Likewise.
545         (c_parser_compound_statement_nostart): Pass
546         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
548 2014-08-12  Marek Polacek  <polacek@redhat.com>
550         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
551         Add pedwarn.
552         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
553         Likewise.
554         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
556 2014-08-10 Marek Polacek  <polacek@redhat.com>
558         PR c/51849
559         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
560         Call pedwarn_c90 instead of pedwarn.
561         (check_bitfield_type_and_width): Likewise.
562         (declspecs_add_qual): Likewise.
563         (declspecs_add_type): Likewise.
564         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
565         Adjust to only call pedwarn_c90.
566         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
567         pedwarn_c90 instead of pedwarn.
568         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
569         * c-parser.c (disable_extension_diagnostics): Handle
570         warn_c90_c99_compat.
571         (restore_extension_diagnostics): Likewise.
572         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
573         pedwarn_c90 instead of pedwarn.
574         (c_parser_initelt): Likewise.
575         (c_parser_postfix_expression): Likewise.
576         (c_parser_postfix_expression_after_paren_type): Likewise.
577         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
578         * c-tree.h: Fix formatting.
579         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
580         pedwarn_c90 instead of pedwarn.
582 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
584         * c-typeck.c: Remove include of pointer-set.h.
586 2014-08-07  Marek Polacek  <polacek@redhat.com>
588         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
590 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
592         * c-typeck.c: Use hash_map instead of pointer_map.
594 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
596         * c-decl.c: Use hash_set instead of pointer_set.
598 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
600         PR middle-end/61455
601         * c-array-notation.c (expand_array_notations): Handling
602         of DECL_EXPR added.
604 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
606         PR c++/60517
607         * c-typeck.c (c_finish_return): Return 0 instead of the address of
608         a local variable.
610 2014-07-30  Tom Tromey  <tromey@redhat.com>
612         * c-typeck.c (struct constructor_stack) <designator_depth>: New
613         field.
614         (really_start_incremental_init, push_init_level): Initialize
615         designator_depth.
616         (pop_init_level): Set global designator_depth.
617         (process_init_element): Check for designated_init attribute.
619 2014-07-20  Marek Polacek  <polacek@redhat.com>
621         PR c/61852
622         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
623         (implicitly_declare): Pass location to implicit_decl_warning.
625 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
627         PR middle-end/61294
628         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
629         If non-NULL, call c_parser_check_literal_zero.
630         (c_parser_check_literal_zero): New function.
631         (c_parser_postfix_expression_after_primary): Adjust
632         c_parser_expr_list caller, handle -Wmemset-transposed-args.
634 2014-07-06  Marek Polacek  <polacek@redhat.com>
636         PR c/6940
637         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
638         * c-tree.h (C_ARRAY_PARAMETER): Define.
639         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
640         function parameter.
642 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
643             Chen Gang <gang.chen.5i5j@gmail.com>
645         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
646         releasing symbol.
648 2014-07-01  Marek Polacek  <polacek@redhat.com>
650         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
651         instead of 0 to WARN_FOR_ASSIGNMENT.
653 2014-07-01  Marek Polacek  <polacek@redhat.com>
655         PR c/58286
656         * c-typeck.c (convert_for_assignment): Pass
657         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
659 2014-06-30  Marek Polacek  <polacek@redhat.com>
661         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
662         has no_sanitize_undefined attribute.
664 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
666         PR middle-end/57541
667         * c-array-notation.c (fix_builtin_array_notation_fn):
668         Check for 0 arguments in builtin call. Check that bultin argument is
669         correct.
670         * c-parser.c (c_parser_array_notation): Check for incorrect initial
671         index.
673 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
675         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
676         qualifiers in __auto_type for atomic types.
677         (c_parser_typeof_specifier): Discard all type qualifiers in
678         __typeof__ for atomic types.
680 2014-06-25  Marek Polacek  <polacek@redhat.com>
682         PR c/61162
683         * c-parser.c (c_parser_statement_after_labels): Pass the location of
684         the return expression to c_finish_return.
686 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
688         * c-typeck.c (c_finish_omp_clauses): Make sure
689         OMP_CLAUSE_LINEAR_STEP has correct type.
691 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
693         * c-decl.c: Adjust.
695 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
697         * c-parser.c (c_parser_omp_for_loop): For
698         #pragma omp parallel for simd move lastprivate clause from parallel
699         to for rather than simd.
701 2014-06-23  Marek Polacek  <polacek@redhat.com>
703         * c-typeck.c (parser_build_binary_op): Don't call
704         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
706 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
708         * c-parser.c (c_parser_omp_threadprivate): Likewise.
709         * c-decl.c (merge_decls): Likewise.
711 2014-06-09  Marek Polacek  <polacek@redhat.com>
713         PR c/36446
714         * c-typeck.c (error_init): Call inform instead of error_at.
715         (pedwarn_init): Call inform instead of pedwarn.
716         (warning_init): Call inform instead of warning_at.
718 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
720         * c-decl.c (merge_decls): Use set_decl_section_name.
721         (duplicate_decls): Remove node if it exists.
723 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
725         PR c/53119
726         * c-typeck.c (push_init_level, process_init_element,
727         pop_init_level): Correct check for zero initialization, move
728         missing brace warning to respect zero initialization.
730 2014-06-05  Marek Polacek  <polacek@redhat.com>
732         PR c/56724
733         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
735 2014-06-05  Marek Polacek  <polacek@redhat.com>
737         PR c/49706
738         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
739         on the left hand side operand of a comparison. 
741 2014-06-05  Marek Polacek  <polacek@redhat.com>
743         PR c/48062
744         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
745         Print note only if the warning was printed.
747 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
749         PR c/58942
750         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
751         with a pointer.
753 2014-06-03  Marek Polacek  <polacek@redhat.com>
755         PR c/60439
756         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
757         c_start_case.
758         * c-tree.h (c_start_case): Update.
759         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
760         switch condition has boolean value.
762 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
764         * c-decl.c: Include builtins.h.
765         * c-parser.c: Likewise.
767 2014-05-27  Marek Polacek  <polacek@redhat.com>
769         PR c/56724
770         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
771         error and warning calls to error_at and warning_at.  Pass location of
772         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
773         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
774         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
776 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
778         PR c/61191
779         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
780         function parameters.
782 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
784         * c-decl.c (merge_decls): Preserve symtab node pointers.
785         (duplicate_decls): Free new decl.
787 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
789         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
790         initialization.
792         * c-parser.c (c_parser_omp_target): Return bool values.
794 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
796         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
797         num_teams_loc variable to num_thread_limit_loc.
799 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
801         * c-array-notation.c (expand_array_notations): Use void_node
802         instead of void_zero_node.
804 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
806         * c-decl.c (finish_struct): Adjust.
807         (finish_enum): Likewise.
808         (bind): Adjust.
809         (record_inline_static): Likewise.
810         (push_scope): Likewise.
811         (make_label): Likewise.
812         (lookup_label_for_goto): Likewise.
813         (finish_struct): Likewise.
814         (finish_enum): Likewise.
815         (store_parm_decls): Likewise.
816         (c_push_function_context): Likewise.
817         * c-lang.h: Remove usage of variable_size gty attribute.
818         * c-parser.c (c_parse_init): Adjust.
819         (c_parse_file): Likewise.
821 2014-05-13  Marek Polacek  <polacek@redhat.com>
823         PR c/61162
824         * c-typeck.c (convert_for_assignment): Pass location to
825         WARN_FOR_ASSIGNMENT instead of input_location.
827 2014-05-10  Marek Polacek  <polacek@redhat.com>
829         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
830         maybe_warn_string_init.
831         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
832         maybe_warn_string_init.
833         * c-tree.h (maybe_warn_string_init): Update declaration.
834         * c-typeck.c (maybe_warn_string_init): Add location parameter.
835         Call pedwarn_init with loc instead of with input_location.
836         (digest_init): Pass init_loc to maybe_warn_string_init.
837         (pop_init_level): Call pedwarn_init with loc instead of with
838         input_location.
839         (set_init_index): Likewise.
840         (process_init_element): Likewise.
842 2014-05-09  Marek Polacek  <polacek@redhat.com>
844         PR c/61096
845         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
846         (c_parser_initelt): Pass location to set_init_label.  Pass array index
847         location to set_init_index.
848         * c-tree.h (push_init_level): Update declaration.
849         (pop_init_level): Likewise.
850         (set_init_index): Likewise.
851         (set_init_label): Likewise.
852         * c-typeck.c (error_init): Add location parameter.  Call error_at
853         instead of error.
854         (digest_init): Pass init_loc to error_init.
855         (really_start_incremental_init):
856         (push_init_level): Add location parameter.  Pass loc to pop_init_level
857         and error_init.
858         (pop_init_level): Likewise.
859         (set_designator): Add location parameter.  Pass loc to pop_init_level,
860         push_init_level, and error_init.
861         (set_init_index): Add location parameter.  Pass loc to error_init and
862         set_designator.
863         (set_init_label): Likewise.
864         (output_init_element): Pass loc to error_init.
865         (process_init_element): Pass loc to error_init, pop_init_level,
866         pedwarn_init, and push_init_level.
868 2014-05-09  Marek Polacek  <polacek@redhat.com>
870         PR c/50459
871         * c-parser.c (c_parser_attributes): Parse the arguments as an
872         expression-list if the attribute takes identifier.
874 2014-05-08  Marek Polacek  <polacek@redhat.com>
876         PR c/61053
877         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
878         TYPE_ALIGN_UNIT.
880 2014-05-08  Marek Polacek  <polacek@redhat.com>
882         PR c/61077
883         * c-decl.c (start_function): Warn for _Atomic-qualified return type
884         of main.
886 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
887             Mike Stump  <mikestump@comcast.net>
888             Richard Sandiford  <rdsandiford@googlemail.com>
890         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
891         (finish_enum): Use wide-int interfaces.
892         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
893         * c-typeck.c (build_c_cast): Likewise.
894         (set_nonincremental_init_from_string): Likewise.
895         (c_tree_equal): Likewise.
897 2014-05-02  Marek Polacek  <polacek@redhat.com>
899         PR c/25801
900         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
901         Return size_one_node when the type is not complete.
902         (pointer_diff): Remove comment.
903         (build_unary_op): Improve error messages.
905 2014-05-02  Marek Polacek  <polacek@redhat.com>
907         * c-typeck.c (c_finish_return): Separate warning_at calls.
909 2014-05-02  Marek Polacek  <polacek@redhat.com>
911         * c-tree.h (error_init): Remove declaration.
912         (pedwarn_init): Likewise.
913         * c-typeck.c (error_init): Make static and move above.
914         (pedwarn_init): Likewise.
915         (warning_init): Move above.
916         (maybe_warn_string_init): Likewise.
918 2014-05-01  Jeff Law  <law@redhat.com>
920         Revert:
922         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
923         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
924         avoid goto.
926 2014-05-02  Marek Polacek  <polacek@redhat.com>
928         PR c/60784
929         * c-typeck.c (push_init_level): Set constructor_designated to
930         p->designated for structures.
932 2014-05-01  Marek Polacek  <polacek@redhat.com>
934         PR c/60915
935         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
936         function-definition has an attribute after the declarator.
938 2014-05-01  Marek Polacek  <polacek@redhat.com>
940         PR c/60257
941         * c-typeck.c (warning_init): Add location_t parameter.  Call
942         warning_at instead of warning.
943         (push_init_level): Pass input_location to warning_init.
944         (add_pending_init): Add location_t parameter.  Pass loc to
945         warning_init.
946         (set_nonincremental_init): Pass input_location to add_pending_init.
947         (set_nonincremental_init_from_string): Likewise.
948         (output_init_element): Pass loc to warning_init and to
949         add_pending_init.
951 2014-05-01  Marek Polacek  <polacek@redhat.com>
953         PR c/43395
954         * c-typeck.c (c_finish_return): Distinguish between label and variable
955         when warning about returning local address.
957 2014-05-01  Marek Polacek  <polacek@redhat.com>
959         PR c/29467
960         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
961         in C89 mode.
963 2014-05-01  Marek Polacek  <polacek@redhat.com>
965         PR c/43245
966         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
967         instead of 0 to WARN_FOR_QUALIFIERS.
969 2014-05-01  Marek Polacek  <polacek@redhat.com>
971         PR c/56989
972         * c-typeck.c (default_conversion): Use better location for
973         error call.
975 2014-04-30  Marek Polacek  <polacek@redhat.com>
977         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
978         also when SANITIZE_FLOAT_DIVIDE is on.
980 2014-04-30  Marek Polacek  <polacek@redhat.com>
982         PR c/60139
983         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
984         and pedwarn_init.  Use loc insted of input_location.
986 2014-04-30  Marek Polacek  <polacek@redhat.com>
988         PR c/60351
989         * c-typeck.c (build_binary_op): Use location when warning about
990         shift count.
992 2014-04-25  Marek Polacek  <polacek@redhat.com>
994         PR c/18079
995         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
996         always_inline/noinline and hot/cold attributes.
998 2014-04-25  Marek Polacek  <polacek@redhat.com>
1000         PR c/60114
1001         * c-parser.c (c_parser_initelt): Pass input_location to
1002         process_init_element.
1003         (c_parser_initval): Pass loc to process_init_element.
1004         * c-tree.h (process_init_element): Adjust declaration.
1005         * c-typeck.c (push_init_level): Pass input_location to
1006         process_init_element.
1007         (pop_init_level): Likewise.
1008         (set_designator): Likewise.
1009         (output_init_element): Add location_t parameter.  Pass loc to
1010         digest_init.
1011         (output_pending_init_elements): Pass input_location to
1012         output_init_element.
1013         (process_init_element): Add location_t parameter.  Pass loc to
1014         output_init_element.
1016 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
1018         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1019         atomic-clause, allow comma in between atomic-clause and
1020         seq_cst.
1022 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1024         PR c/59073
1025         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1026         fails, don't set OM_PARALLEL_COMBINED and return NULL.
1028 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1030         PR middle-end/60469
1031         * c-array-notation.c (fix_builtin_array_notation_fn): Use
1032         create_tmp_var instead build_decl for creating temps.
1033         (build_array_notation_expr): Likewise.
1034         (fix_conditional_array_notations_1): Likewise.
1035         (fix_array_notation_expr): Likewise.
1036         (fix_array_notation_call_expr): Likewise.
1038 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1040         PR c++/60689
1041         * c-tree.h (c_build_function_call_vec): New prototype.
1042         * c-typeck.c (build_function_call_vec): Don't call
1043         resolve_overloaded_builtin here.
1044         (c_build_function_call_vec): New wrapper function around
1045         build_function_call_vec.  Call resolve_overloaded_builtin here.
1046         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1047         Call c_build_function_call_vec instead of build_function_call_vec.
1048         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1049         * c-decl.c (finish_decl): Likewise.
1051 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1053         PR c/55383
1054         * c-typeck.c: Use correct format string in cast-qual warning
1056 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
1058         * c-decl.c (c_decl_attributes): Use
1059         lang_hooks.types.omp_mappable_type.
1060         * c-typeck.c (c_finish_omp_clauses): Likewise.
1062 2014-03-06  Marek Polacek  <polacek@redhat.com>
1064         PR c/60197
1065         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1066         of checking tree code.
1068 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1070         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1071         (c_parser_parameter_declaration): Likewise.
1073 2014-02-19  Marek Polacek  <polacek@redhat.com>
1075         PR c/60195
1076         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1077         Call mark_exp_read on exp.value.
1078         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
1079         TREE_ADDRESSABLE on old instead of val.
1080         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1082 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1084         * c-parser.c (c_parser_get_builtin_args): Replace calls to
1085         C_EXPR_APPEND by vec_safe_push.
1086         * c-tree.h (C_EXPR_APPEND): Remove.
1088 2014-01-31  Marek Polacek  <polacek@redhat.com>
1090         PR c/59963
1091         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1092         build_function_call_vec.
1093         (build_function_call): Likewise.
1094         (build_atomic_assign): Likewise.
1095         (build_function_call_vec): Add arg_loc parameter.  Use it.
1096         (convert_arguments): Likewise.
1097         (convert_for_assignment): Rename rhs_loc to expr_loc.
1098         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1099         (c_parser_objc_keywordexpr): Likewise.
1100         (c_parser_postfix_expression_after_primary): Call
1101         build_function_call_vec with expr_loc rather than op_loc.
1102         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
1103         build_function_call_vec.
1104         (c_parser_expr_list): Add locations parameter.  Fill it with locations
1105         of function arguments.
1106         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1108 2014-01-30  Marek Polacek  <polacek@redhat.com>
1110         PR c/59940
1111         * c-typeck.c (build_function_call_vec): Use loc parameter.
1112         (convert_arguments): Add location parameter.  Use it.
1113         (ep_convert_and_check): Likewise.
1114         (build_atomic_assign): Adjust convert_for_assignment call.
1115         (build_modify_expr): Likewise.
1116         (digest_init): Likewise.
1117         (c_finish_return): Likewise.
1118         (build_conditional_expr): Adjust ep_convert_and_check calls.
1119         (convert_for_assignment): Add rhs_loc parameter.  Use it.
1120         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1121         calls.
1123 2014-01-30  Richard Biener  <rguenther@suse.de>
1125         PR c/59905
1126         * c-typeck.c (build_function_call_vec): Do not replace calls
1127         to a function via an incompatible type with a runtime abort.
1129 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1131         * c-parser.c (c_parser_declaration_or_fndef): Replaced
1132         flag_enable_cilkplus with flag_cilkplus.
1133         (c_parser_direct_declarator_inner): Likewise.
1134         (c_parser_attribute_any_word): Likewise.
1135         (c_parser_attributes): Likewise.
1136         (c_parser_compound_statement): Likewise.
1137         (c_parser_statement_after_labels): Likewise.
1138         (c_parser_if_statement): Likewise.
1139         (c_parser_switch_statement): Likewise.
1140         (c_parser_do_statement): Likewise.
1141         (c_parser_for_statement): Likewise.
1142         (c_parser_unary_expression): Likewise.
1143         (c_parser_postfix_expression): Likewise.
1144         (c_parser_postfix_expression_after_primary): Likewise.
1145         (c_parser_postfix_expression_after_primary): Likewise.
1146         (c_parser_omp_clause_name): Likewise.
1147         (c_finish_omp_declare_simd): Likewise.
1148         (c_parser_cilk_verify_simd): Likewise.
1149         * c-typeck.c (build_array_ref): Likewise.
1150         (build_function_call_vec): Likewise.
1151         (convert_arguments): Likewise.
1152         (build_compound_expr): Likewise.
1153         (c_finish_return): Likewise.
1154         (c_finish_if_stmt): Likewise.
1155         (c_finish_loop): Likewise.
1156         (build_binary_op): Likewise.
1158 2014-01-23  Marek Polacek  <polacek@redhat.com>
1160         PR c/59846
1161         * c-typeck.c (parser_build_binary_op): Use location instead of
1162         input_location.
1163         (build_binary_op): Pass location to shorten_compare.
1165 2014-01-23  Marek Polacek  <polacek@redhat.com>
1167         PR c/58346
1168         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1169         an empty aggregate.
1171 2014-01-23  Marek Polacek  <polacek@redhat.com>
1173         PR c/59871
1174         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1175         of a comma expression.
1176         (emit_side_effect_warnings): Likewise.
1178 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1180         PR c/59825
1181         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1182         function to use walk_tree and moved a lot of its functionality to
1183         expand_array_notations.
1184         (expand_array_notations): New function.
1186 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1188         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1189         attribute an attribute without value.
1191 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
1193         PR middle-end/58809
1194         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1195         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1197 2014-01-22  Marek Polacek  <polacek@redhat.com>
1199         PR c/59891
1200         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1201         of remove_c_maybe_const_expr on op1 and op2.
1203 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1205         PR c/58943
1206         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1207         effects, preevaluate rhs using SAVE_EXPR first.
1209 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1211         PR c++/59631
1212         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1213         statements with if-elseif statements.
1215 2014-01-06  Marek Polacek  <polacek@redhat.com>
1217         PR c/57773
1218         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1219         defined bit-field types only in ISO C.
1221 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1223         Update copyright years
1225 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1227         * c-array-notation.c: Use the standard form for the copyright notice.
1229 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1231         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1232         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1233         field in parser is not empty.  If not-empty, call the function
1234         c_parser_finish_omp_declare_simd.
1235         (c_parser_cilk_clause_vectorlength): Modified function to be shared
1236         between SIMD-enabled functions and #pragma simd.  Added new parameter.
1237         (c_parser_cilk_all_clauses): Modified the usage of the function
1238         c_parser_cilk_clause_vectorlength as mentioned above.
1239         (c_parser_cilk_simd_fn_vector_attrs): New function.
1240         (c_finish_cilk_simd_fn_tokens): Likewise.
1241         (is_cilkplus_vector_p): Likewise.
1242         (c_parser_omp_clause_name): Added checking for "vectorlength,"
1243         "nomask," and "mask" strings in clause name.
1244         (c_parser_omp_all_clauses): Added 3 new case statements:
1245         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1246         PRAGMA_CILK_CLAUSE_NOMASK.
1247         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
1248         check for vector attribute and if so call the function
1249         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
1250         called the function c_finish_cilk_simd_fn_tokens.
1251         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1252         parser field is non-empty.  If so, parse them as you would parse
1253         the omp declare simd pragma.
1254         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1255         Added a check when step is a parameter and flag it as error.
1256         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1257         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1258         pragma_omp_clause.
1260 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
1262         * c-parser.c (c_parser_omp_parallel): Fix description.
1264 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1266         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1267         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1268         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1269         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1271 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1273         PR c/52023
1274         * c-parser.c (c_parser_alignas_specifier): Use
1275         c_sizeof_or_alignof_type instead of c_alignof.
1276         (c_parser_alignof_expression): Likewise, with min_alignof
1277         parameter depending on alignof spelling used.
1279 2013-12-04  Marek Polacek  <polacek@redhat.com>
1281         PR c/54113
1282         * c-decl.c (start_function): Don't warn for missing prototype for
1283         inline functions.
1285 2013-12-03  Marek Polacek  <polacek@redhat.com>
1287         PR c/59351
1288         * c-decl.c (build_compound_literal): Allow compound literals with
1289         empty initial value.
1291 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
1293         PR c/58235
1294         * c-typeck.c (build_modify_expr): Diagnose assignment to
1295         expression with array type.
1297 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1299         PR c/42262
1300         * c-typeck.c (process_init_element): Do not treat a string as
1301         initializing a whole array when used with a designator for an
1302         individual element.
1304 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1306         PR c/57574
1307         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1308         an inline function following a static declaration.
1310 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1312         PR c/59310
1313         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1314         to p_name before calling c_parser_omp_teams instead of after.
1315         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1316         argument.  Remove unused p_name variable.
1318 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1319             Jakub Jelinek  <jakub@redhat.com>
1321         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1322         external_scope is NULL.
1324 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1325             Marc Glisse  <marc.glisse@inria.fr>
1327         PR c++/59032
1328         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1330 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1332         * c-typeck.c: Add required include files from gimple.h.
1334 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1336         * c-decl.c (define_label, shadow_tag_warned)
1337         (check_bitfield_type_and_width, grokdeclarator, grokparms,
1338         store_parm_decls_newstyle, store_parm_decls_oldstyle)
1339         (declspecs_add_type): Remove use of in_system_header macro.
1340         * c-parser.c (c_parser_unary_expression): Likewise.
1341         * c-typeck.c (store_init_value, process_init_element)
1342         (c_start_case): Likewise.
1344         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1345         macro.
1347         * c-parser.c (c_parser_set_source_position_from_token): Remove
1348         reference to in_system_header from comment.
1350 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1352         * c-decl.c (grokdeclarator): Update comment to refer to
1353         tree_to_[su]hwi rather than tree_low_cst.
1355 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1357         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1358         tree_to_uhwi throughout.
1360 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1362         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1363         throughout.
1365 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1367         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1368         throughout.
1370 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1372         * c-parser.c (c_parser_cilk_simd): New.
1373         (c_parser_cilk_verify_simd): New.
1374         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1375         (c_parser_omp_for_loop): Add case for NE_EXPR.
1376         Set c_break_label for CILK_SIMD.
1377         (c_parser_cilk_clause_vectorlength): New.
1378         (c_parser_cilk_clause_linear): New.
1379         (c_parser_cilk_clause_name): New.
1380         (c_parser_cilk_all_clauses): New.
1381         * c-typeck.c (build_unary_op): Pass location argument to
1382         readonly_error.
1383         (build_modify_expr): Same.
1384         (build_asm_expr): Same.
1385         (c_finish_bc_stmt): Error on break/continue in loops.
1387 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1389         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1391 2013-11-14  Diego Novillo  <dnovillo@google.com>
1393         * c-decl.c: Include print-tree.h.
1394         Include stor-layout.h.
1395         Include varasm.h.
1396         Include attribs.h.
1397         Include stringpool.h.
1398         * c-lang.c: Include fold-const.h.
1399         * c-parser.c: Include stringpool.h.
1400         Include attribs.h.
1401         Include stor-layout.h.
1402         Include varasm.h.
1403         Include trans-mem.h.
1404         * c-typeck.c: Include stor-layout.h.
1405         Include trans-mem.h.
1406         Include varasm.h.
1407         Include stmt.h.
1409 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1411         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1412         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1413         __auto_type.
1414         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1415         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1416         RID_AUTO_TYPE.
1417         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1418         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1419         (c_parser_declarator, c_parser_direct_declarator_inner)
1420         (c_parser_parameter_declaration, c_parser_type_name): All callers
1421         changed.
1422         (c_parser_declaration_or_fndef): Handle declarations with type
1423         determined from the initializer.
1425 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1427         * c-typeck.c: Include gimplify.h.
1429 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1431         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1432         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1433         comment.
1434         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1435         or _Thread_local as appropriate in diagnostics.
1436         (build_null_declspecs): Initialize ret->thread_gnu_p.
1437         (declspecs_add_scspec): Handle either __thread or _Thread_local
1438         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
1439         pedantic.  Do not disallow _Thread_local extern and _Thread_local
1440         static.
1442 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
1443             Andrew MacLeod  <amacleod@redhat.com>
1445         * c-aux-info.c (gen_type): Handle atomic qualifier.
1446         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1447         qualifiers when compating types.
1448         (shadow_tag_warned): Handle atomic_p in declspecs.
1449         (quals_from_declspecs): Likewise.
1450         (start_decl): Use c_type_promotes_to when promoting argument
1451         types.
1452         (grokdeclarator): Handle _Atomic.
1453         (get_parm_info): Diagnose any qualifier on "void" as only
1454         parameter.
1455         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1456         comparing types.  Use c_type_promotes_to when promoting argument
1457         types.
1458         (finish_function): Use c_type_promotes_to when promoting argument
1459         types.
1460         (build_null_declspecs): Handle atomic_p in declspecs.
1461         (declspecs_add_qual): Handle RID_ATOMIC.
1462         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1463         (c_token_starts_declspecs): Handle RID_ATOMIC.
1464         (c_parser_declspecs): Handle atomic type specifiers and
1465         qualifiers.
1466         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1467         from types of expressions with atomic type.
1468         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1469         (c_parser_attribute_any_word): Handle RID_ATOMIC.
1470         (c_parser_initializer, c_parser_initelt, c_parser_initval)
1471         (c_parser_statement_after_labels, c_parser_switch_statement)
1472         (c_parser_for_statement, c_parser_expr_no_commas)
1473         (c_parser_conditional_expression, c_parser_binary_expression)
1474         (c_parser_cast_expression, c_parser_unary_expression)
1475         (c_parser_postfix_expression)
1476         (c_parser_postfix_expression_after_primary, c_parser_expression):
1477         Use convert_lvalue_to_rvalue.
1478         (c_parser_expression_conv, c_parser_expr_list): Document
1479         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
1480         (c_parser_objc_synchronized_statement): Use
1481         convert_lvalue_to_rvalue.
1482         (c_parser_objc_selector): Handle RID_ATOMIC.
1483         (c_parser_objc_receiver, c_parser_array_notation): Use
1484         convert_lvalue_to_rvalue.
1485         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1486         _Atomic (type-name).
1487         (struct c_declspecs): Add atomic_p field.
1488         (convert_lvalue_to_rvalue): Declare.
1489         * c-typeck.c (c_type_promotes_to): Promote atomic types to
1490         corresponding atomic types.
1491         (qualify_type): Don't add _Atomic qualifiers from second argument.
1492         (comp_target_types): Do not allow _Atomic mismatches.
1493         (type_lists_compatible_p): Do not remove atomic qualifiers when
1494         comparing types.
1495         (really_atomic_lvalue, convert_lvalue_to_rvalue)
1496         (build_atomic_assign): New functions.
1497         (build_unary_op): Use build_atomic_assign for atomic increment and
1498         decrement.
1499         (build_conditional_expr): Do not treat _Atomic void as a qualified
1500         version of void.
1501         (build_modify_expr): Use build_atomic_assign for atomic LHS.
1502         (find_anonymous_field_with_type, convert_to_anonymous_field)
1503         (convert_for_assignment): Do not remove atomic qualifiers when
1504         comparing types.
1505         (digest_init): Do not accept initialization of arrays of atomic
1506         elements by string constants.
1507         (build_asm_expr): Use convert_lvalue_to_rvalue.
1508         (build_binary_op): Do not treat _Atomic void as a qualified
1509         version of void.
1511 2013-11-06  DJ Delorie  <dj@redhat.com>
1513         * c-decl.c (locate_old_decl): If a previous conflicting decl is
1514         both explicit and builtin, print the location of the explicit one.
1516 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1518         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1519         c_parser_omp_distribute, c_parser_omp_teams,
1520         c_parser_omp_target, c_parser_omp_declare): Handle
1521         -fopenmp-simd.
1523 2013-11-03  Marek Polacek  <polacek@redhat.com>
1525         * c-decl.c (grokdeclarator): Add VLA instrumentation.
1527 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
1529         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1530         check_dup_generic at the end, unless remove is true.
1531         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1532         remove = true;.
1533         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1535 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
1537         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1538         with decl that is not pointer nor array.
1540 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1542         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1543         a spawning function is found.
1544         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1545         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1546         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1547         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1548         case.
1549         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1550         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1551         expr.
1552         (c_finish_return): Added a check to reject _Cilk_spawn in return
1553         expression.
1554         (build_cilk_spawn): New function.
1555         (build_cilk_sync): Likewise.
1556         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1557         
1558 2013-10-27  Tobias Burnus  <burnus@net-b.de>
1560         PR other/33426
1561         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1562         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1563         (c_parser_statement_after_labels): Update calls.
1565 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1567         PR other/33426
1568         * c-parser.c (c_parser_pragma, c_parser_for_statement):
1569         Handle PRAGMA_IVDEP.
1570         (c_parser_statement_after_labels): Update call.
1572 2013-10-24  Marek Polacek  <polacek@redhat.com>
1574         * c-parser.c (c_parser_struct_declaration): Add a comment.
1575         (c_parser_declarator): Don't allow _Alignas here.
1577 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
1579         * c-parser.c: Include omp-low.h.
1580         * c-typeck.c: Likewise.
1582 2013-10-17  Marek Polacek  <polacek@redhat.com>
1584         PR c/58267
1585         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1586         Document syntax of the array-declarator.
1587         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1588         are not permitted.
1589         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1590         (c_parser_struct_declaration): Likewise.
1591         (c_parser_declarator): Likewise.
1592         (c_parser_direct_declarator_inner): Likewise.
1593         (c_parser_parameter_declaration): Likewise.
1594         (c_parser_type_name): Likewise.
1596 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1598         * c-lang.h (current_omp_declare_target_attribute): New extern
1599         decl.
1600         * c-parser.c: Include c-lang.h.
1601         (struct c_parser): Change tokens to c_token *.
1602         Add tokens_buf field.  Change tokens_avail type to unsigned int.
1603         (c_parser_consume_token): If parser->tokens isn't
1604         &parser->tokens_buf[0], increment parser->tokens.
1605         (c_parser_consume_pragma): Likewise.
1606         (enum pragma_context): Add pragma_struct and pragma_param.
1607         (c_parser_external_declaration): Adjust
1608         c_parser_declaration_or_fndef caller.
1609         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1610         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1611         Adjust recursive call.
1612         (c_parser_struct_or_union_specifier): Use pragma_struct instead
1613         of pragma_external.
1614         (c_parser_parameter_declaration): Use pragma_param instead of
1615         pragma_external.
1616         (c_parser_compound_statement_nostart, c_parser_label,
1617         c_parser_for_statement): Adjust
1618         c_parser_declaration_or_fndef callers.
1619         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1620         it through to c_parser_conditional_expression.
1621         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1622         pass it through to c_parser_binary_expression.  Adjust recursive
1623         call.
1624         (c_parser_binary_expression): Remove prec argument, add
1625         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
1626         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1627         binop matches it, use build2 instead of parser_build_binary_op.
1628         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1629         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1630         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1631         Handle pragma_struct and pragma_param the same as pragma_external.
1632         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1633         (c_parser_omp_variable_list): Parse array sections for
1634         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1635         (c_parser_omp_clause_collapse): Fully fold collapse expression.
1636         (c_parser_omp_clause_reduction): Handle user defined reductions.
1637         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1638         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1639         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1640         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1641         c_parser_omp_clause_depend, c_parser_omp_clause_map,
1642         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1643         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1644         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1645         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
1646         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
1647         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1648         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
1649         (c_parser_omp_for_loop): Add CODE argument, pass it through
1650         to c_finish_omp_for.  Change last argument to cclauses,
1651         and adjust uses to grab parallel clauses from the array of all
1652         the split clauses.  Adjust c_parser_binary_expression,
1653         c_parser_declaration_or_fndef and c_finish_omp_for callers.
1654         (omp_split_clauses): New function.
1655         (c_parser_omp_simd): New function.
1656         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1657         Allow the function to be called also when parsing combined constructs,
1658         and call c_parser_omp_simd when parsing for simd.
1659         (c_parser_omp_sections_scope): If section-sequence doesn't start with
1660         #pragma omp section, require exactly one structured-block instead of
1661         sequence of statements.
1662         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1663         Allow the function to be called also when parsing combined constructs.
1664         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1665         Allow the function to be called also when parsing combined
1666         constructs.
1667         (c_parser_omp_taskgroup, c_parser_omp_cancel,
1668         c_parser_omp_cancellation_point, c_parser_omp_distribute,
1669         c_parser_omp_teams, c_parser_omp_target_data,
1670         c_parser_omp_target_update, c_parser_omp_target,
1671         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1672         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1673         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1674         (c_parser_omp_construct): Add p_name and mask vars.  Handle
1675         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1676         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
1677         and c_parser_omp_sections callers.
1678         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1679         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1680         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1681         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
1682         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
1683         OMP_CLAUSE_DEPEND.
1684         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1685         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1686         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1687         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1688         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1689         * c-typeck.c: Include tree-inline.h.
1690         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1691         handle_omp_array_sections_1, handle_omp_array_sections,
1692         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1693         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1694         user defined reductions.
1695         (c_tree_equal): New function.
1696         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1697         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1698         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1699         c_check_omp_declare_reduction_r): New prototypes.
1700         * c-decl.c (current_omp_declare_target_attribute): New variable.
1701         (c_decl_attributes): New function.
1702         (start_decl, start_function): Use it instead of decl_attributes.
1703         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1704         c_omp_reduction_decl, c_omp_reduction_lookup,
1705         c_check_omp_declare_reduction_r): New functions.
1707 2013-09-25  Tom Tromey  <tromey@redhat.com>
1709         * Make-lang.in (c/gccspec.o): Remove.
1710         (CFLAGS-c/gccspec.o): New variable.
1711         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1712         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1713         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1715 2013-09-25  Tom Tromey  <tromey@redhat.com>
1717         * Make-lang.in (c/gccspec.o): Don't use subshell.
1719 2013-09-18  Marek Polacek  <polacek@redhat.com>
1721         PR sanitize/58443
1722         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1723         Remove unnecessary check.
1725 2013-09-18  Marek Polacek  <polacek@redhat.com>
1727         PR sanitizer/58411
1728         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1729         no_sanitize_undefined attribute.
1731 2013-09-13  Kai Tietz  <ktietz@redhat.com>
1733         PR target/57848
1734         * c-decl.c (c_builtin_function_ext_scope): Remove
1735         wrong assumption that it is never called on prexisting
1736         symbol.
1738 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1740         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1742 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1744         * c-objc-common.c (c_tree_printer): Tidy.
1746 2013-08-30  Marek Polacek  <polacek@redhat.com>
1748         * c-typeck.c (build_binary_op): Add division by zero and shift
1749         instrumentation.
1751 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1752             Joseph Myers  <joseph@codesourcery.com>
1754         PR c/35649
1755         * c-typeck.c (c_common_type): Prefer double_type_node over
1756         other REAL_TYPE types with the same precision.
1757         (convert_arguments): Likewise.
1759 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1761         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1762         (c_initialize_diagnostics): Call a destructor for the early printer.
1764 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1766         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1767         printer initialization.
1769 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1771         PR c/57490
1772         * c-array-notation.c (fix_conditional_array_notations_1): Added a
1773         check for truth values.
1774         (expand_array_notation_exprs): Added truth values case.  Removed an
1775         unwanted else.  Added for-loop to walk through subtrees in default
1776         case.
1778 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1780         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1782 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
1784         * c-parser.c (struct c_generic_association): Fix typo.
1786 2013-07-23  Tom Tromey  <tromey@redhat.com>
1787             Joseph Myers  <joseph@codesourcery.com>
1789         * c-parser.c (struct c_generic_association): New.
1790         (c_generic_association_d): New typedef.
1791         (c_parser_generic_selection): New function.
1792         (c_parser_postfix_expression): Handle RID_GENERIC.
1794 2013-07-13  Jason Merrill  <jason@redhat.com>
1796         PR c++/57793
1797         * c-decl.c (finish_struct): Check for too-large class.
1799 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1801         PR c/57821
1802         * c-typeck.c (set_init_index): When folding, check for index overflow.
1804 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1806         * c-parser.c (c_parser_array_notation): Removed rejection of array
1807         notations in an array of function pointers.
1809 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1811         * c-array-notation.c (make_triplet_val_inv): New function.
1812         (create_cmp_incr): Likewise.
1813         (create_array_refs): Likewise.
1814         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1815         Also modularized common parts between functions and called the function.
1816         (build_array_notation_expr): Likewise.
1817         (fix_conditional_array_notations_1): Likewise.
1818         (fix_array_notation_expr): Likewise.
1819         (fix_array_notation_call_expr): Likewise.
1821 2013-06-18  Marek Polacek  <polacek@redhat.com>
1823         PR c/57630
1824         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1826 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1828         * c-array-notation.c (build_array_notation_expr): Reject array notation
1829         mismatch between LHS and RHS even inside a call_expr.  Also, removed
1830         a couple while statements that were dead code.
1832 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1834         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1835         excessive precision expressions in function parameters.  Also removed
1836         couple unwanted while statements.
1838 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1840         * c-array-notation.c (expand_array_notation_exprs): Added
1841         ARRAY_NOTATION_REF case.
1842         
1843 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1845         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1846         function to c-family/array-notation-common.c.
1847         (is_cilkplus_reduce_builtin): Likewise.
1848         (find_rank): Likewise.
1849         (extract_array_notation_exprs): Likewise.
1850         (replace_array_notations): Likewise.
1851         (find_inv_trees): Likewise.
1852         (replace_inv_trees): Likewise.
1853         (contains_array_notation_expr): Likewise.
1854         (find_correct_array_notation_type): Likewise.
1855         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1856         (struct inv_list): Moved this to c-family/array-notation-common.c.
1857         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1858         
1859 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1861         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1862         reduction functions outside the for-loop.  Added a check if the fundecl
1863         is non-NULL.  Finally, removed an unwanted if-statement, and made the
1864         body unconditional.
1866 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1868         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1869         condition of the if-statement matches the rank of else-block and then-
1870         block when array notations are used.
1871         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1872         expression after the entire function body is parsed.
1873         (c_parser_expr_no_commas): Delayed creating array notation expressions
1874         to the end of function parsing.
1875         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1876         whole if-statement instead of just the condition.
1877         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
1879 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1881         PR c/57474
1882         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1883         array to NULL_TREE if they are unused.  Also added a check for the
1884         field to be NULL before its fields are used in future.
1885         
1886 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1888         PR bootstrap/57450
1889         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1890         (build_array_notation_expr): Likewise.
1892 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1894         * c-typeck.c (build_array_ref): Added a check to see if array's
1895         index is greater than one.  If true, then emit an error.
1896         (build_function_call_vec): Exclude error reporting and checking
1897         for builtin array-notation functions.
1898         (convert_arguments): Likewise.
1899         (c_finish_return): Added a check for array notations as a return
1900         expression.  If true, then emit an error.
1901         (c_finish_loop): Added a check for array notations in a loop
1902         condition.  If true then emit an error.
1903         (lvalue_p): Added a ARRAY_NOTATION_REF case.
1904         (build_binary_op): Added a check for array notation expr inside
1905         op1 and op0.  If present, we call another function to find correct
1906         type.
1907         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1908         * c-parser.c (c_parser_compound_statement): Check if array
1909         notation code is used in tree, if so, then transform them into
1910         appropriate C code.
1911         (c_parser_expr_no_commas): Check if array notation is used in LHS
1912         or RHS, if so, then build array notation expression instead of
1913         regular modify.
1914         (c_parser_postfix_expression_after_primary): Added a check for
1915         colon(s) after square braces, if so then handle it like an array
1916         notation.  Also, break up array notations in unary op if found.
1917         (c_parser_direct_declarator_inner): Added a check for array
1918         notation.
1919         (c_parser_compound_statement): Added a check for array notation in
1920         a stmt.  If one is present, then expand array notation expr.
1921         (c_parser_if_statement): Likewise.
1922         (c_parser_switch_statement): Added a check for array notations in
1923         a switch statement's condition.  If true, then output an error.
1924         (c_parser_while_statement): Similarly, but for a while.
1925         (c_parser_do_statement): Similarly, but for a do-while.
1926         (c_parser_for_statement): Similarly, but for a for-loop.
1927         (c_parser_unary_expression): Check if array notation is used in a
1928         pre-increment or pre-decrement expression.  If true, then expand
1929         them.
1930         (c_parser_array_notation): New function.
1931         * c-array-notation.c: New file.
1932         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1933         
1934 2013-05-23  Mike Stump  <mikestump@comcast.net>
1936         * c-typeck.c (convert_for_assignment): Handle references to memory
1937         spaces better.
1939 2013-05-16  Jason Merrill  <jason@redhat.com>
1941         * Make-lang.in (cc1$(exeext)): Use link mutex.
1943 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1945         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1946         to simply use OPT_Wpointer_arith.
1947         (build_unary_op): Likewise.
1949 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
1951         PR c/19449
1952         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1953         argument.  If set, or it temporarily for parsing of the first
1954         argument into force_folding_builtin_constant_p.
1955         (c_parser_postfix_expression): Adjust callers.
1957 2013-03-21  Richard Biener  <rguenther@suse.de>
1959         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1960         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
1962 2013-02-12  Marek Polacek  <polacek@redhat.com>
1964         PR c/44938
1965         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1966         origtypes to NULL.
1968 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
1970         PR c/56078
1971         * c-typeck.c (set_nonincremental_init_from_string): If
1972         constructor_max_index is NULL, treat it as if tree_int_cst_lt
1973         returned false.
1974         (process_init_element): Likewise.
1976 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
1978         PR c++/55619
1979         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1980         argument, don't call default_function_array_conversion
1981         nor c_fully_fold here.
1982         (c_parser_asm_statement): Adjust callers.
1983         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1984         and outputs here, and call default_function_array_conversion
1985         on inputs that don't need to be addressable.
1987 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
1989         PR c/39464
1990         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1991         warning require that both c_common_unsigned_type as well as
1992         c_common_signed_type is the same for both mvl and mvr types.
1994 2012-11-16  Diego Novillo  <dnovillo@google.com>
1996         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1998         * c-common.c: Use new vec API in vec.h.
1999         * c-common.h: Likewise.
2000         * c-gimplify.c: Likewise.
2001         * c-pragma.c: Likewise.
2002         * c-pretty-print.c: Likewise.
2003         * c-pretty-print.h: Likewise.
2004         * c-semantics.c: Likewise.
2005         * c-decl.c: Likewise.
2006         * c-parser.c: Likewise.
2007         * c-tree.h: Likewise.
2008         * c-typeck.c: Likewise.
2010 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2012         PR c++/54930
2013         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2015 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2017         PR c/53066
2018         * c-decl.c (warn_if_shadowing): Do not warn if a variable
2019         shadows a function, unless the variable is a function or a
2020         pointer-to-function.
2022 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2024         PR c/54381
2025         * c-parser.c (struct c_tree_loc_pair): Removed.
2026         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2027         add location_t * and tree * arguments, fill in array of 3
2028         sizeof_arg trees and corresponding locs.
2029         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2030         c_parser_expr_list callers.
2031         (c_parser_postfix_expression_after_primary): Likewise.  Pass
2032         array of 3 sizeof_arg trees and locs (corresponding to first
2033         3 arguments) to sizeof_pointer_memaccess_warning.
2035 2012-10-09  Lawrence Crowl  <crowl@google.com>
2037         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2038         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2039         hash table.
2041 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2043         PR c++/54194
2044         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2045         call.
2047 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2049         PR c++/54427
2050         * c-typeck.c: Include c-common.h.
2051         (enum stv_conv): Moved to c-common.h.
2052         (scalar_to_vector): Moved to c-common.c.
2053         (build_binary_op): Adapt to scalar_to_vector's new prototype.
2054         * Make-lang.in: c-typeck.c depends on c-common.h.
2056 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2058         * c-decl.c (c_write_global_declarations): Fix handling of
2059         -fdump-ada-spec*.
2061 2012-09-30  Sharad Singhai  <singhai@google.com>
2063         * c-decl.c (c_write_global_declarations): Use a different method
2064         to determine if the dump has ben initialized.
2066 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2068         PR c/54552
2069         * c-typeck.c (c_cast_expr): When casting to a type requiring
2070         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2071         c_fully_fold first.
2073 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2075         PR c/54103
2076         * c-typeck.c (build_unary_op): Pass original argument of
2077         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2078         any C_MAYBE_CONST_EXPR, if it has integer operands.
2079         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2080         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2081         to c_objc_common_truthvalue_conversion, then remove any
2082         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
2083         c_objc_common_truthvalue_conversion not
2084         c_common_truthvalue_conversion.
2085         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2086         call note_integer_operands for arguments with integer operands
2087         that are not integer constants.
2089 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
2091         PR c/54559
2092         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2093         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2095 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
2097         PR c/54428
2098         * c-convert.c (convert): Don't call fold_convert_loc if
2099         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2100         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
2101         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2103 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
2105         PR c/54355
2106         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2107         for nested and empty_ok arguments in the call to
2108         c_parser_declaration_or_fndef.
2110 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2112         * c-tree.h (c_last_sizeof_arg): Declare.
2113         * c-parser.c (struct c_tree_loc_pair): New type.
2114         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
2115         non-NULL.
2116         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2117         (c_parser_postfix_expression_after_primary): Likewise.  Call
2118         sizeof_pointer_memaccess_warning if needed.
2119         (sizeof_ptr_memacc_comptypes): New function.
2120         * c-typeck.c (c_last_sizeof_arg): New global variable.
2121         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2123 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
2125         * c-lang.h (lang_decl): Add variable_size GTY option.
2127 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2129         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2130         * Make-lang.in: Fix dependencies.
2132 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2134         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2135         and add language Makefile hooks.
2136         * config-lang.in: New file.
2137         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2138         add the required "normal" config-lang.in rules.
2139         * c-lang.h: Moved from gcc/ to here.
2140         * c-tree.h: Likewise.
2141         * c-objc-common.c: Likewise.
2142         * c-objc-common.h: Likewise.
2143         * c-typeck.c: Likewise.
2144         * c-convert.c: Likewise.
2145         * c-lang.c: Likewise.
2146         * c-aux-info.c: Likewise.
2147         * c-errors.c: Likewise.
2148         * gccspec.c: Likewise.
2149         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
2150         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
2152 Copyright (C) 2012-2015 Free Software Foundation, Inc.
2154 Copying and distribution of this file, with or without modification,
2155 are permitted in any medium without royalty provided the copyright
2156 notice and this notice are preserved.