Update ChangeLog and version files for release
[official-gcc.git] / gcc / c / ChangeLog
blobd9a8b4e8767d6a2990e84f9e54d642c2ac6e3211
1 2016-06-03  Release Manager
3         * GCC 5.4.0 released.
5 2016-04-18  Marek Polacek  <polacek@redhat.com>
7         Backport from mainline
8         2016-03-31  Marek Polacek  <polacek@redhat.com>
10         PR c/70297
11         * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
13 2016-02-17  Bernd Schmidt  <bschmidt@redhat.com>
15         Backport from mainline
16         2016-02-12  Bernd Schmidt  <bschmidt@redhat.com>
18         PR c/69522
19         * c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
20         callers changed.  If nested_p is true, use it to call
21         finish_implicit_inits.
22         * c-tree.h (finish_implicit_inits): Declare.
23         * c-typeck.c (finish_implicit_inits): New function.  Move code
24         from ...
25         (push_init_level): ... here.
26         (set_designator, process_init_element): Call finish_implicit_inits.
28 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
30         Backported from mainline
31         2016-02-04  Jakub Jelinek  <jakub@redhat.com>
33         PR c/69669
34         * c-decl.c (finish_enum): When honoring mode attribute,
35         make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
37 2016-01-28  Marek Polacek  <polacek@redhat.com>
39         * c-typeck.c (build_binary_op) [GE_EXPR]: Move the duplicated hunk of
40         code...
41         (build_binary_op) [EQ_EXPR]: ... here.
43 2016-01-27  Marek Polacek  <polacek@redhat.com>
45         Backport from mainline
46         2016-01-27  Marek Polacek  <polacek@redhat.com>
48         PR c/68062
49         * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
50         to unsigned, if needed.  Add -Wsign-compare warning.
52 2015-12-30  Joseph Myers  <joseph@codesourcery.com>
54         PR c/69037
55         Backport from mainline:
57         2015-12-07  Marek Polacek  <polacek@redhat.com>
59         PR c/68668
60         * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
61         TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
63 2015-12-16  Joseph Myers  <joseph@codesourcery.com>
65         PR c/68162
66         * c-decl.c (grokdeclarator): Set first_non_attr_kind before
67         following link from declarator to next declarator.  Track original
68         qualified type and pass it to c_build_qualified_type.
69         * c-typeck.c (c_build_qualified_type): Add arguments
70         orig_qual_type and orig_qual_indirect.
72 2015-12-04  Release Manager
74         * GCC 5.3.0 released.
76 2015-10-05  Marek Polacek  <polacek@redhat.com>
78         Backport from mainline
79         2015-10-02  Marek Polacek  <polacek@redhat.com>
81         PR c/67730
82         * c-typeck.c (convert_for_assignment): Use the expansion point
83         location throughout.
85 2015-09-30  Marek Polacek  <polacek@redhat.com>
87         Backport from mainline
88         2015-09-30  Marek Polacek  <polacek@redhat.com>
90         PR c/67730
91         * c-typeck.c (c_finish_return): Use the expansion point location for
92         certain "return with value" warnings.
94 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
96         PR c/67502
97         * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
98         into OMP_FOR_PRE_BODY rather than before the loop.
100 2015-09-09  Jakub Jelinek  <jakub@redhat.com>
102         PR c/67501
103         * c-parser.c (c_parser_oacc_all_clauses,
104         c_parser_omp_all_clauses): Remove invalid clause from
105         list of clauses even if parser->error is set.
107         PR c/67500
108         * c-parser.c (c_parser_omp_clause_aligned,
109         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
110         test for errors.
111         * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
112         error_mark_node.
114         PR c/67495
115         * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
116         instead of c_parser_unary_expression.  If the result is !lvalue_p,
117         wrap the result of c_fully_fold into NON_LVALUE_EXPR.
119 2015-07-16  Release Manager
121         * GCC 5.2.0 released.
123 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
125         * c-decl.c (pop_scope): Register the main translation unit
126         through the new debug hook.
128 2015-05-22  Jakub Jelinek  <jakub@redhat.com>
130         Backported from mainline
131         2015-05-19  Jakub Jelinek  <jakub@redhat.com>
133         PR middle-end/66199
134         * c-parser.c (c_parser_omp_for_loop): Don't add
135         OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
136         OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
137         (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
138         constructs.
140 2015-04-22  Release Manager
142         * GCC 5.1.0 released.
144 2015-04-20  Ilya Verbin  <ilya.verbin@intel.com>
146         * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
147         (c_parser_omp_target_update): Add missed %> to error_at ().
149 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
151         PR target/55143
152         * c-decl.c (c_default_pointer_mode): Remove definition.
153         * c-tree.h (c_default_pointer_mode): Remove declaration.
155 2015-03-27  Tobias Burnus  <burnus@net-b.de>
157         PR c/65586
158         * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
159         error out.
160         (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
161         c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
162         Update calls to not error for skipped omp pragmas with -fopenmp-simd.
164 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
166         * c-decl.c (c_decl_attributes): Also add "omp declare target"
167         attribute for DECL_EXTERNAL VAR_DECLs.
169 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
171         * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
172         argument.
174 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
176         PR c/65120
177         * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
178         before preparing arguments to warn_logical_not_parentheses.
180 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
182         PR c/65120
183         * c-typeck.c (parser_build_binary_op): Don't warn for
184         !!x == y or !b == y where b is _Bool.
186 2015-03-09  Marek Polacek  <polacek@redhat.com>
188         * c-convert.c (convert): Make use of do_ubsan_in_current_function.
189         * c-decl.c (grokdeclarator): Likewise.
190         * c-typeck.c (build_binary_op): Likewise.
192 2015-02-27  Marek Polacek  <polacek@redhat.com>
194         PR c/65228
195         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
197 2015-02-14  Marek Polacek  <polacek@redhat.com>
199         PR c/64768
200         * c-decl.c (grokdeclarator): Set the range of a flexible array member
201         declared through a typedef name.
203 2015-02-13  Marek Polacek  <polacek@redhat.com>
205         PR c/65050
206         * c-decl.c (grokdeclarator): Print also the type when giving
207         the error message about array's incomplete element type.
209 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
211         PR c/64824
212         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
213         check in the POP macro.
215 2015-02-09  Marek Polacek  <polacek@redhat.com>
217         PR c/64856
218         * c-typeck.c (process_init_element): Don't always wrap
219         COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
220         initializing a range of elements.
222 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
224         PR c/64824
225         PR c/64868
226         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
228 2015-02-02  Bruno Loff  <bruno.loff@gmail.com>
230         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
231         processing enum declaration.
233 2015-01-29  Marek Polacek  <polacek@redhat.com>
235         PR c/64709
236         * c-typeck.c (pop_init_level): If constructor_elements has
237         exactly one element with integer_zerop value, set constructor_zeroinit
238         to 1.  Remove braces around warning_init call.
240 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
242         PR c/64766
243         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
244         of FUNCTION_DECLs with error_mark_node.
246 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
248         PR c/64778
249         * c-typeck.c (convert_arguments): Return -1 if there are
250         error_args, even if we've diagnosed too many arguments.
252 2015-01-21  Richard Biener  <rguenther@suse.de>
254         PR middle-end/64313
255         * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
256         for builtins the user declared correctly.
258 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
259             Bernd Schmidt  <bernds@codesourcery.com>
260             Cesar Philippidis  <cesar@codesourcery.com>
261             James Norris  <jnorris@codesourcery.com>
262             Jakub Jelinek  <jakub@redhat.com>
263             Ilmir Usmanov  <i.usmanov@samsung.com>
265         * c-parser.c: Include "gomp-constants.h".
266         (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
267         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
268         Use OMP_CLAUSE_SET_MAP_KIND.
269         (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
270         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
271         (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
272         PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
273         PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
274         (c_parser_omp_clause_name): Handle "auto", "async", "copy",
275         "copyout", "create", "delete", "deviceptr", "gang", "host",
276         "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
277         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
278         "present_or_create", "pcreate", "seq", "self", "vector",
279         "vector_length", "wait", "worker".
280         (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
281         (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
282         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
283         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
284         (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
285         (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
286         (c_parser_oacc_data_clause_deviceptr)
287         (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
288         (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
289         (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
290         (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
291         (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
292         (c_parser_oacc_parallel, c_parser_oacc_update)
293         (c_parser_oacc_wait): New functions.
294         * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
295         (c_finish_oacc_data): New prototypes.
296         * c-typeck.c: Include "gomp-constants.h".
297         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
298         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
299         OMP_CLAUSE_SET_MAP_KIND.
300         (c_finish_oacc_parallel, c_finish_oacc_kernels)
301         (c_finish_oacc_data): New functions.
302         (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
303         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
304         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
305         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
306         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
307         GOMP_MAP_FORCE_DEVICEPTR.
309 2015-01-09  Michael Collison  <michael.collison@linaro.org>
311         * c-array-notation.c: Include hash-set.h, machmode.h,
312         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
313         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
314         * c-aux-info.c: Ditto.
315         * c-convert.c: Ditto.
316         * c-decl.c: Ditto.
317         * c-errors.c: Ditto.
318         * c-lang.c: Dittoxs.
319         * c-objc-common.c: Ditto.
320         * c-parser.c: Ditto.
321         * c-typeck.c: Include hash-set.h, machmode.h,
322         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
323         fold-const.h, wide-int.h, inchash.h, real.h and
324         fixed-value.h due to flattening of tree.h.
326 2015-01-07  Marek Polacek  <polacek@redhat.com>
328         PR c/64417
329         * c-typeck.c (process_init_element): Disallow initialization of
330         a flexible array member with a string constant if the structure
331         is in an array.
333 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
335         PR sanitizer/64344
336         * c-typeck.c (convert_for_assignment, c_finish_return): For
337         -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
338         types also set in_late_binary_op around convert call.
339         * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
340         to integral type casts, if not in_late_binary_op, pass c_fully_fold
341         result on expr as last argument to ubsan_instrument_float_cast,
342         if in_late_binary_op, don't use c_save_expr but save_expr.
344         Update copyright years.
346 2015-01-05  Marek Polacek  <polacek@redhat.com>
348         PR c/64423
349         * c-typeck.c (build_array_ref): Pass loc down to
350         warn_array_subscript_with_type_char.
352 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
354         * c-typeck.c: New behavious for pointers to arrays with qualifiers
355         (common-pointer-type): For pointers to arrays take qualifiers from
356         element type.
357         (build_conditional_expr): Add warnings for lost qualifiers.
358         (comp-target-types): Allow pointers to arrays with different qualifiers.
359         (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
360         WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
361         to PEDWARN_FOR_QUALIFIERS.
363 2014-12-17  Jakub Jelinek  <jakub@redhat.com>
365         PR sanitizer/64289
366         * c-convert.c: Include ubsan.h.
367         (convert): For real -> integral casts and
368         -fsanitize=float-cast-overflow don't call convert_to_integer, but
369         instead instrument the float cast directly.
371 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
373         * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
374         c_finish_stmt_expr): Remove NULL last argument from
375         create_tmp_var_raw and create_tmp_var calls.
376         * c-array-notation.c (fix_builtin_array_notation_fn,
377         build_array_notation_expr, fix_conditional_array_notations_1,
378         fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
380 2014-11-28  Marek Polacek  <polacek@redhat.com>
382         PR c/63862
383         * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
384         convert the right operand to integer type.
386 2014-11-25  Marek Polacek  <polacek@redhat.com>
388         PR c/63877
389         * c-decl.c (start_function): Disable -Wmissing-declarations warning
390         for inline functions.
392 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
394         PR target/63764
395         * c-typeck.c (build_array_ref): Adjust
396         convert_vector_to_pointer_for_subscript caller.  If it returns true,
397         call non_lvalue_loc on the result.
399 2014-11-11  Richard Biener  <rguenther@suse.de>
401         * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
402         to true.
404 2014-11-10  Andi Kleen  <ak@linux.intel.com>
406         PR c/60804
407         * c-parser.c (c_parser_statement_after_labels): Call
408         check_no_cilk.
409         (c_parser_if_statement): Dito.
410         (c_parser_switch_statement): Dito.
411         (c_parser_while_statement): Dito.
412         (c_parser_do_statement): Dito.
413         (c_parser_for_statement): Dito.
414         * c-typeck.c (c_finish_loop): Dito.
416 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
418         * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
419         OPT_Wshift_count_overflow in the warnings.
421 2014-10-30  Marek Polacek  <polacek@redhat.com>
423         * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
424         print the stripped version as well, if they're not the same.
426 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
428         * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
429         machine_mode.
431 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
433         * c-decl.c: Adjust include files.
434         * c-parser.c: Ditto.
436 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
437             Tom Tromey  <tromey@redhat.com>
439         * c-tree.h (enum c_oracle_request): New.
440         (c_binding_oracle_function): New typedef.
441         (c_binding_oracle, c_pushtag, c_bind): Declare.
442         * c-decl.c (c_binding_oracle): New global.
443         (I_SYMBOL_CHECKED): New macro.
444         (i_symbol_binding): New function.
445         (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
446         (I_TAG_CHECKED): New macro.
447         (i_tag_binding): New function.
448         (I_TAG_BINDING, I_TAG_DECL): Redefine.
449         (I_LABEL_CHECKED): New macro.
450         (i_label_binding): New function.
451         (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
452         (c_print_identifier): Save and restore c_binding_oracle.
453         (c_pushtag, c_bind): New functions.
455 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
457         * c-typeck.c: Adjust include files.
459 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
461         PR c++/53061
462         * c-objc-common.c (c_objc_common_init): Do not do diagnostics
463         initialization here...
464         (c_initialize_diagnostics): ... but here. Set defaults after
465         building pretty-printer.
467 2014-10-23  Marek Polacek  <polacek@redhat.com>
469         PR c/63626
470         * c-decl.c (pop_scope): Don't print warning in external_scope.
472 2014-10-19  Marek Polacek  <polacek@redhat.com>
474         PR c/63567
475         * c-typeck.c (output_init_element): Allow initializing objects with
476         static storage duration with compound literals even in C99 and add
477         pedwarn for it.
479 2014-10-17  Marek Polacek  <polacek@redhat.com>
481         PR c/63567
482         * c-typeck.c (digest_init): Allow initializing objects with static
483         storage duration with compound literals even in C99 and add pedwarn
484         for it.
486 2014-10-17  Marek Polacek  <polacek@redhat.com>
488         PR c/63543
489         * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
490         * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
491         error multiple times.  Print the type.
493 2014-10-17  Marek Polacek  <polacek@redhat.com>
495         PR c/63549
496         * c-typeck.c (build_array_ref): Bail if the index in an incomplete
497         type.
499 2014-10-17  Marek Polacek  <polacek@redhat.com>
501         * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
502         (start_function): Use OPT_Wimplicit_int instead of 0.
503         (store_parm_decls_oldstyle): Likewise.
505 2014-10-17  Alan Modra  <amodra@gmail.com>
507         PR middle-end/61848
508         * c-decl.c (merge_decls): Don't merge section name or tls model
509         to newdecl symtab node, instead merge to olddecl.  Override
510         existing olddecl section name.  Set tls_model for all thread-local
511         vars, not just OMP thread-private ones.  Remove incorrect comment.
513 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
515         * c-decl.c: Adjust include files.
517 2014-10-14  DJ Delorie  <dj@redhat.com>
519         * c-parser.c (c_parse_init): Add RID entries for each __intN.
520         (c_token_starts_typename): Check all __intN, not just __int128.
521         (c_token_starts_declspecs): Likewise.
522         (c_parser_declspecs): Likewise.
523         (c_parser_attribute_any_word): Likewise.
524         (c_parser_objc_selector): Likewise.
525         * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
526         (struct c_declspecs): Add int_n_idx field to record *which* __intN
527         is specified.
528         * c-decl.c (declspecs_add_type): Check for all __intN, not just
529         __int128.
530         (finish_declspecs): Likewise.
532 2014-10-13  Anthony Brandon  <anthony.brandon@gmail.com>
534         * c-parser.c (c_parser_all_labels): New function to replace
535         the duplicate code.
536         (c_parser_statement): Call the new function.
538 2014-10-09  Marek Polacek  <polacek@redhat.com>
540         PR c/63480
541         * c-typeck.c (pop_init_level): Don't warn about initializing
542         with { }.
544 2014-10-07  Marek Polacek  <polacek@redhat.com>
546         PR c/59717
547         * c-decl.c (header_for_builtin_fn): New function.
548         (implicitly_declare): Suggest which header to include.
550 2014-10-07  Marek Polacek  <polacek@redhat.com>
552         * c-convert.c (convert): Use error_operand_p.
553         * c-typeck.c (require_complete_type): Likewise.
554         (really_atomic_lvalue): Likewise.
555         (digest_init): Likewise.
556         (handle_omp_array_sections_1): Likewise.
558 2014-10-03  Marek Polacek  <polacek@redhat.com>
560         PR c/63453
561         * c-decl.c (pop_scope): Don't warn about "inline function declared
562         but never defined" for functions marked with gnu_inline attribute.
564 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
566         PR c++/63249
567         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
568         on low_bound and length.
570 2014-09-24  Marek Polacek  <polacek@redhat.com>
572         PR c/61405
573         PR c/53874
574         * c-parser.c: Don't define CPP_KEYWORD.
575         (c_parser_switch_statement): Pass original type to c_finish_case.
576         * c-tree.h (c_finish_case): Update declaration.
577         * c-typeck.c (c_finish_case): Add TYPE parameter.  Pass it
578         conditionally to c_do_switch_warnings.
580 2014-09-03  Marek Polacek  <polacek@redhat.com>
582         PR c/62024
583         * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
584         conversions.
586 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
587             Balaji V. Iyer  <balaji.v.iyer@intel.com>
588             Igor Zamyatin  <igor.zamyatin@intel.com>
590         * c-parser.c (c_parser_cilk_for): New function.
591         (c_parser_cilk_grainsize): Likewise.
592         (c_get_temp_regvar): Likewise.
593         (c_parser_statement_after_labels): Added RID_CILK_FOR case.
594         (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
595         (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
596         * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
597         case.
599 2014-08-27  Chen Gang  <gang.chen.5i5j@gmail.com>
601         * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
602         with using HOST_WIDE_INT without truncation to 'int'
604 2014-08-22  Marek Polacek  <polacek@redhat.com>
606         PR c++/62199
607         * c-typeck.c (parser_build_binary_op): Adjust call to
608         warn_logical_not_parentheses.
610 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
612         PR other/62008
613         * c-parser.c (c_parser_array_notation): Check for correct
614         type of an array added.
616 2014-08-19  Marek Polacek  <polacek@redhat.com>
618         PR c++/62153
619         * c-typeck.c (build_binary_op): If either operand of a comparison
620         is a boolean expression, call maybe_warn_bool_compare.
622 2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
624         PR c/45584
625         * c-typeck.c (build_c_cast): Do a conversion even when the
626         TYPE_MAIN_VARIANTs are the same.
628 2014-08-19  Marek Polacek  <polacek@redhat.com>
630         * c-decl.c (diagnose_mismatched_decls): Unconditionally call
631         pedwarn_c99 instead of pedwarn.
632         (grokfield): Likewise.
633         (warn_defaults_to): New function.
634         (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
635         Unconditionally call pedwarn_c99 instead of pedwarn.
636         (start_function): Call warn_defaults_to instead of pedwarn_c99.
637         (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
638         check flag_isoc11 before.
639         * c-errors.c (pedwarn_c99): Change the return type to bool.
640         Handle -Wc99-c11-compat.
641         * c-parser.c (disable_extension_diagnostics): Handle
642         warn_c99_c11_compat.
643         (restore_extension_diagnostics): Likewise.
644         (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
645         instead of pedwarn, don't check flag_isoc11 before.
646         (c_parser_declspecs): Likewise.
647         (c_parser_alignas_specifier): Likewise.
648         (c_parser_alignof_expression): Likewise.
649         (c_parser_generic_selection): Likewise.
650         * c-tree.h (pedwarn_c99): Update declaration.
651         * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
652         of pedwarn_c99.
654 2014-08-19  Marek Polacek  <polacek@redhat.com>
656         * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
657         to pedwarn_c90.
658         * c-errors.c: Include "opts.h".
659         (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
660         * c-parser.c (disable_extension_diagnostics): Handle negative value
661         of warn_c90_c99_compat, too.
662         (restore_extension_diagnostics): Likewise.
663         (c_parser_compound_statement_nostart): Pass
664         OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
666 2014-08-12  Marek Polacek  <polacek@redhat.com>
668         * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
669         Add pedwarn.
670         (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
671         Likewise.
672         (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
674 2014-08-10 Marek Polacek  <polacek@redhat.com>
676         PR c/51849
677         * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
678         Call pedwarn_c90 instead of pedwarn.
679         (check_bitfield_type_and_width): Likewise.
680         (declspecs_add_qual): Likewise.
681         (declspecs_add_type): Likewise.
682         (warn_variable_length_array): Unify function for -pedantic and -Wvla.
683         Adjust to only call pedwarn_c90.
684         (grokdeclarator): Remove pedantic && !flag_isoc99 check.  Call
685         pedwarn_c90 instead of pedwarn.
686         * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
687         * c-parser.c (disable_extension_diagnostics): Handle
688         warn_c90_c99_compat.
689         (restore_extension_diagnostics): Likewise.
690         (c_parser_enum_specifier): Remove check for !flag_isoc99.  Call
691         pedwarn_c90 instead of pedwarn.
692         (c_parser_initelt): Likewise.
693         (c_parser_postfix_expression): Likewise.
694         (c_parser_postfix_expression_after_paren_type): Likewise.
695         (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
696         * c-tree.h: Fix formatting.
697         * c-typeck.c (build_array_ref): Remove check for !flag_isoc99.  Call
698         pedwarn_c90 instead of pedwarn.
700 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
702         * c-typeck.c: Remove include of pointer-set.h.
704 2014-08-07  Marek Polacek  <polacek@redhat.com>
706         * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
708 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
710         * c-typeck.c: Use hash_map instead of pointer_map.
712 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
714         * c-decl.c: Use hash_set instead of pointer_set.
716 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
718         PR middle-end/61455
719         * c-array-notation.c (expand_array_notations): Handling
720         of DECL_EXPR added.
722 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
724         PR c++/60517
725         * c-typeck.c (c_finish_return): Return 0 instead of the address of
726         a local variable.
728 2014-07-30  Tom Tromey  <tromey@redhat.com>
730         * c-typeck.c (struct constructor_stack) <designator_depth>: New
731         field.
732         (really_start_incremental_init, push_init_level): Initialize
733         designator_depth.
734         (pop_init_level): Set global designator_depth.
735         (process_init_element): Check for designated_init attribute.
737 2014-07-20  Marek Polacek  <polacek@redhat.com>
739         PR c/61852
740         * c-decl.c (implicit_decl_warning): Add location_t parameter.  Use it.
741         (implicitly_declare): Pass location to implicit_decl_warning.
743 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
745         PR middle-end/61294
746         * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
747         If non-NULL, call c_parser_check_literal_zero.
748         (c_parser_check_literal_zero): New function.
749         (c_parser_postfix_expression_after_primary): Adjust
750         c_parser_expr_list caller, handle -Wmemset-transposed-args.
752 2014-07-06  Marek Polacek  <polacek@redhat.com>
754         PR c/6940
755         * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
756         * c-tree.h (C_ARRAY_PARAMETER): Define.
757         * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
758         function parameter.
760 2014-07-02  Jan Hubicka  <hubicka@ucw.cz>
761             Chen Gang <gang.chen.5i5j@gmail.com>
763         * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
764         releasing symbol.
766 2014-07-01  Marek Polacek  <polacek@redhat.com>
768         * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
769         instead of 0 to WARN_FOR_ASSIGNMENT.
771 2014-07-01  Marek Polacek  <polacek@redhat.com>
773         PR c/58286
774         * c-typeck.c (convert_for_assignment): Pass
775         OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
777 2014-06-30  Marek Polacek  <polacek@redhat.com>
779         * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
780         has no_sanitize_undefined attribute.
782 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
784         PR middle-end/57541
785         * c-array-notation.c (fix_builtin_array_notation_fn):
786         Check for 0 arguments in builtin call. Check that bultin argument is
787         correct.
788         * c-parser.c (c_parser_array_notation): Check for incorrect initial
789         index.
791 2014-06-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
793         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
794         qualifiers in __auto_type for atomic types.
795         (c_parser_typeof_specifier): Discard all type qualifiers in
796         __typeof__ for atomic types.
798 2014-06-25  Marek Polacek  <polacek@redhat.com>
800         PR c/61162
801         * c-parser.c (c_parser_statement_after_labels): Pass the location of
802         the return expression to c_finish_return.
804 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
806         * c-typeck.c (c_finish_omp_clauses): Make sure
807         OMP_CLAUSE_LINEAR_STEP has correct type.
809 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
811         * c-decl.c: Adjust.
813 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
815         * c-parser.c (c_parser_omp_for_loop): For
816         #pragma omp parallel for simd move lastprivate clause from parallel
817         to for rather than simd.
819 2014-06-23  Marek Polacek  <polacek@redhat.com>
821         * c-typeck.c (parser_build_binary_op): Don't call
822         warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
824 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
826         * c-parser.c (c_parser_omp_threadprivate): Likewise.
827         * c-decl.c (merge_decls): Likewise.
829 2014-06-09  Marek Polacek  <polacek@redhat.com>
831         PR c/36446
832         * c-typeck.c (error_init): Call inform instead of error_at.
833         (pedwarn_init): Call inform instead of pedwarn.
834         (warning_init): Call inform instead of warning_at.
836 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
838         * c-decl.c (merge_decls): Use set_decl_section_name.
839         (duplicate_decls): Remove node if it exists.
841 2014-06-05  S. Gilles  <sgilles@terpmail.umd.edu>
843         PR c/53119
844         * c-typeck.c (push_init_level, process_init_element,
845         pop_init_level): Correct check for zero initialization, move
846         missing brace warning to respect zero initialization.
848 2014-06-05  Marek Polacek  <polacek@redhat.com>
850         PR c/56724
851         * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
853 2014-06-05  Marek Polacek  <polacek@redhat.com>
855         PR c/49706
856         * c-typeck.c (parser_build_binary_op): Warn when logical not is used
857         on the left hand side operand of a comparison. 
859 2014-06-05  Marek Polacek  <polacek@redhat.com>
861         PR c/48062
862         * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
863         Print note only if the warning was printed.
865 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
867         PR c/58942
868         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
869         with a pointer.
871 2014-06-03  Marek Polacek  <polacek@redhat.com>
873         PR c/60439
874         * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
875         c_start_case.
876         * c-tree.h (c_start_case): Update.
877         * c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
878         switch condition has boolean value.
880 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
882         * c-decl.c: Include builtins.h.
883         * c-parser.c: Likewise.
885 2014-05-27  Marek Polacek  <polacek@redhat.com>
887         PR c/56724
888         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
889         error and warning calls to error_at and warning_at.  Pass location of
890         a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
891         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
892         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
894 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
896         PR c/61191
897         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
898         function parameters.
900 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
902         * c-decl.c (merge_decls): Preserve symtab node pointers.
903         (duplicate_decls): Free new decl.
905 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
907         * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
908         initialization.
910         * c-parser.c (c_parser_omp_target): Return bool values.
912 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
914         * c-parser.c (c_parser_omp_clause_thread_limit): Rename
915         num_teams_loc variable to num_thread_limit_loc.
917 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
919         * c-array-notation.c (expand_array_notations): Use void_node
920         instead of void_zero_node.
922 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
924         * c-decl.c (finish_struct): Adjust.
925         (finish_enum): Likewise.
926         (bind): Adjust.
927         (record_inline_static): Likewise.
928         (push_scope): Likewise.
929         (make_label): Likewise.
930         (lookup_label_for_goto): Likewise.
931         (finish_struct): Likewise.
932         (finish_enum): Likewise.
933         (store_parm_decls): Likewise.
934         (c_push_function_context): Likewise.
935         * c-lang.h: Remove usage of variable_size gty attribute.
936         * c-parser.c (c_parse_init): Adjust.
937         (c_parse_file): Likewise.
939 2014-05-13  Marek Polacek  <polacek@redhat.com>
941         PR c/61162
942         * c-typeck.c (convert_for_assignment): Pass location to
943         WARN_FOR_ASSIGNMENT instead of input_location.
945 2014-05-10  Marek Polacek  <polacek@redhat.com>
947         * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
948         maybe_warn_string_init.
949         (c_parser_postfix_expression_after_paren_type): Pass type_loc to
950         maybe_warn_string_init.
951         * c-tree.h (maybe_warn_string_init): Update declaration.
952         * c-typeck.c (maybe_warn_string_init): Add location parameter.
953         Call pedwarn_init with loc instead of with input_location.
954         (digest_init): Pass init_loc to maybe_warn_string_init.
955         (pop_init_level): Call pedwarn_init with loc instead of with
956         input_location.
957         (set_init_index): Likewise.
958         (process_init_element): Likewise.
960 2014-05-09  Marek Polacek  <polacek@redhat.com>
962         PR c/61096
963         * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
964         (c_parser_initelt): Pass location to set_init_label.  Pass array index
965         location to set_init_index.
966         * c-tree.h (push_init_level): Update declaration.
967         (pop_init_level): Likewise.
968         (set_init_index): Likewise.
969         (set_init_label): Likewise.
970         * c-typeck.c (error_init): Add location parameter.  Call error_at
971         instead of error.
972         (digest_init): Pass init_loc to error_init.
973         (really_start_incremental_init):
974         (push_init_level): Add location parameter.  Pass loc to pop_init_level
975         and error_init.
976         (pop_init_level): Likewise.
977         (set_designator): Add location parameter.  Pass loc to pop_init_level,
978         push_init_level, and error_init.
979         (set_init_index): Add location parameter.  Pass loc to error_init and
980         set_designator.
981         (set_init_label): Likewise.
982         (output_init_element): Pass loc to error_init.
983         (process_init_element): Pass loc to error_init, pop_init_level,
984         pedwarn_init, and push_init_level.
986 2014-05-09  Marek Polacek  <polacek@redhat.com>
988         PR c/50459
989         * c-parser.c (c_parser_attributes): Parse the arguments as an
990         expression-list if the attribute takes identifier.
992 2014-05-08  Marek Polacek  <polacek@redhat.com>
994         PR c/61053
995         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
996         TYPE_ALIGN_UNIT.
998 2014-05-08  Marek Polacek  <polacek@redhat.com>
1000         PR c/61077
1001         * c-decl.c (start_function): Warn for _Atomic-qualified return type
1002         of main.
1004 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1005             Mike Stump  <mikestump@comcast.net>
1006             Richard Sandiford  <rdsandiford@googlemail.com>
1008         * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
1009         (finish_enum): Use wide-int interfaces.
1010         * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
1011         * c-typeck.c (build_c_cast): Likewise.
1012         (set_nonincremental_init_from_string): Likewise.
1013         (c_tree_equal): Likewise.
1015 2014-05-02  Marek Polacek  <polacek@redhat.com>
1017         PR c/25801
1018         * c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
1019         Return size_one_node when the type is not complete.
1020         (pointer_diff): Remove comment.
1021         (build_unary_op): Improve error messages.
1023 2014-05-02  Marek Polacek  <polacek@redhat.com>
1025         * c-typeck.c (c_finish_return): Separate warning_at calls.
1027 2014-05-02  Marek Polacek  <polacek@redhat.com>
1029         * c-tree.h (error_init): Remove declaration.
1030         (pedwarn_init): Likewise.
1031         * c-typeck.c (error_init): Make static and move above.
1032         (pedwarn_init): Likewise.
1033         (warning_init): Move above.
1034         (maybe_warn_string_init): Likewise.
1036 2014-05-01  Jeff Law  <law@redhat.com>
1038         Revert:
1040         2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1041         * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1042         avoid goto.
1044 2014-05-02  Marek Polacek  <polacek@redhat.com>
1046         PR c/60784
1047         * c-typeck.c (push_init_level): Set constructor_designated to
1048         p->designated for structures.
1050 2014-05-01  Marek Polacek  <polacek@redhat.com>
1052         PR c/60915
1053         * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1054         function-definition has an attribute after the declarator.
1056 2014-05-01  Marek Polacek  <polacek@redhat.com>
1058         PR c/60257
1059         * c-typeck.c (warning_init): Add location_t parameter.  Call
1060         warning_at instead of warning.
1061         (push_init_level): Pass input_location to warning_init.
1062         (add_pending_init): Add location_t parameter.  Pass loc to
1063         warning_init.
1064         (set_nonincremental_init): Pass input_location to add_pending_init.
1065         (set_nonincremental_init_from_string): Likewise.
1066         (output_init_element): Pass loc to warning_init and to
1067         add_pending_init.
1069 2014-05-01  Marek Polacek  <polacek@redhat.com>
1071         PR c/43395
1072         * c-typeck.c (c_finish_return): Distinguish between label and variable
1073         when warning about returning local address.
1075 2014-05-01  Marek Polacek  <polacek@redhat.com>
1077         PR c/29467
1078         * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1079         in C89 mode.
1081 2014-05-01  Marek Polacek  <polacek@redhat.com>
1083         PR c/43245
1084         * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1085         instead of 0 to WARN_FOR_QUALIFIERS.
1087 2014-05-01  Marek Polacek  <polacek@redhat.com>
1089         PR c/56989
1090         * c-typeck.c (default_conversion): Use better location for
1091         error call.
1093 2014-04-30  Marek Polacek  <polacek@redhat.com>
1095         * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1096         also when SANITIZE_FLOAT_DIVIDE is on.
1098 2014-04-30  Marek Polacek  <polacek@redhat.com>
1100         PR c/60139
1101         * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1102         and pedwarn_init.  Use loc insted of input_location.
1104 2014-04-30  Marek Polacek  <polacek@redhat.com>
1106         PR c/60351
1107         * c-typeck.c (build_binary_op): Use location when warning about
1108         shift count.
1110 2014-04-25  Marek Polacek  <polacek@redhat.com>
1112         PR c/18079
1113         * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1114         always_inline/noinline and hot/cold attributes.
1116 2014-04-25  Marek Polacek  <polacek@redhat.com>
1118         PR c/60114
1119         * c-parser.c (c_parser_initelt): Pass input_location to
1120         process_init_element.
1121         (c_parser_initval): Pass loc to process_init_element.
1122         * c-tree.h (process_init_element): Adjust declaration.
1123         * c-typeck.c (push_init_level): Pass input_location to
1124         process_init_element.
1125         (pop_init_level): Likewise.
1126         (set_designator): Likewise.
1127         (output_init_element): Add location_t parameter.  Pass loc to
1128         digest_init.
1129         (output_pending_init_elements): Pass input_location to
1130         output_init_element.
1131         (process_init_element): Add location_t parameter.  Pass loc to
1132         output_init_element.
1134 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
1136         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1137         atomic-clause, allow comma in between atomic-clause and
1138         seq_cst.
1140 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1142         PR c/59073
1143         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1144         fails, don't set OM_PARALLEL_COMBINED and return NULL.
1146 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1148         PR middle-end/60469
1149         * c-array-notation.c (fix_builtin_array_notation_fn): Use
1150         create_tmp_var instead build_decl for creating temps.
1151         (build_array_notation_expr): Likewise.
1152         (fix_conditional_array_notations_1): Likewise.
1153         (fix_array_notation_expr): Likewise.
1154         (fix_array_notation_call_expr): Likewise.
1156 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1158         PR c++/60689
1159         * c-tree.h (c_build_function_call_vec): New prototype.
1160         * c-typeck.c (build_function_call_vec): Don't call
1161         resolve_overloaded_builtin here.
1162         (c_build_function_call_vec): New wrapper function around
1163         build_function_call_vec.  Call resolve_overloaded_builtin here.
1164         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1165         Call c_build_function_call_vec instead of build_function_call_vec.
1166         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1167         * c-decl.c (finish_decl): Likewise.
1169 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1171         PR c/55383
1172         * c-typeck.c: Use correct format string in cast-qual warning
1174 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
1176         * c-decl.c (c_decl_attributes): Use
1177         lang_hooks.types.omp_mappable_type.
1178         * c-typeck.c (c_finish_omp_clauses): Likewise.
1180 2014-03-06  Marek Polacek  <polacek@redhat.com>
1182         PR c/60197
1183         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1184         of checking tree code.
1186 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1188         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1189         (c_parser_parameter_declaration): Likewise.
1191 2014-02-19  Marek Polacek  <polacek@redhat.com>
1193         PR c/60195
1194         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1195         Call mark_exp_read on exp.value.
1196         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
1197         TREE_ADDRESSABLE on old instead of val.
1198         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1200 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1202         * c-parser.c (c_parser_get_builtin_args): Replace calls to
1203         C_EXPR_APPEND by vec_safe_push.
1204         * c-tree.h (C_EXPR_APPEND): Remove.
1206 2014-01-31  Marek Polacek  <polacek@redhat.com>
1208         PR c/59963
1209         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1210         build_function_call_vec.
1211         (build_function_call): Likewise.
1212         (build_atomic_assign): Likewise.
1213         (build_function_call_vec): Add arg_loc parameter.  Use it.
1214         (convert_arguments): Likewise.
1215         (convert_for_assignment): Rename rhs_loc to expr_loc.
1216         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1217         (c_parser_objc_keywordexpr): Likewise.
1218         (c_parser_postfix_expression_after_primary): Call
1219         build_function_call_vec with expr_loc rather than op_loc.
1220         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
1221         build_function_call_vec.
1222         (c_parser_expr_list): Add locations parameter.  Fill it with locations
1223         of function arguments.
1224         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1226 2014-01-30  Marek Polacek  <polacek@redhat.com>
1228         PR c/59940
1229         * c-typeck.c (build_function_call_vec): Use loc parameter.
1230         (convert_arguments): Add location parameter.  Use it.
1231         (ep_convert_and_check): Likewise.
1232         (build_atomic_assign): Adjust convert_for_assignment call.
1233         (build_modify_expr): Likewise.
1234         (digest_init): Likewise.
1235         (c_finish_return): Likewise.
1236         (build_conditional_expr): Adjust ep_convert_and_check calls.
1237         (convert_for_assignment): Add rhs_loc parameter.  Use it.
1238         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1239         calls.
1241 2014-01-30  Richard Biener  <rguenther@suse.de>
1243         PR c/59905
1244         * c-typeck.c (build_function_call_vec): Do not replace calls
1245         to a function via an incompatible type with a runtime abort.
1247 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1249         * c-parser.c (c_parser_declaration_or_fndef): Replaced
1250         flag_enable_cilkplus with flag_cilkplus.
1251         (c_parser_direct_declarator_inner): Likewise.
1252         (c_parser_attribute_any_word): Likewise.
1253         (c_parser_attributes): Likewise.
1254         (c_parser_compound_statement): Likewise.
1255         (c_parser_statement_after_labels): Likewise.
1256         (c_parser_if_statement): Likewise.
1257         (c_parser_switch_statement): Likewise.
1258         (c_parser_do_statement): Likewise.
1259         (c_parser_for_statement): Likewise.
1260         (c_parser_unary_expression): Likewise.
1261         (c_parser_postfix_expression): Likewise.
1262         (c_parser_postfix_expression_after_primary): Likewise.
1263         (c_parser_postfix_expression_after_primary): Likewise.
1264         (c_parser_omp_clause_name): Likewise.
1265         (c_finish_omp_declare_simd): Likewise.
1266         (c_parser_cilk_verify_simd): Likewise.
1267         * c-typeck.c (build_array_ref): Likewise.
1268         (build_function_call_vec): Likewise.
1269         (convert_arguments): Likewise.
1270         (build_compound_expr): Likewise.
1271         (c_finish_return): Likewise.
1272         (c_finish_if_stmt): Likewise.
1273         (c_finish_loop): Likewise.
1274         (build_binary_op): Likewise.
1276 2014-01-23  Marek Polacek  <polacek@redhat.com>
1278         PR c/59846
1279         * c-typeck.c (parser_build_binary_op): Use location instead of
1280         input_location.
1281         (build_binary_op): Pass location to shorten_compare.
1283 2014-01-23  Marek Polacek  <polacek@redhat.com>
1285         PR c/58346
1286         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1287         an empty aggregate.
1289 2014-01-23  Marek Polacek  <polacek@redhat.com>
1291         PR c/59871
1292         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1293         of a comma expression.
1294         (emit_side_effect_warnings): Likewise.
1296 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1298         PR c/59825
1299         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1300         function to use walk_tree and moved a lot of its functionality to
1301         expand_array_notations.
1302         (expand_array_notations): New function.
1304 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1306         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1307         attribute an attribute without value.
1309 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
1311         PR middle-end/58809
1312         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1313         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1315 2014-01-22  Marek Polacek  <polacek@redhat.com>
1317         PR c/59891
1318         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1319         of remove_c_maybe_const_expr on op1 and op2.
1321 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1323         PR c/58943
1324         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1325         effects, preevaluate rhs using SAVE_EXPR first.
1327 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1329         PR c++/59631
1330         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1331         statements with if-elseif statements.
1333 2014-01-06  Marek Polacek  <polacek@redhat.com>
1335         PR c/57773
1336         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1337         defined bit-field types only in ISO C.
1339 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1341         Update copyright years
1343 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1345         * c-array-notation.c: Use the standard form for the copyright notice.
1347 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1349         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1350         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1351         field in parser is not empty.  If not-empty, call the function
1352         c_parser_finish_omp_declare_simd.
1353         (c_parser_cilk_clause_vectorlength): Modified function to be shared
1354         between SIMD-enabled functions and #pragma simd.  Added new parameter.
1355         (c_parser_cilk_all_clauses): Modified the usage of the function
1356         c_parser_cilk_clause_vectorlength as mentioned above.
1357         (c_parser_cilk_simd_fn_vector_attrs): New function.
1358         (c_finish_cilk_simd_fn_tokens): Likewise.
1359         (is_cilkplus_vector_p): Likewise.
1360         (c_parser_omp_clause_name): Added checking for "vectorlength,"
1361         "nomask," and "mask" strings in clause name.
1362         (c_parser_omp_all_clauses): Added 3 new case statements:
1363         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1364         PRAGMA_CILK_CLAUSE_NOMASK.
1365         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
1366         check for vector attribute and if so call the function
1367         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
1368         called the function c_finish_cilk_simd_fn_tokens.
1369         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1370         parser field is non-empty.  If so, parse them as you would parse
1371         the omp declare simd pragma.
1372         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1373         Added a check when step is a parameter and flag it as error.
1374         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1375         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1376         pragma_omp_clause.
1378 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
1380         * c-parser.c (c_parser_omp_parallel): Fix description.
1382 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1384         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1385         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1386         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1387         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1389 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1391         PR c/52023
1392         * c-parser.c (c_parser_alignas_specifier): Use
1393         c_sizeof_or_alignof_type instead of c_alignof.
1394         (c_parser_alignof_expression): Likewise, with min_alignof
1395         parameter depending on alignof spelling used.
1397 2013-12-04  Marek Polacek  <polacek@redhat.com>
1399         PR c/54113
1400         * c-decl.c (start_function): Don't warn for missing prototype for
1401         inline functions.
1403 2013-12-03  Marek Polacek  <polacek@redhat.com>
1405         PR c/59351
1406         * c-decl.c (build_compound_literal): Allow compound literals with
1407         empty initial value.
1409 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
1411         PR c/58235
1412         * c-typeck.c (build_modify_expr): Diagnose assignment to
1413         expression with array type.
1415 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1417         PR c/42262
1418         * c-typeck.c (process_init_element): Do not treat a string as
1419         initializing a whole array when used with a designator for an
1420         individual element.
1422 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1424         PR c/57574
1425         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1426         an inline function following a static declaration.
1428 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1430         PR c/59310
1431         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1432         to p_name before calling c_parser_omp_teams instead of after.
1433         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1434         argument.  Remove unused p_name variable.
1436 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1437             Jakub Jelinek  <jakub@redhat.com>
1439         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1440         external_scope is NULL.
1442 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1443             Marc Glisse  <marc.glisse@inria.fr>
1445         PR c++/59032
1446         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1448 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1450         * c-typeck.c: Add required include files from gimple.h.
1452 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1454         * c-decl.c (define_label, shadow_tag_warned)
1455         (check_bitfield_type_and_width, grokdeclarator, grokparms,
1456         store_parm_decls_newstyle, store_parm_decls_oldstyle)
1457         (declspecs_add_type): Remove use of in_system_header macro.
1458         * c-parser.c (c_parser_unary_expression): Likewise.
1459         * c-typeck.c (store_init_value, process_init_element)
1460         (c_start_case): Likewise.
1462         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1463         macro.
1465         * c-parser.c (c_parser_set_source_position_from_token): Remove
1466         reference to in_system_header from comment.
1468 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1470         * c-decl.c (grokdeclarator): Update comment to refer to
1471         tree_to_[su]hwi rather than tree_low_cst.
1473 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1475         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1476         tree_to_uhwi throughout.
1478 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1480         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1481         throughout.
1483 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1485         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1486         throughout.
1488 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1490         * c-parser.c (c_parser_cilk_simd): New.
1491         (c_parser_cilk_verify_simd): New.
1492         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1493         (c_parser_omp_for_loop): Add case for NE_EXPR.
1494         Set c_break_label for CILK_SIMD.
1495         (c_parser_cilk_clause_vectorlength): New.
1496         (c_parser_cilk_clause_linear): New.
1497         (c_parser_cilk_clause_name): New.
1498         (c_parser_cilk_all_clauses): New.
1499         * c-typeck.c (build_unary_op): Pass location argument to
1500         readonly_error.
1501         (build_modify_expr): Same.
1502         (build_asm_expr): Same.
1503         (c_finish_bc_stmt): Error on break/continue in loops.
1505 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1507         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1509 2013-11-14  Diego Novillo  <dnovillo@google.com>
1511         * c-decl.c: Include print-tree.h.
1512         Include stor-layout.h.
1513         Include varasm.h.
1514         Include attribs.h.
1515         Include stringpool.h.
1516         * c-lang.c: Include fold-const.h.
1517         * c-parser.c: Include stringpool.h.
1518         Include attribs.h.
1519         Include stor-layout.h.
1520         Include varasm.h.
1521         Include trans-mem.h.
1522         * c-typeck.c: Include stor-layout.h.
1523         Include trans-mem.h.
1524         Include varasm.h.
1525         Include stmt.h.
1527 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1529         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1530         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1531         __auto_type.
1532         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1533         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1534         RID_AUTO_TYPE.
1535         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1536         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1537         (c_parser_declarator, c_parser_direct_declarator_inner)
1538         (c_parser_parameter_declaration, c_parser_type_name): All callers
1539         changed.
1540         (c_parser_declaration_or_fndef): Handle declarations with type
1541         determined from the initializer.
1543 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1545         * c-typeck.c: Include gimplify.h.
1547 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1549         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1550         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1551         comment.
1552         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1553         or _Thread_local as appropriate in diagnostics.
1554         (build_null_declspecs): Initialize ret->thread_gnu_p.
1555         (declspecs_add_scspec): Handle either __thread or _Thread_local
1556         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
1557         pedantic.  Do not disallow _Thread_local extern and _Thread_local
1558         static.
1560 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
1561             Andrew MacLeod  <amacleod@redhat.com>
1563         * c-aux-info.c (gen_type): Handle atomic qualifier.
1564         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1565         qualifiers when compating types.
1566         (shadow_tag_warned): Handle atomic_p in declspecs.
1567         (quals_from_declspecs): Likewise.
1568         (start_decl): Use c_type_promotes_to when promoting argument
1569         types.
1570         (grokdeclarator): Handle _Atomic.
1571         (get_parm_info): Diagnose any qualifier on "void" as only
1572         parameter.
1573         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1574         comparing types.  Use c_type_promotes_to when promoting argument
1575         types.
1576         (finish_function): Use c_type_promotes_to when promoting argument
1577         types.
1578         (build_null_declspecs): Handle atomic_p in declspecs.
1579         (declspecs_add_qual): Handle RID_ATOMIC.
1580         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1581         (c_token_starts_declspecs): Handle RID_ATOMIC.
1582         (c_parser_declspecs): Handle atomic type specifiers and
1583         qualifiers.
1584         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1585         from types of expressions with atomic type.
1586         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1587         (c_parser_attribute_any_word): Handle RID_ATOMIC.
1588         (c_parser_initializer, c_parser_initelt, c_parser_initval)
1589         (c_parser_statement_after_labels, c_parser_switch_statement)
1590         (c_parser_for_statement, c_parser_expr_no_commas)
1591         (c_parser_conditional_expression, c_parser_binary_expression)
1592         (c_parser_cast_expression, c_parser_unary_expression)
1593         (c_parser_postfix_expression)
1594         (c_parser_postfix_expression_after_primary, c_parser_expression):
1595         Use convert_lvalue_to_rvalue.
1596         (c_parser_expression_conv, c_parser_expr_list): Document
1597         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
1598         (c_parser_objc_synchronized_statement): Use
1599         convert_lvalue_to_rvalue.
1600         (c_parser_objc_selector): Handle RID_ATOMIC.
1601         (c_parser_objc_receiver, c_parser_array_notation): Use
1602         convert_lvalue_to_rvalue.
1603         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1604         _Atomic (type-name).
1605         (struct c_declspecs): Add atomic_p field.
1606         (convert_lvalue_to_rvalue): Declare.
1607         * c-typeck.c (c_type_promotes_to): Promote atomic types to
1608         corresponding atomic types.
1609         (qualify_type): Don't add _Atomic qualifiers from second argument.
1610         (comp_target_types): Do not allow _Atomic mismatches.
1611         (type_lists_compatible_p): Do not remove atomic qualifiers when
1612         comparing types.
1613         (really_atomic_lvalue, convert_lvalue_to_rvalue)
1614         (build_atomic_assign): New functions.
1615         (build_unary_op): Use build_atomic_assign for atomic increment and
1616         decrement.
1617         (build_conditional_expr): Do not treat _Atomic void as a qualified
1618         version of void.
1619         (build_modify_expr): Use build_atomic_assign for atomic LHS.
1620         (find_anonymous_field_with_type, convert_to_anonymous_field)
1621         (convert_for_assignment): Do not remove atomic qualifiers when
1622         comparing types.
1623         (digest_init): Do not accept initialization of arrays of atomic
1624         elements by string constants.
1625         (build_asm_expr): Use convert_lvalue_to_rvalue.
1626         (build_binary_op): Do not treat _Atomic void as a qualified
1627         version of void.
1629 2013-11-06  DJ Delorie  <dj@redhat.com>
1631         * c-decl.c (locate_old_decl): If a previous conflicting decl is
1632         both explicit and builtin, print the location of the explicit one.
1634 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1636         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1637         c_parser_omp_distribute, c_parser_omp_teams,
1638         c_parser_omp_target, c_parser_omp_declare): Handle
1639         -fopenmp-simd.
1641 2013-11-03  Marek Polacek  <polacek@redhat.com>
1643         * c-decl.c (grokdeclarator): Add VLA instrumentation.
1645 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
1647         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1648         check_dup_generic at the end, unless remove is true.
1649         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1650         remove = true;.
1651         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1653 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
1655         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1656         with decl that is not pointer nor array.
1658 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1660         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1661         a spawning function is found.
1662         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1663         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1664         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1665         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1666         case.
1667         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1668         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1669         expr.
1670         (c_finish_return): Added a check to reject _Cilk_spawn in return
1671         expression.
1672         (build_cilk_spawn): New function.
1673         (build_cilk_sync): Likewise.
1674         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1675         
1676 2013-10-27  Tobias Burnus  <burnus@net-b.de>
1678         PR other/33426
1679         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1680         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1681         (c_parser_statement_after_labels): Update calls.
1683 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1685         PR other/33426
1686         * c-parser.c (c_parser_pragma, c_parser_for_statement):
1687         Handle PRAGMA_IVDEP.
1688         (c_parser_statement_after_labels): Update call.
1690 2013-10-24  Marek Polacek  <polacek@redhat.com>
1692         * c-parser.c (c_parser_struct_declaration): Add a comment.
1693         (c_parser_declarator): Don't allow _Alignas here.
1695 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
1697         * c-parser.c: Include omp-low.h.
1698         * c-typeck.c: Likewise.
1700 2013-10-17  Marek Polacek  <polacek@redhat.com>
1702         PR c/58267
1703         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1704         Document syntax of the array-declarator.
1705         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1706         are not permitted.
1707         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1708         (c_parser_struct_declaration): Likewise.
1709         (c_parser_declarator): Likewise.
1710         (c_parser_direct_declarator_inner): Likewise.
1711         (c_parser_parameter_declaration): Likewise.
1712         (c_parser_type_name): Likewise.
1714 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1716         * c-lang.h (current_omp_declare_target_attribute): New extern
1717         decl.
1718         * c-parser.c: Include c-lang.h.
1719         (struct c_parser): Change tokens to c_token *.
1720         Add tokens_buf field.  Change tokens_avail type to unsigned int.
1721         (c_parser_consume_token): If parser->tokens isn't
1722         &parser->tokens_buf[0], increment parser->tokens.
1723         (c_parser_consume_pragma): Likewise.
1724         (enum pragma_context): Add pragma_struct and pragma_param.
1725         (c_parser_external_declaration): Adjust
1726         c_parser_declaration_or_fndef caller.
1727         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1728         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1729         Adjust recursive call.
1730         (c_parser_struct_or_union_specifier): Use pragma_struct instead
1731         of pragma_external.
1732         (c_parser_parameter_declaration): Use pragma_param instead of
1733         pragma_external.
1734         (c_parser_compound_statement_nostart, c_parser_label,
1735         c_parser_for_statement): Adjust
1736         c_parser_declaration_or_fndef callers.
1737         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1738         it through to c_parser_conditional_expression.
1739         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1740         pass it through to c_parser_binary_expression.  Adjust recursive
1741         call.
1742         (c_parser_binary_expression): Remove prec argument, add
1743         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
1744         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1745         binop matches it, use build2 instead of parser_build_binary_op.
1746         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1747         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1748         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1749         Handle pragma_struct and pragma_param the same as pragma_external.
1750         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1751         (c_parser_omp_variable_list): Parse array sections for
1752         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1753         (c_parser_omp_clause_collapse): Fully fold collapse expression.
1754         (c_parser_omp_clause_reduction): Handle user defined reductions.
1755         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1756         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1757         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1758         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1759         c_parser_omp_clause_depend, c_parser_omp_clause_map,
1760         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1761         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1762         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1763         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
1764         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
1765         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1766         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
1767         (c_parser_omp_for_loop): Add CODE argument, pass it through
1768         to c_finish_omp_for.  Change last argument to cclauses,
1769         and adjust uses to grab parallel clauses from the array of all
1770         the split clauses.  Adjust c_parser_binary_expression,
1771         c_parser_declaration_or_fndef and c_finish_omp_for callers.
1772         (omp_split_clauses): New function.
1773         (c_parser_omp_simd): New function.
1774         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1775         Allow the function to be called also when parsing combined constructs,
1776         and call c_parser_omp_simd when parsing for simd.
1777         (c_parser_omp_sections_scope): If section-sequence doesn't start with
1778         #pragma omp section, require exactly one structured-block instead of
1779         sequence of statements.
1780         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1781         Allow the function to be called also when parsing combined constructs.
1782         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1783         Allow the function to be called also when parsing combined
1784         constructs.
1785         (c_parser_omp_taskgroup, c_parser_omp_cancel,
1786         c_parser_omp_cancellation_point, c_parser_omp_distribute,
1787         c_parser_omp_teams, c_parser_omp_target_data,
1788         c_parser_omp_target_update, c_parser_omp_target,
1789         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1790         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1791         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1792         (c_parser_omp_construct): Add p_name and mask vars.  Handle
1793         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1794         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
1795         and c_parser_omp_sections callers.
1796         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1797         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1798         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1799         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
1800         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
1801         OMP_CLAUSE_DEPEND.
1802         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1803         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1804         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1805         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1806         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1807         * c-typeck.c: Include tree-inline.h.
1808         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1809         handle_omp_array_sections_1, handle_omp_array_sections,
1810         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1811         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1812         user defined reductions.
1813         (c_tree_equal): New function.
1814         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1815         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1816         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1817         c_check_omp_declare_reduction_r): New prototypes.
1818         * c-decl.c (current_omp_declare_target_attribute): New variable.
1819         (c_decl_attributes): New function.
1820         (start_decl, start_function): Use it instead of decl_attributes.
1821         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1822         c_omp_reduction_decl, c_omp_reduction_lookup,
1823         c_check_omp_declare_reduction_r): New functions.
1825 2013-09-25  Tom Tromey  <tromey@redhat.com>
1827         * Make-lang.in (c/gccspec.o): Remove.
1828         (CFLAGS-c/gccspec.o): New variable.
1829         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1830         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1831         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1833 2013-09-25  Tom Tromey  <tromey@redhat.com>
1835         * Make-lang.in (c/gccspec.o): Don't use subshell.
1837 2013-09-18  Marek Polacek  <polacek@redhat.com>
1839         PR sanitize/58443
1840         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1841         Remove unnecessary check.
1843 2013-09-18  Marek Polacek  <polacek@redhat.com>
1845         PR sanitizer/58411
1846         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1847         no_sanitize_undefined attribute.
1849 2013-09-13  Kai Tietz  <ktietz@redhat.com>
1851         PR target/57848
1852         * c-decl.c (c_builtin_function_ext_scope): Remove
1853         wrong assumption that it is never called on prexisting
1854         symbol.
1856 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1858         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1860 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1862         * c-objc-common.c (c_tree_printer): Tidy.
1864 2013-08-30  Marek Polacek  <polacek@redhat.com>
1866         * c-typeck.c (build_binary_op): Add division by zero and shift
1867         instrumentation.
1869 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1870             Joseph Myers  <joseph@codesourcery.com>
1872         PR c/35649
1873         * c-typeck.c (c_common_type): Prefer double_type_node over
1874         other REAL_TYPE types with the same precision.
1875         (convert_arguments): Likewise.
1877 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1879         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1880         (c_initialize_diagnostics): Call a destructor for the early printer.
1882 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1884         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1885         printer initialization.
1887 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1889         PR c/57490
1890         * c-array-notation.c (fix_conditional_array_notations_1): Added a
1891         check for truth values.
1892         (expand_array_notation_exprs): Added truth values case.  Removed an
1893         unwanted else.  Added for-loop to walk through subtrees in default
1894         case.
1896 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1898         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1900 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
1902         * c-parser.c (struct c_generic_association): Fix typo.
1904 2013-07-23  Tom Tromey  <tromey@redhat.com>
1905             Joseph Myers  <joseph@codesourcery.com>
1907         * c-parser.c (struct c_generic_association): New.
1908         (c_generic_association_d): New typedef.
1909         (c_parser_generic_selection): New function.
1910         (c_parser_postfix_expression): Handle RID_GENERIC.
1912 2013-07-13  Jason Merrill  <jason@redhat.com>
1914         PR c++/57793
1915         * c-decl.c (finish_struct): Check for too-large class.
1917 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1919         PR c/57821
1920         * c-typeck.c (set_init_index): When folding, check for index overflow.
1922 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1924         * c-parser.c (c_parser_array_notation): Removed rejection of array
1925         notations in an array of function pointers.
1927 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1929         * c-array-notation.c (make_triplet_val_inv): New function.
1930         (create_cmp_incr): Likewise.
1931         (create_array_refs): Likewise.
1932         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1933         Also modularized common parts between functions and called the function.
1934         (build_array_notation_expr): Likewise.
1935         (fix_conditional_array_notations_1): Likewise.
1936         (fix_array_notation_expr): Likewise.
1937         (fix_array_notation_call_expr): Likewise.
1939 2013-06-18  Marek Polacek  <polacek@redhat.com>
1941         PR c/57630
1942         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1944 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1946         * c-array-notation.c (build_array_notation_expr): Reject array notation
1947         mismatch between LHS and RHS even inside a call_expr.  Also, removed
1948         a couple while statements that were dead code.
1950 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1952         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1953         excessive precision expressions in function parameters.  Also removed
1954         couple unwanted while statements.
1956 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1958         * c-array-notation.c (expand_array_notation_exprs): Added
1959         ARRAY_NOTATION_REF case.
1960         
1961 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1963         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1964         function to c-family/array-notation-common.c.
1965         (is_cilkplus_reduce_builtin): Likewise.
1966         (find_rank): Likewise.
1967         (extract_array_notation_exprs): Likewise.
1968         (replace_array_notations): Likewise.
1969         (find_inv_trees): Likewise.
1970         (replace_inv_trees): Likewise.
1971         (contains_array_notation_expr): Likewise.
1972         (find_correct_array_notation_type): Likewise.
1973         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1974         (struct inv_list): Moved this to c-family/array-notation-common.c.
1975         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1976         
1977 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1979         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1980         reduction functions outside the for-loop.  Added a check if the fundecl
1981         is non-NULL.  Finally, removed an unwanted if-statement, and made the
1982         body unconditional.
1984 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1986         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1987         condition of the if-statement matches the rank of else-block and then-
1988         block when array notations are used.
1989         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1990         expression after the entire function body is parsed.
1991         (c_parser_expr_no_commas): Delayed creating array notation expressions
1992         to the end of function parsing.
1993         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1994         whole if-statement instead of just the condition.
1995         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
1997 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1999         PR c/57474
2000         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
2001         array to NULL_TREE if they are unused.  Also added a check for the
2002         field to be NULL before its fields are used in future.
2003         
2004 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2006         PR bootstrap/57450
2007         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
2008         (build_array_notation_expr): Likewise.
2010 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2012         * c-typeck.c (build_array_ref): Added a check to see if array's
2013         index is greater than one.  If true, then emit an error.
2014         (build_function_call_vec): Exclude error reporting and checking
2015         for builtin array-notation functions.
2016         (convert_arguments): Likewise.
2017         (c_finish_return): Added a check for array notations as a return
2018         expression.  If true, then emit an error.
2019         (c_finish_loop): Added a check for array notations in a loop
2020         condition.  If true then emit an error.
2021         (lvalue_p): Added a ARRAY_NOTATION_REF case.
2022         (build_binary_op): Added a check for array notation expr inside
2023         op1 and op0.  If present, we call another function to find correct
2024         type.
2025         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
2026         * c-parser.c (c_parser_compound_statement): Check if array
2027         notation code is used in tree, if so, then transform them into
2028         appropriate C code.
2029         (c_parser_expr_no_commas): Check if array notation is used in LHS
2030         or RHS, if so, then build array notation expression instead of
2031         regular modify.
2032         (c_parser_postfix_expression_after_primary): Added a check for
2033         colon(s) after square braces, if so then handle it like an array
2034         notation.  Also, break up array notations in unary op if found.
2035         (c_parser_direct_declarator_inner): Added a check for array
2036         notation.
2037         (c_parser_compound_statement): Added a check for array notation in
2038         a stmt.  If one is present, then expand array notation expr.
2039         (c_parser_if_statement): Likewise.
2040         (c_parser_switch_statement): Added a check for array notations in
2041         a switch statement's condition.  If true, then output an error.
2042         (c_parser_while_statement): Similarly, but for a while.
2043         (c_parser_do_statement): Similarly, but for a do-while.
2044         (c_parser_for_statement): Similarly, but for a for-loop.
2045         (c_parser_unary_expression): Check if array notation is used in a
2046         pre-increment or pre-decrement expression.  If true, then expand
2047         them.
2048         (c_parser_array_notation): New function.
2049         * c-array-notation.c: New file.
2050         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2051         
2052 2013-05-23  Mike Stump  <mikestump@comcast.net>
2054         * c-typeck.c (convert_for_assignment): Handle references to memory
2055         spaces better.
2057 2013-05-16  Jason Merrill  <jason@redhat.com>
2059         * Make-lang.in (cc1$(exeext)): Use link mutex.
2061 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2063         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2064         to simply use OPT_Wpointer_arith.
2065         (build_unary_op): Likewise.
2067 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
2069         PR c/19449
2070         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2071         argument.  If set, or it temporarily for parsing of the first
2072         argument into force_folding_builtin_constant_p.
2073         (c_parser_postfix_expression): Adjust callers.
2075 2013-03-21  Richard Biener  <rguenther@suse.de>
2077         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2078         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
2080 2013-02-12  Marek Polacek  <polacek@redhat.com>
2082         PR c/44938
2083         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2084         origtypes to NULL.
2086 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
2088         PR c/56078
2089         * c-typeck.c (set_nonincremental_init_from_string): If
2090         constructor_max_index is NULL, treat it as if tree_int_cst_lt
2091         returned false.
2092         (process_init_element): Likewise.
2094 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
2096         PR c++/55619
2097         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2098         argument, don't call default_function_array_conversion
2099         nor c_fully_fold here.
2100         (c_parser_asm_statement): Adjust callers.
2101         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2102         and outputs here, and call default_function_array_conversion
2103         on inputs that don't need to be addressable.
2105 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
2107         PR c/39464
2108         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2109         warning require that both c_common_unsigned_type as well as
2110         c_common_signed_type is the same for both mvl and mvr types.
2112 2012-11-16  Diego Novillo  <dnovillo@google.com>
2114         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2116         * c-common.c: Use new vec API in vec.h.
2117         * c-common.h: Likewise.
2118         * c-gimplify.c: Likewise.
2119         * c-pragma.c: Likewise.
2120         * c-pretty-print.c: Likewise.
2121         * c-pretty-print.h: Likewise.
2122         * c-semantics.c: Likewise.
2123         * c-decl.c: Likewise.
2124         * c-parser.c: Likewise.
2125         * c-tree.h: Likewise.
2126         * c-typeck.c: Likewise.
2128 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2130         PR c++/54930
2131         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2133 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2135         PR c/53066
2136         * c-decl.c (warn_if_shadowing): Do not warn if a variable
2137         shadows a function, unless the variable is a function or a
2138         pointer-to-function.
2140 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2142         PR c/54381
2143         * c-parser.c (struct c_tree_loc_pair): Removed.
2144         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2145         add location_t * and tree * arguments, fill in array of 3
2146         sizeof_arg trees and corresponding locs.
2147         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2148         c_parser_expr_list callers.
2149         (c_parser_postfix_expression_after_primary): Likewise.  Pass
2150         array of 3 sizeof_arg trees and locs (corresponding to first
2151         3 arguments) to sizeof_pointer_memaccess_warning.
2153 2012-10-09  Lawrence Crowl  <crowl@google.com>
2155         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2156         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2157         hash table.
2159 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2161         PR c++/54194
2162         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2163         call.
2165 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2167         PR c++/54427
2168         * c-typeck.c: Include c-common.h.
2169         (enum stv_conv): Moved to c-common.h.
2170         (scalar_to_vector): Moved to c-common.c.
2171         (build_binary_op): Adapt to scalar_to_vector's new prototype.
2172         * Make-lang.in: c-typeck.c depends on c-common.h.
2174 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2176         * c-decl.c (c_write_global_declarations): Fix handling of
2177         -fdump-ada-spec*.
2179 2012-09-30  Sharad Singhai  <singhai@google.com>
2181         * c-decl.c (c_write_global_declarations): Use a different method
2182         to determine if the dump has ben initialized.
2184 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2186         PR c/54552
2187         * c-typeck.c (c_cast_expr): When casting to a type requiring
2188         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2189         c_fully_fold first.
2191 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2193         PR c/54103
2194         * c-typeck.c (build_unary_op): Pass original argument of
2195         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2196         any C_MAYBE_CONST_EXPR, if it has integer operands.
2197         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2198         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2199         to c_objc_common_truthvalue_conversion, then remove any
2200         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
2201         c_objc_common_truthvalue_conversion not
2202         c_common_truthvalue_conversion.
2203         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2204         call note_integer_operands for arguments with integer operands
2205         that are not integer constants.
2207 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
2209         PR c/54559
2210         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2211         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2213 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
2215         PR c/54428
2216         * c-convert.c (convert): Don't call fold_convert_loc if
2217         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2218         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
2219         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2221 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
2223         PR c/54355
2224         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2225         for nested and empty_ok arguments in the call to
2226         c_parser_declaration_or_fndef.
2228 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2230         * c-tree.h (c_last_sizeof_arg): Declare.
2231         * c-parser.c (struct c_tree_loc_pair): New type.
2232         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
2233         non-NULL.
2234         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2235         (c_parser_postfix_expression_after_primary): Likewise.  Call
2236         sizeof_pointer_memaccess_warning if needed.
2237         (sizeof_ptr_memacc_comptypes): New function.
2238         * c-typeck.c (c_last_sizeof_arg): New global variable.
2239         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2241 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
2243         * c-lang.h (lang_decl): Add variable_size GTY option.
2245 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2247         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2248         * Make-lang.in: Fix dependencies.
2250 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2252         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2253         and add language Makefile hooks.
2254         * config-lang.in: New file.
2255         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2256         add the required "normal" config-lang.in rules.
2257         * c-lang.h: Moved from gcc/ to here.
2258         * c-tree.h: Likewise.
2259         * c-objc-common.c: Likewise.
2260         * c-objc-common.h: Likewise.
2261         * c-typeck.c: Likewise.
2262         * c-convert.c: Likewise.
2263         * c-lang.c: Likewise.
2264         * c-aux-info.c: Likewise.
2265         * c-errors.c: Likewise.
2266         * gccspec.c: Likewise.
2267         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
2268         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
2270 Copyright (C) 2012-2015 Free Software Foundation, Inc.
2272 Copying and distribution of this file, with or without modification,
2273 are permitted in any medium without royalty provided the copyright
2274 notice and this notice are preserved.