* config/pa/linux-atomic.c (__kernel_cmpxchg): Reorder arguments to
[official-gcc.git] / gcc / c / ChangeLog
blob15c2303c2de1e974606c174430bbf292944d34e0
1 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3         PR fortran/66605
4         * c-decl.c (finish_function): Call do_warn_unused_parameter.
6 2015-06-29  Marek Polacek  <polacek@redhat.com>
8         PR c/66322
9         * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
10         (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P.  Don't warn
11         about -Wswitch-bool here.
12         (do_case): Update c_add_case_label call.
13         (c_finish_case): Update c_do_switch_warnings call.
15 2015-06-27  Marek Polacek  <polacek@redhat.com>
17         * c-typeck.c: Use VECTOR_TYPE_P throughout.
19 2015-06-26  Marek Polacek  <polacek@redhat.com>
21         * c-array-notation.c (fix_builtin_array_notation_fn): Use
22         INDIRECT_REF_P.
23         * c-typeck.c (array_to_pointer_conversion): Likewise.
24         (build_unary_op): Likewise.
25         (c_finish_return): Likewise.
27 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
29         * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
30         * c-parser.c: Likewise.
32 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
34         * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
35         instead of pointer_hash.
36         (detect_field_duplicates): Likewise.
38 2015-06-25  Marek Polacek  <polacek@redhat.com>
40         * c-array-notation.c: Use VAR_P throughout.
41         * c-decl.c: Likewise.
42         * c-objc-common.c: Likewise.
43         * c-parser.c: Likewise.
44         * c-typeck.c: Likewise.
46 2015-06-25  Marek Polacek  <polacek@redhat.com>
48         * c-decl.c: Use is_global_var throughout.
49         * c-parser.c: Likewise.
50         * c-typeck.c: Likewise.
52 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
54         * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
55         * c-aux-info.c: Likewise.
56         * c-convert.c: Likewise.
57         * c-decl.c: Likewise.
58         * c-errors.c: Likewise.
59         * c-lang.c: Likewise.
60         * c-objc-common.c: Likewise.
61         * c-parser.c: Likewise.
62         * c-typeck.c: Likewise.
64 2015-06-11  Jan Hubicka  <hubicka@ucw.cz>
66         PR middle-end/66325
67         * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
68         variants.
70 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
72         * c-decl.c (pop_scope): Register the main translation unit
73         through the new debug hook.
75 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
77         * c-array-notation.c : Adjust include files.
78         * c-aux-info.c : Likewise.
79         * c-convert.c : Likewise.
80         * c-decl.c : Likewise.
81         * c-errors.c : Likewise.
82         * c-lang.c : Likewise.
83         * c-lang.h : Likewise.
84         * c-objc-common.c : Likewise.
85         * c-parser.c : Likewise.
86         * c-typeck.c : Likewise.
88 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
90         * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
91         immediately clobber it.
92         (c_write_global_declarations_1): Remove call to
93         check_global_declaration_1.
94         (c_write_global_declarations_2): Remove.
95         (c_write_final_cleanups): Rename from c_write_global_declarations.
96         Remove call to finalize_compilation_unit.
97         Remove calls to debugging hooks.
98         * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
99         * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
100         * c-tree.h: Remove c_write_global_declarations.
102 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
104         * c-array-notation.c: Adjust includes for restructured coretypes.h.
105         * c-aux-info.c: Likewise.
106         * c-convert.c: Likewise.
107         * c-decl.c: Likewise.
108         * c-errors.c: Likewise.
109         * c-lang.c: Likewise.
110         * c-objc-common.c: Likewise.
111         * c-parser.c: Likewise.
112         * c-typeck.c: Likewise.
114 2015-06-04  Marek Polacek  <polacek@redhat.com>
116         PR c/66341
117         * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
118         it is a lvalue.
120 2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
122         * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
123         Warn for empty struct.
124         (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
126 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
128         * c-decl.c (start_function): Call plugin before parsing.
129         (finish_function): Call plugin after parsing.
131 2015-06-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
133         PR c/49551
134         * c-decl.c (merge_decls): Merge DECL_COMMON.
136 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
138         * Make-lang.in (check_gcc_pallelize): Define.
140 2015-05-22  Marek Polacek  <polacek@redhat.com>
142         PR c/47043
143         * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
144         attributes.
146 2015-05-21  Marek Polacek  <polacek@redhat.com>
148         * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
149         DECL_BUILT_IN.
151 2015-05-20  Marek Polacek  <polacek@redhat.com>
153         * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
154         * c-typeck.c: Likewise.
156 2015-05-19  Marek Polacek  <polacek@redhat.com>
158         * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
160 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
162         PR middle-end/66199
163         * c-parser.c (c_parser_omp_for_loop): Don't add
164         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
165         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
166         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
167         constructs.
169 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
171         * c-typeck.c (build_array_ref): Use std::swap instead of explicit
172         swaps.
174 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
176         PR fortran/44054
177         * c-objc-common.c (c_tree_printer): Replace locus pointer with
178         accessor function.
180 2015-05-14  Marek Polacek  <polacek@redhat.com>
182         PR c/66066
183         PR c/66127
184         * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
185         rather than with 0.
187 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
189         * c-parser.c (c_parser_if_body): Add param "if_loc", use it
190         to add a call to warn_for_misleading_indentation.
191         (c_parser_else_body): Likewise, adding param "else_loc".
192         (c_parser_if_statement): Check for misleading indentation.
193         (c_parser_while_statement): Likewise.
194         (c_parser_for_statement): Likewise.
196 2015-05-08  Marek Polacek  <polacek@redhat.com>
198         PR c/64918
199         * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
200         (output_init_element): Likewise.
202 2015-05-07  Marek Polacek  <polacek@redhat.com>
204         PR c/65179
205         * c-typeck.c (build_binary_op): Warn when left shifting a negative
206         value.
208 2015-04-30  Marek Polacek  <polacek@redhat.com>
210         * c-typeck.c (set_init_label): Call error_at instead of error and
211         pass LOC to it.
213         * c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
214         the type of a decl.
216         * c-typeck.c (c_build_va_arg): Clarify the error message.
218 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
220         * c-parser.c (c_parser_oacc_enter_exit_data): Use
221         OMP_STANDALONE_CLAUSES.
223 2015-04-28  Marek Polacek  <polacek@redhat.com>
225         * c-parser.c (c_parser_binary_expression): Remove duplicate line.
227 2015-04-28  Marek Polacek  <polacek@redhat.com>
229         PR c/65901
230         * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
232 2015-04-25  Marek Polacek  <polacek@redhat.com>
234         PR c/52085
235         * c-decl.c (finish_enum): Copy over TYPE_ALIGN.  Also check for "mode"
236         attribute.
238 2015-04-23  Marek Polacek  <polacek@redhat.com>
240         PR c/65345
241         * c-decl.c (set_labels_context_r): New function.
242         (store_parm_decls): Call it via walk_tree_without_duplicates.
243         * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
244         instead of create_tmp_var.  Build TARGET_EXPR instead of
245         COMPOUND_EXPR.
246         (build_atomic_assign): Use create_tmp_var_raw instead of
247         create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.
249 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
251         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
252         (c_parser_omp_target_update): Add missed %> to error_at ().
254 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
256         PR target/55143
257         * c-decl.c (c_default_pointer_mode): Remove definition.
258         * c-tree.h (c_default_pointer_mode): Remove declaration.
260 2015-03-27  Tobias Burnus  <burnus@net-b.de>
262         PR c/65586
263         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
264         error out.
265         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
266         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
267         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
269 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
271         * c-decl.c (c_decl_attributes): Also add "omp declare target"
272         attribute for DECL_EXTERNAL VAR_DECLs.
274 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
276         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
277         argument.
279 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
281         PR c/65120
282         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
283         before preparing arguments to warn_logical_not_parentheses.
285 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
287         PR c/65120
288         * c-typeck.c (parser_build_binary_op): Don't warn for
289         !!x == y or !b == y where b is _Bool.
291 2015-03-09  Marek Polacek  <polacek@redhat.com>
293         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
294         * c-decl.c (grokdeclarator): Likewise.
295         * c-typeck.c (build_binary_op): Likewise.
297 2015-02-27  Marek Polacek  <polacek@redhat.com>
299         PR c/65228
300         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
302 2015-02-14  Marek Polacek  <polacek@redhat.com>
304         PR c/64768
305         * c-decl.c (grokdeclarator): Set the range of a flexible array member
306         declared through a typedef name.
308 2015-02-13  Marek Polacek  <polacek@redhat.com>
310         PR c/65050
311         * c-decl.c (grokdeclarator): Print also the type when giving
312         the error message about array's incomplete element type.
314 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
316         PR c/64824
317         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
318         check in the POP macro.
320 2015-02-09  Marek Polacek  <polacek@redhat.com>
322         PR c/64856
323         * c-typeck.c (process_init_element): Don't always wrap
324         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
325         initializing a range of elements.
327 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
329         PR c/64824
330         PR c/64868
331         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
333 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
335         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
336         processing enum declaration.
338 2015-01-29  Marek Polacek  <polacek@redhat.com>
340         PR c/64709
341         * c-typeck.c (pop_init_level): If constructor_elements has
342         exactly one element with integer_zerop value, set constructor_zeroinit
343         to 1.  Remove braces around warning_init call.
345 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
347         PR c/64766
348         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
349         of FUNCTION_DECLs with error_mark_node.
351 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
353         PR c/64778
354         * c-typeck.c (convert_arguments): Return -1 if there are
355         error_args, even if we've diagnosed too many arguments.
357 2015-01-21  Richard Biener  <rguenther@suse.de>
359         PR middle-end/64313
360         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
361         for builtins the user declared correctly.
363 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
364             Bernd Schmidt  <bernds@codesourcery.com>
365             Cesar Philippidis  <cesar@codesourcery.com>
366             James Norris  <jnorris@codesourcery.com>
367             Jakub Jelinek  <jakub@redhat.com>
368             Ilmir Usmanov  <i.usmanov@samsung.com>
370         * c-parser.c: Include "gomp-constants.h".
371         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
372         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
373         Use OMP_CLAUSE_SET_MAP_KIND.
374         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
375         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
376         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
377         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
378         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
379         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
380         "copyout", "create", "delete", "deviceptr", "gang", "host",
381         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
382         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
383         "present_or_create", "pcreate", "seq", "self", "vector",
384         "vector_length", "wait", "worker".
385         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
386         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
387         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
388         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
389         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
390         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
391         (c_parser_oacc_data_clause_deviceptr)
392         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
393         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
394         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
395         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
396         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
397         (c_parser_oacc_parallel, c_parser_oacc_update)
398         (c_parser_oacc_wait): New functions.
399         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
400         (c_finish_oacc_data): New prototypes.
401         * c-typeck.c: Include "gomp-constants.h".
402         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
403         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
404         OMP_CLAUSE_SET_MAP_KIND.
405         (c_finish_oacc_parallel, c_finish_oacc_kernels)
406         (c_finish_oacc_data): New functions.
407         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
408         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
409         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
410         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
411         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
412         GOMP_MAP_FORCE_DEVICEPTR.
414 2015-01-09  Michael Collison  <michael.collison@linaro.org>
416         * c-array-notation.c: Include hash-set.h, machmode.h,
417         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
418         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
419         * c-aux-info.c: Ditto.
420         * c-convert.c: Ditto.
421         * c-decl.c: Ditto.
422         * c-errors.c: Ditto.
423         * c-lang.c: Dittoxs.
424         * c-objc-common.c: Ditto.
425         * c-parser.c: Ditto.
426         * c-typeck.c: Include hash-set.h, machmode.h,
427         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
428         fold-const.h, wide-int.h, inchash.h, real.h and
429         fixed-value.h due to flattening of tree.h.
431 2015-01-07  Marek Polacek  <polacek@redhat.com>
433         PR c/64417
434         * c-typeck.c (process_init_element): Disallow initialization of
435         a flexible array member with a string constant if the structure
436         is in an array.
438 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
440         PR sanitizer/64344
441         * c-typeck.c (convert_for_assignment, c_finish_return): For
442         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
443         types also set in_late_binary_op around convert call.
444         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
445         to integral type casts, if not in_late_binary_op, pass c_fully_fold
446         result on expr as last argument to ubsan_instrument_float_cast,
447         if in_late_binary_op, don't use c_save_expr but save_expr.
449         Update copyright years.
451 2015-01-05  Marek Polacek  <polacek@redhat.com>
453         PR c/64423
454         * c-typeck.c (build_array_ref): Pass loc down to
455         warn_array_subscript_with_type_char.
457 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
459         * c-typeck.c: New behavious for pointers to arrays with qualifiers
460         (common-pointer-type): For pointers to arrays take qualifiers from
461         element type.
462         (build_conditional_expr): Add warnings for lost qualifiers.
463         (comp-target-types): Allow pointers to arrays with different qualifiers.
464         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
465         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
466         to PEDWARN_FOR_QUALIFIERS.
468 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
470         PR sanitizer/64289
471         * c-convert.c: Include ubsan.h.
472         (convert): For real -> integral casts and
473         -fsanitize=float-cast-overflow don't call convert_to_integer, but
474         instead instrument the float cast directly.
476 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
478         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
479         c_finish_stmt_expr): Remove NULL last argument from
480         create_tmp_var_raw and create_tmp_var calls.
481         * c-array-notation.c (fix_builtin_array_notation_fn,
482         build_array_notation_expr, fix_conditional_array_notations_1,
483         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
485 2014-11-28  Marek Polacek  <polacek@redhat.com>
487         PR c/63862
488         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
489         convert the right operand to integer type.
491 2014-11-25  Marek Polacek  <polacek@redhat.com>
493         PR c/63877
494         * c-decl.c (start_function): Disable -Wmissing-declarations warning
495         for inline functions.
497 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
499         PR target/63764
500         * c-typeck.c (build_array_ref): Adjust
501         convert_vector_to_pointer_for_subscript caller.  If it returns true,
502         call non_lvalue_loc on the result.
504 2014-11-11  Richard Biener  <rguenther@suse.de>
506         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
507         to true.
509 2014-11-10  Andi Kleen  <ak@linux.intel.com>
511         PR c/60804
512         * c-parser.c (c_parser_statement_after_labels): Call
513         check_no_cilk.
514         (c_parser_if_statement): Dito.
515         (c_parser_switch_statement): Dito.
516         (c_parser_while_statement): Dito.
517         (c_parser_do_statement): Dito.
518         (c_parser_for_statement): Dito.
519         * c-typeck.c (c_finish_loop): Dito.
521 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
523         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
524         OPT_Wshift_count_overflow in the warnings.
526 2014-10-30  Marek Polacek  <polacek@redhat.com>
528         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
529         print the stripped version as well, if they're not the same.
531 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
533         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
534         machine_mode.
536 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
538         * c-decl.c: Adjust include files.
539         * c-parser.c: Ditto.
541 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
542             Tom Tromey  <tromey@redhat.com>
544         * c-tree.h (enum c_oracle_request): New.
545         (c_binding_oracle_function): New typedef.
546         (c_binding_oracle, c_pushtag, c_bind): Declare.
547         * c-decl.c (c_binding_oracle): New global.
548         (I_SYMBOL_CHECKED): New macro.
549         (i_symbol_binding): New function.
550         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
551         (I_TAG_CHECKED): New macro.
552         (i_tag_binding): New function.
553         (I_TAG_BINDING, I_TAG_DECL): Redefine.
554         (I_LABEL_CHECKED): New macro.
555         (i_label_binding): New function.
556         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
557         (c_print_identifier): Save and restore c_binding_oracle.
558         (c_pushtag, c_bind): New functions.
560 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
562         * c-typeck.c: Adjust include files.
564 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
566         PR c++/53061
567         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
568         initialization here...
569         (c_initialize_diagnostics): ... but here. Set defaults after
570         building pretty-printer.
572 2014-10-23  Marek Polacek  <polacek@redhat.com>
574         PR c/63626
575         * c-decl.c (pop_scope): Don't print warning in external_scope.
577 2014-10-19  Marek Polacek  <polacek@redhat.com>
579         PR c/63567
580         * c-typeck.c (output_init_element): Allow initializing objects with
581         static storage duration with compound literals even in C99 and add
582         pedwarn for it.
584 2014-10-17  Marek Polacek  <polacek@redhat.com>
586         PR c/63567
587         * c-typeck.c (digest_init): Allow initializing objects with static
588         storage duration with compound literals even in C99 and add pedwarn
589         for it.
591 2014-10-17  Marek Polacek  <polacek@redhat.com>
593         PR c/63543
594         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
595         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
596         error multiple times.  Print the type.
598 2014-10-17  Marek Polacek  <polacek@redhat.com>
600         PR c/63549
601         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
602         type.
604 2014-10-17  Marek Polacek  <polacek@redhat.com>
606         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
607         (start_function): Use OPT_Wimplicit_int instead of 0.
608         (store_parm_decls_oldstyle): Likewise.
610 2014-10-17  Alan Modra  <amodra@gmail.com>
612         PR middle-end/61848
613         * c-decl.c (merge_decls): Don't merge section name or tls model
614         to newdecl symtab node, instead merge to olddecl.  Override
615         existing olddecl section name.  Set tls_model for all thread-local
616         vars, not just OMP thread-private ones.  Remove incorrect comment.
618 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
620         * c-decl.c: Adjust include files.
622 2014-10-14  DJ Delorie  <dj@redhat.com>
624         * c-parser.c (c_parse_init): Add RID entries for each __intN.
625         (c_token_starts_typename): Check all __intN, not just __int128.
626         (c_token_starts_declspecs): Likewise.
627         (c_parser_declspecs): Likewise.
628         (c_parser_attribute_any_word): Likewise.
629         (c_parser_objc_selector): Likewise.
630         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
631         (struct c_declspecs): Add int_n_idx field to record *which* __intN
632         is specified.
633         * c-decl.c (declspecs_add_type): Check for all __intN, not just
634         __int128.
635         (finish_declspecs): Likewise.
637 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
639         * c-parser.c (c_parser_all_labels): New function to replace
640         the duplicate code.
641         (c_parser_statement): Call the new function.
643 2014-10-09  Marek Polacek  <polacek@redhat.com>
645         PR c/63480
646         * c-typeck.c (pop_init_level): Don't warn about initializing
647         with { }.
649 2014-10-07  Marek Polacek  <polacek@redhat.com>
651         PR c/59717
652         * c-decl.c (header_for_builtin_fn): New function.
653         (implicitly_declare): Suggest which header to include.
655 2014-10-07  Marek Polacek  <polacek@redhat.com>
657         * c-convert.c (convert): Use error_operand_p.
658         * c-typeck.c (require_complete_type): Likewise.
659         (really_atomic_lvalue): Likewise.
660         (digest_init): Likewise.
661         (handle_omp_array_sections_1): Likewise.
663 2014-10-03  Marek Polacek  <polacek@redhat.com>
665         PR c/63453
666         * c-decl.c (pop_scope): Don't warn about "inline function declared
667         but never defined" for functions marked with gnu_inline attribute.
669 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
671         PR c++/63249
672         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
673         on low_bound and length.
675 2014-09-24  Marek Polacek  <polacek@redhat.com>
677         PR c/61405
678         PR c/53874
679         * c-parser.c: Don't define CPP_KEYWORD.
680         (c_parser_switch_statement): Pass original type to c_finish_case.
681         * c-tree.h (c_finish_case): Update declaration.
682         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
683         conditionally to c_do_switch_warnings.
685 2014-09-03  Marek Polacek  <polacek@redhat.com>
687         PR c/62024
688         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
689         conversions.
691 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
692             Balaji V. Iyer  <balaji.v.iyer@intel.com>
693             Igor Zamyatin  <igor.zamyatin@intel.com>
695         * c-parser.c (c_parser_cilk_for): New function.
696         (c_parser_cilk_grainsize): Likewise.
697         (c_get_temp_regvar): Likewise.
698         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
699         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
700         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
701         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
702         case.
704 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
706         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
707         with using HOST_WIDE_INT without truncation to 'int'
709 2014-08-22  Marek Polacek  <polacek@redhat.com>
711         PR c++/62199
712         * c-typeck.c (parser_build_binary_op): Adjust call to
713         warn_logical_not_parentheses.
715 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
717         PR other/62008
718         * c-parser.c (c_parser_array_notation): Check for correct
719         type of an array added.
721 2014-08-19  Marek Polacek  <polacek@redhat.com>
723         PR c++/62153
724         * c-typeck.c (build_binary_op): If either operand of a comparison
725         is a boolean expression, call maybe_warn_bool_compare.
727 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
729         PR c/45584
730         * c-typeck.c (build_c_cast): Do a conversion even when the
731         TYPE_MAIN_VARIANTs are the same.
733 2014-08-19  Marek Polacek  <polacek@redhat.com>
735         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
736         pedwarn_c99 instead of pedwarn.
737         (grokfield): Likewise.
738         (warn_defaults_to): New function.
739         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
740         Unconditionally call pedwarn_c99 instead of pedwarn.
741         (start_function): Call warn_defaults_to instead of pedwarn_c99.
742         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
743         check flag_isoc11 before.
744         * c-errors.c (pedwarn_c99): Change the return type to bool.
745         Handle -Wc99-c11-compat.
746         * c-parser.c (disable_extension_diagnostics): Handle
747         warn_c99_c11_compat.
748         (restore_extension_diagnostics): Likewise.
749         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
750         instead of pedwarn, don't check flag_isoc11 before.
751         (c_parser_declspecs): Likewise.
752         (c_parser_alignas_specifier): Likewise.
753         (c_parser_alignof_expression): Likewise.
754         (c_parser_generic_selection): Likewise.
755         * c-tree.h (pedwarn_c99): Update declaration.
756         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
757         of pedwarn_c99.
759 2014-08-19  Marek Polacek  <polacek@redhat.com>
761         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
762         to pedwarn_c90.
763         * c-errors.c: Include "opts.h".
764         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
765         * c-parser.c (disable_extension_diagnostics): Handle negative value
766         of warn_c90_c99_compat, too.
767         (restore_extension_diagnostics): Likewise.
768         (c_parser_compound_statement_nostart): Pass
769         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
771 2014-08-12  Marek Polacek  <polacek@redhat.com>
773         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
774         Add pedwarn.
775         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
776         Likewise.
777         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
779 2014-08-10 Marek Polacek  <polacek@redhat.com>
781         PR c/51849
782         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
783         Call pedwarn_c90 instead of pedwarn.
784         (check_bitfield_type_and_width): Likewise.
785         (declspecs_add_qual): Likewise.
786         (declspecs_add_type): Likewise.
787         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
788         Adjust to only call pedwarn_c90.
789         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
790         pedwarn_c90 instead of pedwarn.
791         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
792         * c-parser.c (disable_extension_diagnostics): Handle
793         warn_c90_c99_compat.
794         (restore_extension_diagnostics): Likewise.
795         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
796         pedwarn_c90 instead of pedwarn.
797         (c_parser_initelt): Likewise.
798         (c_parser_postfix_expression): Likewise.
799         (c_parser_postfix_expression_after_paren_type): Likewise.
800         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
801         * c-tree.h: Fix formatting.
802         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
803         pedwarn_c90 instead of pedwarn.
805 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
807         * c-typeck.c: Remove include of pointer-set.h.
809 2014-08-07  Marek Polacek  <polacek@redhat.com>
811         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
813 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
815         * c-typeck.c: Use hash_map instead of pointer_map.
817 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
819         * c-decl.c: Use hash_set instead of pointer_set.
821 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
823         PR middle-end/61455
824         * c-array-notation.c (expand_array_notations): Handling
825         of DECL_EXPR added.
827 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
829         PR c++/60517
830         * c-typeck.c (c_finish_return): Return 0 instead of the address of
831         a local variable.
833 2014-07-30  Tom Tromey  <tromey@redhat.com>
835         * c-typeck.c (struct constructor_stack) <designator_depth>: New
836         field.
837         (really_start_incremental_init, push_init_level): Initialize
838         designator_depth.
839         (pop_init_level): Set global designator_depth.
840         (process_init_element): Check for designated_init attribute.
842 2014-07-20  Marek Polacek  <polacek@redhat.com>
844         PR c/61852
845         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
846         (implicitly_declare): Pass location to implicit_decl_warning.
848 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
850         PR middle-end/61294
851         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
852         If non-NULL, call c_parser_check_literal_zero.
853         (c_parser_check_literal_zero): New function.
854         (c_parser_postfix_expression_after_primary): Adjust
855         c_parser_expr_list caller, handle -Wmemset-transposed-args.
857 2014-07-06  Marek Polacek  <polacek@redhat.com>
859         PR c/6940
860         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
861         * c-tree.h (C_ARRAY_PARAMETER): Define.
862         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
863         function parameter.
865 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
866             Chen Gang <gang.chen.5i5j@gmail.com>
868         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
869         releasing symbol.
871 2014-07-01  Marek Polacek  <polacek@redhat.com>
873         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
874         instead of 0 to WARN_FOR_ASSIGNMENT.
876 2014-07-01  Marek Polacek  <polacek@redhat.com>
878         PR c/58286
879         * c-typeck.c (convert_for_assignment): Pass
880         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
882 2014-06-30  Marek Polacek  <polacek@redhat.com>
884         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
885         has no_sanitize_undefined attribute.
887 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
889         PR middle-end/57541
890         * c-array-notation.c (fix_builtin_array_notation_fn):
891         Check for 0 arguments in builtin call. Check that bultin argument is
892         correct.
893         * c-parser.c (c_parser_array_notation): Check for incorrect initial
894         index.
896 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
898         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
899         qualifiers in __auto_type for atomic types.
900         (c_parser_typeof_specifier): Discard all type qualifiers in
901         __typeof__ for atomic types.
903 2014-06-25  Marek Polacek  <polacek@redhat.com>
905         PR c/61162
906         * c-parser.c (c_parser_statement_after_labels): Pass the location of
907         the return expression to c_finish_return.
909 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
911         * c-typeck.c (c_finish_omp_clauses): Make sure
912         OMP_CLAUSE_LINEAR_STEP has correct type.
914 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
916         * c-decl.c: Adjust.
918 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
920         * c-parser.c (c_parser_omp_for_loop): For
921         #pragma omp parallel for simd move lastprivate clause from parallel
922         to for rather than simd.
924 2014-06-23  Marek Polacek  <polacek@redhat.com>
926         * c-typeck.c (parser_build_binary_op): Don't call
927         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
929 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
931         * c-parser.c (c_parser_omp_threadprivate): Likewise.
932         * c-decl.c (merge_decls): Likewise.
934 2014-06-09  Marek Polacek  <polacek@redhat.com>
936         PR c/36446
937         * c-typeck.c (error_init): Call inform instead of error_at.
938         (pedwarn_init): Call inform instead of pedwarn.
939         (warning_init): Call inform instead of warning_at.
941 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
943         * c-decl.c (merge_decls): Use set_decl_section_name.
944         (duplicate_decls): Remove node if it exists.
946 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
948         PR c/53119
949         * c-typeck.c (push_init_level, process_init_element,
950         pop_init_level): Correct check for zero initialization, move
951         missing brace warning to respect zero initialization.
953 2014-06-05  Marek Polacek  <polacek@redhat.com>
955         PR c/56724
956         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
958 2014-06-05  Marek Polacek  <polacek@redhat.com>
960         PR c/49706
961         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
962         on the left hand side operand of a comparison. 
964 2014-06-05  Marek Polacek  <polacek@redhat.com>
966         PR c/48062
967         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
968         Print note only if the warning was printed.
970 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
972         PR c/58942
973         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
974         with a pointer.
976 2014-06-03  Marek Polacek  <polacek@redhat.com>
978         PR c/60439
979         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
980         c_start_case.
981         * c-tree.h (c_start_case): Update.
982         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
983         switch condition has boolean value.
985 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
987         * c-decl.c: Include builtins.h.
988         * c-parser.c: Likewise.
990 2014-05-27  Marek Polacek  <polacek@redhat.com>
992         PR c/56724
993         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
994         error and warning calls to error_at and warning_at.  Pass location of
995         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
996         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
997         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
999 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
1001         PR c/61191
1002         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
1003         function parameters.
1005 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
1007         * c-decl.c (merge_decls): Preserve symtab node pointers.
1008         (duplicate_decls): Free new decl.
1010 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
1012         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
1013         initialization.
1015         * c-parser.c (c_parser_omp_target): Return bool values.
1017 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1019         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
1020         num_teams_loc variable to num_thread_limit_loc.
1022 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1024         * c-array-notation.c (expand_array_notations): Use void_node
1025         instead of void_zero_node.
1027 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1029         * c-decl.c (finish_struct): Adjust.
1030         (finish_enum): Likewise.
1031         (bind): Adjust.
1032         (record_inline_static): Likewise.
1033         (push_scope): Likewise.
1034         (make_label): Likewise.
1035         (lookup_label_for_goto): Likewise.
1036         (finish_struct): Likewise.
1037         (finish_enum): Likewise.
1038         (store_parm_decls): Likewise.
1039         (c_push_function_context): Likewise.
1040         * c-lang.h: Remove usage of variable_size gty attribute.
1041         * c-parser.c (c_parse_init): Adjust.
1042         (c_parse_file): Likewise.
1044 2014-05-13  Marek Polacek  <polacek@redhat.com>
1046         PR c/61162
1047         * c-typeck.c (convert_for_assignment): Pass location to
1048         WARN_FOR_ASSIGNMENT instead of input_location.
1050 2014-05-10  Marek Polacek  <polacek@redhat.com>
1052         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
1053         maybe_warn_string_init.
1054         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
1055         maybe_warn_string_init.
1056         * c-tree.h (maybe_warn_string_init): Update declaration.
1057         * c-typeck.c (maybe_warn_string_init): Add location parameter.
1058         Call pedwarn_init with loc instead of with input_location.
1059         (digest_init): Pass init_loc to maybe_warn_string_init.
1060         (pop_init_level): Call pedwarn_init with loc instead of with
1061         input_location.
1062         (set_init_index): Likewise.
1063         (process_init_element): Likewise.
1065 2014-05-09  Marek Polacek  <polacek@redhat.com>
1067         PR c/61096
1068         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
1069         (c_parser_initelt): Pass location to set_init_label.  Pass array index
1070         location to set_init_index.
1071         * c-tree.h (push_init_level): Update declaration.
1072         (pop_init_level): Likewise.
1073         (set_init_index): Likewise.
1074         (set_init_label): Likewise.
1075         * c-typeck.c (error_init): Add location parameter.  Call error_at
1076         instead of error.
1077         (digest_init): Pass init_loc to error_init.
1078         (really_start_incremental_init):
1079         (push_init_level): Add location parameter.  Pass loc to pop_init_level
1080         and error_init.
1081         (pop_init_level): Likewise.
1082         (set_designator): Add location parameter.  Pass loc to pop_init_level,
1083         push_init_level, and error_init.
1084         (set_init_index): Add location parameter.  Pass loc to error_init and
1085         set_designator.
1086         (set_init_label): Likewise.
1087         (output_init_element): Pass loc to error_init.
1088         (process_init_element): Pass loc to error_init, pop_init_level,
1089         pedwarn_init, and push_init_level.
1091 2014-05-09  Marek Polacek  <polacek@redhat.com>
1093         PR c/50459
1094         * c-parser.c (c_parser_attributes): Parse the arguments as an
1095         expression-list if the attribute takes identifier.
1097 2014-05-08  Marek Polacek  <polacek@redhat.com>
1099         PR c/61053
1100         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
1101         TYPE_ALIGN_UNIT.
1103 2014-05-08  Marek Polacek  <polacek@redhat.com>
1105         PR c/61077
1106         * c-decl.c (start_function): Warn for _Atomic-qualified return type
1107         of main.
1109 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1110             Mike Stump  <mikestump@comcast.net>
1111             Richard Sandiford  <rdsandiford@googlemail.com>
1113         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
1114         (finish_enum): Use wide-int interfaces.
1115         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
1116         * c-typeck.c (build_c_cast): Likewise.
1117         (set_nonincremental_init_from_string): Likewise.
1118         (c_tree_equal): Likewise.
1120 2014-05-02  Marek Polacek  <polacek@redhat.com>
1122         PR c/25801
1123         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
1124         Return size_one_node when the type is not complete.
1125         (pointer_diff): Remove comment.
1126         (build_unary_op): Improve error messages.
1128 2014-05-02  Marek Polacek  <polacek@redhat.com>
1130         * c-typeck.c (c_finish_return): Separate warning_at calls.
1132 2014-05-02  Marek Polacek  <polacek@redhat.com>
1134         * c-tree.h (error_init): Remove declaration.
1135         (pedwarn_init): Likewise.
1136         * c-typeck.c (error_init): Make static and move above.
1137         (pedwarn_init): Likewise.
1138         (warning_init): Move above.
1139         (maybe_warn_string_init): Likewise.
1141 2014-05-01  Jeff Law  <law@redhat.com>
1143         Revert:
1145         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1146         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1147         avoid goto.
1149 2014-05-02  Marek Polacek  <polacek@redhat.com>
1151         PR c/60784
1152         * c-typeck.c (push_init_level): Set constructor_designated to
1153         p->designated for structures.
1155 2014-05-01  Marek Polacek  <polacek@redhat.com>
1157         PR c/60915
1158         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1159         function-definition has an attribute after the declarator.
1161 2014-05-01  Marek Polacek  <polacek@redhat.com>
1163         PR c/60257
1164         * c-typeck.c (warning_init): Add location_t parameter.  Call
1165         warning_at instead of warning.
1166         (push_init_level): Pass input_location to warning_init.
1167         (add_pending_init): Add location_t parameter.  Pass loc to
1168         warning_init.
1169         (set_nonincremental_init): Pass input_location to add_pending_init.
1170         (set_nonincremental_init_from_string): Likewise.
1171         (output_init_element): Pass loc to warning_init and to
1172         add_pending_init.
1174 2014-05-01  Marek Polacek  <polacek@redhat.com>
1176         PR c/43395
1177         * c-typeck.c (c_finish_return): Distinguish between label and variable
1178         when warning about returning local address.
1180 2014-05-01  Marek Polacek  <polacek@redhat.com>
1182         PR c/29467
1183         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1184         in C89 mode.
1186 2014-05-01  Marek Polacek  <polacek@redhat.com>
1188         PR c/43245
1189         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1190         instead of 0 to WARN_FOR_QUALIFIERS.
1192 2014-05-01  Marek Polacek  <polacek@redhat.com>
1194         PR c/56989
1195         * c-typeck.c (default_conversion): Use better location for
1196         error call.
1198 2014-04-30  Marek Polacek  <polacek@redhat.com>
1200         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1201         also when SANITIZE_FLOAT_DIVIDE is on.
1203 2014-04-30  Marek Polacek  <polacek@redhat.com>
1205         PR c/60139
1206         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1207         and pedwarn_init.  Use loc insted of input_location.
1209 2014-04-30  Marek Polacek  <polacek@redhat.com>
1211         PR c/60351
1212         * c-typeck.c (build_binary_op): Use location when warning about
1213         shift count.
1215 2014-04-25  Marek Polacek  <polacek@redhat.com>
1217         PR c/18079
1218         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1219         always_inline/noinline and hot/cold attributes.
1221 2014-04-25  Marek Polacek  <polacek@redhat.com>
1223         PR c/60114
1224         * c-parser.c (c_parser_initelt): Pass input_location to
1225         process_init_element.
1226         (c_parser_initval): Pass loc to process_init_element.
1227         * c-tree.h (process_init_element): Adjust declaration.
1228         * c-typeck.c (push_init_level): Pass input_location to
1229         process_init_element.
1230         (pop_init_level): Likewise.
1231         (set_designator): Likewise.
1232         (output_init_element): Add location_t parameter.  Pass loc to
1233         digest_init.
1234         (output_pending_init_elements): Pass input_location to
1235         output_init_element.
1236         (process_init_element): Add location_t parameter.  Pass loc to
1237         output_init_element.
1239 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
1241         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1242         atomic-clause, allow comma in between atomic-clause and
1243         seq_cst.
1245 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1247         PR c/59073
1248         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1249         fails, don't set OM_PARALLEL_COMBINED and return NULL.
1251 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1253         PR middle-end/60469
1254         * c-array-notation.c (fix_builtin_array_notation_fn): Use
1255         create_tmp_var instead build_decl for creating temps.
1256         (build_array_notation_expr): Likewise.
1257         (fix_conditional_array_notations_1): Likewise.
1258         (fix_array_notation_expr): Likewise.
1259         (fix_array_notation_call_expr): Likewise.
1261 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1263         PR c++/60689
1264         * c-tree.h (c_build_function_call_vec): New prototype.
1265         * c-typeck.c (build_function_call_vec): Don't call
1266         resolve_overloaded_builtin here.
1267         (c_build_function_call_vec): New wrapper function around
1268         build_function_call_vec.  Call resolve_overloaded_builtin here.
1269         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1270         Call c_build_function_call_vec instead of build_function_call_vec.
1271         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1272         * c-decl.c (finish_decl): Likewise.
1274 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1276         PR c/55383
1277         * c-typeck.c: Use correct format string in cast-qual warning
1279 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
1281         * c-decl.c (c_decl_attributes): Use
1282         lang_hooks.types.omp_mappable_type.
1283         * c-typeck.c (c_finish_omp_clauses): Likewise.
1285 2014-03-06  Marek Polacek  <polacek@redhat.com>
1287         PR c/60197
1288         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1289         of checking tree code.
1291 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1293         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1294         (c_parser_parameter_declaration): Likewise.
1296 2014-02-19  Marek Polacek  <polacek@redhat.com>
1298         PR c/60195
1299         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1300         Call mark_exp_read on exp.value.
1301         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
1302         TREE_ADDRESSABLE on old instead of val.
1303         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1305 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1307         * c-parser.c (c_parser_get_builtin_args): Replace calls to
1308         C_EXPR_APPEND by vec_safe_push.
1309         * c-tree.h (C_EXPR_APPEND): Remove.
1311 2014-01-31  Marek Polacek  <polacek@redhat.com>
1313         PR c/59963
1314         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1315         build_function_call_vec.
1316         (build_function_call): Likewise.
1317         (build_atomic_assign): Likewise.
1318         (build_function_call_vec): Add arg_loc parameter.  Use it.
1319         (convert_arguments): Likewise.
1320         (convert_for_assignment): Rename rhs_loc to expr_loc.
1321         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1322         (c_parser_objc_keywordexpr): Likewise.
1323         (c_parser_postfix_expression_after_primary): Call
1324         build_function_call_vec with expr_loc rather than op_loc.
1325         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
1326         build_function_call_vec.
1327         (c_parser_expr_list): Add locations parameter.  Fill it with locations
1328         of function arguments.
1329         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1331 2014-01-30  Marek Polacek  <polacek@redhat.com>
1333         PR c/59940
1334         * c-typeck.c (build_function_call_vec): Use loc parameter.
1335         (convert_arguments): Add location parameter.  Use it.
1336         (ep_convert_and_check): Likewise.
1337         (build_atomic_assign): Adjust convert_for_assignment call.
1338         (build_modify_expr): Likewise.
1339         (digest_init): Likewise.
1340         (c_finish_return): Likewise.
1341         (build_conditional_expr): Adjust ep_convert_and_check calls.
1342         (convert_for_assignment): Add rhs_loc parameter.  Use it.
1343         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1344         calls.
1346 2014-01-30  Richard Biener  <rguenther@suse.de>
1348         PR c/59905
1349         * c-typeck.c (build_function_call_vec): Do not replace calls
1350         to a function via an incompatible type with a runtime abort.
1352 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1354         * c-parser.c (c_parser_declaration_or_fndef): Replaced
1355         flag_enable_cilkplus with flag_cilkplus.
1356         (c_parser_direct_declarator_inner): Likewise.
1357         (c_parser_attribute_any_word): Likewise.
1358         (c_parser_attributes): Likewise.
1359         (c_parser_compound_statement): Likewise.
1360         (c_parser_statement_after_labels): Likewise.
1361         (c_parser_if_statement): Likewise.
1362         (c_parser_switch_statement): Likewise.
1363         (c_parser_do_statement): Likewise.
1364         (c_parser_for_statement): Likewise.
1365         (c_parser_unary_expression): Likewise.
1366         (c_parser_postfix_expression): Likewise.
1367         (c_parser_postfix_expression_after_primary): Likewise.
1368         (c_parser_postfix_expression_after_primary): Likewise.
1369         (c_parser_omp_clause_name): Likewise.
1370         (c_finish_omp_declare_simd): Likewise.
1371         (c_parser_cilk_verify_simd): Likewise.
1372         * c-typeck.c (build_array_ref): Likewise.
1373         (build_function_call_vec): Likewise.
1374         (convert_arguments): Likewise.
1375         (build_compound_expr): Likewise.
1376         (c_finish_return): Likewise.
1377         (c_finish_if_stmt): Likewise.
1378         (c_finish_loop): Likewise.
1379         (build_binary_op): Likewise.
1381 2014-01-23  Marek Polacek  <polacek@redhat.com>
1383         PR c/59846
1384         * c-typeck.c (parser_build_binary_op): Use location instead of
1385         input_location.
1386         (build_binary_op): Pass location to shorten_compare.
1388 2014-01-23  Marek Polacek  <polacek@redhat.com>
1390         PR c/58346
1391         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1392         an empty aggregate.
1394 2014-01-23  Marek Polacek  <polacek@redhat.com>
1396         PR c/59871
1397         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1398         of a comma expression.
1399         (emit_side_effect_warnings): Likewise.
1401 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1403         PR c/59825
1404         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1405         function to use walk_tree and moved a lot of its functionality to
1406         expand_array_notations.
1407         (expand_array_notations): New function.
1409 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1411         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1412         attribute an attribute without value.
1414 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
1416         PR middle-end/58809
1417         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1418         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1420 2014-01-22  Marek Polacek  <polacek@redhat.com>
1422         PR c/59891
1423         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1424         of remove_c_maybe_const_expr on op1 and op2.
1426 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1428         PR c/58943
1429         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1430         effects, preevaluate rhs using SAVE_EXPR first.
1432 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1434         PR c++/59631
1435         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1436         statements with if-elseif statements.
1438 2014-01-06  Marek Polacek  <polacek@redhat.com>
1440         PR c/57773
1441         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1442         defined bit-field types only in ISO C.
1444 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1446         Update copyright years
1448 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1450         * c-array-notation.c: Use the standard form for the copyright notice.
1452 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1454         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1455         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1456         field in parser is not empty.  If not-empty, call the function
1457         c_parser_finish_omp_declare_simd.
1458         (c_parser_cilk_clause_vectorlength): Modified function to be shared
1459         between SIMD-enabled functions and #pragma simd.  Added new parameter.
1460         (c_parser_cilk_all_clauses): Modified the usage of the function
1461         c_parser_cilk_clause_vectorlength as mentioned above.
1462         (c_parser_cilk_simd_fn_vector_attrs): New function.
1463         (c_finish_cilk_simd_fn_tokens): Likewise.
1464         (is_cilkplus_vector_p): Likewise.
1465         (c_parser_omp_clause_name): Added checking for "vectorlength,"
1466         "nomask," and "mask" strings in clause name.
1467         (c_parser_omp_all_clauses): Added 3 new case statements:
1468         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1469         PRAGMA_CILK_CLAUSE_NOMASK.
1470         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
1471         check for vector attribute and if so call the function
1472         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
1473         called the function c_finish_cilk_simd_fn_tokens.
1474         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1475         parser field is non-empty.  If so, parse them as you would parse
1476         the omp declare simd pragma.
1477         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1478         Added a check when step is a parameter and flag it as error.
1479         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1480         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1481         pragma_omp_clause.
1483 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
1485         * c-parser.c (c_parser_omp_parallel): Fix description.
1487 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1489         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1490         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1491         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1492         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1494 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1496         PR c/52023
1497         * c-parser.c (c_parser_alignas_specifier): Use
1498         c_sizeof_or_alignof_type instead of c_alignof.
1499         (c_parser_alignof_expression): Likewise, with min_alignof
1500         parameter depending on alignof spelling used.
1502 2013-12-04  Marek Polacek  <polacek@redhat.com>
1504         PR c/54113
1505         * c-decl.c (start_function): Don't warn for missing prototype for
1506         inline functions.
1508 2013-12-03  Marek Polacek  <polacek@redhat.com>
1510         PR c/59351
1511         * c-decl.c (build_compound_literal): Allow compound literals with
1512         empty initial value.
1514 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
1516         PR c/58235
1517         * c-typeck.c (build_modify_expr): Diagnose assignment to
1518         expression with array type.
1520 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1522         PR c/42262
1523         * c-typeck.c (process_init_element): Do not treat a string as
1524         initializing a whole array when used with a designator for an
1525         individual element.
1527 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1529         PR c/57574
1530         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1531         an inline function following a static declaration.
1533 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1535         PR c/59310
1536         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1537         to p_name before calling c_parser_omp_teams instead of after.
1538         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1539         argument.  Remove unused p_name variable.
1541 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1542             Jakub Jelinek  <jakub@redhat.com>
1544         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1545         external_scope is NULL.
1547 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1548             Marc Glisse  <marc.glisse@inria.fr>
1550         PR c++/59032
1551         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1553 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1555         * c-typeck.c: Add required include files from gimple.h.
1557 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1559         * c-decl.c (define_label, shadow_tag_warned)
1560         (check_bitfield_type_and_width, grokdeclarator, grokparms,
1561         store_parm_decls_newstyle, store_parm_decls_oldstyle)
1562         (declspecs_add_type): Remove use of in_system_header macro.
1563         * c-parser.c (c_parser_unary_expression): Likewise.
1564         * c-typeck.c (store_init_value, process_init_element)
1565         (c_start_case): Likewise.
1567         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1568         macro.
1570         * c-parser.c (c_parser_set_source_position_from_token): Remove
1571         reference to in_system_header from comment.
1573 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1575         * c-decl.c (grokdeclarator): Update comment to refer to
1576         tree_to_[su]hwi rather than tree_low_cst.
1578 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1580         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1581         tree_to_uhwi throughout.
1583 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1585         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1586         throughout.
1588 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1590         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1591         throughout.
1593 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1595         * c-parser.c (c_parser_cilk_simd): New.
1596         (c_parser_cilk_verify_simd): New.
1597         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1598         (c_parser_omp_for_loop): Add case for NE_EXPR.
1599         Set c_break_label for CILK_SIMD.
1600         (c_parser_cilk_clause_vectorlength): New.
1601         (c_parser_cilk_clause_linear): New.
1602         (c_parser_cilk_clause_name): New.
1603         (c_parser_cilk_all_clauses): New.
1604         * c-typeck.c (build_unary_op): Pass location argument to
1605         readonly_error.
1606         (build_modify_expr): Same.
1607         (build_asm_expr): Same.
1608         (c_finish_bc_stmt): Error on break/continue in loops.
1610 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1612         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1614 2013-11-14  Diego Novillo  <dnovillo@google.com>
1616         * c-decl.c: Include print-tree.h.
1617         Include stor-layout.h.
1618         Include varasm.h.
1619         Include attribs.h.
1620         Include stringpool.h.
1621         * c-lang.c: Include fold-const.h.
1622         * c-parser.c: Include stringpool.h.
1623         Include attribs.h.
1624         Include stor-layout.h.
1625         Include varasm.h.
1626         Include trans-mem.h.
1627         * c-typeck.c: Include stor-layout.h.
1628         Include trans-mem.h.
1629         Include varasm.h.
1630         Include stmt.h.
1632 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1634         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1635         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1636         __auto_type.
1637         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1638         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1639         RID_AUTO_TYPE.
1640         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1641         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1642         (c_parser_declarator, c_parser_direct_declarator_inner)
1643         (c_parser_parameter_declaration, c_parser_type_name): All callers
1644         changed.
1645         (c_parser_declaration_or_fndef): Handle declarations with type
1646         determined from the initializer.
1648 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1650         * c-typeck.c: Include gimplify.h.
1652 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1654         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1655         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1656         comment.
1657         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1658         or _Thread_local as appropriate in diagnostics.
1659         (build_null_declspecs): Initialize ret->thread_gnu_p.
1660         (declspecs_add_scspec): Handle either __thread or _Thread_local
1661         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
1662         pedantic.  Do not disallow _Thread_local extern and _Thread_local
1663         static.
1665 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
1666             Andrew MacLeod  <amacleod@redhat.com>
1668         * c-aux-info.c (gen_type): Handle atomic qualifier.
1669         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1670         qualifiers when compating types.
1671         (shadow_tag_warned): Handle atomic_p in declspecs.
1672         (quals_from_declspecs): Likewise.
1673         (start_decl): Use c_type_promotes_to when promoting argument
1674         types.
1675         (grokdeclarator): Handle _Atomic.
1676         (get_parm_info): Diagnose any qualifier on "void" as only
1677         parameter.
1678         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1679         comparing types.  Use c_type_promotes_to when promoting argument
1680         types.
1681         (finish_function): Use c_type_promotes_to when promoting argument
1682         types.
1683         (build_null_declspecs): Handle atomic_p in declspecs.
1684         (declspecs_add_qual): Handle RID_ATOMIC.
1685         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1686         (c_token_starts_declspecs): Handle RID_ATOMIC.
1687         (c_parser_declspecs): Handle atomic type specifiers and
1688         qualifiers.
1689         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1690         from types of expressions with atomic type.
1691         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1692         (c_parser_attribute_any_word): Handle RID_ATOMIC.
1693         (c_parser_initializer, c_parser_initelt, c_parser_initval)
1694         (c_parser_statement_after_labels, c_parser_switch_statement)
1695         (c_parser_for_statement, c_parser_expr_no_commas)
1696         (c_parser_conditional_expression, c_parser_binary_expression)
1697         (c_parser_cast_expression, c_parser_unary_expression)
1698         (c_parser_postfix_expression)
1699         (c_parser_postfix_expression_after_primary, c_parser_expression):
1700         Use convert_lvalue_to_rvalue.
1701         (c_parser_expression_conv, c_parser_expr_list): Document
1702         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
1703         (c_parser_objc_synchronized_statement): Use
1704         convert_lvalue_to_rvalue.
1705         (c_parser_objc_selector): Handle RID_ATOMIC.
1706         (c_parser_objc_receiver, c_parser_array_notation): Use
1707         convert_lvalue_to_rvalue.
1708         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1709         _Atomic (type-name).
1710         (struct c_declspecs): Add atomic_p field.
1711         (convert_lvalue_to_rvalue): Declare.
1712         * c-typeck.c (c_type_promotes_to): Promote atomic types to
1713         corresponding atomic types.
1714         (qualify_type): Don't add _Atomic qualifiers from second argument.
1715         (comp_target_types): Do not allow _Atomic mismatches.
1716         (type_lists_compatible_p): Do not remove atomic qualifiers when
1717         comparing types.
1718         (really_atomic_lvalue, convert_lvalue_to_rvalue)
1719         (build_atomic_assign): New functions.
1720         (build_unary_op): Use build_atomic_assign for atomic increment and
1721         decrement.
1722         (build_conditional_expr): Do not treat _Atomic void as a qualified
1723         version of void.
1724         (build_modify_expr): Use build_atomic_assign for atomic LHS.
1725         (find_anonymous_field_with_type, convert_to_anonymous_field)
1726         (convert_for_assignment): Do not remove atomic qualifiers when
1727         comparing types.
1728         (digest_init): Do not accept initialization of arrays of atomic
1729         elements by string constants.
1730         (build_asm_expr): Use convert_lvalue_to_rvalue.
1731         (build_binary_op): Do not treat _Atomic void as a qualified
1732         version of void.
1734 2013-11-06  DJ Delorie  <dj@redhat.com>
1736         * c-decl.c (locate_old_decl): If a previous conflicting decl is
1737         both explicit and builtin, print the location of the explicit one.
1739 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1741         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1742         c_parser_omp_distribute, c_parser_omp_teams,
1743         c_parser_omp_target, c_parser_omp_declare): Handle
1744         -fopenmp-simd.
1746 2013-11-03  Marek Polacek  <polacek@redhat.com>
1748         * c-decl.c (grokdeclarator): Add VLA instrumentation.
1750 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
1752         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1753         check_dup_generic at the end, unless remove is true.
1754         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1755         remove = true;.
1756         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1758 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
1760         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1761         with decl that is not pointer nor array.
1763 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1765         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1766         a spawning function is found.
1767         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1768         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1769         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1770         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1771         case.
1772         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1773         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1774         expr.
1775         (c_finish_return): Added a check to reject _Cilk_spawn in return
1776         expression.
1777         (build_cilk_spawn): New function.
1778         (build_cilk_sync): Likewise.
1779         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1780         
1781 2013-10-27  Tobias Burnus  <burnus@net-b.de>
1783         PR other/33426
1784         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1785         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1786         (c_parser_statement_after_labels): Update calls.
1788 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1790         PR other/33426
1791         * c-parser.c (c_parser_pragma, c_parser_for_statement):
1792         Handle PRAGMA_IVDEP.
1793         (c_parser_statement_after_labels): Update call.
1795 2013-10-24  Marek Polacek  <polacek@redhat.com>
1797         * c-parser.c (c_parser_struct_declaration): Add a comment.
1798         (c_parser_declarator): Don't allow _Alignas here.
1800 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
1802         * c-parser.c: Include omp-low.h.
1803         * c-typeck.c: Likewise.
1805 2013-10-17  Marek Polacek  <polacek@redhat.com>
1807         PR c/58267
1808         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1809         Document syntax of the array-declarator.
1810         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1811         are not permitted.
1812         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1813         (c_parser_struct_declaration): Likewise.
1814         (c_parser_declarator): Likewise.
1815         (c_parser_direct_declarator_inner): Likewise.
1816         (c_parser_parameter_declaration): Likewise.
1817         (c_parser_type_name): Likewise.
1819 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1821         * c-lang.h (current_omp_declare_target_attribute): New extern
1822         decl.
1823         * c-parser.c: Include c-lang.h.
1824         (struct c_parser): Change tokens to c_token *.
1825         Add tokens_buf field.  Change tokens_avail type to unsigned int.
1826         (c_parser_consume_token): If parser->tokens isn't
1827         &parser->tokens_buf[0], increment parser->tokens.
1828         (c_parser_consume_pragma): Likewise.
1829         (enum pragma_context): Add pragma_struct and pragma_param.
1830         (c_parser_external_declaration): Adjust
1831         c_parser_declaration_or_fndef caller.
1832         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1833         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1834         Adjust recursive call.
1835         (c_parser_struct_or_union_specifier): Use pragma_struct instead
1836         of pragma_external.
1837         (c_parser_parameter_declaration): Use pragma_param instead of
1838         pragma_external.
1839         (c_parser_compound_statement_nostart, c_parser_label,
1840         c_parser_for_statement): Adjust
1841         c_parser_declaration_or_fndef callers.
1842         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1843         it through to c_parser_conditional_expression.
1844         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1845         pass it through to c_parser_binary_expression.  Adjust recursive
1846         call.
1847         (c_parser_binary_expression): Remove prec argument, add
1848         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
1849         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1850         binop matches it, use build2 instead of parser_build_binary_op.
1851         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1852         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1853         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1854         Handle pragma_struct and pragma_param the same as pragma_external.
1855         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1856         (c_parser_omp_variable_list): Parse array sections for
1857         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1858         (c_parser_omp_clause_collapse): Fully fold collapse expression.
1859         (c_parser_omp_clause_reduction): Handle user defined reductions.
1860         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1861         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1862         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1863         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1864         c_parser_omp_clause_depend, c_parser_omp_clause_map,
1865         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1866         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1867         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1868         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
1869         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
1870         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1871         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
1872         (c_parser_omp_for_loop): Add CODE argument, pass it through
1873         to c_finish_omp_for.  Change last argument to cclauses,
1874         and adjust uses to grab parallel clauses from the array of all
1875         the split clauses.  Adjust c_parser_binary_expression,
1876         c_parser_declaration_or_fndef and c_finish_omp_for callers.
1877         (omp_split_clauses): New function.
1878         (c_parser_omp_simd): New function.
1879         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1880         Allow the function to be called also when parsing combined constructs,
1881         and call c_parser_omp_simd when parsing for simd.
1882         (c_parser_omp_sections_scope): If section-sequence doesn't start with
1883         #pragma omp section, require exactly one structured-block instead of
1884         sequence of statements.
1885         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1886         Allow the function to be called also when parsing combined constructs.
1887         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1888         Allow the function to be called also when parsing combined
1889         constructs.
1890         (c_parser_omp_taskgroup, c_parser_omp_cancel,
1891         c_parser_omp_cancellation_point, c_parser_omp_distribute,
1892         c_parser_omp_teams, c_parser_omp_target_data,
1893         c_parser_omp_target_update, c_parser_omp_target,
1894         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1895         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1896         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1897         (c_parser_omp_construct): Add p_name and mask vars.  Handle
1898         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1899         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
1900         and c_parser_omp_sections callers.
1901         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1902         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1903         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1904         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
1905         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
1906         OMP_CLAUSE_DEPEND.
1907         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1908         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1909         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1910         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1911         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1912         * c-typeck.c: Include tree-inline.h.
1913         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1914         handle_omp_array_sections_1, handle_omp_array_sections,
1915         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1916         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1917         user defined reductions.
1918         (c_tree_equal): New function.
1919         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1920         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1921         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1922         c_check_omp_declare_reduction_r): New prototypes.
1923         * c-decl.c (current_omp_declare_target_attribute): New variable.
1924         (c_decl_attributes): New function.
1925         (start_decl, start_function): Use it instead of decl_attributes.
1926         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1927         c_omp_reduction_decl, c_omp_reduction_lookup,
1928         c_check_omp_declare_reduction_r): New functions.
1930 2013-09-25  Tom Tromey  <tromey@redhat.com>
1932         * Make-lang.in (c/gccspec.o): Remove.
1933         (CFLAGS-c/gccspec.o): New variable.
1934         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1935         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1936         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1938 2013-09-25  Tom Tromey  <tromey@redhat.com>
1940         * Make-lang.in (c/gccspec.o): Don't use subshell.
1942 2013-09-18  Marek Polacek  <polacek@redhat.com>
1944         PR sanitize/58443
1945         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1946         Remove unnecessary check.
1948 2013-09-18  Marek Polacek  <polacek@redhat.com>
1950         PR sanitizer/58411
1951         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1952         no_sanitize_undefined attribute.
1954 2013-09-13  Kai Tietz  <ktietz@redhat.com>
1956         PR target/57848
1957         * c-decl.c (c_builtin_function_ext_scope): Remove
1958         wrong assumption that it is never called on prexisting
1959         symbol.
1961 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1963         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1965 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1967         * c-objc-common.c (c_tree_printer): Tidy.
1969 2013-08-30  Marek Polacek  <polacek@redhat.com>
1971         * c-typeck.c (build_binary_op): Add division by zero and shift
1972         instrumentation.
1974 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1975             Joseph Myers  <joseph@codesourcery.com>
1977         PR c/35649
1978         * c-typeck.c (c_common_type): Prefer double_type_node over
1979         other REAL_TYPE types with the same precision.
1980         (convert_arguments): Likewise.
1982 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1984         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1985         (c_initialize_diagnostics): Call a destructor for the early printer.
1987 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1989         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1990         printer initialization.
1992 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1994         PR c/57490
1995         * c-array-notation.c (fix_conditional_array_notations_1): Added a
1996         check for truth values.
1997         (expand_array_notation_exprs): Added truth values case.  Removed an
1998         unwanted else.  Added for-loop to walk through subtrees in default
1999         case.
2001 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2003         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
2005 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
2007         * c-parser.c (struct c_generic_association): Fix typo.
2009 2013-07-23  Tom Tromey  <tromey@redhat.com>
2010             Joseph Myers  <joseph@codesourcery.com>
2012         * c-parser.c (struct c_generic_association): New.
2013         (c_generic_association_d): New typedef.
2014         (c_parser_generic_selection): New function.
2015         (c_parser_postfix_expression): Handle RID_GENERIC.
2017 2013-07-13  Jason Merrill  <jason@redhat.com>
2019         PR c++/57793
2020         * c-decl.c (finish_struct): Check for too-large class.
2022 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2024         PR c/57821
2025         * c-typeck.c (set_init_index): When folding, check for index overflow.
2027 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2029         * c-parser.c (c_parser_array_notation): Removed rejection of array
2030         notations in an array of function pointers.
2032 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2034         * c-array-notation.c (make_triplet_val_inv): New function.
2035         (create_cmp_incr): Likewise.
2036         (create_array_refs): Likewise.
2037         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
2038         Also modularized common parts between functions and called the function.
2039         (build_array_notation_expr): Likewise.
2040         (fix_conditional_array_notations_1): Likewise.
2041         (fix_array_notation_expr): Likewise.
2042         (fix_array_notation_call_expr): Likewise.
2044 2013-06-18  Marek Polacek  <polacek@redhat.com>
2046         PR c/57630
2047         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
2049 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2051         * c-array-notation.c (build_array_notation_expr): Reject array notation
2052         mismatch between LHS and RHS even inside a call_expr.  Also, removed
2053         a couple while statements that were dead code.
2055 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2057         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
2058         excessive precision expressions in function parameters.  Also removed
2059         couple unwanted while statements.
2061 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2063         * c-array-notation.c (expand_array_notation_exprs): Added
2064         ARRAY_NOTATION_REF case.
2065         
2066 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2068         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
2069         function to c-family/array-notation-common.c.
2070         (is_cilkplus_reduce_builtin): Likewise.
2071         (find_rank): Likewise.
2072         (extract_array_notation_exprs): Likewise.
2073         (replace_array_notations): Likewise.
2074         (find_inv_trees): Likewise.
2075         (replace_inv_trees): Likewise.
2076         (contains_array_notation_expr): Likewise.
2077         (find_correct_array_notation_type): Likewise.
2078         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
2079         (struct inv_list): Moved this to c-family/array-notation-common.c.
2080         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
2081         
2082 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2084         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
2085         reduction functions outside the for-loop.  Added a check if the fundecl
2086         is non-NULL.  Finally, removed an unwanted if-statement, and made the
2087         body unconditional.
2089 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2091         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
2092         condition of the if-statement matches the rank of else-block and then-
2093         block when array notations are used.
2094         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
2095         expression after the entire function body is parsed.
2096         (c_parser_expr_no_commas): Delayed creating array notation expressions
2097         to the end of function parsing.
2098         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
2099         whole if-statement instead of just the condition.
2100         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
2102 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2104         PR c/57474
2105         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
2106         array to NULL_TREE if they are unused.  Also added a check for the
2107         field to be NULL before its fields are used in future.
2108         
2109 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2111         PR bootstrap/57450
2112         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
2113         (build_array_notation_expr): Likewise.
2115 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2117         * c-typeck.c (build_array_ref): Added a check to see if array's
2118         index is greater than one.  If true, then emit an error.
2119         (build_function_call_vec): Exclude error reporting and checking
2120         for builtin array-notation functions.
2121         (convert_arguments): Likewise.
2122         (c_finish_return): Added a check for array notations as a return
2123         expression.  If true, then emit an error.
2124         (c_finish_loop): Added a check for array notations in a loop
2125         condition.  If true then emit an error.
2126         (lvalue_p): Added a ARRAY_NOTATION_REF case.
2127         (build_binary_op): Added a check for array notation expr inside
2128         op1 and op0.  If present, we call another function to find correct
2129         type.
2130         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
2131         * c-parser.c (c_parser_compound_statement): Check if array
2132         notation code is used in tree, if so, then transform them into
2133         appropriate C code.
2134         (c_parser_expr_no_commas): Check if array notation is used in LHS
2135         or RHS, if so, then build array notation expression instead of
2136         regular modify.
2137         (c_parser_postfix_expression_after_primary): Added a check for
2138         colon(s) after square braces, if so then handle it like an array
2139         notation.  Also, break up array notations in unary op if found.
2140         (c_parser_direct_declarator_inner): Added a check for array
2141         notation.
2142         (c_parser_compound_statement): Added a check for array notation in
2143         a stmt.  If one is present, then expand array notation expr.
2144         (c_parser_if_statement): Likewise.
2145         (c_parser_switch_statement): Added a check for array notations in
2146         a switch statement's condition.  If true, then output an error.
2147         (c_parser_while_statement): Similarly, but for a while.
2148         (c_parser_do_statement): Similarly, but for a do-while.
2149         (c_parser_for_statement): Similarly, but for a for-loop.
2150         (c_parser_unary_expression): Check if array notation is used in a
2151         pre-increment or pre-decrement expression.  If true, then expand
2152         them.
2153         (c_parser_array_notation): New function.
2154         * c-array-notation.c: New file.
2155         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2156         
2157 2013-05-23  Mike Stump  <mikestump@comcast.net>
2159         * c-typeck.c (convert_for_assignment): Handle references to memory
2160         spaces better.
2162 2013-05-16  Jason Merrill  <jason@redhat.com>
2164         * Make-lang.in (cc1$(exeext)): Use link mutex.
2166 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2168         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2169         to simply use OPT_Wpointer_arith.
2170         (build_unary_op): Likewise.
2172 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
2174         PR c/19449
2175         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2176         argument.  If set, or it temporarily for parsing of the first
2177         argument into force_folding_builtin_constant_p.
2178         (c_parser_postfix_expression): Adjust callers.
2180 2013-03-21  Richard Biener  <rguenther@suse.de>
2182         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2183         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
2185 2013-02-12  Marek Polacek  <polacek@redhat.com>
2187         PR c/44938
2188         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2189         origtypes to NULL.
2191 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
2193         PR c/56078
2194         * c-typeck.c (set_nonincremental_init_from_string): If
2195         constructor_max_index is NULL, treat it as if tree_int_cst_lt
2196         returned false.
2197         (process_init_element): Likewise.
2199 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
2201         PR c++/55619
2202         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2203         argument, don't call default_function_array_conversion
2204         nor c_fully_fold here.
2205         (c_parser_asm_statement): Adjust callers.
2206         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2207         and outputs here, and call default_function_array_conversion
2208         on inputs that don't need to be addressable.
2210 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
2212         PR c/39464
2213         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2214         warning require that both c_common_unsigned_type as well as
2215         c_common_signed_type is the same for both mvl and mvr types.
2217 2012-11-16  Diego Novillo  <dnovillo@google.com>
2219         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2221         * c-common.c: Use new vec API in vec.h.
2222         * c-common.h: Likewise.
2223         * c-gimplify.c: Likewise.
2224         * c-pragma.c: Likewise.
2225         * c-pretty-print.c: Likewise.
2226         * c-pretty-print.h: Likewise.
2227         * c-semantics.c: Likewise.
2228         * c-decl.c: Likewise.
2229         * c-parser.c: Likewise.
2230         * c-tree.h: Likewise.
2231         * c-typeck.c: Likewise.
2233 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2235         PR c++/54930
2236         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2238 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2240         PR c/53066
2241         * c-decl.c (warn_if_shadowing): Do not warn if a variable
2242         shadows a function, unless the variable is a function or a
2243         pointer-to-function.
2245 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2247         PR c/54381
2248         * c-parser.c (struct c_tree_loc_pair): Removed.
2249         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2250         add location_t * and tree * arguments, fill in array of 3
2251         sizeof_arg trees and corresponding locs.
2252         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2253         c_parser_expr_list callers.
2254         (c_parser_postfix_expression_after_primary): Likewise.  Pass
2255         array of 3 sizeof_arg trees and locs (corresponding to first
2256         3 arguments) to sizeof_pointer_memaccess_warning.
2258 2012-10-09  Lawrence Crowl  <crowl@google.com>
2260         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2261         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2262         hash table.
2264 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2266         PR c++/54194
2267         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2268         call.
2270 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2272         PR c++/54427
2273         * c-typeck.c: Include c-common.h.
2274         (enum stv_conv): Moved to c-common.h.
2275         (scalar_to_vector): Moved to c-common.c.
2276         (build_binary_op): Adapt to scalar_to_vector's new prototype.
2277         * Make-lang.in: c-typeck.c depends on c-common.h.
2279 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2281         * c-decl.c (c_write_global_declarations): Fix handling of
2282         -fdump-ada-spec*.
2284 2012-09-30  Sharad Singhai  <singhai@google.com>
2286         * c-decl.c (c_write_global_declarations): Use a different method
2287         to determine if the dump has ben initialized.
2289 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2291         PR c/54552
2292         * c-typeck.c (c_cast_expr): When casting to a type requiring
2293         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2294         c_fully_fold first.
2296 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2298         PR c/54103
2299         * c-typeck.c (build_unary_op): Pass original argument of
2300         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2301         any C_MAYBE_CONST_EXPR, if it has integer operands.
2302         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2303         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2304         to c_objc_common_truthvalue_conversion, then remove any
2305         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
2306         c_objc_common_truthvalue_conversion not
2307         c_common_truthvalue_conversion.
2308         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2309         call note_integer_operands for arguments with integer operands
2310         that are not integer constants.
2312 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
2314         PR c/54559
2315         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2316         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2318 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
2320         PR c/54428
2321         * c-convert.c (convert): Don't call fold_convert_loc if
2322         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2323         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
2324         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2326 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
2328         PR c/54355
2329         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2330         for nested and empty_ok arguments in the call to
2331         c_parser_declaration_or_fndef.
2333 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2335         * c-tree.h (c_last_sizeof_arg): Declare.
2336         * c-parser.c (struct c_tree_loc_pair): New type.
2337         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
2338         non-NULL.
2339         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2340         (c_parser_postfix_expression_after_primary): Likewise.  Call
2341         sizeof_pointer_memaccess_warning if needed.
2342         (sizeof_ptr_memacc_comptypes): New function.
2343         * c-typeck.c (c_last_sizeof_arg): New global variable.
2344         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2346 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
2348         * c-lang.h (lang_decl): Add variable_size GTY option.
2350 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2352         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2353         * Make-lang.in: Fix dependencies.
2355 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2357         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2358         and add language Makefile hooks.
2359         * config-lang.in: New file.
2360         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2361         add the required "normal" config-lang.in rules.
2362         * c-lang.h: Moved from gcc/ to here.
2363         * c-tree.h: Likewise.
2364         * c-objc-common.c: Likewise.
2365         * c-objc-common.h: Likewise.
2366         * c-typeck.c: Likewise.
2367         * c-convert.c: Likewise.
2368         * c-lang.c: Likewise.
2369         * c-aux-info.c: Likewise.
2370         * c-errors.c: Likewise.
2371         * gccspec.c: Likewise.
2372         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
2373         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
2375 Copyright (C) 2012-2015 Free Software Foundation, Inc.
2377 Copying and distribution of this file, with or without modification,
2378 are permitted in any medium without royalty provided the copyright
2379 notice and this notice are preserved.