1 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
4 instead of pointer_hash.
5 (detect_field_duplicates): Likewise.
7 2015-06-25 Marek Polacek <polacek@redhat.com>
9 * c-array-notation.c: Use VAR_P throughout.
11 * c-objc-common.c: Likewise.
12 * c-parser.c: Likewise.
13 * c-typeck.c: Likewise.
15 2015-06-25 Marek Polacek <polacek@redhat.com>
17 * c-decl.c: Use is_global_var throughout.
18 * c-parser.c: Likewise.
19 * c-typeck.c: Likewise.
21 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
24 * c-aux-info.c: Likewise.
25 * c-convert.c: Likewise.
27 * c-errors.c: Likewise.
29 * c-objc-common.c: Likewise.
30 * c-parser.c: Likewise.
31 * c-typeck.c: Likewise.
33 2015-06-11 Jan Hubicka <hubicka@ucw.cz>
36 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
39 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
41 * c-decl.c (pop_scope): Register the main translation unit
42 through the new debug hook.
44 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
46 * c-array-notation.c : Adjust include files.
47 * c-aux-info.c : Likewise.
48 * c-convert.c : Likewise.
49 * c-decl.c : Likewise.
50 * c-errors.c : Likewise.
51 * c-lang.c : Likewise.
52 * c-lang.h : Likewise.
53 * c-objc-common.c : Likewise.
54 * c-parser.c : Likewise.
55 * c-typeck.c : Likewise.
57 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
59 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
60 immediately clobber it.
61 (c_write_global_declarations_1): Remove call to
62 check_global_declaration_1.
63 (c_write_global_declarations_2): Remove.
64 (c_write_final_cleanups): Rename from c_write_global_declarations.
65 Remove call to finalize_compilation_unit.
66 Remove calls to debugging hooks.
67 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
68 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
69 * c-tree.h: Remove c_write_global_declarations.
71 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
73 * c-array-notation.c: Adjust includes for restructured coretypes.h.
74 * c-aux-info.c: Likewise.
75 * c-convert.c: Likewise.
77 * c-errors.c: Likewise.
79 * c-objc-common.c: Likewise.
80 * c-parser.c: Likewise.
81 * c-typeck.c: Likewise.
83 2015-06-04 Marek Polacek <polacek@redhat.com>
86 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
89 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
91 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
92 Warn for empty struct.
93 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
95 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
97 * c-decl.c (start_function): Call plugin before parsing.
98 (finish_function): Call plugin after parsing.
100 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
103 * c-decl.c (merge_decls): Merge DECL_COMMON.
105 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
107 * Make-lang.in (check_gcc_pallelize): Define.
109 2015-05-22 Marek Polacek <polacek@redhat.com>
112 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
115 2015-05-21 Marek Polacek <polacek@redhat.com>
117 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
120 2015-05-20 Marek Polacek <polacek@redhat.com>
122 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
123 * c-typeck.c: Likewise.
125 2015-05-19 Marek Polacek <polacek@redhat.com>
127 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
129 2015-05-19 Jakub Jelinek <jakub@redhat.com>
132 * c-parser.c (c_parser_omp_for_loop): Don't add
133 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
134 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
135 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
138 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
140 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
143 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
146 * c-objc-common.c (c_tree_printer): Replace locus pointer with
149 2015-05-14 Marek Polacek <polacek@redhat.com>
153 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
156 2015-05-12 David Malcolm <dmalcolm@redhat.com>
158 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
159 to add a call to warn_for_misleading_indentation.
160 (c_parser_else_body): Likewise, adding param "else_loc".
161 (c_parser_if_statement): Check for misleading indentation.
162 (c_parser_while_statement): Likewise.
163 (c_parser_for_statement): Likewise.
165 2015-05-08 Marek Polacek <polacek@redhat.com>
168 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
169 (output_init_element): Likewise.
171 2015-05-07 Marek Polacek <polacek@redhat.com>
174 * c-typeck.c (build_binary_op): Warn when left shifting a negative
177 2015-04-30 Marek Polacek <polacek@redhat.com>
179 * c-typeck.c (set_init_label): Call error_at instead of error and
182 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
185 * c-typeck.c (c_build_va_arg): Clarify the error message.
187 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
189 * c-parser.c (c_parser_oacc_enter_exit_data): Use
190 OMP_STANDALONE_CLAUSES.
192 2015-04-28 Marek Polacek <polacek@redhat.com>
194 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
196 2015-04-28 Marek Polacek <polacek@redhat.com>
199 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
201 2015-04-25 Marek Polacek <polacek@redhat.com>
204 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
207 2015-04-23 Marek Polacek <polacek@redhat.com>
210 * c-decl.c (set_labels_context_r): New function.
211 (store_parm_decls): Call it via walk_tree_without_duplicates.
212 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
213 instead of create_tmp_var. Build TARGET_EXPR instead of
215 (build_atomic_assign): Use create_tmp_var_raw instead of
216 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
218 2015-04-20 Ilya Verbin <ilya.verbin@intel.com>
220 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
221 (c_parser_omp_target_update): Add missed %> to error_at ().
223 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
226 * c-decl.c (c_default_pointer_mode): Remove definition.
227 * c-tree.h (c_default_pointer_mode): Remove declaration.
229 2015-03-27 Tobias Burnus <burnus@net-b.de>
232 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
234 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
235 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
236 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
238 2015-03-19 Jakub Jelinek <jakub@redhat.com>
240 * c-decl.c (c_decl_attributes): Also add "omp declare target"
241 attribute for DECL_EXTERNAL VAR_DECLs.
243 2015-03-11 Jakub Jelinek <jakub@redhat.com>
245 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
248 2015-03-10 Jakub Jelinek <jakub@redhat.com>
251 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
252 before preparing arguments to warn_logical_not_parentheses.
254 2015-03-09 Jakub Jelinek <jakub@redhat.com>
257 * c-typeck.c (parser_build_binary_op): Don't warn for
258 !!x == y or !b == y where b is _Bool.
260 2015-03-09 Marek Polacek <polacek@redhat.com>
262 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
263 * c-decl.c (grokdeclarator): Likewise.
264 * c-typeck.c (build_binary_op): Likewise.
266 2015-02-27 Marek Polacek <polacek@redhat.com>
269 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
271 2015-02-14 Marek Polacek <polacek@redhat.com>
274 * c-decl.c (grokdeclarator): Set the range of a flexible array member
275 declared through a typedef name.
277 2015-02-13 Marek Polacek <polacek@redhat.com>
280 * c-decl.c (grokdeclarator): Print also the type when giving
281 the error message about array's incomplete element type.
283 2015-02-11 Jakub Jelinek <jakub@redhat.com>
286 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
287 check in the POP macro.
289 2015-02-09 Marek Polacek <polacek@redhat.com>
292 * c-typeck.c (process_init_element): Don't always wrap
293 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
294 initializing a range of elements.
296 2015-02-04 Jakub Jelinek <jakub@redhat.com>
300 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
302 2015-02-02 Bruno Loff <bruno.loff@gmail.com>
304 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
305 processing enum declaration.
307 2015-01-29 Marek Polacek <polacek@redhat.com>
310 * c-typeck.c (pop_init_level): If constructor_elements has
311 exactly one element with integer_zerop value, set constructor_zeroinit
312 to 1. Remove braces around warning_init call.
314 2015-01-27 Jakub Jelinek <jakub@redhat.com>
317 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
318 of FUNCTION_DECLs with error_mark_node.
320 2015-01-26 Jakub Jelinek <jakub@redhat.com>
323 * c-typeck.c (convert_arguments): Return -1 if there are
324 error_args, even if we've diagnosed too many arguments.
326 2015-01-21 Richard Biener <rguenther@suse.de>
329 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
330 for builtins the user declared correctly.
332 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
333 Bernd Schmidt <bernds@codesourcery.com>
334 Cesar Philippidis <cesar@codesourcery.com>
335 James Norris <jnorris@codesourcery.com>
336 Jakub Jelinek <jakub@redhat.com>
337 Ilmir Usmanov <i.usmanov@samsung.com>
339 * c-parser.c: Include "gomp-constants.h".
340 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
341 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
342 Use OMP_CLAUSE_SET_MAP_KIND.
343 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
344 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
345 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
346 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
347 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
348 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
349 "copyout", "create", "delete", "deviceptr", "gang", "host",
350 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
351 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
352 "present_or_create", "pcreate", "seq", "self", "vector",
353 "vector_length", "wait", "worker".
354 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
355 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
356 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
357 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
358 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
359 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
360 (c_parser_oacc_data_clause_deviceptr)
361 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
362 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
363 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
364 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
365 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
366 (c_parser_oacc_parallel, c_parser_oacc_update)
367 (c_parser_oacc_wait): New functions.
368 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
369 (c_finish_oacc_data): New prototypes.
370 * c-typeck.c: Include "gomp-constants.h".
371 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
372 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
373 OMP_CLAUSE_SET_MAP_KIND.
374 (c_finish_oacc_parallel, c_finish_oacc_kernels)
375 (c_finish_oacc_data): New functions.
376 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
377 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
378 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
379 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
380 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
381 GOMP_MAP_FORCE_DEVICEPTR.
383 2015-01-09 Michael Collison <michael.collison@linaro.org>
385 * c-array-notation.c: Include hash-set.h, machmode.h,
386 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
387 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
388 * c-aux-info.c: Ditto.
389 * c-convert.c: Ditto.
393 * c-objc-common.c: Ditto.
395 * c-typeck.c: Include hash-set.h, machmode.h,
396 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
397 fold-const.h, wide-int.h, inchash.h, real.h and
398 fixed-value.h due to flattening of tree.h.
400 2015-01-07 Marek Polacek <polacek@redhat.com>
403 * c-typeck.c (process_init_element): Disallow initialization of
404 a flexible array member with a string constant if the structure
407 2015-01-05 Jakub Jelinek <jakub@redhat.com>
410 * c-typeck.c (convert_for_assignment, c_finish_return): For
411 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
412 types also set in_late_binary_op around convert call.
413 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
414 to integral type casts, if not in_late_binary_op, pass c_fully_fold
415 result on expr as last argument to ubsan_instrument_float_cast,
416 if in_late_binary_op, don't use c_save_expr but save_expr.
418 Update copyright years.
420 2015-01-05 Marek Polacek <polacek@redhat.com>
423 * c-typeck.c (build_array_ref): Pass loc down to
424 warn_array_subscript_with_type_char.
426 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
428 * c-typeck.c: New behavious for pointers to arrays with qualifiers
429 (common-pointer-type): For pointers to arrays take qualifiers from
431 (build_conditional_expr): Add warnings for lost qualifiers.
432 (comp-target-types): Allow pointers to arrays with different qualifiers.
433 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
434 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
435 to PEDWARN_FOR_QUALIFIERS.
437 2014-12-17 Jakub Jelinek <jakub@redhat.com>
440 * c-convert.c: Include ubsan.h.
441 (convert): For real -> integral casts and
442 -fsanitize=float-cast-overflow don't call convert_to_integer, but
443 instead instrument the float cast directly.
445 2014-11-29 Jakub Jelinek <jakub@redhat.com>
447 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
448 c_finish_stmt_expr): Remove NULL last argument from
449 create_tmp_var_raw and create_tmp_var calls.
450 * c-array-notation.c (fix_builtin_array_notation_fn,
451 build_array_notation_expr, fix_conditional_array_notations_1,
452 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
454 2014-11-28 Marek Polacek <polacek@redhat.com>
457 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
458 convert the right operand to integer type.
460 2014-11-25 Marek Polacek <polacek@redhat.com>
463 * c-decl.c (start_function): Disable -Wmissing-declarations warning
464 for inline functions.
466 2014-11-21 Jakub Jelinek <jakub@redhat.com>
469 * c-typeck.c (build_array_ref): Adjust
470 convert_vector_to_pointer_for_subscript caller. If it returns true,
471 call non_lvalue_loc on the result.
473 2014-11-11 Richard Biener <rguenther@suse.de>
475 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
478 2014-11-10 Andi Kleen <ak@linux.intel.com>
481 * c-parser.c (c_parser_statement_after_labels): Call
483 (c_parser_if_statement): Dito.
484 (c_parser_switch_statement): Dito.
485 (c_parser_while_statement): Dito.
486 (c_parser_do_statement): Dito.
487 (c_parser_for_statement): Dito.
488 * c-typeck.c (c_finish_loop): Dito.
490 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
492 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
493 OPT_Wshift_count_overflow in the warnings.
495 2014-10-30 Marek Polacek <polacek@redhat.com>
497 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
498 print the stripped version as well, if they're not the same.
500 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
502 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
505 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
507 * c-decl.c: Adjust include files.
510 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
511 Tom Tromey <tromey@redhat.com>
513 * c-tree.h (enum c_oracle_request): New.
514 (c_binding_oracle_function): New typedef.
515 (c_binding_oracle, c_pushtag, c_bind): Declare.
516 * c-decl.c (c_binding_oracle): New global.
517 (I_SYMBOL_CHECKED): New macro.
518 (i_symbol_binding): New function.
519 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
520 (I_TAG_CHECKED): New macro.
521 (i_tag_binding): New function.
522 (I_TAG_BINDING, I_TAG_DECL): Redefine.
523 (I_LABEL_CHECKED): New macro.
524 (i_label_binding): New function.
525 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
526 (c_print_identifier): Save and restore c_binding_oracle.
527 (c_pushtag, c_bind): New functions.
529 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
531 * c-typeck.c: Adjust include files.
533 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
536 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
537 initialization here...
538 (c_initialize_diagnostics): ... but here. Set defaults after
539 building pretty-printer.
541 2014-10-23 Marek Polacek <polacek@redhat.com>
544 * c-decl.c (pop_scope): Don't print warning in external_scope.
546 2014-10-19 Marek Polacek <polacek@redhat.com>
549 * c-typeck.c (output_init_element): Allow initializing objects with
550 static storage duration with compound literals even in C99 and add
553 2014-10-17 Marek Polacek <polacek@redhat.com>
556 * c-typeck.c (digest_init): Allow initializing objects with static
557 storage duration with compound literals even in C99 and add pedwarn
560 2014-10-17 Marek Polacek <polacek@redhat.com>
563 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
564 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
565 error multiple times. Print the type.
567 2014-10-17 Marek Polacek <polacek@redhat.com>
570 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
573 2014-10-17 Marek Polacek <polacek@redhat.com>
575 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
576 (start_function): Use OPT_Wimplicit_int instead of 0.
577 (store_parm_decls_oldstyle): Likewise.
579 2014-10-17 Alan Modra <amodra@gmail.com>
582 * c-decl.c (merge_decls): Don't merge section name or tls model
583 to newdecl symtab node, instead merge to olddecl. Override
584 existing olddecl section name. Set tls_model for all thread-local
585 vars, not just OMP thread-private ones. Remove incorrect comment.
587 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
589 * c-decl.c: Adjust include files.
591 2014-10-14 DJ Delorie <dj@redhat.com>
593 * c-parser.c (c_parse_init): Add RID entries for each __intN.
594 (c_token_starts_typename): Check all __intN, not just __int128.
595 (c_token_starts_declspecs): Likewise.
596 (c_parser_declspecs): Likewise.
597 (c_parser_attribute_any_word): Likewise.
598 (c_parser_objc_selector): Likewise.
599 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
600 (struct c_declspecs): Add int_n_idx field to record *which* __intN
602 * c-decl.c (declspecs_add_type): Check for all __intN, not just
604 (finish_declspecs): Likewise.
606 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
608 * c-parser.c (c_parser_all_labels): New function to replace
610 (c_parser_statement): Call the new function.
612 2014-10-09 Marek Polacek <polacek@redhat.com>
615 * c-typeck.c (pop_init_level): Don't warn about initializing
618 2014-10-07 Marek Polacek <polacek@redhat.com>
621 * c-decl.c (header_for_builtin_fn): New function.
622 (implicitly_declare): Suggest which header to include.
624 2014-10-07 Marek Polacek <polacek@redhat.com>
626 * c-convert.c (convert): Use error_operand_p.
627 * c-typeck.c (require_complete_type): Likewise.
628 (really_atomic_lvalue): Likewise.
629 (digest_init): Likewise.
630 (handle_omp_array_sections_1): Likewise.
632 2014-10-03 Marek Polacek <polacek@redhat.com>
635 * c-decl.c (pop_scope): Don't warn about "inline function declared
636 but never defined" for functions marked with gnu_inline attribute.
638 2014-09-25 Jakub Jelinek <jakub@redhat.com>
641 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
642 on low_bound and length.
644 2014-09-24 Marek Polacek <polacek@redhat.com>
648 * c-parser.c: Don't define CPP_KEYWORD.
649 (c_parser_switch_statement): Pass original type to c_finish_case.
650 * c-tree.h (c_finish_case): Update declaration.
651 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
652 conditionally to c_do_switch_warnings.
654 2014-09-03 Marek Polacek <polacek@redhat.com>
657 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
660 2014-09-02 Jakub Jelinek <jakub@redhat.com>
661 Balaji V. Iyer <balaji.v.iyer@intel.com>
662 Igor Zamyatin <igor.zamyatin@intel.com>
664 * c-parser.c (c_parser_cilk_for): New function.
665 (c_parser_cilk_grainsize): Likewise.
666 (c_get_temp_regvar): Likewise.
667 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
668 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
669 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
670 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
673 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
675 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
676 with using HOST_WIDE_INT without truncation to 'int'
678 2014-08-22 Marek Polacek <polacek@redhat.com>
681 * c-typeck.c (parser_build_binary_op): Adjust call to
682 warn_logical_not_parentheses.
684 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
687 * c-parser.c (c_parser_array_notation): Check for correct
688 type of an array added.
690 2014-08-19 Marek Polacek <polacek@redhat.com>
693 * c-typeck.c (build_binary_op): If either operand of a comparison
694 is a boolean expression, call maybe_warn_bool_compare.
696 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
699 * c-typeck.c (build_c_cast): Do a conversion even when the
700 TYPE_MAIN_VARIANTs are the same.
702 2014-08-19 Marek Polacek <polacek@redhat.com>
704 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
705 pedwarn_c99 instead of pedwarn.
706 (grokfield): Likewise.
707 (warn_defaults_to): New function.
708 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
709 Unconditionally call pedwarn_c99 instead of pedwarn.
710 (start_function): Call warn_defaults_to instead of pedwarn_c99.
711 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
712 check flag_isoc11 before.
713 * c-errors.c (pedwarn_c99): Change the return type to bool.
714 Handle -Wc99-c11-compat.
715 * c-parser.c (disable_extension_diagnostics): Handle
717 (restore_extension_diagnostics): Likewise.
718 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
719 instead of pedwarn, don't check flag_isoc11 before.
720 (c_parser_declspecs): Likewise.
721 (c_parser_alignas_specifier): Likewise.
722 (c_parser_alignof_expression): Likewise.
723 (c_parser_generic_selection): Likewise.
724 * c-tree.h (pedwarn_c99): Update declaration.
725 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
728 2014-08-19 Marek Polacek <polacek@redhat.com>
730 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
732 * c-errors.c: Include "opts.h".
733 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
734 * c-parser.c (disable_extension_diagnostics): Handle negative value
735 of warn_c90_c99_compat, too.
736 (restore_extension_diagnostics): Likewise.
737 (c_parser_compound_statement_nostart): Pass
738 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
740 2014-08-12 Marek Polacek <polacek@redhat.com>
742 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
744 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
746 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
748 2014-08-10 Marek Polacek <polacek@redhat.com>
751 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
752 Call pedwarn_c90 instead of pedwarn.
753 (check_bitfield_type_and_width): Likewise.
754 (declspecs_add_qual): Likewise.
755 (declspecs_add_type): Likewise.
756 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
757 Adjust to only call pedwarn_c90.
758 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
759 pedwarn_c90 instead of pedwarn.
760 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
761 * c-parser.c (disable_extension_diagnostics): Handle
763 (restore_extension_diagnostics): Likewise.
764 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
765 pedwarn_c90 instead of pedwarn.
766 (c_parser_initelt): Likewise.
767 (c_parser_postfix_expression): Likewise.
768 (c_parser_postfix_expression_after_paren_type): Likewise.
769 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
770 * c-tree.h: Fix formatting.
771 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
772 pedwarn_c90 instead of pedwarn.
774 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
776 * c-typeck.c: Remove include of pointer-set.h.
778 2014-08-07 Marek Polacek <polacek@redhat.com>
780 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
782 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
784 * c-typeck.c: Use hash_map instead of pointer_map.
786 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
788 * c-decl.c: Use hash_set instead of pointer_set.
790 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
793 * c-array-notation.c (expand_array_notations): Handling
796 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
799 * c-typeck.c (c_finish_return): Return 0 instead of the address of
802 2014-07-30 Tom Tromey <tromey@redhat.com>
804 * c-typeck.c (struct constructor_stack) <designator_depth>: New
806 (really_start_incremental_init, push_init_level): Initialize
808 (pop_init_level): Set global designator_depth.
809 (process_init_element): Check for designated_init attribute.
811 2014-07-20 Marek Polacek <polacek@redhat.com>
814 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
815 (implicitly_declare): Pass location to implicit_decl_warning.
817 2014-07-14 Jakub Jelinek <jakub@redhat.com>
820 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
821 If non-NULL, call c_parser_check_literal_zero.
822 (c_parser_check_literal_zero): New function.
823 (c_parser_postfix_expression_after_primary): Adjust
824 c_parser_expr_list caller, handle -Wmemset-transposed-args.
826 2014-07-06 Marek Polacek <polacek@redhat.com>
829 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
830 * c-tree.h (C_ARRAY_PARAMETER): Define.
831 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
834 2014-07-02 Jan Hubicka <hubicka@ucw.cz>
835 Chen Gang <gang.chen.5i5j@gmail.com>
837 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
840 2014-07-01 Marek Polacek <polacek@redhat.com>
842 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
843 instead of 0 to WARN_FOR_ASSIGNMENT.
845 2014-07-01 Marek Polacek <polacek@redhat.com>
848 * c-typeck.c (convert_for_assignment): Pass
849 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
851 2014-06-30 Marek Polacek <polacek@redhat.com>
853 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
854 has no_sanitize_undefined attribute.
856 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
859 * c-array-notation.c (fix_builtin_array_notation_fn):
860 Check for 0 arguments in builtin call. Check that bultin argument is
862 * c-parser.c (c_parser_array_notation): Check for incorrect initial
865 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
867 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
868 qualifiers in __auto_type for atomic types.
869 (c_parser_typeof_specifier): Discard all type qualifiers in
870 __typeof__ for atomic types.
872 2014-06-25 Marek Polacek <polacek@redhat.com>
875 * c-parser.c (c_parser_statement_after_labels): Pass the location of
876 the return expression to c_finish_return.
878 2014-06-25 Jakub Jelinek <jakub@redhat.com>
880 * c-typeck.c (c_finish_omp_clauses): Make sure
881 OMP_CLAUSE_LINEAR_STEP has correct type.
883 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
887 2014-06-24 Jakub Jelinek <jakub@redhat.com>
889 * c-parser.c (c_parser_omp_for_loop): For
890 #pragma omp parallel for simd move lastprivate clause from parallel
891 to for rather than simd.
893 2014-06-23 Marek Polacek <polacek@redhat.com>
895 * c-typeck.c (parser_build_binary_op): Don't call
896 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
898 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
900 * c-parser.c (c_parser_omp_threadprivate): Likewise.
901 * c-decl.c (merge_decls): Likewise.
903 2014-06-09 Marek Polacek <polacek@redhat.com>
906 * c-typeck.c (error_init): Call inform instead of error_at.
907 (pedwarn_init): Call inform instead of pedwarn.
908 (warning_init): Call inform instead of warning_at.
910 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
912 * c-decl.c (merge_decls): Use set_decl_section_name.
913 (duplicate_decls): Remove node if it exists.
915 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
918 * c-typeck.c (push_init_level, process_init_element,
919 pop_init_level): Correct check for zero initialization, move
920 missing brace warning to respect zero initialization.
922 2014-06-05 Marek Polacek <polacek@redhat.com>
925 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
927 2014-06-05 Marek Polacek <polacek@redhat.com>
930 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
931 on the left hand side operand of a comparison.
933 2014-06-05 Marek Polacek <polacek@redhat.com>
936 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
937 Print note only if the warning was printed.
939 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
942 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
945 2014-06-03 Marek Polacek <polacek@redhat.com>
948 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
950 * c-tree.h (c_start_case): Update.
951 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
952 switch condition has boolean value.
954 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
956 * c-decl.c: Include builtins.h.
957 * c-parser.c: Likewise.
959 2014-05-27 Marek Polacek <polacek@redhat.com>
962 * c-typeck.c (convert_arguments): Get location of a parameter. Change
963 error and warning calls to error_at and warning_at. Pass location of
964 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
965 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
966 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
968 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
971 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
974 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
976 * c-decl.c (merge_decls): Preserve symtab node pointers.
977 (duplicate_decls): Free new decl.
979 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
981 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
984 * c-parser.c (c_parser_omp_target): Return bool values.
986 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
988 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
989 num_teams_loc variable to num_thread_limit_loc.
991 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
993 * c-array-notation.c (expand_array_notations): Use void_node
994 instead of void_zero_node.
996 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
998 * c-decl.c (finish_struct): Adjust.
999 (finish_enum): Likewise.
1001 (record_inline_static): Likewise.
1002 (push_scope): Likewise.
1003 (make_label): Likewise.
1004 (lookup_label_for_goto): Likewise.
1005 (finish_struct): Likewise.
1006 (finish_enum): Likewise.
1007 (store_parm_decls): Likewise.
1008 (c_push_function_context): Likewise.
1009 * c-lang.h: Remove usage of variable_size gty attribute.
1010 * c-parser.c (c_parse_init): Adjust.
1011 (c_parse_file): Likewise.
1013 2014-05-13 Marek Polacek <polacek@redhat.com>
1016 * c-typeck.c (convert_for_assignment): Pass location to
1017 WARN_FOR_ASSIGNMENT instead of input_location.
1019 2014-05-10 Marek Polacek <polacek@redhat.com>
1021 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
1022 maybe_warn_string_init.
1023 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
1024 maybe_warn_string_init.
1025 * c-tree.h (maybe_warn_string_init): Update declaration.
1026 * c-typeck.c (maybe_warn_string_init): Add location parameter.
1027 Call pedwarn_init with loc instead of with input_location.
1028 (digest_init): Pass init_loc to maybe_warn_string_init.
1029 (pop_init_level): Call pedwarn_init with loc instead of with
1031 (set_init_index): Likewise.
1032 (process_init_element): Likewise.
1034 2014-05-09 Marek Polacek <polacek@redhat.com>
1037 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
1038 (c_parser_initelt): Pass location to set_init_label. Pass array index
1039 location to set_init_index.
1040 * c-tree.h (push_init_level): Update declaration.
1041 (pop_init_level): Likewise.
1042 (set_init_index): Likewise.
1043 (set_init_label): Likewise.
1044 * c-typeck.c (error_init): Add location parameter. Call error_at
1046 (digest_init): Pass init_loc to error_init.
1047 (really_start_incremental_init):
1048 (push_init_level): Add location parameter. Pass loc to pop_init_level
1050 (pop_init_level): Likewise.
1051 (set_designator): Add location parameter. Pass loc to pop_init_level,
1052 push_init_level, and error_init.
1053 (set_init_index): Add location parameter. Pass loc to error_init and
1055 (set_init_label): Likewise.
1056 (output_init_element): Pass loc to error_init.
1057 (process_init_element): Pass loc to error_init, pop_init_level,
1058 pedwarn_init, and push_init_level.
1060 2014-05-09 Marek Polacek <polacek@redhat.com>
1063 * c-parser.c (c_parser_attributes): Parse the arguments as an
1064 expression-list if the attribute takes identifier.
1066 2014-05-08 Marek Polacek <polacek@redhat.com>
1069 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
1072 2014-05-08 Marek Polacek <polacek@redhat.com>
1075 * c-decl.c (start_function): Warn for _Atomic-qualified return type
1078 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1079 Mike Stump <mikestump@comcast.net>
1080 Richard Sandiford <rdsandiford@googlemail.com>
1082 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
1083 (finish_enum): Use wide-int interfaces.
1084 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
1085 * c-typeck.c (build_c_cast): Likewise.
1086 (set_nonincremental_init_from_string): Likewise.
1087 (c_tree_equal): Likewise.
1089 2014-05-02 Marek Polacek <polacek@redhat.com>
1092 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
1093 Return size_one_node when the type is not complete.
1094 (pointer_diff): Remove comment.
1095 (build_unary_op): Improve error messages.
1097 2014-05-02 Marek Polacek <polacek@redhat.com>
1099 * c-typeck.c (c_finish_return): Separate warning_at calls.
1101 2014-05-02 Marek Polacek <polacek@redhat.com>
1103 * c-tree.h (error_init): Remove declaration.
1104 (pedwarn_init): Likewise.
1105 * c-typeck.c (error_init): Make static and move above.
1106 (pedwarn_init): Likewise.
1107 (warning_init): Move above.
1108 (maybe_warn_string_init): Likewise.
1110 2014-05-01 Jeff Law <law@redhat.com>
1114 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1115 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1118 2014-05-02 Marek Polacek <polacek@redhat.com>
1121 * c-typeck.c (push_init_level): Set constructor_designated to
1122 p->designated for structures.
1124 2014-05-01 Marek Polacek <polacek@redhat.com>
1127 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1128 function-definition has an attribute after the declarator.
1130 2014-05-01 Marek Polacek <polacek@redhat.com>
1133 * c-typeck.c (warning_init): Add location_t parameter. Call
1134 warning_at instead of warning.
1135 (push_init_level): Pass input_location to warning_init.
1136 (add_pending_init): Add location_t parameter. Pass loc to
1138 (set_nonincremental_init): Pass input_location to add_pending_init.
1139 (set_nonincremental_init_from_string): Likewise.
1140 (output_init_element): Pass loc to warning_init and to
1143 2014-05-01 Marek Polacek <polacek@redhat.com>
1146 * c-typeck.c (c_finish_return): Distinguish between label and variable
1147 when warning about returning local address.
1149 2014-05-01 Marek Polacek <polacek@redhat.com>
1152 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1155 2014-05-01 Marek Polacek <polacek@redhat.com>
1158 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1159 instead of 0 to WARN_FOR_QUALIFIERS.
1161 2014-05-01 Marek Polacek <polacek@redhat.com>
1164 * c-typeck.c (default_conversion): Use better location for
1167 2014-04-30 Marek Polacek <polacek@redhat.com>
1169 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1170 also when SANITIZE_FLOAT_DIVIDE is on.
1172 2014-04-30 Marek Polacek <polacek@redhat.com>
1175 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1176 and pedwarn_init. Use loc insted of input_location.
1178 2014-04-30 Marek Polacek <polacek@redhat.com>
1181 * c-typeck.c (build_binary_op): Use location when warning about
1184 2014-04-25 Marek Polacek <polacek@redhat.com>
1187 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1188 always_inline/noinline and hot/cold attributes.
1190 2014-04-25 Marek Polacek <polacek@redhat.com>
1193 * c-parser.c (c_parser_initelt): Pass input_location to
1194 process_init_element.
1195 (c_parser_initval): Pass loc to process_init_element.
1196 * c-tree.h (process_init_element): Adjust declaration.
1197 * c-typeck.c (push_init_level): Pass input_location to
1198 process_init_element.
1199 (pop_init_level): Likewise.
1200 (set_designator): Likewise.
1201 (output_init_element): Add location_t parameter. Pass loc to
1203 (output_pending_init_elements): Pass input_location to
1204 output_init_element.
1205 (process_init_element): Add location_t parameter. Pass loc to
1206 output_init_element.
1208 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1210 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1211 atomic-clause, allow comma in between atomic-clause and
1214 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1217 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1218 fails, don't set OM_PARALLEL_COMBINED and return NULL.
1220 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1223 * c-array-notation.c (fix_builtin_array_notation_fn): Use
1224 create_tmp_var instead build_decl for creating temps.
1225 (build_array_notation_expr): Likewise.
1226 (fix_conditional_array_notations_1): Likewise.
1227 (fix_array_notation_expr): Likewise.
1228 (fix_array_notation_call_expr): Likewise.
1230 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1233 * c-tree.h (c_build_function_call_vec): New prototype.
1234 * c-typeck.c (build_function_call_vec): Don't call
1235 resolve_overloaded_builtin here.
1236 (c_build_function_call_vec): New wrapper function around
1237 build_function_call_vec. Call resolve_overloaded_builtin here.
1238 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1239 Call c_build_function_call_vec instead of build_function_call_vec.
1240 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1241 * c-decl.c (finish_decl): Likewise.
1243 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1246 * c-typeck.c: Use correct format string in cast-qual warning
1248 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
1250 * c-decl.c (c_decl_attributes): Use
1251 lang_hooks.types.omp_mappable_type.
1252 * c-typeck.c (c_finish_omp_clauses): Likewise.
1254 2014-03-06 Marek Polacek <polacek@redhat.com>
1257 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1258 of checking tree code.
1260 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1262 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1263 (c_parser_parameter_declaration): Likewise.
1265 2014-02-19 Marek Polacek <polacek@redhat.com>
1268 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1269 Call mark_exp_read on exp.value.
1270 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
1271 TREE_ADDRESSABLE on old instead of val.
1272 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1274 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1276 * c-parser.c (c_parser_get_builtin_args): Replace calls to
1277 C_EXPR_APPEND by vec_safe_push.
1278 * c-tree.h (C_EXPR_APPEND): Remove.
1280 2014-01-31 Marek Polacek <polacek@redhat.com>
1283 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1284 build_function_call_vec.
1285 (build_function_call): Likewise.
1286 (build_atomic_assign): Likewise.
1287 (build_function_call_vec): Add arg_loc parameter. Use it.
1288 (convert_arguments): Likewise.
1289 (convert_for_assignment): Rename rhs_loc to expr_loc.
1290 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1291 (c_parser_objc_keywordexpr): Likewise.
1292 (c_parser_postfix_expression_after_primary): Call
1293 build_function_call_vec with expr_loc rather than op_loc.
1294 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
1295 build_function_call_vec.
1296 (c_parser_expr_list): Add locations parameter. Fill it with locations
1297 of function arguments.
1298 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1300 2014-01-30 Marek Polacek <polacek@redhat.com>
1303 * c-typeck.c (build_function_call_vec): Use loc parameter.
1304 (convert_arguments): Add location parameter. Use it.
1305 (ep_convert_and_check): Likewise.
1306 (build_atomic_assign): Adjust convert_for_assignment call.
1307 (build_modify_expr): Likewise.
1308 (digest_init): Likewise.
1309 (c_finish_return): Likewise.
1310 (build_conditional_expr): Adjust ep_convert_and_check calls.
1311 (convert_for_assignment): Add rhs_loc parameter. Use it.
1312 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1315 2014-01-30 Richard Biener <rguenther@suse.de>
1318 * c-typeck.c (build_function_call_vec): Do not replace calls
1319 to a function via an incompatible type with a runtime abort.
1321 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1323 * c-parser.c (c_parser_declaration_or_fndef): Replaced
1324 flag_enable_cilkplus with flag_cilkplus.
1325 (c_parser_direct_declarator_inner): Likewise.
1326 (c_parser_attribute_any_word): Likewise.
1327 (c_parser_attributes): Likewise.
1328 (c_parser_compound_statement): Likewise.
1329 (c_parser_statement_after_labels): Likewise.
1330 (c_parser_if_statement): Likewise.
1331 (c_parser_switch_statement): Likewise.
1332 (c_parser_do_statement): Likewise.
1333 (c_parser_for_statement): Likewise.
1334 (c_parser_unary_expression): Likewise.
1335 (c_parser_postfix_expression): Likewise.
1336 (c_parser_postfix_expression_after_primary): Likewise.
1337 (c_parser_postfix_expression_after_primary): Likewise.
1338 (c_parser_omp_clause_name): Likewise.
1339 (c_finish_omp_declare_simd): Likewise.
1340 (c_parser_cilk_verify_simd): Likewise.
1341 * c-typeck.c (build_array_ref): Likewise.
1342 (build_function_call_vec): Likewise.
1343 (convert_arguments): Likewise.
1344 (build_compound_expr): Likewise.
1345 (c_finish_return): Likewise.
1346 (c_finish_if_stmt): Likewise.
1347 (c_finish_loop): Likewise.
1348 (build_binary_op): Likewise.
1350 2014-01-23 Marek Polacek <polacek@redhat.com>
1353 * c-typeck.c (parser_build_binary_op): Use location instead of
1355 (build_binary_op): Pass location to shorten_compare.
1357 2014-01-23 Marek Polacek <polacek@redhat.com>
1360 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1363 2014-01-23 Marek Polacek <polacek@redhat.com>
1366 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1367 of a comma expression.
1368 (emit_side_effect_warnings): Likewise.
1370 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1373 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1374 function to use walk_tree and moved a lot of its functionality to
1375 expand_array_notations.
1376 (expand_array_notations): New function.
1378 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1380 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1381 attribute an attribute without value.
1383 2014-01-23 Jakub Jelinek <jakub@redhat.com>
1386 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1387 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1389 2014-01-22 Marek Polacek <polacek@redhat.com>
1392 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1393 of remove_c_maybe_const_expr on op1 and op2.
1395 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1398 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1399 effects, preevaluate rhs using SAVE_EXPR first.
1401 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
1404 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1405 statements with if-elseif statements.
1407 2014-01-06 Marek Polacek <polacek@redhat.com>
1410 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1411 defined bit-field types only in ISO C.
1413 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1415 Update copyright years
1417 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1419 * c-array-notation.c: Use the standard form for the copyright notice.
1421 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1423 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1424 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1425 field in parser is not empty. If not-empty, call the function
1426 c_parser_finish_omp_declare_simd.
1427 (c_parser_cilk_clause_vectorlength): Modified function to be shared
1428 between SIMD-enabled functions and #pragma simd. Added new parameter.
1429 (c_parser_cilk_all_clauses): Modified the usage of the function
1430 c_parser_cilk_clause_vectorlength as mentioned above.
1431 (c_parser_cilk_simd_fn_vector_attrs): New function.
1432 (c_finish_cilk_simd_fn_tokens): Likewise.
1433 (is_cilkplus_vector_p): Likewise.
1434 (c_parser_omp_clause_name): Added checking for "vectorlength,"
1435 "nomask," and "mask" strings in clause name.
1436 (c_parser_omp_all_clauses): Added 3 new case statements:
1437 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1438 PRAGMA_CILK_CLAUSE_NOMASK.
1439 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
1440 check for vector attribute and if so call the function
1441 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
1442 called the function c_finish_cilk_simd_fn_tokens.
1443 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1444 parser field is non-empty. If so, parse them as you would parse
1445 the omp declare simd pragma.
1446 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1447 Added a check when step is a parameter and flag it as error.
1448 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1449 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1452 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1454 * c-parser.c (c_parser_omp_parallel): Fix description.
1456 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1458 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1459 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1460 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1461 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1463 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1466 * c-parser.c (c_parser_alignas_specifier): Use
1467 c_sizeof_or_alignof_type instead of c_alignof.
1468 (c_parser_alignof_expression): Likewise, with min_alignof
1469 parameter depending on alignof spelling used.
1471 2013-12-04 Marek Polacek <polacek@redhat.com>
1474 * c-decl.c (start_function): Don't warn for missing prototype for
1477 2013-12-03 Marek Polacek <polacek@redhat.com>
1480 * c-decl.c (build_compound_literal): Allow compound literals with
1481 empty initial value.
1483 2013-12-02 Joseph Myers <joseph@codesourcery.com>
1486 * c-typeck.c (build_modify_expr): Diagnose assignment to
1487 expression with array type.
1489 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1492 * c-typeck.c (process_init_element): Do not treat a string as
1493 initializing a whole array when used with a designator for an
1496 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1499 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1500 an inline function following a static declaration.
1502 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1505 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1506 to p_name before calling c_parser_omp_teams instead of after.
1507 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1508 argument. Remove unused p_name variable.
1510 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1511 Jakub Jelinek <jakub@redhat.com>
1513 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1514 external_scope is NULL.
1516 2013-11-27 Tom de Vries <tom@codesourcery.com>
1517 Marc Glisse <marc.glisse@inria.fr>
1520 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1522 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1524 * c-typeck.c: Add required include files from gimple.h.
1526 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1528 * c-decl.c (define_label, shadow_tag_warned)
1529 (check_bitfield_type_and_width, grokdeclarator, grokparms,
1530 store_parm_decls_newstyle, store_parm_decls_oldstyle)
1531 (declspecs_add_type): Remove use of in_system_header macro.
1532 * c-parser.c (c_parser_unary_expression): Likewise.
1533 * c-typeck.c (store_init_value, process_init_element)
1534 (c_start_case): Likewise.
1536 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1539 * c-parser.c (c_parser_set_source_position_from_token): Remove
1540 reference to in_system_header from comment.
1542 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1544 * c-decl.c (grokdeclarator): Update comment to refer to
1545 tree_to_[su]hwi rather than tree_low_cst.
1547 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1549 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1550 tree_to_uhwi throughout.
1552 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1554 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1557 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1559 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1562 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1564 * c-parser.c (c_parser_cilk_simd): New.
1565 (c_parser_cilk_verify_simd): New.
1566 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1567 (c_parser_omp_for_loop): Add case for NE_EXPR.
1568 Set c_break_label for CILK_SIMD.
1569 (c_parser_cilk_clause_vectorlength): New.
1570 (c_parser_cilk_clause_linear): New.
1571 (c_parser_cilk_clause_name): New.
1572 (c_parser_cilk_all_clauses): New.
1573 * c-typeck.c (build_unary_op): Pass location argument to
1575 (build_modify_expr): Same.
1576 (build_asm_expr): Same.
1577 (c_finish_bc_stmt): Error on break/continue in loops.
1579 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1581 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1583 2013-11-14 Diego Novillo <dnovillo@google.com>
1585 * c-decl.c: Include print-tree.h.
1586 Include stor-layout.h.
1589 Include stringpool.h.
1590 * c-lang.c: Include fold-const.h.
1591 * c-parser.c: Include stringpool.h.
1593 Include stor-layout.h.
1595 Include trans-mem.h.
1596 * c-typeck.c: Include stor-layout.h.
1597 Include trans-mem.h.
1601 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1603 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1604 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1606 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1607 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1609 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1610 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1611 (c_parser_declarator, c_parser_direct_declarator_inner)
1612 (c_parser_parameter_declaration, c_parser_type_name): All callers
1614 (c_parser_declaration_or_fndef): Handle declarations with type
1615 determined from the initializer.
1617 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1619 * c-typeck.c: Include gimplify.h.
1621 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1623 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1624 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1626 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1627 or _Thread_local as appropriate in diagnostics.
1628 (build_null_declspecs): Initialize ret->thread_gnu_p.
1629 (declspecs_add_scspec): Handle either __thread or _Thread_local
1630 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
1631 pedantic. Do not disallow _Thread_local extern and _Thread_local
1634 2013-11-07 Joseph Myers <joseph@codesourcery.com>
1635 Andrew MacLeod <amacleod@redhat.com>
1637 * c-aux-info.c (gen_type): Handle atomic qualifier.
1638 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1639 qualifiers when compating types.
1640 (shadow_tag_warned): Handle atomic_p in declspecs.
1641 (quals_from_declspecs): Likewise.
1642 (start_decl): Use c_type_promotes_to when promoting argument
1644 (grokdeclarator): Handle _Atomic.
1645 (get_parm_info): Diagnose any qualifier on "void" as only
1647 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1648 comparing types. Use c_type_promotes_to when promoting argument
1650 (finish_function): Use c_type_promotes_to when promoting argument
1652 (build_null_declspecs): Handle atomic_p in declspecs.
1653 (declspecs_add_qual): Handle RID_ATOMIC.
1654 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1655 (c_token_starts_declspecs): Handle RID_ATOMIC.
1656 (c_parser_declspecs): Handle atomic type specifiers and
1658 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1659 from types of expressions with atomic type.
1660 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1661 (c_parser_attribute_any_word): Handle RID_ATOMIC.
1662 (c_parser_initializer, c_parser_initelt, c_parser_initval)
1663 (c_parser_statement_after_labels, c_parser_switch_statement)
1664 (c_parser_for_statement, c_parser_expr_no_commas)
1665 (c_parser_conditional_expression, c_parser_binary_expression)
1666 (c_parser_cast_expression, c_parser_unary_expression)
1667 (c_parser_postfix_expression)
1668 (c_parser_postfix_expression_after_primary, c_parser_expression):
1669 Use convert_lvalue_to_rvalue.
1670 (c_parser_expression_conv, c_parser_expr_list): Document
1671 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
1672 (c_parser_objc_synchronized_statement): Use
1673 convert_lvalue_to_rvalue.
1674 (c_parser_objc_selector): Handle RID_ATOMIC.
1675 (c_parser_objc_receiver, c_parser_array_notation): Use
1676 convert_lvalue_to_rvalue.
1677 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1678 _Atomic (type-name).
1679 (struct c_declspecs): Add atomic_p field.
1680 (convert_lvalue_to_rvalue): Declare.
1681 * c-typeck.c (c_type_promotes_to): Promote atomic types to
1682 corresponding atomic types.
1683 (qualify_type): Don't add _Atomic qualifiers from second argument.
1684 (comp_target_types): Do not allow _Atomic mismatches.
1685 (type_lists_compatible_p): Do not remove atomic qualifiers when
1687 (really_atomic_lvalue, convert_lvalue_to_rvalue)
1688 (build_atomic_assign): New functions.
1689 (build_unary_op): Use build_atomic_assign for atomic increment and
1691 (build_conditional_expr): Do not treat _Atomic void as a qualified
1693 (build_modify_expr): Use build_atomic_assign for atomic LHS.
1694 (find_anonymous_field_with_type, convert_to_anonymous_field)
1695 (convert_for_assignment): Do not remove atomic qualifiers when
1697 (digest_init): Do not accept initialization of arrays of atomic
1698 elements by string constants.
1699 (build_asm_expr): Use convert_lvalue_to_rvalue.
1700 (build_binary_op): Do not treat _Atomic void as a qualified
1703 2013-11-06 DJ Delorie <dj@redhat.com>
1705 * c-decl.c (locate_old_decl): If a previous conflicting decl is
1706 both explicit and builtin, print the location of the explicit one.
1708 2013-11-05 Tobias Burnus <burnus@net-b.de>
1710 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1711 c_parser_omp_distribute, c_parser_omp_teams,
1712 c_parser_omp_target, c_parser_omp_declare): Handle
1715 2013-11-03 Marek Polacek <polacek@redhat.com>
1717 * c-decl.c (grokdeclarator): Add VLA instrumentation.
1719 2013-11-01 Jakub Jelinek <jakub@redhat.com>
1721 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1722 check_dup_generic at the end, unless remove is true.
1723 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1725 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1727 2013-10-31 Jakub Jelinek <jakub@redhat.com>
1729 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1730 with decl that is not pointer nor array.
1732 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1734 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1735 a spawning function is found.
1736 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1737 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1738 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1739 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1741 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1742 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1744 (c_finish_return): Added a check to reject _Cilk_spawn in return
1746 (build_cilk_spawn): New function.
1747 (build_cilk_sync): Likewise.
1748 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1750 2013-10-27 Tobias Burnus <burnus@net-b.de>
1753 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1754 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1755 (c_parser_statement_after_labels): Update calls.
1757 2013-10-24 Tobias Burnus <burnus@net-b.de>
1760 * c-parser.c (c_parser_pragma, c_parser_for_statement):
1761 Handle PRAGMA_IVDEP.
1762 (c_parser_statement_after_labels): Update call.
1764 2013-10-24 Marek Polacek <polacek@redhat.com>
1766 * c-parser.c (c_parser_struct_declaration): Add a comment.
1767 (c_parser_declarator): Don't allow _Alignas here.
1769 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
1771 * c-parser.c: Include omp-low.h.
1772 * c-typeck.c: Likewise.
1774 2013-10-17 Marek Polacek <polacek@redhat.com>
1777 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1778 Document syntax of the array-declarator.
1779 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1781 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1782 (c_parser_struct_declaration): Likewise.
1783 (c_parser_declarator): Likewise.
1784 (c_parser_direct_declarator_inner): Likewise.
1785 (c_parser_parameter_declaration): Likewise.
1786 (c_parser_type_name): Likewise.
1788 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1790 * c-lang.h (current_omp_declare_target_attribute): New extern
1792 * c-parser.c: Include c-lang.h.
1793 (struct c_parser): Change tokens to c_token *.
1794 Add tokens_buf field. Change tokens_avail type to unsigned int.
1795 (c_parser_consume_token): If parser->tokens isn't
1796 &parser->tokens_buf[0], increment parser->tokens.
1797 (c_parser_consume_pragma): Likewise.
1798 (enum pragma_context): Add pragma_struct and pragma_param.
1799 (c_parser_external_declaration): Adjust
1800 c_parser_declaration_or_fndef caller.
1801 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1802 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1803 Adjust recursive call.
1804 (c_parser_struct_or_union_specifier): Use pragma_struct instead
1806 (c_parser_parameter_declaration): Use pragma_param instead of
1808 (c_parser_compound_statement_nostart, c_parser_label,
1809 c_parser_for_statement): Adjust
1810 c_parser_declaration_or_fndef callers.
1811 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1812 it through to c_parser_conditional_expression.
1813 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1814 pass it through to c_parser_binary_expression. Adjust recursive
1816 (c_parser_binary_expression): Remove prec argument, add
1817 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
1818 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1819 binop matches it, use build2 instead of parser_build_binary_op.
1820 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1821 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1822 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1823 Handle pragma_struct and pragma_param the same as pragma_external.
1824 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1825 (c_parser_omp_variable_list): Parse array sections for
1826 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1827 (c_parser_omp_clause_collapse): Fully fold collapse expression.
1828 (c_parser_omp_clause_reduction): Handle user defined reductions.
1829 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1830 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1831 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1832 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1833 c_parser_omp_clause_depend, c_parser_omp_clause_map,
1834 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1835 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1836 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1837 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
1838 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
1839 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1840 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
1841 (c_parser_omp_for_loop): Add CODE argument, pass it through
1842 to c_finish_omp_for. Change last argument to cclauses,
1843 and adjust uses to grab parallel clauses from the array of all
1844 the split clauses. Adjust c_parser_binary_expression,
1845 c_parser_declaration_or_fndef and c_finish_omp_for callers.
1846 (omp_split_clauses): New function.
1847 (c_parser_omp_simd): New function.
1848 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1849 Allow the function to be called also when parsing combined constructs,
1850 and call c_parser_omp_simd when parsing for simd.
1851 (c_parser_omp_sections_scope): If section-sequence doesn't start with
1852 #pragma omp section, require exactly one structured-block instead of
1853 sequence of statements.
1854 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1855 Allow the function to be called also when parsing combined constructs.
1856 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1857 Allow the function to be called also when parsing combined
1859 (c_parser_omp_taskgroup, c_parser_omp_cancel,
1860 c_parser_omp_cancellation_point, c_parser_omp_distribute,
1861 c_parser_omp_teams, c_parser_omp_target_data,
1862 c_parser_omp_target_update, c_parser_omp_target,
1863 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1864 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1865 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1866 (c_parser_omp_construct): Add p_name and mask vars. Handle
1867 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1868 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
1869 and c_parser_omp_sections callers.
1870 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1871 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1872 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1873 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
1874 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
1876 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1877 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1878 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1879 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1880 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1881 * c-typeck.c: Include tree-inline.h.
1882 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1883 handle_omp_array_sections_1, handle_omp_array_sections,
1884 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1885 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1886 user defined reductions.
1887 (c_tree_equal): New function.
1888 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1889 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1890 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1891 c_check_omp_declare_reduction_r): New prototypes.
1892 * c-decl.c (current_omp_declare_target_attribute): New variable.
1893 (c_decl_attributes): New function.
1894 (start_decl, start_function): Use it instead of decl_attributes.
1895 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1896 c_omp_reduction_decl, c_omp_reduction_lookup,
1897 c_check_omp_declare_reduction_r): New functions.
1899 2013-09-25 Tom Tromey <tromey@redhat.com>
1901 * Make-lang.in (c/gccspec.o): Remove.
1902 (CFLAGS-c/gccspec.o): New variable.
1903 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1904 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1905 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1907 2013-09-25 Tom Tromey <tromey@redhat.com>
1909 * Make-lang.in (c/gccspec.o): Don't use subshell.
1911 2013-09-18 Marek Polacek <polacek@redhat.com>
1914 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1915 Remove unnecessary check.
1917 2013-09-18 Marek Polacek <polacek@redhat.com>
1920 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1921 no_sanitize_undefined attribute.
1923 2013-09-13 Kai Tietz <ktietz@redhat.com>
1926 * c-decl.c (c_builtin_function_ext_scope): Remove
1927 wrong assumption that it is never called on prexisting
1930 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1932 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1934 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1936 * c-objc-common.c (c_tree_printer): Tidy.
1938 2013-08-30 Marek Polacek <polacek@redhat.com>
1940 * c-typeck.c (build_binary_op): Add division by zero and shift
1943 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
1944 Joseph Myers <joseph@codesourcery.com>
1947 * c-typeck.c (c_common_type): Prefer double_type_node over
1948 other REAL_TYPE types with the same precision.
1949 (convert_arguments): Likewise.
1951 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1953 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1954 (c_initialize_diagnostics): Call a destructor for the early printer.
1956 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1958 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1959 printer initialization.
1961 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
1964 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1965 check for truth values.
1966 (expand_array_notation_exprs): Added truth values case. Removed an
1967 unwanted else. Added for-loop to walk through subtrees in default
1970 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1972 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1974 2013-07-23 Joseph Myers <joseph@codesourcery.com>
1976 * c-parser.c (struct c_generic_association): Fix typo.
1978 2013-07-23 Tom Tromey <tromey@redhat.com>
1979 Joseph Myers <joseph@codesourcery.com>
1981 * c-parser.c (struct c_generic_association): New.
1982 (c_generic_association_d): New typedef.
1983 (c_parser_generic_selection): New function.
1984 (c_parser_postfix_expression): Handle RID_GENERIC.
1986 2013-07-13 Jason Merrill <jason@redhat.com>
1989 * c-decl.c (finish_struct): Check for too-large class.
1991 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1994 * c-typeck.c (set_init_index): When folding, check for index overflow.
1996 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1998 * c-parser.c (c_parser_array_notation): Removed rejection of array
1999 notations in an array of function pointers.
2001 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2003 * c-array-notation.c (make_triplet_val_inv): New function.
2004 (create_cmp_incr): Likewise.
2005 (create_array_refs): Likewise.
2006 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
2007 Also modularized common parts between functions and called the function.
2008 (build_array_notation_expr): Likewise.
2009 (fix_conditional_array_notations_1): Likewise.
2010 (fix_array_notation_expr): Likewise.
2011 (fix_array_notation_call_expr): Likewise.
2013 2013-06-18 Marek Polacek <polacek@redhat.com>
2016 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
2018 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
2020 * c-array-notation.c (build_array_notation_expr): Reject array notation
2021 mismatch between LHS and RHS even inside a call_expr. Also, removed
2022 a couple while statements that were dead code.
2024 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
2026 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
2027 excessive precision expressions in function parameters. Also removed
2028 couple unwanted while statements.
2030 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2032 * c-array-notation.c (expand_array_notation_exprs): Added
2033 ARRAY_NOTATION_REF case.
2035 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2037 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
2038 function to c-family/array-notation-common.c.
2039 (is_cilkplus_reduce_builtin): Likewise.
2040 (find_rank): Likewise.
2041 (extract_array_notation_exprs): Likewise.
2042 (replace_array_notations): Likewise.
2043 (find_inv_trees): Likewise.
2044 (replace_inv_trees): Likewise.
2045 (contains_array_notation_expr): Likewise.
2046 (find_correct_array_notation_type): Likewise.
2047 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
2048 (struct inv_list): Moved this to c-family/array-notation-common.c.
2049 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
2051 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
2053 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
2054 reduction functions outside the for-loop. Added a check if the fundecl
2055 is non-NULL. Finally, removed an unwanted if-statement, and made the
2058 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2060 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
2061 condition of the if-statement matches the rank of else-block and then-
2062 block when array notations are used.
2063 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
2064 expression after the entire function body is parsed.
2065 (c_parser_expr_no_commas): Delayed creating array notation expressions
2066 to the end of function parsing.
2067 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
2068 whole if-statement instead of just the condition.
2069 (expand_array_notation_exprs): Added MODIFY_EXPR case.
2071 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2074 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
2075 array to NULL_TREE if they are unused. Also added a check for the
2076 field to be NULL before its fields are used in future.
2078 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2081 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
2082 (build_array_notation_expr): Likewise.
2084 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2086 * c-typeck.c (build_array_ref): Added a check to see if array's
2087 index is greater than one. If true, then emit an error.
2088 (build_function_call_vec): Exclude error reporting and checking
2089 for builtin array-notation functions.
2090 (convert_arguments): Likewise.
2091 (c_finish_return): Added a check for array notations as a return
2092 expression. If true, then emit an error.
2093 (c_finish_loop): Added a check for array notations in a loop
2094 condition. If true then emit an error.
2095 (lvalue_p): Added a ARRAY_NOTATION_REF case.
2096 (build_binary_op): Added a check for array notation expr inside
2097 op1 and op0. If present, we call another function to find correct
2099 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
2100 * c-parser.c (c_parser_compound_statement): Check if array
2101 notation code is used in tree, if so, then transform them into
2103 (c_parser_expr_no_commas): Check if array notation is used in LHS
2104 or RHS, if so, then build array notation expression instead of
2106 (c_parser_postfix_expression_after_primary): Added a check for
2107 colon(s) after square braces, if so then handle it like an array
2108 notation. Also, break up array notations in unary op if found.
2109 (c_parser_direct_declarator_inner): Added a check for array
2111 (c_parser_compound_statement): Added a check for array notation in
2112 a stmt. If one is present, then expand array notation expr.
2113 (c_parser_if_statement): Likewise.
2114 (c_parser_switch_statement): Added a check for array notations in
2115 a switch statement's condition. If true, then output an error.
2116 (c_parser_while_statement): Similarly, but for a while.
2117 (c_parser_do_statement): Similarly, but for a do-while.
2118 (c_parser_for_statement): Similarly, but for a for-loop.
2119 (c_parser_unary_expression): Check if array notation is used in a
2120 pre-increment or pre-decrement expression. If true, then expand
2122 (c_parser_array_notation): New function.
2123 * c-array-notation.c: New file.
2124 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2126 2013-05-23 Mike Stump <mikestump@comcast.net>
2128 * c-typeck.c (convert_for_assignment): Handle references to memory
2131 2013-05-16 Jason Merrill <jason@redhat.com>
2133 * Make-lang.in (cc1$(exeext)): Use link mutex.
2135 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2137 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2138 to simply use OPT_Wpointer_arith.
2139 (build_unary_op): Likewise.
2141 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2144 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2145 argument. If set, or it temporarily for parsing of the first
2146 argument into force_folding_builtin_constant_p.
2147 (c_parser_postfix_expression): Adjust callers.
2149 2013-03-21 Richard Biener <rguenther@suse.de>
2151 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2152 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2154 2013-02-12 Marek Polacek <polacek@redhat.com>
2157 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2160 2013-01-24 Jakub Jelinek <jakub@redhat.com>
2163 * c-typeck.c (set_nonincremental_init_from_string): If
2164 constructor_max_index is NULL, treat it as if tree_int_cst_lt
2166 (process_init_element): Likewise.
2168 2012-12-20 Jakub Jelinek <jakub@redhat.com>
2171 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2172 argument, don't call default_function_array_conversion
2173 nor c_fully_fold here.
2174 (c_parser_asm_statement): Adjust callers.
2175 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2176 and outputs here, and call default_function_array_conversion
2177 on inputs that don't need to be addressable.
2179 2012-12-18 Jakub Jelinek <jakub@redhat.com>
2182 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2183 warning require that both c_common_unsigned_type as well as
2184 c_common_signed_type is the same for both mvl and mvr types.
2186 2012-11-16 Diego Novillo <dnovillo@google.com>
2188 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2190 * c-common.c: Use new vec API in vec.h.
2191 * c-common.h: Likewise.
2192 * c-gimplify.c: Likewise.
2193 * c-pragma.c: Likewise.
2194 * c-pretty-print.c: Likewise.
2195 * c-pretty-print.h: Likewise.
2196 * c-semantics.c: Likewise.
2197 * c-decl.c: Likewise.
2198 * c-parser.c: Likewise.
2199 * c-tree.h: Likewise.
2200 * c-typeck.c: Likewise.
2202 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2205 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2207 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2210 * c-decl.c (warn_if_shadowing): Do not warn if a variable
2211 shadows a function, unless the variable is a function or a
2212 pointer-to-function.
2214 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2217 * c-parser.c (struct c_tree_loc_pair): Removed.
2218 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2219 add location_t * and tree * arguments, fill in array of 3
2220 sizeof_arg trees and corresponding locs.
2221 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2222 c_parser_expr_list callers.
2223 (c_parser_postfix_expression_after_primary): Likewise. Pass
2224 array of 3 sizeof_arg trees and locs (corresponding to first
2225 3 arguments) to sizeof_pointer_memaccess_warning.
2227 2012-10-09 Lawrence Crowl <crowl@google.com>
2229 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2230 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2233 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2236 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2239 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2242 * c-typeck.c: Include c-common.h.
2243 (enum stv_conv): Moved to c-common.h.
2244 (scalar_to_vector): Moved to c-common.c.
2245 (build_binary_op): Adapt to scalar_to_vector's new prototype.
2246 * Make-lang.in: c-typeck.c depends on c-common.h.
2248 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2250 * c-decl.c (c_write_global_declarations): Fix handling of
2253 2012-09-30 Sharad Singhai <singhai@google.com>
2255 * c-decl.c (c_write_global_declarations): Use a different method
2256 to determine if the dump has ben initialized.
2258 2012-09-14 Joseph Myers <joseph@codesourcery.com>
2261 * c-typeck.c (c_cast_expr): When casting to a type requiring
2262 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2265 2012-09-14 Joseph Myers <joseph@codesourcery.com>
2268 * c-typeck.c (build_unary_op): Pass original argument of
2269 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2270 any C_MAYBE_CONST_EXPR, if it has integer operands.
2271 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2272 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2273 to c_objc_common_truthvalue_conversion, then remove any
2274 C_MAYBE_CONST_EXPR, if they have integer operands. Use
2275 c_objc_common_truthvalue_conversion not
2276 c_common_truthvalue_conversion.
2277 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2278 call note_integer_operands for arguments with integer operands
2279 that are not integer constants.
2281 2012-09-13 Jakub Jelinek <jakub@redhat.com>
2284 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2285 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2287 2012-08-31 Jakub Jelinek <jakub@redhat.com>
2290 * c-convert.c (convert): Don't call fold_convert_loc if
2291 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2292 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
2293 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2295 2012-08-24 Jakub Jelinek <jakub@redhat.com>
2298 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2299 for nested and empty_ok arguments in the call to
2300 c_parser_declaration_or_fndef.
2302 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2304 * c-tree.h (c_last_sizeof_arg): Declare.
2305 * c-parser.c (struct c_tree_loc_pair): New type.
2306 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
2308 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2309 (c_parser_postfix_expression_after_primary): Likewise. Call
2310 sizeof_pointer_memaccess_warning if needed.
2311 (sizeof_ptr_memacc_comptypes): New function.
2312 * c-typeck.c (c_last_sizeof_arg): New global variable.
2313 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2315 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2317 * c-lang.h (lang_decl): Add variable_size GTY option.
2319 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2321 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2322 * Make-lang.in: Fix dependencies.
2324 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2326 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2327 and add language Makefile hooks.
2328 * config-lang.in: New file.
2329 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2330 add the required "normal" config-lang.in rules.
2331 * c-lang.h: Moved from gcc/ to here.
2332 * c-tree.h: Likewise.
2333 * c-objc-common.c: Likewise.
2334 * c-objc-common.h: Likewise.
2335 * c-typeck.c: Likewise.
2336 * c-convert.c: Likewise.
2337 * c-lang.c: Likewise.
2338 * c-aux-info.c: Likewise.
2339 * c-errors.c: Likewise.
2340 * gccspec.c: Likewise.
2341 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
2342 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
2344 Copyright (C) 2012-2015 Free Software Foundation, Inc.
2346 Copying and distribution of this file, with or without modification,
2347 are permitted in any medium without royalty provided the copyright
2348 notice and this notice are preserved.