Merge branches/gcc-4_9-branch rev 209611 (FSF GCC 4.9.0 release).
[official-gcc.git] / gcc-4_9-branch / gcc / c / ChangeLog
blobf5e7179e9117301b8fb69ece0da04ec3e06ac972
1 2014-04-22  Release Manager
3         * GCC 4.9.0 released.
5 2014-04-15  Igor Zamyatin  <igor.zamyatin@intel.com>
7         PR middle-end/60469
8         * c-array-notation.c (fix_builtin_array_notation_fn): Use
9         create_tmp_var instead build_decl for creating temps.
10         (build_array_notation_expr): Likewise.
11         (fix_conditional_array_notations_1): Likewise.
12         (fix_array_notation_expr): Likewise.
13         (fix_array_notation_call_expr): Likewise.
15 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
17         PR c++/60689
18         * c-tree.h (c_build_function_call_vec): New prototype.
19         * c-typeck.c (build_function_call_vec): Don't call
20         resolve_overloaded_builtin here.
21         (c_build_function_call_vec): New wrapper function around
22         build_function_call_vec.  Call resolve_overloaded_builtin here.
23         (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
24         Call c_build_function_call_vec instead of build_function_call_vec.
25         * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
26         * c-decl.c (finish_decl): Likewise.
28 2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30         PR c/55383
31         * c-typeck.c: Use correct format string in cast-qual warning
33 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
35         * c-decl.c (c_decl_attributes): Use
36         lang_hooks.types.omp_mappable_type.
37         * c-typeck.c (c_finish_omp_clauses): Likewise.
39 2014-03-06  Marek Polacek  <polacek@redhat.com>
41         PR c/60197
42         * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
43         of checking tree code.
45 2014-02-19  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
47         * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
48         (c_parser_parameter_declaration): Likewise.
50 2014-02-19  Marek Polacek  <polacek@redhat.com>
52         PR c/60195
53         * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
54         Call mark_exp_read on exp.value.
55         (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
56         TREE_ADDRESSABLE on old instead of val.
57         (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
59 2014-02-07  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
61         * c-parser.c (c_parser_get_builtin_args): Replace calls to
62         C_EXPR_APPEND by vec_safe_push.
63         * c-tree.h (C_EXPR_APPEND): Remove.
65 2014-01-31  Marek Polacek  <polacek@redhat.com>
67         PR c/59963
68         * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
69         build_function_call_vec.
70         (build_function_call): Likewise.
71         (build_atomic_assign): Likewise.
72         (build_function_call_vec): Add arg_loc parameter.  Use it.
73         (convert_arguments): Likewise.
74         (convert_for_assignment): Rename rhs_loc to expr_loc.
75         * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
76         (c_parser_objc_keywordexpr): Likewise.
77         (c_parser_postfix_expression_after_primary): Call
78         build_function_call_vec with expr_loc rather than op_loc.
79         Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
80         build_function_call_vec.
81         (c_parser_expr_list): Add locations parameter.  Fill it with locations
82         of function arguments.
83         * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
85 2014-01-30  Marek Polacek  <polacek@redhat.com>
87         PR c/59940
88         * c-typeck.c (build_function_call_vec): Use loc parameter.
89         (convert_arguments): Add location parameter.  Use it.
90         (ep_convert_and_check): Likewise.
91         (build_atomic_assign): Adjust convert_for_assignment call.
92         (build_modify_expr): Likewise.
93         (digest_init): Likewise.
94         (c_finish_return): Likewise.
95         (build_conditional_expr): Adjust ep_convert_and_check calls.
96         (convert_for_assignment): Add rhs_loc parameter.  Use it.
97         (build_binary_op): Adjust convert_and_check and ep_convert_and_check
98         calls.
100 2014-01-30  Richard Biener  <rguenther@suse.de>
102         PR c/59905
103         * c-typeck.c (build_function_call_vec): Do not replace calls
104         to a function via an incompatible type with a runtime abort.
106 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
108         * c-parser.c (c_parser_declaration_or_fndef): Replaced
109         flag_enable_cilkplus with flag_cilkplus.
110         (c_parser_direct_declarator_inner): Likewise.
111         (c_parser_attribute_any_word): Likewise.
112         (c_parser_attributes): Likewise.
113         (c_parser_compound_statement): Likewise.
114         (c_parser_statement_after_labels): Likewise.
115         (c_parser_if_statement): Likewise.
116         (c_parser_switch_statement): Likewise.
117         (c_parser_do_statement): Likewise.
118         (c_parser_for_statement): Likewise.
119         (c_parser_unary_expression): Likewise.
120         (c_parser_postfix_expression): Likewise.
121         (c_parser_postfix_expression_after_primary): Likewise.
122         (c_parser_postfix_expression_after_primary): Likewise.
123         (c_parser_omp_clause_name): Likewise.
124         (c_finish_omp_declare_simd): Likewise.
125         (c_parser_cilk_verify_simd): Likewise.
126         * c-typeck.c (build_array_ref): Likewise.
127         (build_function_call_vec): Likewise.
128         (convert_arguments): Likewise.
129         (build_compound_expr): Likewise.
130         (c_finish_return): Likewise.
131         (c_finish_if_stmt): Likewise.
132         (c_finish_loop): Likewise.
133         (build_binary_op): Likewise.
135 2014-01-23  Marek Polacek  <polacek@redhat.com>
137         PR c/59846
138         * c-typeck.c (parser_build_binary_op): Use location instead of
139         input_location.
140         (build_binary_op): Pass location to shorten_compare.
142 2014-01-23  Marek Polacek  <polacek@redhat.com>
144         PR c/58346
145         * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
146         an empty aggregate.
148 2014-01-23  Marek Polacek  <polacek@redhat.com>
150         PR c/59871
151         * c-typeck.c (build_compound_expr): Warn even for right-hand operand
152         of a comma expression.
153         (emit_side_effect_warnings): Likewise.
155 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
157         PR c/59825
158         * c-array-notation.c (expand_array_notation_exprs): Rewrote this
159         function to use walk_tree and moved a lot of its functionality to
160         expand_array_notations.
161         (expand_array_notations): New function.
163 2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
165         * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
166         attribute an attribute without value.
168 2014-01-23  Jakub Jelinek  <jakub@redhat.com>
170         PR middle-end/58809
171         * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
172         BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
174 2014-01-22  Marek Polacek  <polacek@redhat.com>
176         PR c/59891
177         * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
178         of remove_c_maybe_const_expr on op1 and op2.
180 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
182         PR c/58943
183         * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
184         effects, preevaluate rhs using SAVE_EXPR first.
186 2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
188         PR c++/59631
189         * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
190         statements with if-elseif statements.
192 2014-01-06  Marek Polacek  <polacek@redhat.com>
194         PR c/57773
195         * c-decl.c (check_bitfield_type_and_width): Warn for implementation
196         defined bit-field types only in ISO C.
198 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
200         Update copyright years
202 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
204         * c-array-notation.c: Use the standard form for the copyright notice.
206 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
208         * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
209         (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
210         field in parser is not empty.  If not-empty, call the function
211         c_parser_finish_omp_declare_simd.
212         (c_parser_cilk_clause_vectorlength): Modified function to be shared
213         between SIMD-enabled functions and #pragma simd.  Added new parameter.
214         (c_parser_cilk_all_clauses): Modified the usage of the function
215         c_parser_cilk_clause_vectorlength as mentioned above.
216         (c_parser_cilk_simd_fn_vector_attrs): New function.
217         (c_finish_cilk_simd_fn_tokens): Likewise.
218         (is_cilkplus_vector_p): Likewise.
219         (c_parser_omp_clause_name): Added checking for "vectorlength,"
220         "nomask," and "mask" strings in clause name.
221         (c_parser_omp_all_clauses): Added 3 new case statements:
222         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
223         PRAGMA_CILK_CLAUSE_NOMASK.
224         (c_parser_attributes): Added a cilk_simd_fn_tokens parameter.  Added a
225         check for vector attribute and if so call the function
226         c_parser_cilk_simd_fn_vector_attrs.  Also, when Cilk plus is enabled,
227         called the function c_finish_cilk_simd_fn_tokens.
228         (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
229         parser field is non-empty.  If so, parse them as you would parse
230         the omp declare simd pragma.
231         (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
232         Added a check when step is a parameter and flag it as error.
233         (CILK_SIMD_FN_CLAUSE_MASK): New #define.
234         (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
235         pragma_omp_clause.
237 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
239         * c-parser.c (c_parser_omp_parallel): Fix description.
241 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
243         * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
244         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
245         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
246         * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
248 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
250         PR c/52023
251         * c-parser.c (c_parser_alignas_specifier): Use
252         c_sizeof_or_alignof_type instead of c_alignof.
253         (c_parser_alignof_expression): Likewise, with min_alignof
254         parameter depending on alignof spelling used.
256 2013-12-04  Marek Polacek  <polacek@redhat.com>
258         PR c/54113
259         * c-decl.c (start_function): Don't warn for missing prototype for
260         inline functions.
262 2013-12-03  Marek Polacek  <polacek@redhat.com>
264         PR c/59351
265         * c-decl.c (build_compound_literal): Allow compound literals with
266         empty initial value.
268 2013-12-02  Joseph Myers  <joseph@codesourcery.com>
270         PR c/58235
271         * c-typeck.c (build_modify_expr): Diagnose assignment to
272         expression with array type.
274 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
276         PR c/42262
277         * c-typeck.c (process_init_element): Do not treat a string as
278         initializing a whole array when used with a designator for an
279         individual element.
281 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
283         PR c/57574
284         * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
285         an inline function following a static declaration.
287 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
289         PR c/59310
290         * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
291         to p_name before calling c_parser_omp_teams instead of after.
292         (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
293         argument.  Remove unused p_name variable.
295 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
296             Jakub Jelinek  <jakub@redhat.com>
298         * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
299         external_scope is NULL.
301 2013-11-27  Tom de Vries  <tom@codesourcery.com>
302             Marc Glisse  <marc.glisse@inria.fr>
304         PR c++/59032
305         * c-typeck.c (build_unary_op): Allow vector increment and decrement.
307 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
309         * c-typeck.c: Add required include files from gimple.h.
311 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
313         * c-decl.c (define_label, shadow_tag_warned)
314         (check_bitfield_type_and_width, grokdeclarator, grokparms,
315         store_parm_decls_newstyle, store_parm_decls_oldstyle)
316         (declspecs_add_type): Remove use of in_system_header macro.
317         * c-parser.c (c_parser_unary_expression): Likewise.
318         * c-typeck.c (store_init_value, process_init_element)
319         (c_start_case): Likewise.
321         * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
322         macro.
324         * c-parser.c (c_parser_set_source_position_from_token): Remove
325         reference to in_system_header from comment.
327 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
329         * c-decl.c (grokdeclarator): Update comment to refer to
330         tree_to_[su]hwi rather than tree_low_cst.
332 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
334         * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
335         tree_to_uhwi throughout.
337 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
339         * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
340         throughout.
342 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
344         * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
345         throughout.
347 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
349         * c-parser.c (c_parser_cilk_simd): New.
350         (c_parser_cilk_verify_simd): New.
351         (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
352         (c_parser_omp_for_loop): Add case for NE_EXPR.
353         Set c_break_label for CILK_SIMD.
354         (c_parser_cilk_clause_vectorlength): New.
355         (c_parser_cilk_clause_linear): New.
356         (c_parser_cilk_clause_name): New.
357         (c_parser_cilk_all_clauses): New.
358         * c-typeck.c (build_unary_op): Pass location argument to
359         readonly_error.
360         (build_modify_expr): Same.
361         (build_asm_expr): Same.
362         (c_finish_bc_stmt): Error on break/continue in loops.
364 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
366         * c-typeck.c: Include only gimplify.h and gimple.h as needed.
368 2013-11-14  Diego Novillo  <dnovillo@google.com>
370         * c-decl.c: Include print-tree.h.
371         Include stor-layout.h.
372         Include varasm.h.
373         Include attribs.h.
374         Include stringpool.h.
375         * c-lang.c: Include fold-const.h.
376         * c-parser.c: Include stringpool.h.
377         Include attribs.h.
378         Include stor-layout.h.
379         Include varasm.h.
380         Include trans-mem.h.
381         * c-typeck.c: Include stor-layout.h.
382         Include trans-mem.h.
383         Include varasm.h.
384         Include stmt.h.
386 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
388         * c-tree.h (c_typespec_keyword): Add cts_auto_type.
389         * c-decl.c (declspecs_add_type, finish_declspecs): Handle
390         __auto_type.
391         * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
392         (c_parser_attribute_any_word, c_parser_objc_selector): Handle
393         RID_AUTO_TYPE.
394         (c_parser_declspecs): Take argument AUTO_TYPE_OK.
395         (c_parser_declaration_or_fndef, c_parser_struct_declaration)
396         (c_parser_declarator, c_parser_direct_declarator_inner)
397         (c_parser_parameter_declaration, c_parser_type_name): All callers
398         changed.
399         (c_parser_declaration_or_fndef): Handle declarations with type
400         determined from the initializer.
402 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
404         * c-typeck.c: Include gimplify.h.
406 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
408         * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
409         * c-parser.c (c_parser_declspecs): Mention _Thread_local in
410         comment.
411         * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
412         or _Thread_local as appropriate in diagnostics.
413         (build_null_declspecs): Initialize ret->thread_gnu_p.
414         (declspecs_add_scspec): Handle either __thread or _Thread_local
415         for RID_THREAD.  Diagnose _Thread_local for pre-C11 standards if
416         pedantic.  Do not disallow _Thread_local extern and _Thread_local
417         static.
419 2013-11-07  Joseph Myers  <joseph@codesourcery.com>
420             Andrew MacLeod  <amacleod@redhat.com>
422         * c-aux-info.c (gen_type): Handle atomic qualifier.
423         * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
424         qualifiers when compating types.
425         (shadow_tag_warned): Handle atomic_p in declspecs.
426         (quals_from_declspecs): Likewise.
427         (start_decl): Use c_type_promotes_to when promoting argument
428         types.
429         (grokdeclarator): Handle _Atomic.
430         (get_parm_info): Diagnose any qualifier on "void" as only
431         parameter.
432         (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
433         comparing types.  Use c_type_promotes_to when promoting argument
434         types.
435         (finish_function): Use c_type_promotes_to when promoting argument
436         types.
437         (build_null_declspecs): Handle atomic_p in declspecs.
438         (declspecs_add_qual): Handle RID_ATOMIC.
439         * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
440         (c_token_starts_declspecs): Handle RID_ATOMIC.
441         (c_parser_declspecs): Handle atomic type specifiers and
442         qualifiers.
443         (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
444         from types of expressions with atomic type.
445         (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
446         (c_parser_attribute_any_word): Handle RID_ATOMIC.
447         (c_parser_initializer, c_parser_initelt, c_parser_initval)
448         (c_parser_statement_after_labels, c_parser_switch_statement)
449         (c_parser_for_statement, c_parser_expr_no_commas)
450         (c_parser_conditional_expression, c_parser_binary_expression)
451         (c_parser_cast_expression, c_parser_unary_expression)
452         (c_parser_postfix_expression)
453         (c_parser_postfix_expression_after_primary, c_parser_expression):
454         Use convert_lvalue_to_rvalue.
455         (c_parser_expression_conv, c_parser_expr_list): Document
456         conversion of lvalues to rvalues.  Use convert_lvalue_to_rvalue.
457         (c_parser_objc_synchronized_statement): Use
458         convert_lvalue_to_rvalue.
459         (c_parser_objc_selector): Handle RID_ATOMIC.
460         (c_parser_objc_receiver, c_parser_array_notation): Use
461         convert_lvalue_to_rvalue.
462         * c-tree.h (ctsk_typeof): Adjust comment to mention use for
463         _Atomic (type-name).
464         (struct c_declspecs): Add atomic_p field.
465         (convert_lvalue_to_rvalue): Declare.
466         * c-typeck.c (c_type_promotes_to): Promote atomic types to
467         corresponding atomic types.
468         (qualify_type): Don't add _Atomic qualifiers from second argument.
469         (comp_target_types): Do not allow _Atomic mismatches.
470         (type_lists_compatible_p): Do not remove atomic qualifiers when
471         comparing types.
472         (really_atomic_lvalue, convert_lvalue_to_rvalue)
473         (build_atomic_assign): New functions.
474         (build_unary_op): Use build_atomic_assign for atomic increment and
475         decrement.
476         (build_conditional_expr): Do not treat _Atomic void as a qualified
477         version of void.
478         (build_modify_expr): Use build_atomic_assign for atomic LHS.
479         (find_anonymous_field_with_type, convert_to_anonymous_field)
480         (convert_for_assignment): Do not remove atomic qualifiers when
481         comparing types.
482         (digest_init): Do not accept initialization of arrays of atomic
483         elements by string constants.
484         (build_asm_expr): Use convert_lvalue_to_rvalue.
485         (build_binary_op): Do not treat _Atomic void as a qualified
486         version of void.
488 2013-11-06  DJ Delorie  <dj@redhat.com>
490         * c-decl.c (locate_old_decl): If a previous conflicting decl is
491         both explicit and builtin, print the location of the explicit one.
493 2013-11-05  Tobias Burnus  <burnus@net-b.de>
495         * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
496         c_parser_omp_distribute, c_parser_omp_teams,
497         c_parser_omp_target, c_parser_omp_declare): Handle
498         -fopenmp-simd.
500 2013-11-03  Marek Polacek  <polacek@redhat.com>
502         * c-decl.c (grokdeclarator): Add VLA instrumentation.
504 2013-11-01  Jakub Jelinek  <jakub@redhat.com>
506         * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
507         check_dup_generic at the end, unless remove is true.
508         (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
509         remove = true;.
510         (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
512 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
514         * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
515         with decl that is not pointer nor array.
517 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
519         * c-decl.c (finish_function): Added a call for insert_cilk_frame when
520         a spawning function is found.
521         * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
522         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
523         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
524         * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
525         case.
526         (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
527         * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
528         expr.
529         (c_finish_return): Added a check to reject _Cilk_spawn in return
530         expression.
531         (build_cilk_spawn): New function.
532         (build_cilk_sync): Likewise.
533         * Makefile.in (c-decl.o): Added cilk.h in dependency list.
534         
535 2013-10-27  Tobias Burnus  <burnus@net-b.de>
537         PR other/33426
538         * c-parser.c (c_parser_while_statement, c_parser_while_statement,
539         c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
540         (c_parser_statement_after_labels): Update calls.
542 2013-10-24  Tobias Burnus  <burnus@net-b.de>
544         PR other/33426
545         * c-parser.c (c_parser_pragma, c_parser_for_statement):
546         Handle PRAGMA_IVDEP.
547         (c_parser_statement_after_labels): Update call.
549 2013-10-24  Marek Polacek  <polacek@redhat.com>
551         * c-parser.c (c_parser_struct_declaration): Add a comment.
552         (c_parser_declarator): Don't allow _Alignas here.
554 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
556         * c-parser.c: Include omp-low.h.
557         * c-typeck.c: Likewise.
559 2013-10-17  Marek Polacek  <polacek@redhat.com>
561         PR c/58267
562         * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
563         Document syntax of the array-declarator.
564         (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
565         are not permitted.
566         (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
567         (c_parser_struct_declaration): Likewise.
568         (c_parser_declarator): Likewise.
569         (c_parser_direct_declarator_inner): Likewise.
570         (c_parser_parameter_declaration): Likewise.
571         (c_parser_type_name): Likewise.
573 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
575         * c-lang.h (current_omp_declare_target_attribute): New extern
576         decl.
577         * c-parser.c: Include c-lang.h.
578         (struct c_parser): Change tokens to c_token *.
579         Add tokens_buf field.  Change tokens_avail type to unsigned int.
580         (c_parser_consume_token): If parser->tokens isn't
581         &parser->tokens_buf[0], increment parser->tokens.
582         (c_parser_consume_pragma): Likewise.
583         (enum pragma_context): Add pragma_struct and pragma_param.
584         (c_parser_external_declaration): Adjust
585         c_parser_declaration_or_fndef caller.
586         (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
587         argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
588         Adjust recursive call.
589         (c_parser_struct_or_union_specifier): Use pragma_struct instead
590         of pragma_external.
591         (c_parser_parameter_declaration): Use pragma_param instead of
592         pragma_external.
593         (c_parser_compound_statement_nostart, c_parser_label,
594         c_parser_for_statement): Adjust
595         c_parser_declaration_or_fndef callers.
596         (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
597         it through to c_parser_conditional_expression.
598         (c_parser_conditional_expression): Add omp_atomic_lhs argument,
599         pass it through to c_parser_binary_expression.  Adjust recursive
600         call.
601         (c_parser_binary_expression): Remove prec argument, add
602         omp_atomic_lhs argument instead.  Always start from PREC_NONE, if
603         omp_atomic_lhs is non-NULL and one of the arguments of toplevel
604         binop matches it, use build2 instead of parser_build_binary_op.
605         (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
606         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
607         PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
608         Handle pragma_struct and pragma_param the same as pragma_external.
609         (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
610         (c_parser_omp_variable_list): Parse array sections for
611         OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
612         (c_parser_omp_clause_collapse): Fully fold collapse expression.
613         (c_parser_omp_clause_reduction): Handle user defined reductions.
614         (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
615         c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
616         c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
617         c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
618         c_parser_omp_clause_depend, c_parser_omp_clause_map,
619         c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
620         c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
621         c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
622         (c_parser_omp_all_clauses): Add finish_p argument.  Don't call
623         c_finish_omp_clauses if it is false.  Handle new OpenMP 4.0 clauses.
624         (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
625         present to c_finish_omp_atomic.  Handle OpenMP 4.0 atomic forms.
626         (c_parser_omp_for_loop): Add CODE argument, pass it through
627         to c_finish_omp_for.  Change last argument to cclauses,
628         and adjust uses to grab parallel clauses from the array of all
629         the split clauses.  Adjust c_parser_binary_expression,
630         c_parser_declaration_or_fndef and c_finish_omp_for callers.
631         (omp_split_clauses): New function.
632         (c_parser_omp_simd): New function.
633         (c_parser_omp_for): Add p_name, mask and cclauses arguments.
634         Allow the function to be called also when parsing combined constructs,
635         and call c_parser_omp_simd when parsing for simd.
636         (c_parser_omp_sections_scope): If section-sequence doesn't start with
637         #pragma omp section, require exactly one structured-block instead of
638         sequence of statements.
639         (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
640         Allow the function to be called also when parsing combined constructs.
641         (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
642         Allow the function to be called also when parsing combined
643         constructs.
644         (c_parser_omp_taskgroup, c_parser_omp_cancel,
645         c_parser_omp_cancellation_point, c_parser_omp_distribute,
646         c_parser_omp_teams, c_parser_omp_target_data,
647         c_parser_omp_target_update, c_parser_omp_target,
648         c_parser_omp_declare_simd, c_finish_omp_declare_simd,
649         c_parser_omp_declare_target, c_parser_omp_end_declare_target,
650         c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
651         (c_parser_omp_construct): Add p_name and mask vars.  Handle
652         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
653         PRAGMA_OMP_TEAMS.  Adjust c_parser_omp_for, c_parser_omp_parallel
654         and c_parser_omp_sections callers.
655         (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
656         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
657         OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
658         (OMP_PARALLEL_CLAUSE_MASK): Likewise.  Add OMP_CLAUSE_PROC_BIND.
659         (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.  Add
660         OMP_CLAUSE_DEPEND.
661         (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
662         OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
663         OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
664         OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
665         OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
666         * c-typeck.c: Include tree-inline.h.
667         (c_finish_omp_cancel, c_finish_omp_cancellation_point,
668         handle_omp_array_sections_1, handle_omp_array_sections,
669         c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
670         (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
671         user defined reductions.
672         (c_tree_equal): New function.
673         * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
674         c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
675         c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
676         c_check_omp_declare_reduction_r): New prototypes.
677         * c-decl.c (current_omp_declare_target_attribute): New variable.
678         (c_decl_attributes): New function.
679         (start_decl, start_function): Use it instead of decl_attributes.
680         (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
681         c_omp_reduction_decl, c_omp_reduction_lookup,
682         c_check_omp_declare_reduction_r): New functions.
684 2013-09-25  Tom Tromey  <tromey@redhat.com>
686         * Make-lang.in (c/gccspec.o): Remove.
687         (CFLAGS-c/gccspec.o): New variable.
688         (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
689         (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
690         (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
692 2013-09-25  Tom Tromey  <tromey@redhat.com>
694         * Make-lang.in (c/gccspec.o): Don't use subshell.
696 2013-09-18  Marek Polacek  <polacek@redhat.com>
698         PR sanitize/58443
699         * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
700         Remove unnecessary check.
702 2013-09-18  Marek Polacek  <polacek@redhat.com>
704         PR sanitizer/58411
705         * c-typeck.c (build_binary_op): Don't sanitize function if it has the
706         no_sanitize_undefined attribute.
708 2013-09-13  Kai Tietz  <ktietz@redhat.com>
710         PR target/57848
711         * c-decl.c (c_builtin_function_ext_scope): Remove
712         wrong assumption that it is never called on prexisting
713         symbol.
715 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
717         * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
719 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
721         * c-objc-common.c (c_tree_printer): Tidy.
723 2013-08-30  Marek Polacek  <polacek@redhat.com>
725         * c-typeck.c (build_binary_op): Add division by zero and shift
726         instrumentation.
728 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
729             Joseph Myers  <joseph@codesourcery.com>
731         PR c/35649
732         * c-typeck.c (c_common_type): Prefer double_type_node over
733         other REAL_TYPE types with the same precision.
734         (convert_arguments): Likewise.
736 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
738         * c-objc-common.c (c_tree_printer): Document the nature of the cast.
739         (c_initialize_diagnostics): Call a destructor for the early printer.
741 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
743         * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
744         printer initialization.
746 2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
748         PR c/57490
749         * c-array-notation.c (fix_conditional_array_notations_1): Added a
750         check for truth values.
751         (expand_array_notation_exprs): Added truth values case.  Removed an
752         unwanted else.  Added for-loop to walk through subtrees in default
753         case.
755 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
757         * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
759 2013-07-23  Joseph Myers  <joseph@codesourcery.com>
761         * c-parser.c (struct c_generic_association): Fix typo.
763 2013-07-23  Tom Tromey  <tromey@redhat.com>
764             Joseph Myers  <joseph@codesourcery.com>
766         * c-parser.c (struct c_generic_association): New.
767         (c_generic_association_d): New typedef.
768         (c_parser_generic_selection): New function.
769         (c_parser_postfix_expression): Handle RID_GENERIC.
771 2013-07-13  Jason Merrill  <jason@redhat.com>
773         PR c++/57793
774         * c-decl.c (finish_struct): Check for too-large class.
776 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
778         PR c/57821
779         * c-typeck.c (set_init_index): When folding, check for index overflow.
781 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
783         * c-parser.c (c_parser_array_notation): Removed rejection of array
784         notations in an array of function pointers.
786 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
788         * c-array-notation.c (make_triplet_val_inv): New function.
789         (create_cmp_incr): Likewise.
790         (create_array_refs): Likewise.
791         (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
792         Also modularized common parts between functions and called the function.
793         (build_array_notation_expr): Likewise.
794         (fix_conditional_array_notations_1): Likewise.
795         (fix_array_notation_expr): Likewise.
796         (fix_array_notation_call_expr): Likewise.
798 2013-06-18  Marek Polacek  <polacek@redhat.com>
800         PR c/57630
801         * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
803 2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
805         * c-array-notation.c (build_array_notation_expr): Reject array notation
806         mismatch between LHS and RHS even inside a call_expr.  Also, removed
807         a couple while statements that were dead code.
809 2013-06-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
811         * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
812         excessive precision expressions in function parameters.  Also removed
813         couple unwanted while statements.
815 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
817         * c-array-notation.c (expand_array_notation_exprs): Added
818         ARRAY_NOTATION_REF case.
819         
820 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
822         * c-array-notation.c (length_mismatch_in_expr_p): Moved this
823         function to c-family/array-notation-common.c.
824         (is_cilkplus_reduce_builtin): Likewise.
825         (find_rank): Likewise.
826         (extract_array_notation_exprs): Likewise.
827         (replace_array_notations): Likewise.
828         (find_inv_trees): Likewise.
829         (replace_inv_trees): Likewise.
830         (contains_array_notation_expr): Likewise.
831         (find_correct_array_notation_type): Likewise.
832         (replace_invariant_exprs): Initialized additional_tcodes to NULL.
833         (struct inv_list): Moved this to c-family/array-notation-common.c.
834         * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
835         
836 2013-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
838         * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
839         reduction functions outside the for-loop.  Added a check if the fundecl
840         is non-NULL.  Finally, removed an unwanted if-statement, and made the
841         body unconditional.
843 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
845         * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
846         condition of the if-statement matches the rank of else-block and then-
847         block when array notations are used.
848         * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
849         expression after the entire function body is parsed.
850         (c_parser_expr_no_commas): Delayed creating array notation expressions
851         to the end of function parsing.
852         * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
853         whole if-statement instead of just the condition.
854         (expand_array_notation_exprs): Added MODIFY_EXPR case.  
856 2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>
858         PR c/57474
859         * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
860         array to NULL_TREE if they are unused.  Also added a check for the
861         field to be NULL before its fields are used in future.
862         
863 2013-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
865         PR bootstrap/57450
866         * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
867         (build_array_notation_expr): Likewise.
869 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
871         * c-typeck.c (build_array_ref): Added a check to see if array's
872         index is greater than one.  If true, then emit an error.
873         (build_function_call_vec): Exclude error reporting and checking
874         for builtin array-notation functions.
875         (convert_arguments): Likewise.
876         (c_finish_return): Added a check for array notations as a return
877         expression.  If true, then emit an error.
878         (c_finish_loop): Added a check for array notations in a loop
879         condition.  If true then emit an error.
880         (lvalue_p): Added a ARRAY_NOTATION_REF case.
881         (build_binary_op): Added a check for array notation expr inside
882         op1 and op0.  If present, we call another function to find correct
883         type.
884         * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
885         * c-parser.c (c_parser_compound_statement): Check if array
886         notation code is used in tree, if so, then transform them into
887         appropriate C code.
888         (c_parser_expr_no_commas): Check if array notation is used in LHS
889         or RHS, if so, then build array notation expression instead of
890         regular modify.
891         (c_parser_postfix_expression_after_primary): Added a check for
892         colon(s) after square braces, if so then handle it like an array
893         notation.  Also, break up array notations in unary op if found.
894         (c_parser_direct_declarator_inner): Added a check for array
895         notation.
896         (c_parser_compound_statement): Added a check for array notation in
897         a stmt.  If one is present, then expand array notation expr.
898         (c_parser_if_statement): Likewise.
899         (c_parser_switch_statement): Added a check for array notations in
900         a switch statement's condition.  If true, then output an error.
901         (c_parser_while_statement): Similarly, but for a while.
902         (c_parser_do_statement): Similarly, but for a do-while.
903         (c_parser_for_statement): Similarly, but for a for-loop.
904         (c_parser_unary_expression): Check if array notation is used in a
905         pre-increment or pre-decrement expression.  If true, then expand
906         them.
907         (c_parser_array_notation): New function.
908         * c-array-notation.c: New file.
909         * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
910         
911 2013-05-23  Mike Stump  <mikestump@comcast.net>
913         * c-typeck.c (convert_for_assignment): Handle references to memory
914         spaces better.
916 2013-05-16  Jason Merrill  <jason@redhat.com>
918         * Make-lang.in (cc1$(exeext)): Use link mutex.
920 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
922         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
923         to simply use OPT_Wpointer_arith.
924         (build_unary_op): Likewise.
926 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
928         PR c/19449
929         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
930         argument.  If set, or it temporarily for parsing of the first
931         argument into force_folding_builtin_constant_p.
932         (c_parser_postfix_expression): Adjust callers.
934 2013-03-21  Richard Biener  <rguenther@suse.de>
936         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
937         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
939 2013-02-12  Marek Polacek  <polacek@redhat.com>
941         PR c/44938
942         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
943         origtypes to NULL.
945 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
947         PR c/56078
948         * c-typeck.c (set_nonincremental_init_from_string): If
949         constructor_max_index is NULL, treat it as if tree_int_cst_lt
950         returned false.
951         (process_init_element): Likewise.
953 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
955         PR c++/55619
956         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
957         argument, don't call default_function_array_conversion
958         nor c_fully_fold here.
959         (c_parser_asm_statement): Adjust callers.
960         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
961         and outputs here, and call default_function_array_conversion
962         on inputs that don't need to be addressable.
964 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
966         PR c/39464
967         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
968         warning require that both c_common_unsigned_type as well as
969         c_common_signed_type is the same for both mvl and mvr types.
971 2012-11-16  Diego Novillo  <dnovillo@google.com>
973         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
975         * c-common.c: Use new vec API in vec.h.
976         * c-common.h: Likewise.
977         * c-gimplify.c: Likewise.
978         * c-pragma.c: Likewise.
979         * c-pretty-print.c: Likewise.
980         * c-pretty-print.h: Likewise.
981         * c-semantics.c: Likewise.
982         * c-decl.c: Likewise.
983         * c-parser.c: Likewise.
984         * c-tree.h: Likewise.
985         * c-typeck.c: Likewise.
987 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
989         PR c++/54930
990         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
992 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
994         PR c/53066
995         * c-decl.c (warn_if_shadowing): Do not warn if a variable
996         shadows a function, unless the variable is a function or a
997         pointer-to-function.
999 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
1001         PR c/54381
1002         * c-parser.c (struct c_tree_loc_pair): Removed.
1003         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1004         add location_t * and tree * arguments, fill in array of 3
1005         sizeof_arg trees and corresponding locs.
1006         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1007         c_parser_expr_list callers.
1008         (c_parser_postfix_expression_after_primary): Likewise.  Pass
1009         array of 3 sizeof_arg trees and locs (corresponding to first
1010         3 arguments) to sizeof_pointer_memaccess_warning.
1012 2012-10-09  Lawrence Crowl  <crowl@google.com>
1014         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1015         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1016         hash table.
1018 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
1020         PR c++/54194
1021         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1022         call.
1024 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
1026         PR c++/54427
1027         * c-typeck.c: Include c-common.h.
1028         (enum stv_conv): Moved to c-common.h.
1029         (scalar_to_vector): Moved to c-common.c.
1030         (build_binary_op): Adapt to scalar_to_vector's new prototype.
1031         * Make-lang.in: c-typeck.c depends on c-common.h.
1033 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
1035         * c-decl.c (c_write_global_declarations): Fix handling of
1036         -fdump-ada-spec*.
1038 2012-09-30  Sharad Singhai  <singhai@google.com>
1040         * c-decl.c (c_write_global_declarations): Use a different method
1041         to determine if the dump has ben initialized.
1043 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1045         PR c/54552
1046         * c-typeck.c (c_cast_expr): When casting to a type requiring
1047         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1048         c_fully_fold first.
1050 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1052         PR c/54103
1053         * c-typeck.c (build_unary_op): Pass original argument of
1054         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1055         any C_MAYBE_CONST_EXPR, if it has integer operands.
1056         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1057         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1058         to c_objc_common_truthvalue_conversion, then remove any
1059         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
1060         c_objc_common_truthvalue_conversion not
1061         c_common_truthvalue_conversion.
1062         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1063         call note_integer_operands for arguments with integer operands
1064         that are not integer constants.
1066 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
1068         PR c/54559
1069         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1070         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1072 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
1074         PR c/54428
1075         * c-convert.c (convert): Don't call fold_convert_loc if
1076         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1077         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
1078         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1080 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
1082         PR c/54355
1083         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1084         for nested and empty_ok arguments in the call to
1085         c_parser_declaration_or_fndef.
1087 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
1089         * c-tree.h (c_last_sizeof_arg): Declare.
1090         * c-parser.c (struct c_tree_loc_pair): New type.
1091         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
1092         non-NULL.
1093         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1094         (c_parser_postfix_expression_after_primary): Likewise.  Call
1095         sizeof_pointer_memaccess_warning if needed.
1096         (sizeof_ptr_memacc_comptypes): New function.
1097         * c-typeck.c (c_last_sizeof_arg): New global variable.
1098         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1100 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
1102         * c-lang.h (lang_decl): Add variable_size GTY option.
1104 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
1106         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1107         * Make-lang.in: Fix dependencies.
1109 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1111         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1112         and add language Makefile hooks.
1113         * config-lang.in: New file.
1114         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1115         add the required "normal" config-lang.in rules.
1116         * c-lang.h: Moved from gcc/ to here.
1117         * c-tree.h: Likewise.
1118         * c-objc-common.c: Likewise.
1119         * c-objc-common.h: Likewise.
1120         * c-typeck.c: Likewise.
1121         * c-convert.c: Likewise.
1122         * c-lang.c: Likewise.
1123         * c-aux-info.c: Likewise.
1124         * c-errors.c: Likewise.
1125         * gccspec.c: Likewise.
1126         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
1127         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
1129 Copyright (C) 2012-2014 Free Software Foundation, Inc.
1131 Copying and distribution of this file, with or without modification,
1132 are permitted in any medium without royalty provided the copyright
1133 notice and this notice are preserved.