Daily bump.
[official-gcc.git] / gcc / c / ChangeLog
blob0fc999caaee2b9002e3aa9b96867fc9b6f1c08dd
1 2015-02-27  Marek Polacek  <polacek@redhat.com>
3         Backported from mainline
4         2015-02-27  Marek Polacek  <polacek@redhat.com>
6         PR c/65228
7         * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
9 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11         PR c/64824
12         * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
13         check in the POP macro.
15         Backported from mainline
16         2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18         PR c/64824
19         PR c/64868
20         * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
22 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
24         Backported from mainline
25         2015-01-27  Jakub Jelinek  <jakub@redhat.com>
27         PR c/64766
28         * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
29         of FUNCTION_DECLs with error_mark_node.
31         2015-01-26  Jakub Jelinek  <jakub@redhat.com>
33         PR c/64778
34         * c-typeck.c (convert_arguments): Return -1 if there are
35         error_args, even if we've diagnosed too many arguments.
37 2014-10-30  Release Manager
39         * GCC 4.9.2 released.
41 2014-09-25  Thomas Schwinge  <thomas@codesourcery.com>
43         PR c++/63249
44         * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
45         on low_bound and length.
47 2014-09-03  Marek Polacek  <polacek@redhat.com>
49         PR c/62294
50         * c-typeck.c (convert_arguments): Get location of a parameter.  Change
51         error and warning calls to error_at and warning_at.  Pass location of
52         a parameter to it.
53         (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
54         WARN_FOR_QUALIFIERS.  Pass expr_loc to those.
56 2014-08-22  Igor Zamyatin  <igor.zamyatin@intel.com>
58         PR other/62008
59         * c-parser.c (c_parser_array_notation): Check for correct
60         type of an array added.
62 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
64         PR middle-end/61455
65         * c-array-notation.c (expand_array_notations): Handling
66         of DECL_EXPR added.
68 2014-07-16  Release Manager
70         * GCC 4.9.1 released.
72 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
74         Backported from mainline
75         2014-06-25  Jakub Jelinek  <jakub@redhat.com>
77         * c-typeck.c (c_finish_omp_clauses): Make sure
78         OMP_CLAUSE_LINEAR_STEP has correct type.
80 2014-06-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
82         * c-parser.c (c_parser_declaration_or_fndef): Discard all type
83         qualifiers in __auto_type for atomic types.
84         (c_parser_typeof_specifier): Discard all type qualifiers in
85         __typeof__ for atomic types.
87 2014-06-30  Igor Zamyatin  <igor.zamyatin@intel.com>
89         PR middle-end/57541
90         * c-array-notation.c (fix_builtin_array_notation_fn):
91         Check for 0 arguments in builtin call. Check that bultin argument is
92         correct.
93         * c-parser.c (c_parser_array_notation): Check for incorrect initial
94         index.
96 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
98         * c-parser.c (c_parser_omp_for_loop): For
99         #pragma omp parallel for simd move lastprivate clause from parallel
100         to for rather than simd.
102 2014-06-04  Igor Zamyatin  <igor.zamyatin@intel.com>
104         PR c/58942
105         * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
106         with a pointer.
108 2014-06-04  Marek Polacek  <polacek@redhat.com>
110         Backport from mainline
111         2014-05-08  Marek Polacek  <polacek@redhat.com>
113         PR c/61053
114         * c-decl.c (grokdeclarator): Use min_align_of_type instead of
115         TYPE_ALIGN_UNIT.
117 2014-05-26  Igor Zamyatin  <igor.zamyatin@intel.com>
119         PR c/61191
120         * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
121         function parameters.
123 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
125         * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
126         atomic-clause, allow comma in between atomic-clause and
127         seq_cst.
129 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
131         PR c/59073
132         * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
133         fails, don't set OM_PARALLEL_COMBINED and return NULL.
135 2014-04-22  Release Manager
137         * GCC 4.9.0 released.
139 2014-04-15  Igor Zamyatin  <igor.zamyatin@intel.com>
141         PR middle-end/60469
142         * c-array-notation.c (fix_builtin_array_notation_fn): Use
143         create_tmp_var instead build_decl for creating temps.
144         (build_array_notation_expr): Likewise.
145         (fix_conditional_array_notations_1): Likewise.
146         (fix_array_notation_expr): Likewise.
147         (fix_array_notation_call_expr): Likewise.
149 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
151         PR c++/60689
152         * c-tree.h (c_build_function_call_vec): New prototype.
153         * c-typeck.c (build_function_call_vec): Don't call
154         resolve_overloaded_builtin here.
155         (c_build_function_call_vec): New wrapper function around
156         build_function_call_vec.  Call resolve_overloaded_builtin here.
157         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
158         Call c_build_function_call_vec instead of build_function_call_vec.
159         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
160         * c-decl.c (finish_decl): Likewise.
162 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
164         PR c/55383
165         * c-typeck.c: Use correct format string in cast-qual warning
167 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
169         * c-decl.c (c_decl_attributes): Use
170         lang_hooks.types.omp_mappable_type.
171         * c-typeck.c (c_finish_omp_clauses): Likewise.
173 2014-03-06  Marek Polacek  <polacek@redhat.com>
175         PR c/60197
176         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
177         of checking tree code.
179 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
181         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
182         (c_parser_parameter_declaration): Likewise.
184 2014-02-19  Marek Polacek  <polacek@redhat.com>
186         PR c/60195
187         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
188         Call mark_exp_read on exp.value.
189         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
190         TREE_ADDRESSABLE on old instead of val.
191         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
193 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
195         * c-parser.c (c_parser_get_builtin_args): Replace calls to
196         C_EXPR_APPEND by vec_safe_push.
197         * c-tree.h (C_EXPR_APPEND): Remove.
199 2014-01-31  Marek Polacek  <polacek@redhat.com>
201         PR c/59963
202         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
203         build_function_call_vec.
204         (build_function_call): Likewise.
205         (build_atomic_assign): Likewise.
206         (build_function_call_vec): Add arg_loc parameter.  Use it.
207         (convert_arguments): Likewise.
208         (convert_for_assignment): Rename rhs_loc to expr_loc.
209         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
210         (c_parser_objc_keywordexpr): Likewise.
211         (c_parser_postfix_expression_after_primary): Call
212         build_function_call_vec with expr_loc rather than op_loc.
213         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
214         build_function_call_vec.
215         (c_parser_expr_list): Add locations parameter.  Fill it with locations
216         of function arguments.
217         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
219 2014-01-30  Marek Polacek  <polacek@redhat.com>
221         PR c/59940
222         * c-typeck.c (build_function_call_vec): Use loc parameter.
223         (convert_arguments): Add location parameter.  Use it.
224         (ep_convert_and_check): Likewise.
225         (build_atomic_assign): Adjust convert_for_assignment call.
226         (build_modify_expr): Likewise.
227         (digest_init): Likewise.
228         (c_finish_return): Likewise.
229         (build_conditional_expr): Adjust ep_convert_and_check calls.
230         (convert_for_assignment): Add rhs_loc parameter.  Use it.
231         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
232         calls.
234 2014-01-30  Richard Biener  <rguenther@suse.de>
236         PR c/59905
237         * c-typeck.c (build_function_call_vec): Do not replace calls
238         to a function via an incompatible type with a runtime abort.
240 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
242         * c-parser.c (c_parser_declaration_or_fndef): Replaced
243         flag_enable_cilkplus with flag_cilkplus.
244         (c_parser_direct_declarator_inner): Likewise.
245         (c_parser_attribute_any_word): Likewise.
246         (c_parser_attributes): Likewise.
247         (c_parser_compound_statement): Likewise.
248         (c_parser_statement_after_labels): Likewise.
249         (c_parser_if_statement): Likewise.
250         (c_parser_switch_statement): Likewise.
251         (c_parser_do_statement): Likewise.
252         (c_parser_for_statement): Likewise.
253         (c_parser_unary_expression): Likewise.
254         (c_parser_postfix_expression): Likewise.
255         (c_parser_postfix_expression_after_primary): Likewise.
256         (c_parser_postfix_expression_after_primary): Likewise.
257         (c_parser_omp_clause_name): Likewise.
258         (c_finish_omp_declare_simd): Likewise.
259         (c_parser_cilk_verify_simd): Likewise.
260         * c-typeck.c (build_array_ref): Likewise.
261         (build_function_call_vec): Likewise.
262         (convert_arguments): Likewise.
263         (build_compound_expr): Likewise.
264         (c_finish_return): Likewise.
265         (c_finish_if_stmt): Likewise.
266         (c_finish_loop): Likewise.
267         (build_binary_op): Likewise.
269 2014-01-23  Marek Polacek  <polacek@redhat.com>
271         PR c/59846
272         * c-typeck.c (parser_build_binary_op): Use location instead of
273         input_location.
274         (build_binary_op): Pass location to shorten_compare.
276 2014-01-23  Marek Polacek  <polacek@redhat.com>
278         PR c/58346
279         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
280         an empty aggregate.
282 2014-01-23  Marek Polacek  <polacek@redhat.com>
284         PR c/59871
285         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
286         of a comma expression.
287         (emit_side_effect_warnings): Likewise.
289 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
291         PR c/59825
292         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
293         function to use walk_tree and moved a lot of its functionality to
294         expand_array_notations.
295         (expand_array_notations): New function.
297 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
299         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
300         attribute an attribute without value.
302 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
304         PR middle-end/58809
305         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
306         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
308 2014-01-22  Marek Polacek  <polacek@redhat.com>
310         PR c/59891
311         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
312         of remove_c_maybe_const_expr on op1 and op2.
314 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
316         PR c/58943
317         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
318         effects, preevaluate rhs using SAVE_EXPR first.
320 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
322         PR c++/59631
323         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
324         statements with if-elseif statements.
326 2014-01-06  Marek Polacek  <polacek@redhat.com>
328         PR c/57773
329         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
330         defined bit-field types only in ISO C.
332 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
334         Update copyright years
336 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
338         * c-array-notation.c: Use the standard form for the copyright notice.
340 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
342         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
343         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
344         field in parser is not empty.  If not-empty, call the function
345         c_parser_finish_omp_declare_simd.
346         (c_parser_cilk_clause_vectorlength): Modified function to be shared
347         between SIMD-enabled functions and #pragma simd.  Added new parameter.
348         (c_parser_cilk_all_clauses): Modified the usage of the function
349         c_parser_cilk_clause_vectorlength as mentioned above.
350         (c_parser_cilk_simd_fn_vector_attrs): New function.
351         (c_finish_cilk_simd_fn_tokens): Likewise.
352         (is_cilkplus_vector_p): Likewise.
353         (c_parser_omp_clause_name): Added checking for "vectorlength,"
354         "nomask," and "mask" strings in clause name.
355         (c_parser_omp_all_clauses): Added 3 new case statements:
356         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
357         PRAGMA_CILK_CLAUSE_NOMASK.
358         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
359         check for vector attribute and if so call the function
360         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
361         called the function c_finish_cilk_simd_fn_tokens.
362         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
363         parser field is non-empty.  If so, parse them as you would parse
364         the omp declare simd pragma.
365         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
366         Added a check when step is a parameter and flag it as error.
367         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
368         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
369         pragma_omp_clause.
371 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
373         * c-parser.c (c_parser_omp_parallel): Fix description.
375 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
377         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
378         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
379         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
380         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
382 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
384         PR c/52023
385         * c-parser.c (c_parser_alignas_specifier): Use
386         c_sizeof_or_alignof_type instead of c_alignof.
387         (c_parser_alignof_expression): Likewise, with min_alignof
388         parameter depending on alignof spelling used.
390 2013-12-04  Marek Polacek  <polacek@redhat.com>
392         PR c/54113
393         * c-decl.c (start_function): Don't warn for missing prototype for
394         inline functions.
396 2013-12-03  Marek Polacek  <polacek@redhat.com>
398         PR c/59351
399         * c-decl.c (build_compound_literal): Allow compound literals with
400         empty initial value.
402 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
404         PR c/58235
405         * c-typeck.c (build_modify_expr): Diagnose assignment to
406         expression with array type.
408 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
410         PR c/42262
411         * c-typeck.c (process_init_element): Do not treat a string as
412         initializing a whole array when used with a designator for an
413         individual element.
415 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
417         PR c/57574
418         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
419         an inline function following a static declaration.
421 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
423         PR c/59310
424         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
425         to p_name before calling c_parser_omp_teams instead of after.
426         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
427         argument.  Remove unused p_name variable.
429 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
430             Jakub Jelinek  <jakub@redhat.com>
432         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
433         external_scope is NULL.
435 2013-11-27  Tom de Vries  <tom@codesourcery.com>
436             Marc Glisse  <marc.glisse@inria.fr>
438         PR c++/59032
439         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
441 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
443         * c-typeck.c: Add required include files from gimple.h.
445 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
447         * c-decl.c (define_label, shadow_tag_warned)
448         (check_bitfield_type_and_width, grokdeclarator, grokparms,
449         store_parm_decls_newstyle, store_parm_decls_oldstyle)
450         (declspecs_add_type): Remove use of in_system_header macro.
451         * c-parser.c (c_parser_unary_expression): Likewise.
452         * c-typeck.c (store_init_value, process_init_element)
453         (c_start_case): Likewise.
455         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
456         macro.
458         * c-parser.c (c_parser_set_source_position_from_token): Remove
459         reference to in_system_header from comment.
461 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
463         * c-decl.c (grokdeclarator): Update comment to refer to
464         tree_to_[su]hwi rather than tree_low_cst.
466 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
468         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
469         tree_to_uhwi throughout.
471 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
473         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
474         throughout.
476 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
478         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
479         throughout.
481 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
483         * c-parser.c (c_parser_cilk_simd): New.
484         (c_parser_cilk_verify_simd): New.
485         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
486         (c_parser_omp_for_loop): Add case for NE_EXPR.
487         Set c_break_label for CILK_SIMD.
488         (c_parser_cilk_clause_vectorlength): New.
489         (c_parser_cilk_clause_linear): New.
490         (c_parser_cilk_clause_name): New.
491         (c_parser_cilk_all_clauses): New.
492         * c-typeck.c (build_unary_op): Pass location argument to
493         readonly_error.
494         (build_modify_expr): Same.
495         (build_asm_expr): Same.
496         (c_finish_bc_stmt): Error on break/continue in loops.
498 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
500         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
502 2013-11-14  Diego Novillo  <dnovillo@google.com>
504         * c-decl.c: Include print-tree.h.
505         Include stor-layout.h.
506         Include varasm.h.
507         Include attribs.h.
508         Include stringpool.h.
509         * c-lang.c: Include fold-const.h.
510         * c-parser.c: Include stringpool.h.
511         Include attribs.h.
512         Include stor-layout.h.
513         Include varasm.h.
514         Include trans-mem.h.
515         * c-typeck.c: Include stor-layout.h.
516         Include trans-mem.h.
517         Include varasm.h.
518         Include stmt.h.
520 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
522         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
523         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
524         __auto_type.
525         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
526         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
527         RID_AUTO_TYPE.
528         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
529         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
530         (c_parser_declarator, c_parser_direct_declarator_inner)
531         (c_parser_parameter_declaration, c_parser_type_name): All callers
532         changed.
533         (c_parser_declaration_or_fndef): Handle declarations with type
534         determined from the initializer.
536 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
538         * c-typeck.c: Include gimplify.h.
540 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
542         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
543         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
544         comment.
545         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
546         or _Thread_local as appropriate in diagnostics.
547         (build_null_declspecs): Initialize ret->thread_gnu_p.
548         (declspecs_add_scspec): Handle either __thread or _Thread_local
549         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
550         pedantic.  Do not disallow _Thread_local extern and _Thread_local
551         static.
553 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
554             Andrew MacLeod  <amacleod@redhat.com>
556         * c-aux-info.c (gen_type): Handle atomic qualifier.
557         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
558         qualifiers when compating types.
559         (shadow_tag_warned): Handle atomic_p in declspecs.
560         (quals_from_declspecs): Likewise.
561         (start_decl): Use c_type_promotes_to when promoting argument
562         types.
563         (grokdeclarator): Handle _Atomic.
564         (get_parm_info): Diagnose any qualifier on "void" as only
565         parameter.
566         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
567         comparing types.  Use c_type_promotes_to when promoting argument
568         types.
569         (finish_function): Use c_type_promotes_to when promoting argument
570         types.
571         (build_null_declspecs): Handle atomic_p in declspecs.
572         (declspecs_add_qual): Handle RID_ATOMIC.
573         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
574         (c_token_starts_declspecs): Handle RID_ATOMIC.
575         (c_parser_declspecs): Handle atomic type specifiers and
576         qualifiers.
577         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
578         from types of expressions with atomic type.
579         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
580         (c_parser_attribute_any_word): Handle RID_ATOMIC.
581         (c_parser_initializer, c_parser_initelt, c_parser_initval)
582         (c_parser_statement_after_labels, c_parser_switch_statement)
583         (c_parser_for_statement, c_parser_expr_no_commas)
584         (c_parser_conditional_expression, c_parser_binary_expression)
585         (c_parser_cast_expression, c_parser_unary_expression)
586         (c_parser_postfix_expression)
587         (c_parser_postfix_expression_after_primary, c_parser_expression):
588         Use convert_lvalue_to_rvalue.
589         (c_parser_expression_conv, c_parser_expr_list): Document
590         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
591         (c_parser_objc_synchronized_statement): Use
592         convert_lvalue_to_rvalue.
593         (c_parser_objc_selector): Handle RID_ATOMIC.
594         (c_parser_objc_receiver, c_parser_array_notation): Use
595         convert_lvalue_to_rvalue.
596         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
597         _Atomic (type-name).
598         (struct c_declspecs): Add atomic_p field.
599         (convert_lvalue_to_rvalue): Declare.
600         * c-typeck.c (c_type_promotes_to): Promote atomic types to
601         corresponding atomic types.
602         (qualify_type): Don't add _Atomic qualifiers from second argument.
603         (comp_target_types): Do not allow _Atomic mismatches.
604         (type_lists_compatible_p): Do not remove atomic qualifiers when
605         comparing types.
606         (really_atomic_lvalue, convert_lvalue_to_rvalue)
607         (build_atomic_assign): New functions.
608         (build_unary_op): Use build_atomic_assign for atomic increment and
609         decrement.
610         (build_conditional_expr): Do not treat _Atomic void as a qualified
611         version of void.
612         (build_modify_expr): Use build_atomic_assign for atomic LHS.
613         (find_anonymous_field_with_type, convert_to_anonymous_field)
614         (convert_for_assignment): Do not remove atomic qualifiers when
615         comparing types.
616         (digest_init): Do not accept initialization of arrays of atomic
617         elements by string constants.
618         (build_asm_expr): Use convert_lvalue_to_rvalue.
619         (build_binary_op): Do not treat _Atomic void as a qualified
620         version of void.
622 2013-11-06  DJ Delorie  <dj@redhat.com>
624         * c-decl.c (locate_old_decl): If a previous conflicting decl is
625         both explicit and builtin, print the location of the explicit one.
627 2013-11-05  Tobias Burnus  <burnus@net-b.de>
629         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
630         c_parser_omp_distribute, c_parser_omp_teams,
631         c_parser_omp_target, c_parser_omp_declare): Handle
632         -fopenmp-simd.
634 2013-11-03  Marek Polacek  <polacek@redhat.com>
636         * c-decl.c (grokdeclarator): Add VLA instrumentation.
638 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
640         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
641         check_dup_generic at the end, unless remove is true.
642         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
643         remove = true;.
644         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
646 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
648         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
649         with decl that is not pointer nor array.
651 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
653         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
654         a spawning function is found.
655         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
656         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
657         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
658         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
659         case.
660         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
661         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
662         expr.
663         (c_finish_return): Added a check to reject _Cilk_spawn in return
664         expression.
665         (build_cilk_spawn): New function.
666         (build_cilk_sync): Likewise.
667         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
668         
669 2013-10-27  Tobias Burnus  <burnus@net-b.de>
671         PR other/33426
672         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
673         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
674         (c_parser_statement_after_labels): Update calls.
676 2013-10-24  Tobias Burnus  <burnus@net-b.de>
678         PR other/33426
679         * c-parser.c (c_parser_pragma, c_parser_for_statement):
680         Handle PRAGMA_IVDEP.
681         (c_parser_statement_after_labels): Update call.
683 2013-10-24  Marek Polacek  <polacek@redhat.com>
685         * c-parser.c (c_parser_struct_declaration): Add a comment.
686         (c_parser_declarator): Don't allow _Alignas here.
688 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
690         * c-parser.c: Include omp-low.h.
691         * c-typeck.c: Likewise.
693 2013-10-17  Marek Polacek  <polacek@redhat.com>
695         PR c/58267
696         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
697         Document syntax of the array-declarator.
698         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
699         are not permitted.
700         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
701         (c_parser_struct_declaration): Likewise.
702         (c_parser_declarator): Likewise.
703         (c_parser_direct_declarator_inner): Likewise.
704         (c_parser_parameter_declaration): Likewise.
705         (c_parser_type_name): Likewise.
707 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
709         * c-lang.h (current_omp_declare_target_attribute): New extern
710         decl.
711         * c-parser.c: Include c-lang.h.
712         (struct c_parser): Change tokens to c_token *.
713         Add tokens_buf field.  Change tokens_avail type to unsigned int.
714         (c_parser_consume_token): If parser->tokens isn't
715         &parser->tokens_buf[0], increment parser->tokens.
716         (c_parser_consume_pragma): Likewise.
717         (enum pragma_context): Add pragma_struct and pragma_param.
718         (c_parser_external_declaration): Adjust
719         c_parser_declaration_or_fndef caller.
720         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
721         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
722         Adjust recursive call.
723         (c_parser_struct_or_union_specifier): Use pragma_struct instead
724         of pragma_external.
725         (c_parser_parameter_declaration): Use pragma_param instead of
726         pragma_external.
727         (c_parser_compound_statement_nostart, c_parser_label,
728         c_parser_for_statement): Adjust
729         c_parser_declaration_or_fndef callers.
730         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
731         it through to c_parser_conditional_expression.
732         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
733         pass it through to c_parser_binary_expression.  Adjust recursive
734         call.
735         (c_parser_binary_expression): Remove prec argument, add
736         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
737         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
738         binop matches it, use build2 instead of parser_build_binary_op.
739         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
740         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
741         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
742         Handle pragma_struct and pragma_param the same as pragma_external.
743         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
744         (c_parser_omp_variable_list): Parse array sections for
745         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
746         (c_parser_omp_clause_collapse): Fully fold collapse expression.
747         (c_parser_omp_clause_reduction): Handle user defined reductions.
748         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
749         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
750         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
751         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
752         c_parser_omp_clause_depend, c_parser_omp_clause_map,
753         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
754         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
755         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
756         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
757         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
758         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
759         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
760         (c_parser_omp_for_loop): Add CODE argument, pass it through
761         to c_finish_omp_for.  Change last argument to cclauses,
762         and adjust uses to grab parallel clauses from the array of all
763         the split clauses.  Adjust c_parser_binary_expression,
764         c_parser_declaration_or_fndef and c_finish_omp_for callers.
765         (omp_split_clauses): New function.
766         (c_parser_omp_simd): New function.
767         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
768         Allow the function to be called also when parsing combined constructs,
769         and call c_parser_omp_simd when parsing for simd.
770         (c_parser_omp_sections_scope): If section-sequence doesn't start with
771         #pragma omp section, require exactly one structured-block instead of
772         sequence of statements.
773         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
774         Allow the function to be called also when parsing combined constructs.
775         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
776         Allow the function to be called also when parsing combined
777         constructs.
778         (c_parser_omp_taskgroup, c_parser_omp_cancel,
779         c_parser_omp_cancellation_point, c_parser_omp_distribute,
780         c_parser_omp_teams, c_parser_omp_target_data,
781         c_parser_omp_target_update, c_parser_omp_target,
782         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
783         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
784         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
785         (c_parser_omp_construct): Add p_name and mask vars.  Handle
786         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
787         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
788         and c_parser_omp_sections callers.
789         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
790         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
791         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
792         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
793         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
794         OMP_CLAUSE_DEPEND.
795         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
796         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
797         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
798         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
799         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
800         * c-typeck.c: Include tree-inline.h.
801         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
802         handle_omp_array_sections_1, handle_omp_array_sections,
803         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
804         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
805         user defined reductions.
806         (c_tree_equal): New function.
807         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
808         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
809         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
810         c_check_omp_declare_reduction_r): New prototypes.
811         * c-decl.c (current_omp_declare_target_attribute): New variable.
812         (c_decl_attributes): New function.
813         (start_decl, start_function): Use it instead of decl_attributes.
814         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
815         c_omp_reduction_decl, c_omp_reduction_lookup,
816         c_check_omp_declare_reduction_r): New functions.
818 2013-09-25  Tom Tromey  <tromey@redhat.com>
820         * Make-lang.in (c/gccspec.o): Remove.
821         (CFLAGS-c/gccspec.o): New variable.
822         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
823         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
824         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
826 2013-09-25  Tom Tromey  <tromey@redhat.com>
828         * Make-lang.in (c/gccspec.o): Don't use subshell.
830 2013-09-18  Marek Polacek  <polacek@redhat.com>
832         PR sanitize/58443
833         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
834         Remove unnecessary check.
836 2013-09-18  Marek Polacek  <polacek@redhat.com>
838         PR sanitizer/58411
839         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
840         no_sanitize_undefined attribute.
842 2013-09-13  Kai Tietz  <ktietz@redhat.com>
844         PR target/57848
845         * c-decl.c (c_builtin_function_ext_scope): Remove
846         wrong assumption that it is never called on prexisting
847         symbol.
849 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
851         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
853 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
855         * c-objc-common.c (c_tree_printer): Tidy.
857 2013-08-30  Marek Polacek  <polacek@redhat.com>
859         * c-typeck.c (build_binary_op): Add division by zero and shift
860         instrumentation.
862 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
863             Joseph Myers  <joseph@codesourcery.com>
865         PR c/35649
866         * c-typeck.c (c_common_type): Prefer double_type_node over
867         other REAL_TYPE types with the same precision.
868         (convert_arguments): Likewise.
870 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
872         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
873         (c_initialize_diagnostics): Call a destructor for the early printer.
875 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
877         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
878         printer initialization.
880 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
882         PR c/57490
883         * c-array-notation.c (fix_conditional_array_notations_1): Added a
884         check for truth values.
885         (expand_array_notation_exprs): Added truth values case.  Removed an
886         unwanted else.  Added for-loop to walk through subtrees in default
887         case.
889 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
891         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
893 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
895         * c-parser.c (struct c_generic_association): Fix typo.
897 2013-07-23  Tom Tromey  <tromey@redhat.com>
898             Joseph Myers  <joseph@codesourcery.com>
900         * c-parser.c (struct c_generic_association): New.
901         (c_generic_association_d): New typedef.
902         (c_parser_generic_selection): New function.
903         (c_parser_postfix_expression): Handle RID_GENERIC.
905 2013-07-13  Jason Merrill  <jason@redhat.com>
907         PR c++/57793
908         * c-decl.c (finish_struct): Check for too-large class.
910 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
912         PR c/57821
913         * c-typeck.c (set_init_index): When folding, check for index overflow.
915 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
917         * c-parser.c (c_parser_array_notation): Removed rejection of array
918         notations in an array of function pointers.
920 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
922         * c-array-notation.c (make_triplet_val_inv): New function.
923         (create_cmp_incr): Likewise.
924         (create_array_refs): Likewise.
925         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
926         Also modularized common parts between functions and called the function.
927         (build_array_notation_expr): Likewise.
928         (fix_conditional_array_notations_1): Likewise.
929         (fix_array_notation_expr): Likewise.
930         (fix_array_notation_call_expr): Likewise.
932 2013-06-18  Marek Polacek  <polacek@redhat.com>
934         PR c/57630
935         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
937 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
939         * c-array-notation.c (build_array_notation_expr): Reject array notation
940         mismatch between LHS and RHS even inside a call_expr.  Also, removed
941         a couple while statements that were dead code.
943 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
945         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
946         excessive precision expressions in function parameters.  Also removed
947         couple unwanted while statements.
949 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
951         * c-array-notation.c (expand_array_notation_exprs): Added
952         ARRAY_NOTATION_REF case.
953         
954 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
956         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
957         function to c-family/array-notation-common.c.
958         (is_cilkplus_reduce_builtin): Likewise.
959         (find_rank): Likewise.
960         (extract_array_notation_exprs): Likewise.
961         (replace_array_notations): Likewise.
962         (find_inv_trees): Likewise.
963         (replace_inv_trees): Likewise.
964         (contains_array_notation_expr): Likewise.
965         (find_correct_array_notation_type): Likewise.
966         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
967         (struct inv_list): Moved this to c-family/array-notation-common.c.
968         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
969         
970 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
972         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
973         reduction functions outside the for-loop.  Added a check if the fundecl
974         is non-NULL.  Finally, removed an unwanted if-statement, and made the
975         body unconditional.
977 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
979         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
980         condition of the if-statement matches the rank of else-block and then-
981         block when array notations are used.
982         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
983         expression after the entire function body is parsed.
984         (c_parser_expr_no_commas): Delayed creating array notation expressions
985         to the end of function parsing.
986         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
987         whole if-statement instead of just the condition.
988         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
990 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
992         PR c/57474
993         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
994         array to NULL_TREE if they are unused.  Also added a check for the
995         field to be NULL before its fields are used in future.
996         
997 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
999         PR bootstrap/57450
1000         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1001         (build_array_notation_expr): Likewise.
1003 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1005         * c-typeck.c (build_array_ref): Added a check to see if array's
1006         index is greater than one.  If true, then emit an error.
1007         (build_function_call_vec): Exclude error reporting and checking
1008         for builtin array-notation functions.
1009         (convert_arguments): Likewise.
1010         (c_finish_return): Added a check for array notations as a return
1011         expression.  If true, then emit an error.
1012         (c_finish_loop): Added a check for array notations in a loop
1013         condition.  If true then emit an error.
1014         (lvalue_p): Added a ARRAY_NOTATION_REF case.
1015         (build_binary_op): Added a check for array notation expr inside
1016         op1 and op0.  If present, we call another function to find correct
1017         type.
1018         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1019         * c-parser.c (c_parser_compound_statement): Check if array
1020         notation code is used in tree, if so, then transform them into
1021         appropriate C code.
1022         (c_parser_expr_no_commas): Check if array notation is used in LHS
1023         or RHS, if so, then build array notation expression instead of
1024         regular modify.
1025         (c_parser_postfix_expression_after_primary): Added a check for
1026         colon(s) after square braces, if so then handle it like an array
1027         notation.  Also, break up array notations in unary op if found.
1028         (c_parser_direct_declarator_inner): Added a check for array
1029         notation.
1030         (c_parser_compound_statement): Added a check for array notation in
1031         a stmt.  If one is present, then expand array notation expr.
1032         (c_parser_if_statement): Likewise.
1033         (c_parser_switch_statement): Added a check for array notations in
1034         a switch statement's condition.  If true, then output an error.
1035         (c_parser_while_statement): Similarly, but for a while.
1036         (c_parser_do_statement): Similarly, but for a do-while.
1037         (c_parser_for_statement): Similarly, but for a for-loop.
1038         (c_parser_unary_expression): Check if array notation is used in a
1039         pre-increment or pre-decrement expression.  If true, then expand
1040         them.
1041         (c_parser_array_notation): New function.
1042         * c-array-notation.c: New file.
1043         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1044         
1045 2013-05-23  Mike Stump  <mikestump@comcast.net>
1047         * c-typeck.c (convert_for_assignment): Handle references to memory
1048         spaces better.
1050 2013-05-16  Jason Merrill  <jason@redhat.com>
1052         * Make-lang.in (cc1$(exeext)): Use link mutex.
1054 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1056         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1057         to simply use OPT_Wpointer_arith.
1058         (build_unary_op): Likewise.
1060 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
1062         PR c/19449
1063         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1064         argument.  If set, or it temporarily for parsing of the first
1065         argument into force_folding_builtin_constant_p.
1066         (c_parser_postfix_expression): Adjust callers.
1068 2013-03-21  Richard Biener  <rguenther@suse.de>
1070         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1071         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
1073 2013-02-12  Marek Polacek  <polacek@redhat.com>
1075         PR c/44938
1076         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1077         origtypes to NULL.
1079 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
1081         PR c/56078
1082         * c-typeck.c (set_nonincremental_init_from_string): If
1083         constructor_max_index is NULL, treat it as if tree_int_cst_lt
1084         returned false.
1085         (process_init_element): Likewise.
1087 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
1089         PR c++/55619
1090         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1091         argument, don't call default_function_array_conversion
1092         nor c_fully_fold here.
1093         (c_parser_asm_statement): Adjust callers.
1094         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1095         and outputs here, and call default_function_array_conversion
1096         on inputs that don't need to be addressable.
1098 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
1100         PR c/39464
1101         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1102         warning require that both c_common_unsigned_type as well as
1103         c_common_signed_type is the same for both mvl and mvr types.
1105 2012-11-16  Diego Novillo  <dnovillo@google.com>
1107         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1109         * c-common.c: Use new vec API in vec.h.
1110         * c-common.h: Likewise.
1111         * c-gimplify.c: Likewise.
1112         * c-pragma.c: Likewise.
1113         * c-pretty-print.c: Likewise.
1114         * c-pretty-print.h: Likewise.
1115         * c-semantics.c: Likewise.
1116         * c-decl.c: Likewise.
1117         * c-parser.c: Likewise.
1118         * c-tree.h: Likewise.
1119         * c-typeck.c: Likewise.
1121 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
1123         PR c++/54930
1124         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1126 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1128         PR c/53066
1129         * c-decl.c (warn_if_shadowing): Do not warn if a variable
1130         shadows a function, unless the variable is a function or a
1131         pointer-to-function.
1133 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
1135         PR c/54381
1136         * c-parser.c (struct c_tree_loc_pair): Removed.
1137         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1138         add location_t * and tree * arguments, fill in array of 3
1139         sizeof_arg trees and corresponding locs.
1140         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1141         c_parser_expr_list callers.
1142         (c_parser_postfix_expression_after_primary): Likewise.  Pass
1143         array of 3 sizeof_arg trees and locs (corresponding to first
1144         3 arguments) to sizeof_pointer_memaccess_warning.
1146 2012-10-09  Lawrence Crowl  <crowl@google.com>
1148         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1149         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1150         hash table.
1152 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
1154         PR c++/54194
1155         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1156         call.
1158 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
1160         PR c++/54427
1161         * c-typeck.c: Include c-common.h.
1162         (enum stv_conv): Moved to c-common.h.
1163         (scalar_to_vector): Moved to c-common.c.
1164         (build_binary_op): Adapt to scalar_to_vector's new prototype.
1165         * Make-lang.in: c-typeck.c depends on c-common.h.
1167 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
1169         * c-decl.c (c_write_global_declarations): Fix handling of
1170         -fdump-ada-spec*.
1172 2012-09-30  Sharad Singhai  <singhai@google.com>
1174         * c-decl.c (c_write_global_declarations): Use a different method
1175         to determine if the dump has ben initialized.
1177 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1179         PR c/54552
1180         * c-typeck.c (c_cast_expr): When casting to a type requiring
1181         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1182         c_fully_fold first.
1184 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1186         PR c/54103
1187         * c-typeck.c (build_unary_op): Pass original argument of
1188         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1189         any C_MAYBE_CONST_EXPR, if it has integer operands.
1190         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1191         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1192         to c_objc_common_truthvalue_conversion, then remove any
1193         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
1194         c_objc_common_truthvalue_conversion not
1195         c_common_truthvalue_conversion.
1196         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1197         call note_integer_operands for arguments with integer operands
1198         that are not integer constants.
1200 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
1202         PR c/54559
1203         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1204         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1206 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
1208         PR c/54428
1209         * c-convert.c (convert): Don't call fold_convert_loc if
1210         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1211         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
1212         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1214 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
1216         PR c/54355
1217         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1218         for nested and empty_ok arguments in the call to
1219         c_parser_declaration_or_fndef.
1221 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
1223         * c-tree.h (c_last_sizeof_arg): Declare.
1224         * c-parser.c (struct c_tree_loc_pair): New type.
1225         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
1226         non-NULL.
1227         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1228         (c_parser_postfix_expression_after_primary): Likewise.  Call
1229         sizeof_pointer_memaccess_warning if needed.
1230         (sizeof_ptr_memacc_comptypes): New function.
1231         * c-typeck.c (c_last_sizeof_arg): New global variable.
1232         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1234 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
1236         * c-lang.h (lang_decl): Add variable_size GTY option.
1238 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
1240         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1241         * Make-lang.in: Fix dependencies.
1243 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1245         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1246         and add language Makefile hooks.
1247         * config-lang.in: New file.
1248         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1249         add the required "normal" config-lang.in rules.
1250         * c-lang.h: Moved from gcc/ to here.
1251         * c-tree.h: Likewise.
1252         * c-objc-common.c: Likewise.
1253         * c-objc-common.h: Likewise.
1254         * c-typeck.c: Likewise.
1255         * c-convert.c: Likewise.
1256         * c-lang.c: Likewise.
1257         * c-aux-info.c: Likewise.
1258         * c-errors.c: Likewise.
1259         * gccspec.c: Likewise.
1260         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
1261         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
1263 Copyright (C) 2012-2014 Free Software Foundation, Inc.
1265 Copying and distribution of this file, with or without modification,
1266 are permitted in any medium without royalty provided the copyright
1267 notice and this notice are preserved.