]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
pr60823-2.c: Require effective target vect_simd_clones.
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
34cf811f
MP
12014-04-25 Marek Polacek <polacek@redhat.com>
2
3 PR c/60114
4 * c-parser.c (c_parser_initelt): Pass input_location to
5 process_init_element.
6 (c_parser_initval): Pass loc to process_init_element.
7 * c-tree.h (process_init_element): Adjust declaration.
8 * c-typeck.c (push_init_level): Pass input_location to
9 process_init_element.
10 (pop_init_level): Likewise.
11 (set_designator): Likewise.
12 (output_init_element): Add location_t parameter. Pass loc to
13 digest_init.
14 (output_pending_init_elements): Pass input_location to
15 output_init_element.
16 (process_init_element): Add location_t parameter. Pass loc to
17 output_init_element.
18
3e4fbd91
PK
192014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
20
21 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
22 avoid goto.
23
42056eac
JJ
242014-04-24 Jakub Jelinek <jakub@redhat.com>
25
26 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
27 atomic-clause, allow comma in between atomic-clause and
28 seq_cst.
29
e162a134
JJ
302014-04-22 Jakub Jelinek <jakub@redhat.com>
31
32 PR c/59073
33 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
34 fails, don't set OM_PARALLEL_COMBINED and return NULL.
35
2f6babac
IZ
362014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
37
38 PR middle-end/60469
39 * c-array-notation.c (fix_builtin_array_notation_fn): Use
40 create_tmp_var instead build_decl for creating temps.
41 (build_array_notation_expr): Likewise.
42 (fix_conditional_array_notations_1): Likewise.
43 (fix_array_notation_expr): Likewise.
44 (fix_array_notation_call_expr): Likewise.
45
8edbfaa6
JJ
462014-03-28 Jakub Jelinek <jakub@redhat.com>
47
48 PR c++/60689
49 * c-tree.h (c_build_function_call_vec): New prototype.
50 * c-typeck.c (build_function_call_vec): Don't call
51 resolve_overloaded_builtin here.
52 (c_build_function_call_vec): New wrapper function around
53 build_function_call_vec. Call resolve_overloaded_builtin here.
54 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
55 Call c_build_function_call_vec instead of build_function_call_vec.
56 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
57 * c-decl.c (finish_decl): Likewise.
58
7485aeea
MLI
592014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
60
61 PR c/55383
62 * c-typeck.c: Use correct format string in cast-qual warning
63
b17a8b07
TS
642014-03-07 Thomas Schwinge <thomas@codesourcery.com>
65
66 * c-decl.c (c_decl_attributes): Use
67 lang_hooks.types.omp_mappable_type.
68 * c-typeck.c (c_finish_omp_clauses): Likewise.
69
3af9c5e9
MP
702014-03-06 Marek Polacek <polacek@redhat.com>
71
72 PR c/60197
73 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
74 of checking tree code.
75
1c9f5f33
PK
762014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
77
78 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
79 (c_parser_parameter_declaration): Likewise.
80
cc28fc7f
MP
812014-02-19 Marek Polacek <polacek@redhat.com>
82
83 PR c/60195
84 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
85 Call mark_exp_read on exp.value.
86 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
87 TREE_ADDRESSABLE on old instead of val.
88 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
89
b581c05c
PK
902014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
91
92 * c-parser.c (c_parser_get_builtin_args): Replace calls to
93 C_EXPR_APPEND by vec_safe_push.
94 * c-tree.h (C_EXPR_APPEND): Remove.
95
81e5eca8
MP
962014-01-31 Marek Polacek <polacek@redhat.com>
97
98 PR c/59963
99 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
100 build_function_call_vec.
101 (build_function_call): Likewise.
102 (build_atomic_assign): Likewise.
103 (build_function_call_vec): Add arg_loc parameter. Use it.
104 (convert_arguments): Likewise.
105 (convert_for_assignment): Rename rhs_loc to expr_loc.
106 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
107 (c_parser_objc_keywordexpr): Likewise.
108 (c_parser_postfix_expression_after_primary): Call
109 build_function_call_vec with expr_loc rather than op_loc.
110 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
111 build_function_call_vec.
112 (c_parser_expr_list): Add locations parameter. Fill it with locations
113 of function arguments.
114 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
115
68fca595
MP
1162014-01-30 Marek Polacek <polacek@redhat.com>
117
118 PR c/59940
119 * c-typeck.c (build_function_call_vec): Use loc parameter.
120 (convert_arguments): Add location parameter. Use it.
121 (ep_convert_and_check): Likewise.
122 (build_atomic_assign): Adjust convert_for_assignment call.
123 (build_modify_expr): Likewise.
124 (digest_init): Likewise.
125 (c_finish_return): Likewise.
126 (build_conditional_expr): Adjust ep_convert_and_check calls.
127 (convert_for_assignment): Add rhs_loc parameter. Use it.
128 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
129 calls.
130
fa337f3a
RB
1312014-01-30 Richard Biener <rguenther@suse.de>
132
133 PR c/59905
134 * c-typeck.c (build_function_call_vec): Do not replace calls
135 to a function via an incompatible type with a runtime abort.
136
b72271b9
BI
1372014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
138
139 * c-parser.c (c_parser_declaration_or_fndef): Replaced
140 flag_enable_cilkplus with flag_cilkplus.
141 (c_parser_direct_declarator_inner): Likewise.
142 (c_parser_attribute_any_word): Likewise.
143 (c_parser_attributes): Likewise.
144 (c_parser_compound_statement): Likewise.
145 (c_parser_statement_after_labels): Likewise.
146 (c_parser_if_statement): Likewise.
147 (c_parser_switch_statement): Likewise.
148 (c_parser_do_statement): Likewise.
149 (c_parser_for_statement): Likewise.
150 (c_parser_unary_expression): Likewise.
151 (c_parser_postfix_expression): Likewise.
152 (c_parser_postfix_expression_after_primary): Likewise.
153 (c_parser_postfix_expression_after_primary): Likewise.
154 (c_parser_omp_clause_name): Likewise.
155 (c_finish_omp_declare_simd): Likewise.
156 (c_parser_cilk_verify_simd): Likewise.
157 * c-typeck.c (build_array_ref): Likewise.
158 (build_function_call_vec): Likewise.
159 (convert_arguments): Likewise.
160 (build_compound_expr): Likewise.
161 (c_finish_return): Likewise.
162 (c_finish_if_stmt): Likewise.
163 (c_finish_loop): Likewise.
164 (build_binary_op): Likewise.
165
393e8e8b
MP
1662014-01-23 Marek Polacek <polacek@redhat.com>
167
168 PR c/59846
169 * c-typeck.c (parser_build_binary_op): Use location instead of
170 input_location.
171 (build_binary_op): Pass location to shorten_compare.
172
f04dda30
MP
1732014-01-23 Marek Polacek <polacek@redhat.com>
174
175 PR c/58346
176 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
177 an empty aggregate.
178
789eadcd
MP
1792014-01-23 Marek Polacek <polacek@redhat.com>
180
181 PR c/59871
182 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
183 of a comma expression.
184 (emit_side_effect_warnings): Likewise.
185
40f14e9f
BI
1862014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
187
188 PR c/59825
189 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
190 function to use walk_tree and moved a lot of its functionality to
191 expand_array_notations.
192 (expand_array_notations): New function.
193
74558dd9
BI
1942014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
195
196 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
197 attribute an attribute without value.
198
652fea39
JJ
1992014-01-23 Jakub Jelinek <jakub@redhat.com>
200
201 PR middle-end/58809
202 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
203 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
204
f34f1c87
MP
2052014-01-22 Marek Polacek <polacek@redhat.com>
206
207 PR c/59891
208 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
209 of remove_c_maybe_const_expr on op1 and op2.
210
241f845a
JJ
2112014-01-15 Jakub Jelinek <jakub@redhat.com>
212
213 PR c/58943
214 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
215 effects, preevaluate rhs using SAVE_EXPR first.
216
9a74f20c
BI
2172014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
218
219 PR c++/59631
220 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
221 statements with if-elseif statements.
222
96066ce1
MP
2232014-01-06 Marek Polacek <polacek@redhat.com>
224
225 PR c/57773
226 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
227 defined bit-field types only in ISO C.
228
23a5b65a
RS
2292014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
230
231 Update copyright years
232
f9030485
RS
2332014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
234
235 * c-array-notation.c: Use the standard form for the copyright notice.
236
41958c28
BI
2372013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
238
239 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
240 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
241 field in parser is not empty. If not-empty, call the function
242 c_parser_finish_omp_declare_simd.
243 (c_parser_cilk_clause_vectorlength): Modified function to be shared
244 between SIMD-enabled functions and #pragma simd. Added new parameter.
245 (c_parser_cilk_all_clauses): Modified the usage of the function
246 c_parser_cilk_clause_vectorlength as mentioned above.
247 (c_parser_cilk_simd_fn_vector_attrs): New function.
248 (c_finish_cilk_simd_fn_tokens): Likewise.
249 (is_cilkplus_vector_p): Likewise.
250 (c_parser_omp_clause_name): Added checking for "vectorlength,"
251 "nomask," and "mask" strings in clause name.
252 (c_parser_omp_all_clauses): Added 3 new case statements:
253 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
254 PRAGMA_CILK_CLAUSE_NOMASK.
255 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
256 check for vector attribute and if so call the function
257 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
258 called the function c_finish_cilk_simd_fn_tokens.
259 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
260 parser field is non-empty. If so, parse them as you would parse
261 the omp declare simd pragma.
262 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
263 Added a check when step is a parameter and flag it as error.
264 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
265 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
266 pragma_omp_clause.
267
cef0fd0e
TS
2682013-12-17 Thomas Schwinge <thomas@codesourcery.com>
269
270 * c-parser.c (c_parser_omp_parallel): Fix description.
271
12893402
BI
2722013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
273
274 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
275 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
276 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
277 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
278
296674db
JM
2792013-12-04 Joseph Myers <joseph@codesourcery.com>
280
281 PR c/52023
282 * c-parser.c (c_parser_alignas_specifier): Use
283 c_sizeof_or_alignof_type instead of c_alignof.
284 (c_parser_alignof_expression): Likewise, with min_alignof
285 parameter depending on alignof spelling used.
286
edd28054
MP
2872013-12-04 Marek Polacek <polacek@redhat.com>
288
289 PR c/54113
290 * c-decl.c (start_function): Don't warn for missing prototype for
291 inline functions.
292
da0fc454
MP
2932013-12-03 Marek Polacek <polacek@redhat.com>
294
295 PR c/59351
296 * c-decl.c (build_compound_literal): Allow compound literals with
297 empty initial value.
298
4c2ecab0
JM
2992013-12-02 Joseph Myers <joseph@codesourcery.com>
300
301 PR c/58235
302 * c-typeck.c (build_modify_expr): Diagnose assignment to
303 expression with array type.
304
340baef7
JM
3052013-11-29 Joseph Myers <joseph@codesourcery.com>
306
307 PR c/42262
308 * c-typeck.c (process_init_element): Do not treat a string as
309 initializing a whole array when used with a designator for an
310 individual element.
311
6763b9f7
JM
3122013-11-29 Joseph Myers <joseph@codesourcery.com>
313
314 PR c/57574
315 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
316 an inline function following a static declaration.
317
e7bd1de1
JJ
3182013-11-28 Jakub Jelinek <jakub@redhat.com>
319
320 PR c/59310
321 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
322 to p_name before calling c_parser_omp_teams instead of after.
323 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
324 argument. Remove unused p_name variable.
325
0136f8f0
AH
3262013-11-27 Aldy Hernandez <aldyh@redhat.com>
327 Jakub Jelinek <jakub@redhat.com>
328
329 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
330 external_scope is NULL.
331
241b71bb
TV
3322013-11-27 Tom de Vries <tom@codesourcery.com>
333 Marc Glisse <marc.glisse@inria.fr>
334
335 PR c++/59032
336 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
337
2fb9a547
AM
3382013-11-22 Andrew MacLeod <amacleod@redhat.com>
339
340 * c-typeck.c: Add required include files from gimple.h.
341
8400e75e
DM
3422013-11-22 David Malcolm <dmalcolm@redhat.com>
343
344 * c-decl.c (define_label, shadow_tag_warned)
345 (check_bitfield_type_and_width, grokdeclarator, grokparms,
346 store_parm_decls_newstyle, store_parm_decls_oldstyle)
347 (declspecs_add_type): Remove use of in_system_header macro.
348 * c-parser.c (c_parser_unary_expression): Likewise.
349 * c-typeck.c (store_init_value, process_init_element)
350 (c_start_case): Likewise.
351
352 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
353 macro.
354
355 * c-parser.c (c_parser_set_source_position_from_token): Remove
356 reference to in_system_header from comment.
357
386b1f1f
RS
3582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
359
360 * c-decl.c (grokdeclarator): Update comment to refer to
361 tree_to_[su]hwi rather than tree_low_cst.
362
ae7e9ddd
RS
3632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
364
365 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
366 tree_to_uhwi throughout.
367
9439e9a1
RS
3682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
369
370 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
371 throughout.
372
9541ffee
RS
3732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
374
375 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
376 throughout.
377
c02065fc
AH
3782013-11-15 Aldy Hernandez <aldyh@redhat.com>
379
380 * c-parser.c (c_parser_cilk_simd): New.
381 (c_parser_cilk_verify_simd): New.
382 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
383 (c_parser_omp_for_loop): Add case for NE_EXPR.
384 Set c_break_label for CILK_SIMD.
385 (c_parser_cilk_clause_vectorlength): New.
386 (c_parser_cilk_clause_linear): New.
387 (c_parser_cilk_clause_name): New.
388 (c_parser_cilk_all_clauses): New.
389 * c-typeck.c (build_unary_op): Pass location argument to
390 readonly_error.
391 (build_modify_expr): Same.
392 (build_asm_expr): Same.
393 (c_finish_bc_stmt): Error on break/continue in loops.
394
18f429e2
AM
3952013-11-14 Andrew MacLeod <amacleod@redhat.com>
396
397 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
398
d8a2d370
DN
3992013-11-14 Diego Novillo <dnovillo@google.com>
400
401 * c-decl.c: Include print-tree.h.
402 Include stor-layout.h.
403 Include varasm.h.
404 Include attribs.h.
405 Include stringpool.h.
406 * c-lang.c: Include fold-const.h.
407 * c-parser.c: Include stringpool.h.
408 Include attribs.h.
409 Include stor-layout.h.
410 Include varasm.h.
411 Include trans-mem.h.
412 * c-typeck.c: Include stor-layout.h.
413 Include trans-mem.h.
414 Include varasm.h.
415 Include stmt.h.
416
38b7bc7f
JM
4172013-11-13 Joseph Myers <joseph@codesourcery.com>
418
419 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
420 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
421 __auto_type.
422 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
423 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
424 RID_AUTO_TYPE.
425 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
426 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
427 (c_parser_declarator, c_parser_direct_declarator_inner)
428 (c_parser_parameter_declaration, c_parser_type_name): All callers
429 changed.
430 (c_parser_declaration_or_fndef): Handle declarations with type
431 determined from the initializer.
432
45b0be94
AM
4332013-11-12 Andrew MacLeod <amacleod@redhat.com>
434
18f429e2 435 * c-typeck.c: Include gimplify.h.
45b0be94 436
582d9b50
JM
4372013-11-12 Joseph Myers <joseph@codesourcery.com>
438
439 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
440 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
441 comment.
442 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
443 or _Thread_local as appropriate in diagnostics.
444 (build_null_declspecs): Initialize ret->thread_gnu_p.
445 (declspecs_add_scspec): Handle either __thread or _Thread_local
446 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
447 pedantic. Do not disallow _Thread_local extern and _Thread_local
448 static.
449
267bac10
JM
4502013-11-07 Joseph Myers <joseph@codesourcery.com>
451 Andrew MacLeod <amacleod@redhat.com>
452
453 * c-aux-info.c (gen_type): Handle atomic qualifier.
454 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
455 qualifiers when compating types.
456 (shadow_tag_warned): Handle atomic_p in declspecs.
457 (quals_from_declspecs): Likewise.
458 (start_decl): Use c_type_promotes_to when promoting argument
459 types.
460 (grokdeclarator): Handle _Atomic.
461 (get_parm_info): Diagnose any qualifier on "void" as only
462 parameter.
463 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
464 comparing types. Use c_type_promotes_to when promoting argument
465 types.
466 (finish_function): Use c_type_promotes_to when promoting argument
467 types.
468 (build_null_declspecs): Handle atomic_p in declspecs.
469 (declspecs_add_qual): Handle RID_ATOMIC.
470 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
471 (c_token_starts_declspecs): Handle RID_ATOMIC.
472 (c_parser_declspecs): Handle atomic type specifiers and
473 qualifiers.
474 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
475 from types of expressions with atomic type.
476 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
477 (c_parser_attribute_any_word): Handle RID_ATOMIC.
478 (c_parser_initializer, c_parser_initelt, c_parser_initval)
479 (c_parser_statement_after_labels, c_parser_switch_statement)
480 (c_parser_for_statement, c_parser_expr_no_commas)
481 (c_parser_conditional_expression, c_parser_binary_expression)
482 (c_parser_cast_expression, c_parser_unary_expression)
483 (c_parser_postfix_expression)
484 (c_parser_postfix_expression_after_primary, c_parser_expression):
485 Use convert_lvalue_to_rvalue.
486 (c_parser_expression_conv, c_parser_expr_list): Document
487 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
488 (c_parser_objc_synchronized_statement): Use
489 convert_lvalue_to_rvalue.
490 (c_parser_objc_selector): Handle RID_ATOMIC.
491 (c_parser_objc_receiver, c_parser_array_notation): Use
492 convert_lvalue_to_rvalue.
493 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
494 _Atomic (type-name).
495 (struct c_declspecs): Add atomic_p field.
496 (convert_lvalue_to_rvalue): Declare.
497 * c-typeck.c (c_type_promotes_to): Promote atomic types to
498 corresponding atomic types.
499 (qualify_type): Don't add _Atomic qualifiers from second argument.
500 (comp_target_types): Do not allow _Atomic mismatches.
501 (type_lists_compatible_p): Do not remove atomic qualifiers when
502 comparing types.
503 (really_atomic_lvalue, convert_lvalue_to_rvalue)
504 (build_atomic_assign): New functions.
505 (build_unary_op): Use build_atomic_assign for atomic increment and
506 decrement.
507 (build_conditional_expr): Do not treat _Atomic void as a qualified
508 version of void.
509 (build_modify_expr): Use build_atomic_assign for atomic LHS.
510 (find_anonymous_field_with_type, convert_to_anonymous_field)
511 (convert_for_assignment): Do not remove atomic qualifiers when
512 comparing types.
513 (digest_init): Do not accept initialization of arrays of atomic
514 elements by string constants.
515 (build_asm_expr): Use convert_lvalue_to_rvalue.
516 (build_binary_op): Do not treat _Atomic void as a qualified
517 version of void.
518
0c249d4b
DD
5192013-11-06 DJ Delorie <dj@redhat.com>
520
521 * c-decl.c (locate_old_decl): If a previous conflicting decl is
522 both explicit and builtin, print the location of the explicit one.
523
6d7f7e0a
TB
5242013-11-05 Tobias Burnus <burnus@net-b.de>
525
526 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
527 c_parser_omp_distribute, c_parser_omp_teams,
528 c_parser_omp_target, c_parser_omp_declare): Handle
529 -fopenmp-simd.
530
b906f4ca
MP
5312013-11-03 Marek Polacek <polacek@redhat.com>
532
533 * c-decl.c (grokdeclarator): Add VLA instrumentation.
534
ee1d5a02
JJ
5352013-11-01 Jakub Jelinek <jakub@redhat.com>
536
537 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
538 check_dup_generic at the end, unless remove is true.
539 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
540 remove = true;.
541 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
542
5a9785fb
JJ
5432013-10-31 Jakub Jelinek <jakub@redhat.com>
544
545 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
546 with decl that is not pointer nor array.
547
939b37da
BI
5482013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
549
550 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
551 a spawning function is found.
552 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
553 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
554 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
555 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
556 case.
557 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
558 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
559 expr.
560 (c_finish_return): Added a check to reject _Cilk_spawn in return
561 expression.
562 (build_cilk_spawn): New function.
563 (build_cilk_sync): Likewise.
564 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
565
d4af74d4
TB
5662013-10-27 Tobias Burnus <burnus@net-b.de>
567
568 PR other/33426
569 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
570 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
571 (c_parser_statement_after_labels): Update calls.
572
d73749df 5732013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
574
575 PR other/33426
576 * c-parser.c (c_parser_pragma, c_parser_for_statement):
577 Handle PRAGMA_IVDEP.
578 (c_parser_statement_after_labels): Update call.
579
f28aa681
MP
5802013-10-24 Marek Polacek <polacek@redhat.com>
581
582 * c-parser.c (c_parser_struct_declaration): Add a comment.
583 (c_parser_declarator): Don't allow _Alignas here.
584
0645c1a2
AM
5852013-10-17 Andrew MacLeod <amacleod@redhat.com>
586
587 * c-parser.c: Include omp-low.h.
588 * c-typeck.c: Likewise.
589
568a31f2
MP
5902013-10-17 Marek Polacek <polacek@redhat.com>
591
592 PR c/58267
593 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
594 Document syntax of the array-declarator.
595 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
596 are not permitted.
597 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
598 (c_parser_struct_declaration): Likewise.
599 (c_parser_declarator): Likewise.
600 (c_parser_direct_declarator_inner): Likewise.
601 (c_parser_parameter_declaration): Likewise.
602 (c_parser_type_name): Likewise.
603
acf0174b
JJ
6042013-10-11 Jakub Jelinek <jakub@redhat.com>
605
606 * c-lang.h (current_omp_declare_target_attribute): New extern
607 decl.
608 * c-parser.c: Include c-lang.h.
609 (struct c_parser): Change tokens to c_token *.
610 Add tokens_buf field. Change tokens_avail type to unsigned int.
611 (c_parser_consume_token): If parser->tokens isn't
612 &parser->tokens_buf[0], increment parser->tokens.
613 (c_parser_consume_pragma): Likewise.
614 (enum pragma_context): Add pragma_struct and pragma_param.
615 (c_parser_external_declaration): Adjust
616 c_parser_declaration_or_fndef caller.
617 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
618 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
619 Adjust recursive call.
620 (c_parser_struct_or_union_specifier): Use pragma_struct instead
621 of pragma_external.
622 (c_parser_parameter_declaration): Use pragma_param instead of
623 pragma_external.
624 (c_parser_compound_statement_nostart, c_parser_label,
625 c_parser_for_statement): Adjust
626 c_parser_declaration_or_fndef callers.
627 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
628 it through to c_parser_conditional_expression.
629 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
630 pass it through to c_parser_binary_expression. Adjust recursive
631 call.
632 (c_parser_binary_expression): Remove prec argument, add
633 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
634 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
635 binop matches it, use build2 instead of parser_build_binary_op.
636 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
637 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
638 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
639 Handle pragma_struct and pragma_param the same as pragma_external.
640 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
641 (c_parser_omp_variable_list): Parse array sections for
642 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
643 (c_parser_omp_clause_collapse): Fully fold collapse expression.
644 (c_parser_omp_clause_reduction): Handle user defined reductions.
645 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
646 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
647 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
648 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
649 c_parser_omp_clause_depend, c_parser_omp_clause_map,
650 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
651 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
652 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
653 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
654 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
655 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
656 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
657 (c_parser_omp_for_loop): Add CODE argument, pass it through
658 to c_finish_omp_for. Change last argument to cclauses,
659 and adjust uses to grab parallel clauses from the array of all
660 the split clauses. Adjust c_parser_binary_expression,
661 c_parser_declaration_or_fndef and c_finish_omp_for callers.
662 (omp_split_clauses): New function.
663 (c_parser_omp_simd): New function.
664 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
665 Allow the function to be called also when parsing combined constructs,
666 and call c_parser_omp_simd when parsing for simd.
667 (c_parser_omp_sections_scope): If section-sequence doesn't start with
668 #pragma omp section, require exactly one structured-block instead of
669 sequence of statements.
670 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
671 Allow the function to be called also when parsing combined constructs.
672 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
673 Allow the function to be called also when parsing combined
674 constructs.
675 (c_parser_omp_taskgroup, c_parser_omp_cancel,
676 c_parser_omp_cancellation_point, c_parser_omp_distribute,
677 c_parser_omp_teams, c_parser_omp_target_data,
678 c_parser_omp_target_update, c_parser_omp_target,
679 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
680 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
681 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
682 (c_parser_omp_construct): Add p_name and mask vars. Handle
683 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
684 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
685 and c_parser_omp_sections callers.
686 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
687 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
688 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
689 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
690 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
691 OMP_CLAUSE_DEPEND.
692 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
693 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
694 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
695 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
696 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
697 * c-typeck.c: Include tree-inline.h.
698 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
699 handle_omp_array_sections_1, handle_omp_array_sections,
700 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
701 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
702 user defined reductions.
703 (c_tree_equal): New function.
704 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
705 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
706 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
707 c_check_omp_declare_reduction_r): New prototypes.
708 * c-decl.c (current_omp_declare_target_attribute): New variable.
709 (c_decl_attributes): New function.
710 (start_decl, start_function): Use it instead of decl_attributes.
711 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
712 c_omp_reduction_decl, c_omp_reduction_lookup,
713 c_check_omp_declare_reduction_r): New functions.
714
0a6c2227
TT
7152013-09-25 Tom Tromey <tromey@redhat.com>
716
717 * Make-lang.in (c/gccspec.o): Remove.
718 (CFLAGS-c/gccspec.o): New variable.
719 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
720 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
721 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
722
f3bc55f0
TT
7232013-09-25 Tom Tromey <tromey@redhat.com>
724
725 * Make-lang.in (c/gccspec.o): Don't use subshell.
726
a24d975c
MP
7272013-09-18 Marek Polacek <polacek@redhat.com>
728
729 PR sanitize/58443
730 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
731 Remove unnecessary check.
732
ce6923c5
MP
7332013-09-18 Marek Polacek <polacek@redhat.com>
734
735 PR sanitizer/58411
736 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
737 no_sanitize_undefined attribute.
738
a1e51df9
KT
7392013-09-13 Kai Tietz <ktietz@redhat.com>
740
741 PR target/57848
742 * c-decl.c (c_builtin_function_ext_scope): Remove
743 wrong assumption that it is never called on prexisting
744 symbol.
745
0af94e6f
JR
7462013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
747
748 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
749
20059c8b
GDR
7502013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
751
752 * c-objc-common.c (c_tree_printer): Tidy.
753
de5a5fa1
MP
7542013-08-30 Marek Polacek <polacek@redhat.com>
755
756 * c-typeck.c (build_binary_op): Add division by zero and shift
757 instrumentation.
758
2531a1d9 7592013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 760 Joseph Myers <joseph@codesourcery.com>
2531a1d9 761
6e2bcc98 762 PR c/35649
2531a1d9
JR
763 * c-typeck.c (c_common_type): Prefer double_type_node over
764 other REAL_TYPE types with the same precision.
765 (convert_arguments): Likewise.
766
025311c4
GDR
7672013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
768
769 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
770 (c_initialize_diagnostics): Call a destructor for the early printer.
771
da6ca2b5
GDR
7722013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
773
774 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
775 printer initialization.
776
318cda85 7772013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 778
318cda85
BI
779 PR c/57490
780 * c-array-notation.c (fix_conditional_array_notations_1): Added a
781 check for truth values.
782 (expand_array_notation_exprs): Added truth values case. Removed an
783 unwanted else. Added for-loop to walk through subtrees in default
784 case.
785
b066401f
GDR
7862013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
787
788 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
789
fb48aadc
JM
7902013-07-23 Joseph Myers <joseph@codesourcery.com>
791
792 * c-parser.c (struct c_generic_association): Fix typo.
793
433cc7b0
TT
7942013-07-23 Tom Tromey <tromey@redhat.com>
795 Joseph Myers <joseph@codesourcery.com>
796
797 * c-parser.c (struct c_generic_association): New.
798 (c_generic_association_d): New typedef.
799 (c_parser_generic_selection): New function.
800 (c_parser_postfix_expression): Handle RID_GENERIC.
801
26d40c3d
JM
8022013-07-13 Jason Merrill <jason@redhat.com>
803
804 PR c++/57793
805 * c-decl.c (finish_struct): Check for too-large class.
806
ecdbd01a 8072013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
808
809 PR c/57821
810 * c-typeck.c (set_init_index): When folding, check for index overflow.
811
1141ed3f
BI
8122013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
813
814 * c-parser.c (c_parser_array_notation): Removed rejection of array
815 notations in an array of function pointers.
816
713b46fa
BI
8172013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
818
819 * c-array-notation.c (make_triplet_val_inv): New function.
820 (create_cmp_incr): Likewise.
821 (create_array_refs): Likewise.
822 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
823 Also modularized common parts between functions and called the function.
824 (build_array_notation_expr): Likewise.
825 (fix_conditional_array_notations_1): Likewise.
826 (fix_array_notation_expr): Likewise.
827 (fix_array_notation_call_expr): Likewise.
828
92f20202
MP
8292013-06-18 Marek Polacek <polacek@redhat.com>
830
831 PR c/57630
832 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
833
73a23b06
BI
8342013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
835
836 * c-array-notation.c (build_array_notation_expr): Reject array notation
837 mismatch between LHS and RHS even inside a call_expr. Also, removed
838 a couple while statements that were dead code.
839
00b8517d
BI
8402013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
841
842 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
843 excessive precision expressions in function parameters. Also removed
844 couple unwanted while statements.
845
1509bdda
BI
8462013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
847
848 * c-array-notation.c (expand_array_notation_exprs): Added
849 ARRAY_NOTATION_REF case.
850
d60f1706
BI
8512013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
852
853 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
854 function to c-family/array-notation-common.c.
855 (is_cilkplus_reduce_builtin): Likewise.
856 (find_rank): Likewise.
857 (extract_array_notation_exprs): Likewise.
858 (replace_array_notations): Likewise.
859 (find_inv_trees): Likewise.
860 (replace_inv_trees): Likewise.
861 (contains_array_notation_expr): Likewise.
862 (find_correct_array_notation_type): Likewise.
863 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
864 (struct inv_list): Moved this to c-family/array-notation-common.c.
865 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
866
6d6efbb3
BI
8672013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
868
869 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
870 reduction functions outside the for-loop. Added a check if the fundecl
871 is non-NULL. Finally, removed an unwanted if-statement, and made the
872 body unconditional.
873
25c22937
BI
8742013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
875
876 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
877 condition of the if-statement matches the rank of else-block and then-
878 block when array notations are used.
879 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
880 expression after the entire function body is parsed.
881 (c_parser_expr_no_commas): Delayed creating array notation expressions
882 to the end of function parsing.
883 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
884 whole if-statement instead of just the condition.
885 (expand_array_notation_exprs): Added MODIFY_EXPR case.
886
edd25645
BI
8872013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
888
889 PR c/57474
890 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
891 array to NULL_TREE if they are unused. Also added a check for the
892 field to be NULL before its fields are used in future.
893
065ce7f1
RO
8942013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
895
896 PR bootstrap/57450
897 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
898 (build_array_notation_expr): Likewise.
899
36536d79
BI
9002013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
901
902 * c-typeck.c (build_array_ref): Added a check to see if array's
903 index is greater than one. If true, then emit an error.
904 (build_function_call_vec): Exclude error reporting and checking
905 for builtin array-notation functions.
906 (convert_arguments): Likewise.
907 (c_finish_return): Added a check for array notations as a return
908 expression. If true, then emit an error.
909 (c_finish_loop): Added a check for array notations in a loop
910 condition. If true then emit an error.
911 (lvalue_p): Added a ARRAY_NOTATION_REF case.
912 (build_binary_op): Added a check for array notation expr inside
913 op1 and op0. If present, we call another function to find correct
914 type.
915 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
916 * c-parser.c (c_parser_compound_statement): Check if array
917 notation code is used in tree, if so, then transform them into
918 appropriate C code.
919 (c_parser_expr_no_commas): Check if array notation is used in LHS
920 or RHS, if so, then build array notation expression instead of
921 regular modify.
922 (c_parser_postfix_expression_after_primary): Added a check for
923 colon(s) after square braces, if so then handle it like an array
924 notation. Also, break up array notations in unary op if found.
925 (c_parser_direct_declarator_inner): Added a check for array
926 notation.
927 (c_parser_compound_statement): Added a check for array notation in
928 a stmt. If one is present, then expand array notation expr.
929 (c_parser_if_statement): Likewise.
930 (c_parser_switch_statement): Added a check for array notations in
931 a switch statement's condition. If true, then output an error.
932 (c_parser_while_statement): Similarly, but for a while.
933 (c_parser_do_statement): Similarly, but for a do-while.
934 (c_parser_for_statement): Similarly, but for a for-loop.
935 (c_parser_unary_expression): Check if array notation is used in a
936 pre-increment or pre-decrement expression. If true, then expand
937 them.
938 (c_parser_array_notation): New function.
939 * c-array-notation.c: New file.
940 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
941
cd192ccc
MS
9422013-05-23 Mike Stump <mikestump@comcast.net>
943
944 * c-typeck.c (convert_for_assignment): Handle references to memory
945 spaces better.
946
427b248d
JM
9472013-05-16 Jason Merrill <jason@redhat.com>
948
949 * Make-lang.in (cc1$(exeext)): Use link mutex.
950
44d90fe1
PC
9512013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
952
953 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
954 to simply use OPT_Wpointer_arith.
955 (build_unary_op): Likewise.
956
4e7d7b3d
JJ
9572013-04-03 Jakub Jelinek <jakub@redhat.com>
958
959 PR c/19449
960 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
961 argument. If set, or it temporarily for parsing of the first
962 argument into force_folding_builtin_constant_p.
963 (c_parser_postfix_expression): Adjust callers.
964
839b422f
RB
9652013-03-21 Richard Biener <rguenther@suse.de>
966
967 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
968 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
969
2ee028f1
MP
9702013-02-12 Marek Polacek <polacek@redhat.com>
971
972 PR c/44938
973 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
974 origtypes to NULL.
975
8824edff
JJ
9762013-01-24 Jakub Jelinek <jakub@redhat.com>
977
978 PR c/56078
979 * c-typeck.c (set_nonincremental_init_from_string): If
980 constructor_max_index is NULL, treat it as if tree_int_cst_lt
981 returned false.
982 (process_init_element): Likewise.
983
eadd3d0d
JJ
9842012-12-20 Jakub Jelinek <jakub@redhat.com>
985
986 PR c++/55619
987 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
988 argument, don't call default_function_array_conversion
989 nor c_fully_fold here.
990 (c_parser_asm_statement): Adjust callers.
991 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
992 and outputs here, and call default_function_array_conversion
993 on inputs that don't need to be addressable.
994
f8a93a2e
JJ
9952012-12-18 Jakub Jelinek <jakub@redhat.com>
996
997 PR c/39464
998 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
999 warning require that both c_common_unsigned_type as well as
1000 c_common_signed_type is the same for both mvl and mvr types.
1001
9771b263
DN
10022012-11-16 Diego Novillo <dnovillo@google.com>
1003
1004 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1005
1006 * c-common.c: Use new vec API in vec.h.
1007 * c-common.h: Likewise.
1008 * c-gimplify.c: Likewise.
1009 * c-pragma.c: Likewise.
1010 * c-pretty-print.c: Likewise.
1011 * c-pretty-print.h: Likewise.
1012 * c-semantics.c: Likewise.
1013 * c-decl.c: Likewise.
1014 * c-parser.c: Likewise.
1015 * c-tree.h: Likewise.
1016 * c-typeck.c: Likewise.
1017
880661a4
JW
10182012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1019
1020 PR c++/54930
1021 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1022
077d1abe
MLI
10232012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1024
1025 PR c/53066
1026 * c-decl.c (warn_if_shadowing): Do not warn if a variable
1027 shadows a function, unless the variable is a function or a
1028 pointer-to-function.
1029
3a785c97
JJ
10302012-10-12 Jakub Jelinek <jakub@redhat.com>
1031
1032 PR c/54381
1033 * c-parser.c (struct c_tree_loc_pair): Removed.
1034 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1035 add location_t * and tree * arguments, fill in array of 3
1036 sizeof_arg trees and corresponding locs.
1037 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1038 c_parser_expr_list callers.
1039 (c_parser_postfix_expression_after_primary): Likewise. Pass
1040 array of 3 sizeof_arg trees and locs (corresponding to first
1041 3 arguments) to sizeof_pointer_memaccess_warning.
1042
703c8606
LC
10432012-10-09 Lawrence Crowl <crowl@google.com>
1044
1045 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1046 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1047 hash table.
1048
5d9de0d0
PC
10492012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1050
1051 PR c++/54194
1052 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1053 call.
1054
a212e43f
MG
10552012-10-09 Marc Glisse <marc.glisse@inria.fr>
1056
1057 PR c++/54427
1058 * c-typeck.c: Include c-common.h.
1059 (enum stv_conv): Moved to c-common.h.
1060 (scalar_to_vector): Moved to c-common.c.
1061 (build_binary_op): Adapt to scalar_to_vector's new prototype.
1062 * Make-lang.in: c-typeck.c depends on c-common.h.
1063
3b78de56
AC
10642012-10-04 Arnaud Charlet <charlet@adacore.com>
1065
1066 * c-decl.c (c_write_global_declarations): Fix handling of
1067 -fdump-ada-spec*.
1068
78c60e3d
SS
10692012-09-30 Sharad Singhai <singhai@google.com>
1070
1071 * c-decl.c (c_write_global_declarations): Use a different method
1072 to determine if the dump has ben initialized.
1073
9f33203d
JM
10742012-09-14 Joseph Myers <joseph@codesourcery.com>
1075
1076 PR c/54552
1077 * c-typeck.c (c_cast_expr): When casting to a type requiring
1078 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1079 c_fully_fold first.
1080
a27d595d
JM
10812012-09-14 Joseph Myers <joseph@codesourcery.com>
1082
1083 PR c/54103
1084 * c-typeck.c (build_unary_op): Pass original argument of
1085 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1086 any C_MAYBE_CONST_EXPR, if it has integer operands.
1087 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1088 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1089 to c_objc_common_truthvalue_conversion, then remove any
1090 C_MAYBE_CONST_EXPR, if they have integer operands. Use
1091 c_objc_common_truthvalue_conversion not
1092 c_common_truthvalue_conversion.
1093 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1094 call note_integer_operands for arguments with integer operands
1095 that are not integer constants.
1096
9feb29df
JJ
10972012-09-13 Jakub Jelinek <jakub@redhat.com>
1098
1099 PR c/54559
1100 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1101 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1102
d409320c
JJ
11032012-08-31 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR c/54428
1106 * c-convert.c (convert): Don't call fold_convert_loc if
1107 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1108 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
1109 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1110
6265d07c
JJ
11112012-08-24 Jakub Jelinek <jakub@redhat.com>
1112
1113 PR c/54355
1114 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1115 for nested and empty_ok arguments in the call to
1116 c_parser_declaration_or_fndef.
1117
1a4049e7
JJ
11182012-08-17 Jakub Jelinek <jakub@redhat.com>
1119
1120 * c-tree.h (c_last_sizeof_arg): Declare.
1121 * c-parser.c (struct c_tree_loc_pair): New type.
1122 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
1123 non-NULL.
1124 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1125 (c_parser_postfix_expression_after_primary): Likewise. Call
1126 sizeof_pointer_memaccess_warning if needed.
1127 (sizeof_ptr_memacc_comptypes): New function.
1128 * c-typeck.c (c_last_sizeof_arg): New global variable.
1129 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1130
0229aee9
UB
11312012-07-24 Uros Bizjak <ubizjak@gmail.com>
1132
1133 * c-lang.h (lang_decl): Add variable_size GTY option.
1134
7ee2468b
SB
11352012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1136
1137 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1138 * Make-lang.in: Fix dependencies.
1139
d4a10d0a
SB
11402012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1141
1142 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1143 and add language Makefile hooks.
1144 * config-lang.in: New file.
1145 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1146 add the required "normal" config-lang.in rules.
1147 * c-lang.h: Moved from gcc/ to here.
1148 * c-tree.h: Likewise.
1149 * c-objc-common.c: Likewise.
1150 * c-objc-common.h: Likewise.
1151 * c-typeck.c: Likewise.
1152 * c-convert.c: Likewise.
1153 * c-lang.c: Likewise.
1154 * c-aux-info.c: Likewise.
1155 * c-errors.c: Likewise.
1156 * gccspec.c: Likewise.
1157 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
1158 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
1159\f
23a5b65a 1160Copyright (C) 2012-2014 Free Software Foundation, Inc.
d4a10d0a
SB
1161
1162Copying and distribution of this file, with or without modification,
1163are permitted in any medium without royalty provided the copyright
1164notice and this notice are preserved.