]> gcc.gnu.org Git - gcc.git/blame - gcc/c/ChangeLog
gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in...
[gcc.git] / gcc / c / ChangeLog
CommitLineData
56ad0e38
JJ
12014-06-24 Jakub Jelinek <jakub@redhat.com>
2
3 * c-parser.c (c_parser_omp_for_loop): For
4 #pragma omp parallel for simd move lastprivate clause from parallel
5 to for rather than simd.
6
47c2554f
MP
72014-06-23 Marek Polacek <polacek@redhat.com>
8
9 * c-typeck.c (parser_build_binary_op): Don't call
10 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
11
56363ffd
JH
122014-06-15 Jan Hubicka <hubicka@ucw.cz>
13
14 * c-parser.c (c_parser_omp_threadprivate): Likewise.
15 * c-decl.c (merge_decls): Likewise.
16
d7ff7ae5
MP
172014-06-09 Marek Polacek <polacek@redhat.com>
18
19 PR c/36446
20 * c-typeck.c (error_init): Call inform instead of error_at.
21 (pedwarn_init): Call inform instead of pedwarn.
22 (warning_init): Call inform instead of warning_at.
23
24d047a3
JH
242014-06-07 Jan Hubicka <hubicka@ucw.cz>
25
26 * c-decl.c (merge_decls): Use set_decl_section_name.
27 (duplicate_decls): Remove node if it exists.
28
9bac5cbb
G
292014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
30
31 PR c/53119
32 * c-typeck.c (push_init_level, process_init_element,
33 pop_init_level): Correct check for zero initialization, move
34 missing brace warning to respect zero initialization.
35
8ffcdea8
MP
362014-06-05 Marek Polacek <polacek@redhat.com>
37
38 PR c/56724
39 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
40
742938c9
MP
412014-06-05 Marek Polacek <polacek@redhat.com>
42
43 PR c/49706
44 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
45 on the left hand side operand of a comparison.
46
6447c55d
MP
472014-06-05 Marek Polacek <polacek@redhat.com>
48
49 PR c/48062
50 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
51 Print note only if the warning was printed.
52
9dc7743c
IZ
532014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
54
55 PR c/58942
56 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
57 with a pointer.
58
fedfecef
MP
592014-06-03 Marek Polacek <polacek@redhat.com>
60
61 PR c/60439
62 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
63 c_start_case.
64 * c-tree.h (c_start_case): Update.
65 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
66 switch condition has boolean value.
67
9b2b7279
AM
682014-06-02 Andrew MacLeod <amacleod@redhat.com>
69
70 * c-decl.c: Include builtins.h.
71 * c-parser.c: Likewise.
72
5c1bc275
MP
732014-05-27 Marek Polacek <polacek@redhat.com>
74
75 PR c/56724
76 * c-typeck.c (convert_arguments): Get location of a parameter. Change
77 error and warning calls to error_at and warning_at. Pass location of
78 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
79 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
80 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
81
97563bc8
IZ
822014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
83
84 PR c/61191
85 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
86 function parameters.
87
aede2c10
JH
882014-05-23 Jan Hubicka <hubicka@ucw.cz>
89
90 * c-decl.c (merge_decls): Preserve symtab node pointers.
91 (duplicate_decls): Free new decl.
92
edbba2ce
TS
932014-05-23 Thomas Schwinge <thomas@codesourcery.com>
94
f3316c6d
TS
95 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
96 initialization.
97
edbba2ce
TS
98 * c-parser.c (c_parser_omp_target): Return bool values.
99
68c81f24
TS
1002014-05-22 Thomas Schwinge <thomas@codesourcery.com>
101
102 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
103 num_teams_loc variable to num_thread_limit_loc.
104
632f2871
RS
1052014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
106
107 * c-array-notation.c (expand_array_notations): Use void_node
108 instead of void_zero_node.
109
766090c2
TS
1102014-05-17 Trevor Saunders <tsaunders@mozilla.com>
111
112 * c-decl.c (finish_struct): Adjust.
113 (finish_enum): Likewise.
114 (bind): Adjust.
115 (record_inline_static): Likewise.
116 (push_scope): Likewise.
117 (make_label): Likewise.
118 (lookup_label_for_goto): Likewise.
119 (finish_struct): Likewise.
120 (finish_enum): Likewise.
121 (store_parm_decls): Likewise.
122 (c_push_function_context): Likewise.
123 * c-lang.h: Remove usage of variable_size gty attribute.
124 * c-parser.c (c_parse_init): Adjust.
125 (c_parse_file): Likewise.
126
2b107f6b
MP
1272014-05-13 Marek Polacek <polacek@redhat.com>
128
129 PR c/61162
130 * c-typeck.c (convert_for_assignment): Pass location to
131 WARN_FOR_ASSIGNMENT instead of input_location.
132
d033409e
MP
1332014-05-10 Marek Polacek <polacek@redhat.com>
134
135 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
136 maybe_warn_string_init.
137 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
138 maybe_warn_string_init.
139 * c-tree.h (maybe_warn_string_init): Update declaration.
140 * c-typeck.c (maybe_warn_string_init): Add location parameter.
141 Call pedwarn_init with loc instead of with input_location.
142 (digest_init): Pass init_loc to maybe_warn_string_init.
143 (pop_init_level): Call pedwarn_init with loc instead of with
144 input_location.
145 (set_init_index): Likewise.
146 (process_init_element): Likewise.
147
ea58ef42
MP
1482014-05-09 Marek Polacek <polacek@redhat.com>
149
150 PR c/61096
151 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
152 (c_parser_initelt): Pass location to set_init_label. Pass array index
153 location to set_init_index.
154 * c-tree.h (push_init_level): Update declaration.
155 (pop_init_level): Likewise.
156 (set_init_index): Likewise.
157 (set_init_label): Likewise.
158 * c-typeck.c (error_init): Add location parameter. Call error_at
159 instead of error.
160 (digest_init): Pass init_loc to error_init.
161 (really_start_incremental_init):
162 (push_init_level): Add location parameter. Pass loc to pop_init_level
163 and error_init.
164 (pop_init_level): Likewise.
165 (set_designator): Add location parameter. Pass loc to pop_init_level,
166 push_init_level, and error_init.
167 (set_init_index): Add location parameter. Pass loc to error_init and
168 set_designator.
169 (set_init_label): Likewise.
170 (output_init_element): Pass loc to error_init.
171 (process_init_element): Pass loc to error_init, pop_init_level,
172 pedwarn_init, and push_init_level.
173
661a0813
MP
1742014-05-09 Marek Polacek <polacek@redhat.com>
175
176 PR c/50459
177 * c-parser.c (c_parser_attributes): Parse the arguments as an
178 expression-list if the attribute takes identifier.
179
2793eeab
MP
1802014-05-08 Marek Polacek <polacek@redhat.com>
181
182 PR c/61053
183 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
184 TYPE_ALIGN_UNIT.
185
f827930a
MP
1862014-05-08 Marek Polacek <polacek@redhat.com>
187
188 PR c/61077
189 * c-decl.c (start_function): Warn for _Atomic-qualified return type
190 of main.
191
1d60af08
KZ
1922014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
193 Mike Stump <mikestump@comcast.net>
194 Richard Sandiford <rdsandiford@googlemail.com>
195
196 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
197 (finish_enum): Use wide-int interfaces.
198 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
199 * c-typeck.c (build_c_cast): Likewise.
200 (set_nonincremental_init_from_string): Likewise.
201 (c_tree_equal): Likewise.
202
a0e24419
MP
2032014-05-02 Marek Polacek <polacek@redhat.com>
204
205 PR c/25801
206 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
207 Return size_one_node when the type is not complete.
208 (pointer_diff): Remove comment.
209 (build_unary_op): Improve error messages.
210
19fc9faa
MP
2112014-05-02 Marek Polacek <polacek@redhat.com>
212
213 * c-typeck.c (c_finish_return): Separate warning_at calls.
214
63bc4e87
MP
2152014-05-02 Marek Polacek <polacek@redhat.com>
216
217 * c-tree.h (error_init): Remove declaration.
218 (pedwarn_init): Likewise.
219 * c-typeck.c (error_init): Make static and move above.
220 (pedwarn_init): Likewise.
221 (warning_init): Move above.
222 (maybe_warn_string_init): Likewise.
223
4bd2511b
JL
2242014-05-01 Jeff Law <law@redhat.com>
225
226 Revert:
227
228 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
229 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
230 avoid goto.
231
6a358dcb
MP
2322014-05-02 Marek Polacek <polacek@redhat.com>
233
234 PR c/60784
235 * c-typeck.c (push_init_level): Set constructor_designated to
236 p->designated for structures.
237
ae5ebda4
MP
2382014-05-01 Marek Polacek <polacek@redhat.com>
239
240 PR c/60915
241 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
242 function-definition has an attribute after the declarator.
243
96b40f8d
MP
2442014-05-01 Marek Polacek <polacek@redhat.com>
245
246 PR c/60257
247 * c-typeck.c (warning_init): Add location_t parameter. Call
248 warning_at instead of warning.
249 (push_init_level): Pass input_location to warning_init.
250 (add_pending_init): Add location_t parameter. Pass loc to
251 warning_init.
252 (set_nonincremental_init): Pass input_location to add_pending_init.
253 (set_nonincremental_init_from_string): Likewise.
254 (output_init_element): Pass loc to warning_init and to
255 add_pending_init.
256
32e00768
MP
2572014-05-01 Marek Polacek <polacek@redhat.com>
258
259 PR c/43395
260 * c-typeck.c (c_finish_return): Distinguish between label and variable
261 when warning about returning local address.
262
c9379ce2
MP
2632014-05-01 Marek Polacek <polacek@redhat.com>
264
265 PR c/29467
266 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
267 in C89 mode.
268
d00887e8
MP
2692014-05-01 Marek Polacek <polacek@redhat.com>
270
271 PR c/43245
272 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
273 instead of 0 to WARN_FOR_QUALIFIERS.
274
5436fa2e
MP
2752014-05-01 Marek Polacek <polacek@redhat.com>
276
277 PR c/56989
278 * c-typeck.c (default_conversion): Use better location for
279 error call.
280
f8ed5150
MP
2812014-04-30 Marek Polacek <polacek@redhat.com>
282
283 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
284 also when SANITIZE_FLOAT_DIVIDE is on.
285
8337d1db
MP
2862014-04-30 Marek Polacek <polacek@redhat.com>
287
288 PR c/60139
289 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
290 and pedwarn_init. Use loc insted of input_location.
291
c4bdc42f
MP
2922014-04-30 Marek Polacek <polacek@redhat.com>
293
294 PR c/60351
295 * c-typeck.c (build_binary_op): Use location when warning about
296 shift count.
297
45484dcf
MP
2982014-04-25 Marek Polacek <polacek@redhat.com>
299
300 PR c/18079
301 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
302 always_inline/noinline and hot/cold attributes.
303
34cf811f
MP
3042014-04-25 Marek Polacek <polacek@redhat.com>
305
306 PR c/60114
307 * c-parser.c (c_parser_initelt): Pass input_location to
308 process_init_element.
309 (c_parser_initval): Pass loc to process_init_element.
310 * c-tree.h (process_init_element): Adjust declaration.
311 * c-typeck.c (push_init_level): Pass input_location to
312 process_init_element.
313 (pop_init_level): Likewise.
314 (set_designator): Likewise.
315 (output_init_element): Add location_t parameter. Pass loc to
316 digest_init.
317 (output_pending_init_elements): Pass input_location to
318 output_init_element.
319 (process_init_element): Add location_t parameter. Pass loc to
320 output_init_element.
321
42056eac
JJ
3222014-04-24 Jakub Jelinek <jakub@redhat.com>
323
324 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
325 atomic-clause, allow comma in between atomic-clause and
326 seq_cst.
327
e162a134
JJ
3282014-04-22 Jakub Jelinek <jakub@redhat.com>
329
330 PR c/59073
331 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
332 fails, don't set OM_PARALLEL_COMBINED and return NULL.
333
2f6babac
IZ
3342014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
335
336 PR middle-end/60469
337 * c-array-notation.c (fix_builtin_array_notation_fn): Use
338 create_tmp_var instead build_decl for creating temps.
339 (build_array_notation_expr): Likewise.
340 (fix_conditional_array_notations_1): Likewise.
341 (fix_array_notation_expr): Likewise.
342 (fix_array_notation_call_expr): Likewise.
343
8edbfaa6
JJ
3442014-03-28 Jakub Jelinek <jakub@redhat.com>
345
346 PR c++/60689
347 * c-tree.h (c_build_function_call_vec): New prototype.
348 * c-typeck.c (build_function_call_vec): Don't call
349 resolve_overloaded_builtin here.
350 (c_build_function_call_vec): New wrapper function around
351 build_function_call_vec. Call resolve_overloaded_builtin here.
352 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
353 Call c_build_function_call_vec instead of build_function_call_vec.
354 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
355 * c-decl.c (finish_decl): Likewise.
356
7485aeea
MLI
3572014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
358
359 PR c/55383
360 * c-typeck.c: Use correct format string in cast-qual warning
361
b17a8b07
TS
3622014-03-07 Thomas Schwinge <thomas@codesourcery.com>
363
364 * c-decl.c (c_decl_attributes): Use
365 lang_hooks.types.omp_mappable_type.
366 * c-typeck.c (c_finish_omp_clauses): Likewise.
367
3af9c5e9
MP
3682014-03-06 Marek Polacek <polacek@redhat.com>
369
370 PR c/60197
371 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
372 of checking tree code.
373
1c9f5f33
PK
3742014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
375
376 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
377 (c_parser_parameter_declaration): Likewise.
378
cc28fc7f
MP
3792014-02-19 Marek Polacek <polacek@redhat.com>
380
381 PR c/60195
382 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
383 Call mark_exp_read on exp.value.
384 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
385 TREE_ADDRESSABLE on old instead of val.
386 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
387
b581c05c
PK
3882014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
389
390 * c-parser.c (c_parser_get_builtin_args): Replace calls to
391 C_EXPR_APPEND by vec_safe_push.
392 * c-tree.h (C_EXPR_APPEND): Remove.
393
81e5eca8
MP
3942014-01-31 Marek Polacek <polacek@redhat.com>
395
396 PR c/59963
397 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
398 build_function_call_vec.
399 (build_function_call): Likewise.
400 (build_atomic_assign): Likewise.
401 (build_function_call_vec): Add arg_loc parameter. Use it.
402 (convert_arguments): Likewise.
403 (convert_for_assignment): Rename rhs_loc to expr_loc.
404 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
405 (c_parser_objc_keywordexpr): Likewise.
406 (c_parser_postfix_expression_after_primary): Call
407 build_function_call_vec with expr_loc rather than op_loc.
408 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
409 build_function_call_vec.
410 (c_parser_expr_list): Add locations parameter. Fill it with locations
411 of function arguments.
412 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
413
68fca595
MP
4142014-01-30 Marek Polacek <polacek@redhat.com>
415
416 PR c/59940
417 * c-typeck.c (build_function_call_vec): Use loc parameter.
418 (convert_arguments): Add location parameter. Use it.
419 (ep_convert_and_check): Likewise.
420 (build_atomic_assign): Adjust convert_for_assignment call.
421 (build_modify_expr): Likewise.
422 (digest_init): Likewise.
423 (c_finish_return): Likewise.
424 (build_conditional_expr): Adjust ep_convert_and_check calls.
425 (convert_for_assignment): Add rhs_loc parameter. Use it.
426 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
427 calls.
428
fa337f3a
RB
4292014-01-30 Richard Biener <rguenther@suse.de>
430
431 PR c/59905
432 * c-typeck.c (build_function_call_vec): Do not replace calls
433 to a function via an incompatible type with a runtime abort.
434
b72271b9
BI
4352014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
436
437 * c-parser.c (c_parser_declaration_or_fndef): Replaced
438 flag_enable_cilkplus with flag_cilkplus.
439 (c_parser_direct_declarator_inner): Likewise.
440 (c_parser_attribute_any_word): Likewise.
441 (c_parser_attributes): Likewise.
442 (c_parser_compound_statement): Likewise.
443 (c_parser_statement_after_labels): Likewise.
444 (c_parser_if_statement): Likewise.
445 (c_parser_switch_statement): Likewise.
446 (c_parser_do_statement): Likewise.
447 (c_parser_for_statement): Likewise.
448 (c_parser_unary_expression): Likewise.
449 (c_parser_postfix_expression): Likewise.
450 (c_parser_postfix_expression_after_primary): Likewise.
451 (c_parser_postfix_expression_after_primary): Likewise.
452 (c_parser_omp_clause_name): Likewise.
453 (c_finish_omp_declare_simd): Likewise.
454 (c_parser_cilk_verify_simd): Likewise.
455 * c-typeck.c (build_array_ref): Likewise.
456 (build_function_call_vec): Likewise.
457 (convert_arguments): Likewise.
458 (build_compound_expr): Likewise.
459 (c_finish_return): Likewise.
460 (c_finish_if_stmt): Likewise.
461 (c_finish_loop): Likewise.
462 (build_binary_op): Likewise.
463
393e8e8b
MP
4642014-01-23 Marek Polacek <polacek@redhat.com>
465
466 PR c/59846
467 * c-typeck.c (parser_build_binary_op): Use location instead of
468 input_location.
469 (build_binary_op): Pass location to shorten_compare.
470
f04dda30
MP
4712014-01-23 Marek Polacek <polacek@redhat.com>
472
473 PR c/58346
474 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
475 an empty aggregate.
476
789eadcd
MP
4772014-01-23 Marek Polacek <polacek@redhat.com>
478
479 PR c/59871
480 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
481 of a comma expression.
482 (emit_side_effect_warnings): Likewise.
483
40f14e9f
BI
4842014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
485
486 PR c/59825
487 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
488 function to use walk_tree and moved a lot of its functionality to
489 expand_array_notations.
490 (expand_array_notations): New function.
491
74558dd9
BI
4922014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
493
494 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
495 attribute an attribute without value.
496
652fea39
JJ
4972014-01-23 Jakub Jelinek <jakub@redhat.com>
498
499 PR middle-end/58809
500 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
501 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
502
f34f1c87
MP
5032014-01-22 Marek Polacek <polacek@redhat.com>
504
505 PR c/59891
506 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
507 of remove_c_maybe_const_expr on op1 and op2.
508
241f845a
JJ
5092014-01-15 Jakub Jelinek <jakub@redhat.com>
510
511 PR c/58943
512 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
513 effects, preevaluate rhs using SAVE_EXPR first.
514
9a74f20c
BI
5152014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
516
517 PR c++/59631
518 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
519 statements with if-elseif statements.
520
96066ce1
MP
5212014-01-06 Marek Polacek <polacek@redhat.com>
522
523 PR c/57773
524 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
525 defined bit-field types only in ISO C.
526
23a5b65a
RS
5272014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
528
529 Update copyright years
530
f9030485
RS
5312014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
532
533 * c-array-notation.c: Use the standard form for the copyright notice.
534
41958c28
BI
5352013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
536
537 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
538 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
539 field in parser is not empty. If not-empty, call the function
540 c_parser_finish_omp_declare_simd.
541 (c_parser_cilk_clause_vectorlength): Modified function to be shared
542 between SIMD-enabled functions and #pragma simd. Added new parameter.
543 (c_parser_cilk_all_clauses): Modified the usage of the function
544 c_parser_cilk_clause_vectorlength as mentioned above.
545 (c_parser_cilk_simd_fn_vector_attrs): New function.
546 (c_finish_cilk_simd_fn_tokens): Likewise.
547 (is_cilkplus_vector_p): Likewise.
548 (c_parser_omp_clause_name): Added checking for "vectorlength,"
549 "nomask," and "mask" strings in clause name.
550 (c_parser_omp_all_clauses): Added 3 new case statements:
551 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
552 PRAGMA_CILK_CLAUSE_NOMASK.
553 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
554 check for vector attribute and if so call the function
555 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
556 called the function c_finish_cilk_simd_fn_tokens.
557 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
558 parser field is non-empty. If so, parse them as you would parse
559 the omp declare simd pragma.
560 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
561 Added a check when step is a parameter and flag it as error.
562 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
563 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
564 pragma_omp_clause.
565
cef0fd0e
TS
5662013-12-17 Thomas Schwinge <thomas@codesourcery.com>
567
568 * c-parser.c (c_parser_omp_parallel): Fix description.
569
12893402
BI
5702013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
571
572 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
573 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
574 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
575 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
576
296674db
JM
5772013-12-04 Joseph Myers <joseph@codesourcery.com>
578
579 PR c/52023
580 * c-parser.c (c_parser_alignas_specifier): Use
581 c_sizeof_or_alignof_type instead of c_alignof.
582 (c_parser_alignof_expression): Likewise, with min_alignof
583 parameter depending on alignof spelling used.
584
edd28054
MP
5852013-12-04 Marek Polacek <polacek@redhat.com>
586
587 PR c/54113
588 * c-decl.c (start_function): Don't warn for missing prototype for
589 inline functions.
590
da0fc454
MP
5912013-12-03 Marek Polacek <polacek@redhat.com>
592
593 PR c/59351
594 * c-decl.c (build_compound_literal): Allow compound literals with
595 empty initial value.
596
4c2ecab0
JM
5972013-12-02 Joseph Myers <joseph@codesourcery.com>
598
599 PR c/58235
600 * c-typeck.c (build_modify_expr): Diagnose assignment to
601 expression with array type.
602
340baef7
JM
6032013-11-29 Joseph Myers <joseph@codesourcery.com>
604
605 PR c/42262
606 * c-typeck.c (process_init_element): Do not treat a string as
607 initializing a whole array when used with a designator for an
608 individual element.
609
6763b9f7
JM
6102013-11-29 Joseph Myers <joseph@codesourcery.com>
611
612 PR c/57574
613 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
614 an inline function following a static declaration.
615
e7bd1de1
JJ
6162013-11-28 Jakub Jelinek <jakub@redhat.com>
617
618 PR c/59310
619 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
620 to p_name before calling c_parser_omp_teams instead of after.
621 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
622 argument. Remove unused p_name variable.
623
0136f8f0
AH
6242013-11-27 Aldy Hernandez <aldyh@redhat.com>
625 Jakub Jelinek <jakub@redhat.com>
626
627 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
628 external_scope is NULL.
629
241b71bb
TV
6302013-11-27 Tom de Vries <tom@codesourcery.com>
631 Marc Glisse <marc.glisse@inria.fr>
632
633 PR c++/59032
634 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
635
2fb9a547
AM
6362013-11-22 Andrew MacLeod <amacleod@redhat.com>
637
638 * c-typeck.c: Add required include files from gimple.h.
639
8400e75e
DM
6402013-11-22 David Malcolm <dmalcolm@redhat.com>
641
642 * c-decl.c (define_label, shadow_tag_warned)
643 (check_bitfield_type_and_width, grokdeclarator, grokparms,
644 store_parm_decls_newstyle, store_parm_decls_oldstyle)
645 (declspecs_add_type): Remove use of in_system_header macro.
646 * c-parser.c (c_parser_unary_expression): Likewise.
647 * c-typeck.c (store_init_value, process_init_element)
648 (c_start_case): Likewise.
649
650 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
651 macro.
652
653 * c-parser.c (c_parser_set_source_position_from_token): Remove
654 reference to in_system_header from comment.
655
386b1f1f
RS
6562013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
657
658 * c-decl.c (grokdeclarator): Update comment to refer to
659 tree_to_[su]hwi rather than tree_low_cst.
660
ae7e9ddd
RS
6612013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
662
663 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
664 tree_to_uhwi throughout.
665
9439e9a1
RS
6662013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
667
668 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
669 throughout.
670
9541ffee
RS
6712013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
672
673 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
674 throughout.
675
c02065fc
AH
6762013-11-15 Aldy Hernandez <aldyh@redhat.com>
677
678 * c-parser.c (c_parser_cilk_simd): New.
679 (c_parser_cilk_verify_simd): New.
680 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
681 (c_parser_omp_for_loop): Add case for NE_EXPR.
682 Set c_break_label for CILK_SIMD.
683 (c_parser_cilk_clause_vectorlength): New.
684 (c_parser_cilk_clause_linear): New.
685 (c_parser_cilk_clause_name): New.
686 (c_parser_cilk_all_clauses): New.
687 * c-typeck.c (build_unary_op): Pass location argument to
688 readonly_error.
689 (build_modify_expr): Same.
690 (build_asm_expr): Same.
691 (c_finish_bc_stmt): Error on break/continue in loops.
692
18f429e2
AM
6932013-11-14 Andrew MacLeod <amacleod@redhat.com>
694
695 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
696
d8a2d370
DN
6972013-11-14 Diego Novillo <dnovillo@google.com>
698
699 * c-decl.c: Include print-tree.h.
700 Include stor-layout.h.
701 Include varasm.h.
702 Include attribs.h.
703 Include stringpool.h.
704 * c-lang.c: Include fold-const.h.
705 * c-parser.c: Include stringpool.h.
706 Include attribs.h.
707 Include stor-layout.h.
708 Include varasm.h.
709 Include trans-mem.h.
710 * c-typeck.c: Include stor-layout.h.
711 Include trans-mem.h.
712 Include varasm.h.
713 Include stmt.h.
714
38b7bc7f
JM
7152013-11-13 Joseph Myers <joseph@codesourcery.com>
716
717 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
718 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
719 __auto_type.
720 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
721 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
722 RID_AUTO_TYPE.
723 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
724 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
725 (c_parser_declarator, c_parser_direct_declarator_inner)
726 (c_parser_parameter_declaration, c_parser_type_name): All callers
727 changed.
728 (c_parser_declaration_or_fndef): Handle declarations with type
729 determined from the initializer.
730
45b0be94
AM
7312013-11-12 Andrew MacLeod <amacleod@redhat.com>
732
18f429e2 733 * c-typeck.c: Include gimplify.h.
45b0be94 734
582d9b50
JM
7352013-11-12 Joseph Myers <joseph@codesourcery.com>
736
737 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
738 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
739 comment.
740 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
741 or _Thread_local as appropriate in diagnostics.
742 (build_null_declspecs): Initialize ret->thread_gnu_p.
743 (declspecs_add_scspec): Handle either __thread or _Thread_local
744 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
745 pedantic. Do not disallow _Thread_local extern and _Thread_local
746 static.
747
267bac10
JM
7482013-11-07 Joseph Myers <joseph@codesourcery.com>
749 Andrew MacLeod <amacleod@redhat.com>
750
751 * c-aux-info.c (gen_type): Handle atomic qualifier.
752 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
753 qualifiers when compating types.
754 (shadow_tag_warned): Handle atomic_p in declspecs.
755 (quals_from_declspecs): Likewise.
756 (start_decl): Use c_type_promotes_to when promoting argument
757 types.
758 (grokdeclarator): Handle _Atomic.
759 (get_parm_info): Diagnose any qualifier on "void" as only
760 parameter.
761 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
762 comparing types. Use c_type_promotes_to when promoting argument
763 types.
764 (finish_function): Use c_type_promotes_to when promoting argument
765 types.
766 (build_null_declspecs): Handle atomic_p in declspecs.
767 (declspecs_add_qual): Handle RID_ATOMIC.
768 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
769 (c_token_starts_declspecs): Handle RID_ATOMIC.
770 (c_parser_declspecs): Handle atomic type specifiers and
771 qualifiers.
772 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
773 from types of expressions with atomic type.
774 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
775 (c_parser_attribute_any_word): Handle RID_ATOMIC.
776 (c_parser_initializer, c_parser_initelt, c_parser_initval)
777 (c_parser_statement_after_labels, c_parser_switch_statement)
778 (c_parser_for_statement, c_parser_expr_no_commas)
779 (c_parser_conditional_expression, c_parser_binary_expression)
780 (c_parser_cast_expression, c_parser_unary_expression)
781 (c_parser_postfix_expression)
782 (c_parser_postfix_expression_after_primary, c_parser_expression):
783 Use convert_lvalue_to_rvalue.
784 (c_parser_expression_conv, c_parser_expr_list): Document
785 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
786 (c_parser_objc_synchronized_statement): Use
787 convert_lvalue_to_rvalue.
788 (c_parser_objc_selector): Handle RID_ATOMIC.
789 (c_parser_objc_receiver, c_parser_array_notation): Use
790 convert_lvalue_to_rvalue.
791 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
792 _Atomic (type-name).
793 (struct c_declspecs): Add atomic_p field.
794 (convert_lvalue_to_rvalue): Declare.
795 * c-typeck.c (c_type_promotes_to): Promote atomic types to
796 corresponding atomic types.
797 (qualify_type): Don't add _Atomic qualifiers from second argument.
798 (comp_target_types): Do not allow _Atomic mismatches.
799 (type_lists_compatible_p): Do not remove atomic qualifiers when
800 comparing types.
801 (really_atomic_lvalue, convert_lvalue_to_rvalue)
802 (build_atomic_assign): New functions.
803 (build_unary_op): Use build_atomic_assign for atomic increment and
804 decrement.
805 (build_conditional_expr): Do not treat _Atomic void as a qualified
806 version of void.
807 (build_modify_expr): Use build_atomic_assign for atomic LHS.
808 (find_anonymous_field_with_type, convert_to_anonymous_field)
809 (convert_for_assignment): Do not remove atomic qualifiers when
810 comparing types.
811 (digest_init): Do not accept initialization of arrays of atomic
812 elements by string constants.
813 (build_asm_expr): Use convert_lvalue_to_rvalue.
814 (build_binary_op): Do not treat _Atomic void as a qualified
815 version of void.
816
0c249d4b
DD
8172013-11-06 DJ Delorie <dj@redhat.com>
818
819 * c-decl.c (locate_old_decl): If a previous conflicting decl is
820 both explicit and builtin, print the location of the explicit one.
821
6d7f7e0a
TB
8222013-11-05 Tobias Burnus <burnus@net-b.de>
823
824 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
825 c_parser_omp_distribute, c_parser_omp_teams,
826 c_parser_omp_target, c_parser_omp_declare): Handle
827 -fopenmp-simd.
828
b906f4ca
MP
8292013-11-03 Marek Polacek <polacek@redhat.com>
830
831 * c-decl.c (grokdeclarator): Add VLA instrumentation.
832
ee1d5a02
JJ
8332013-11-01 Jakub Jelinek <jakub@redhat.com>
834
835 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
836 check_dup_generic at the end, unless remove is true.
837 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
838 remove = true;.
839 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
840
5a9785fb
JJ
8412013-10-31 Jakub Jelinek <jakub@redhat.com>
842
843 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
844 with decl that is not pointer nor array.
845
939b37da
BI
8462013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
847
848 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
849 a spawning function is found.
850 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
851 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
852 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
853 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
854 case.
855 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
856 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
857 expr.
858 (c_finish_return): Added a check to reject _Cilk_spawn in return
859 expression.
860 (build_cilk_spawn): New function.
861 (build_cilk_sync): Likewise.
862 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
863
d4af74d4
TB
8642013-10-27 Tobias Burnus <burnus@net-b.de>
865
866 PR other/33426
867 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
868 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
869 (c_parser_statement_after_labels): Update calls.
870
d73749df 8712013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
872
873 PR other/33426
874 * c-parser.c (c_parser_pragma, c_parser_for_statement):
875 Handle PRAGMA_IVDEP.
876 (c_parser_statement_after_labels): Update call.
877
f28aa681
MP
8782013-10-24 Marek Polacek <polacek@redhat.com>
879
880 * c-parser.c (c_parser_struct_declaration): Add a comment.
881 (c_parser_declarator): Don't allow _Alignas here.
882
0645c1a2
AM
8832013-10-17 Andrew MacLeod <amacleod@redhat.com>
884
885 * c-parser.c: Include omp-low.h.
886 * c-typeck.c: Likewise.
887
568a31f2
MP
8882013-10-17 Marek Polacek <polacek@redhat.com>
889
890 PR c/58267
891 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
892 Document syntax of the array-declarator.
893 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
894 are not permitted.
895 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
896 (c_parser_struct_declaration): Likewise.
897 (c_parser_declarator): Likewise.
898 (c_parser_direct_declarator_inner): Likewise.
899 (c_parser_parameter_declaration): Likewise.
900 (c_parser_type_name): Likewise.
901
acf0174b
JJ
9022013-10-11 Jakub Jelinek <jakub@redhat.com>
903
904 * c-lang.h (current_omp_declare_target_attribute): New extern
905 decl.
906 * c-parser.c: Include c-lang.h.
907 (struct c_parser): Change tokens to c_token *.
908 Add tokens_buf field. Change tokens_avail type to unsigned int.
909 (c_parser_consume_token): If parser->tokens isn't
910 &parser->tokens_buf[0], increment parser->tokens.
911 (c_parser_consume_pragma): Likewise.
912 (enum pragma_context): Add pragma_struct and pragma_param.
913 (c_parser_external_declaration): Adjust
914 c_parser_declaration_or_fndef caller.
915 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
916 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
917 Adjust recursive call.
918 (c_parser_struct_or_union_specifier): Use pragma_struct instead
919 of pragma_external.
920 (c_parser_parameter_declaration): Use pragma_param instead of
921 pragma_external.
922 (c_parser_compound_statement_nostart, c_parser_label,
923 c_parser_for_statement): Adjust
924 c_parser_declaration_or_fndef callers.
925 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
926 it through to c_parser_conditional_expression.
927 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
928 pass it through to c_parser_binary_expression. Adjust recursive
929 call.
930 (c_parser_binary_expression): Remove prec argument, add
931 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
932 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
933 binop matches it, use build2 instead of parser_build_binary_op.
934 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
935 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
936 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
937 Handle pragma_struct and pragma_param the same as pragma_external.
938 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
939 (c_parser_omp_variable_list): Parse array sections for
940 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
941 (c_parser_omp_clause_collapse): Fully fold collapse expression.
942 (c_parser_omp_clause_reduction): Handle user defined reductions.
943 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
944 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
945 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
946 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
947 c_parser_omp_clause_depend, c_parser_omp_clause_map,
948 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
949 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
950 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
951 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
952 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
953 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
954 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
955 (c_parser_omp_for_loop): Add CODE argument, pass it through
956 to c_finish_omp_for. Change last argument to cclauses,
957 and adjust uses to grab parallel clauses from the array of all
958 the split clauses. Adjust c_parser_binary_expression,
959 c_parser_declaration_or_fndef and c_finish_omp_for callers.
960 (omp_split_clauses): New function.
961 (c_parser_omp_simd): New function.
962 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
963 Allow the function to be called also when parsing combined constructs,
964 and call c_parser_omp_simd when parsing for simd.
965 (c_parser_omp_sections_scope): If section-sequence doesn't start with
966 #pragma omp section, require exactly one structured-block instead of
967 sequence of statements.
968 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
969 Allow the function to be called also when parsing combined constructs.
970 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
971 Allow the function to be called also when parsing combined
972 constructs.
973 (c_parser_omp_taskgroup, c_parser_omp_cancel,
974 c_parser_omp_cancellation_point, c_parser_omp_distribute,
975 c_parser_omp_teams, c_parser_omp_target_data,
976 c_parser_omp_target_update, c_parser_omp_target,
977 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
978 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
979 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
980 (c_parser_omp_construct): Add p_name and mask vars. Handle
981 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
982 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
983 and c_parser_omp_sections callers.
984 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
985 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
986 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
987 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
988 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
989 OMP_CLAUSE_DEPEND.
990 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
991 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
992 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
993 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
994 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
995 * c-typeck.c: Include tree-inline.h.
996 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
997 handle_omp_array_sections_1, handle_omp_array_sections,
998 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
999 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1000 user defined reductions.
1001 (c_tree_equal): New function.
1002 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1003 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1004 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1005 c_check_omp_declare_reduction_r): New prototypes.
1006 * c-decl.c (current_omp_declare_target_attribute): New variable.
1007 (c_decl_attributes): New function.
1008 (start_decl, start_function): Use it instead of decl_attributes.
1009 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1010 c_omp_reduction_decl, c_omp_reduction_lookup,
1011 c_check_omp_declare_reduction_r): New functions.
1012
0a6c2227
TT
10132013-09-25 Tom Tromey <tromey@redhat.com>
1014
1015 * Make-lang.in (c/gccspec.o): Remove.
1016 (CFLAGS-c/gccspec.o): New variable.
1017 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1018 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1019 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1020
f3bc55f0
TT
10212013-09-25 Tom Tromey <tromey@redhat.com>
1022
1023 * Make-lang.in (c/gccspec.o): Don't use subshell.
1024
a24d975c
MP
10252013-09-18 Marek Polacek <polacek@redhat.com>
1026
1027 PR sanitize/58443
1028 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1029 Remove unnecessary check.
1030
ce6923c5
MP
10312013-09-18 Marek Polacek <polacek@redhat.com>
1032
1033 PR sanitizer/58411
1034 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1035 no_sanitize_undefined attribute.
1036
a1e51df9
KT
10372013-09-13 Kai Tietz <ktietz@redhat.com>
1038
1039 PR target/57848
1040 * c-decl.c (c_builtin_function_ext_scope): Remove
1041 wrong assumption that it is never called on prexisting
1042 symbol.
1043
0af94e6f
JR
10442013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1045
1046 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1047
20059c8b
GDR
10482013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1049
1050 * c-objc-common.c (c_tree_printer): Tidy.
1051
de5a5fa1
MP
10522013-08-30 Marek Polacek <polacek@redhat.com>
1053
1054 * c-typeck.c (build_binary_op): Add division by zero and shift
1055 instrumentation.
1056
2531a1d9 10572013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 1058 Joseph Myers <joseph@codesourcery.com>
2531a1d9 1059
6e2bcc98 1060 PR c/35649
2531a1d9
JR
1061 * c-typeck.c (c_common_type): Prefer double_type_node over
1062 other REAL_TYPE types with the same precision.
1063 (convert_arguments): Likewise.
1064
025311c4
GDR
10652013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1066
1067 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1068 (c_initialize_diagnostics): Call a destructor for the early printer.
1069
da6ca2b5
GDR
10702013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1071
1072 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1073 printer initialization.
1074
318cda85 10752013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 1076
318cda85
BI
1077 PR c/57490
1078 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1079 check for truth values.
1080 (expand_array_notation_exprs): Added truth values case. Removed an
1081 unwanted else. Added for-loop to walk through subtrees in default
1082 case.
1083
b066401f
GDR
10842013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1085
1086 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1087
fb48aadc
JM
10882013-07-23 Joseph Myers <joseph@codesourcery.com>
1089
1090 * c-parser.c (struct c_generic_association): Fix typo.
1091
433cc7b0
TT
10922013-07-23 Tom Tromey <tromey@redhat.com>
1093 Joseph Myers <joseph@codesourcery.com>
1094
1095 * c-parser.c (struct c_generic_association): New.
1096 (c_generic_association_d): New typedef.
1097 (c_parser_generic_selection): New function.
1098 (c_parser_postfix_expression): Handle RID_GENERIC.
1099
26d40c3d
JM
11002013-07-13 Jason Merrill <jason@redhat.com>
1101
1102 PR c++/57793
1103 * c-decl.c (finish_struct): Check for too-large class.
1104
ecdbd01a 11052013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1106
1107 PR c/57821
1108 * c-typeck.c (set_init_index): When folding, check for index overflow.
1109
1141ed3f
BI
11102013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1111
1112 * c-parser.c (c_parser_array_notation): Removed rejection of array
1113 notations in an array of function pointers.
1114
713b46fa
BI
11152013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1116
1117 * c-array-notation.c (make_triplet_val_inv): New function.
1118 (create_cmp_incr): Likewise.
1119 (create_array_refs): Likewise.
1120 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1121 Also modularized common parts between functions and called the function.
1122 (build_array_notation_expr): Likewise.
1123 (fix_conditional_array_notations_1): Likewise.
1124 (fix_array_notation_expr): Likewise.
1125 (fix_array_notation_call_expr): Likewise.
1126
92f20202
MP
11272013-06-18 Marek Polacek <polacek@redhat.com>
1128
1129 PR c/57630
1130 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1131
73a23b06
BI
11322013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
1133
1134 * c-array-notation.c (build_array_notation_expr): Reject array notation
1135 mismatch between LHS and RHS even inside a call_expr. Also, removed
1136 a couple while statements that were dead code.
1137
00b8517d
BI
11382013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
1139
1140 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1141 excessive precision expressions in function parameters. Also removed
1142 couple unwanted while statements.
1143
1509bdda
BI
11442013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1145
1146 * c-array-notation.c (expand_array_notation_exprs): Added
1147 ARRAY_NOTATION_REF case.
1148
d60f1706
BI
11492013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1150
1151 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1152 function to c-family/array-notation-common.c.
1153 (is_cilkplus_reduce_builtin): Likewise.
1154 (find_rank): Likewise.
1155 (extract_array_notation_exprs): Likewise.
1156 (replace_array_notations): Likewise.
1157 (find_inv_trees): Likewise.
1158 (replace_inv_trees): Likewise.
1159 (contains_array_notation_expr): Likewise.
1160 (find_correct_array_notation_type): Likewise.
1161 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1162 (struct inv_list): Moved this to c-family/array-notation-common.c.
1163 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1164
6d6efbb3
BI
11652013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
1166
1167 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1168 reduction functions outside the for-loop. Added a check if the fundecl
1169 is non-NULL. Finally, removed an unwanted if-statement, and made the
1170 body unconditional.
1171
25c22937
BI
11722013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1173
1174 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1175 condition of the if-statement matches the rank of else-block and then-
1176 block when array notations are used.
1177 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1178 expression after the entire function body is parsed.
1179 (c_parser_expr_no_commas): Delayed creating array notation expressions
1180 to the end of function parsing.
1181 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1182 whole if-statement instead of just the condition.
1183 (expand_array_notation_exprs): Added MODIFY_EXPR case.
1184
edd25645
BI
11852013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1186
1187 PR c/57474
1188 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1189 array to NULL_TREE if they are unused. Also added a check for the
1190 field to be NULL before its fields are used in future.
1191
065ce7f1
RO
11922013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1193
1194 PR bootstrap/57450
1195 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1196 (build_array_notation_expr): Likewise.
1197
36536d79
BI
11982013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1199
1200 * c-typeck.c (build_array_ref): Added a check to see if array's
1201 index is greater than one. If true, then emit an error.
1202 (build_function_call_vec): Exclude error reporting and checking
1203 for builtin array-notation functions.
1204 (convert_arguments): Likewise.
1205 (c_finish_return): Added a check for array notations as a return
1206 expression. If true, then emit an error.
1207 (c_finish_loop): Added a check for array notations in a loop
1208 condition. If true then emit an error.
1209 (lvalue_p): Added a ARRAY_NOTATION_REF case.
1210 (build_binary_op): Added a check for array notation expr inside
1211 op1 and op0. If present, we call another function to find correct
1212 type.
1213 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1214 * c-parser.c (c_parser_compound_statement): Check if array
1215 notation code is used in tree, if so, then transform them into
1216 appropriate C code.
1217 (c_parser_expr_no_commas): Check if array notation is used in LHS
1218 or RHS, if so, then build array notation expression instead of
1219 regular modify.
1220 (c_parser_postfix_expression_after_primary): Added a check for
1221 colon(s) after square braces, if so then handle it like an array
1222 notation. Also, break up array notations in unary op if found.
1223 (c_parser_direct_declarator_inner): Added a check for array
1224 notation.
1225 (c_parser_compound_statement): Added a check for array notation in
1226 a stmt. If one is present, then expand array notation expr.
1227 (c_parser_if_statement): Likewise.
1228 (c_parser_switch_statement): Added a check for array notations in
1229 a switch statement's condition. If true, then output an error.
1230 (c_parser_while_statement): Similarly, but for a while.
1231 (c_parser_do_statement): Similarly, but for a do-while.
1232 (c_parser_for_statement): Similarly, but for a for-loop.
1233 (c_parser_unary_expression): Check if array notation is used in a
1234 pre-increment or pre-decrement expression. If true, then expand
1235 them.
1236 (c_parser_array_notation): New function.
1237 * c-array-notation.c: New file.
1238 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1239
cd192ccc
MS
12402013-05-23 Mike Stump <mikestump@comcast.net>
1241
1242 * c-typeck.c (convert_for_assignment): Handle references to memory
1243 spaces better.
1244
427b248d
JM
12452013-05-16 Jason Merrill <jason@redhat.com>
1246
1247 * Make-lang.in (cc1$(exeext)): Use link mutex.
1248
44d90fe1
PC
12492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1250
1251 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1252 to simply use OPT_Wpointer_arith.
1253 (build_unary_op): Likewise.
1254
4e7d7b3d
JJ
12552013-04-03 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR c/19449
1258 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1259 argument. If set, or it temporarily for parsing of the first
1260 argument into force_folding_builtin_constant_p.
1261 (c_parser_postfix_expression): Adjust callers.
1262
839b422f
RB
12632013-03-21 Richard Biener <rguenther@suse.de>
1264
1265 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1266 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1267
2ee028f1
MP
12682013-02-12 Marek Polacek <polacek@redhat.com>
1269
1270 PR c/44938
1271 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1272 origtypes to NULL.
1273
8824edff
JJ
12742013-01-24 Jakub Jelinek <jakub@redhat.com>
1275
1276 PR c/56078
1277 * c-typeck.c (set_nonincremental_init_from_string): If
1278 constructor_max_index is NULL, treat it as if tree_int_cst_lt
1279 returned false.
1280 (process_init_element): Likewise.
1281
eadd3d0d
JJ
12822012-12-20 Jakub Jelinek <jakub@redhat.com>
1283
1284 PR c++/55619
1285 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1286 argument, don't call default_function_array_conversion
1287 nor c_fully_fold here.
1288 (c_parser_asm_statement): Adjust callers.
1289 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1290 and outputs here, and call default_function_array_conversion
1291 on inputs that don't need to be addressable.
1292
f8a93a2e
JJ
12932012-12-18 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR c/39464
1296 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1297 warning require that both c_common_unsigned_type as well as
1298 c_common_signed_type is the same for both mvl and mvr types.
1299
9771b263
DN
13002012-11-16 Diego Novillo <dnovillo@google.com>
1301
1302 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1303
1304 * c-common.c: Use new vec API in vec.h.
1305 * c-common.h: Likewise.
1306 * c-gimplify.c: Likewise.
1307 * c-pragma.c: Likewise.
1308 * c-pretty-print.c: Likewise.
1309 * c-pretty-print.h: Likewise.
1310 * c-semantics.c: Likewise.
1311 * c-decl.c: Likewise.
1312 * c-parser.c: Likewise.
1313 * c-tree.h: Likewise.
1314 * c-typeck.c: Likewise.
1315
880661a4
JW
13162012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1317
1318 PR c++/54930
1319 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1320
077d1abe
MLI
13212012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1322
1323 PR c/53066
1324 * c-decl.c (warn_if_shadowing): Do not warn if a variable
1325 shadows a function, unless the variable is a function or a
1326 pointer-to-function.
1327
3a785c97
JJ
13282012-10-12 Jakub Jelinek <jakub@redhat.com>
1329
1330 PR c/54381
1331 * c-parser.c (struct c_tree_loc_pair): Removed.
1332 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1333 add location_t * and tree * arguments, fill in array of 3
1334 sizeof_arg trees and corresponding locs.
1335 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1336 c_parser_expr_list callers.
1337 (c_parser_postfix_expression_after_primary): Likewise. Pass
1338 array of 3 sizeof_arg trees and locs (corresponding to first
1339 3 arguments) to sizeof_pointer_memaccess_warning.
1340
703c8606
LC
13412012-10-09 Lawrence Crowl <crowl@google.com>
1342
1343 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1344 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1345 hash table.
1346
5d9de0d0
PC
13472012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1348
1349 PR c++/54194
1350 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1351 call.
1352
a212e43f
MG
13532012-10-09 Marc Glisse <marc.glisse@inria.fr>
1354
1355 PR c++/54427
1356 * c-typeck.c: Include c-common.h.
1357 (enum stv_conv): Moved to c-common.h.
1358 (scalar_to_vector): Moved to c-common.c.
1359 (build_binary_op): Adapt to scalar_to_vector's new prototype.
1360 * Make-lang.in: c-typeck.c depends on c-common.h.
1361
3b78de56
AC
13622012-10-04 Arnaud Charlet <charlet@adacore.com>
1363
1364 * c-decl.c (c_write_global_declarations): Fix handling of
1365 -fdump-ada-spec*.
1366
78c60e3d
SS
13672012-09-30 Sharad Singhai <singhai@google.com>
1368
1369 * c-decl.c (c_write_global_declarations): Use a different method
1370 to determine if the dump has ben initialized.
1371
9f33203d
JM
13722012-09-14 Joseph Myers <joseph@codesourcery.com>
1373
1374 PR c/54552
1375 * c-typeck.c (c_cast_expr): When casting to a type requiring
1376 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1377 c_fully_fold first.
1378
a27d595d
JM
13792012-09-14 Joseph Myers <joseph@codesourcery.com>
1380
1381 PR c/54103
1382 * c-typeck.c (build_unary_op): Pass original argument of
1383 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1384 any C_MAYBE_CONST_EXPR, if it has integer operands.
1385 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1386 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1387 to c_objc_common_truthvalue_conversion, then remove any
1388 C_MAYBE_CONST_EXPR, if they have integer operands. Use
1389 c_objc_common_truthvalue_conversion not
1390 c_common_truthvalue_conversion.
1391 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1392 call note_integer_operands for arguments with integer operands
1393 that are not integer constants.
1394
9feb29df
JJ
13952012-09-13 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR c/54559
1398 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1399 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1400
d409320c
JJ
14012012-08-31 Jakub Jelinek <jakub@redhat.com>
1402
1403 PR c/54428
1404 * c-convert.c (convert): Don't call fold_convert_loc if
1405 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1406 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
1407 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1408
6265d07c
JJ
14092012-08-24 Jakub Jelinek <jakub@redhat.com>
1410
1411 PR c/54355
1412 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1413 for nested and empty_ok arguments in the call to
1414 c_parser_declaration_or_fndef.
1415
1a4049e7
JJ
14162012-08-17 Jakub Jelinek <jakub@redhat.com>
1417
1418 * c-tree.h (c_last_sizeof_arg): Declare.
1419 * c-parser.c (struct c_tree_loc_pair): New type.
1420 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
1421 non-NULL.
1422 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1423 (c_parser_postfix_expression_after_primary): Likewise. Call
1424 sizeof_pointer_memaccess_warning if needed.
1425 (sizeof_ptr_memacc_comptypes): New function.
1426 * c-typeck.c (c_last_sizeof_arg): New global variable.
1427 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1428
0229aee9
UB
14292012-07-24 Uros Bizjak <ubizjak@gmail.com>
1430
1431 * c-lang.h (lang_decl): Add variable_size GTY option.
1432
7ee2468b
SB
14332012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1434
1435 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1436 * Make-lang.in: Fix dependencies.
1437
d4a10d0a
SB
14382012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1439
1440 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1441 and add language Makefile hooks.
1442 * config-lang.in: New file.
1443 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1444 add the required "normal" config-lang.in rules.
1445 * c-lang.h: Moved from gcc/ to here.
1446 * c-tree.h: Likewise.
1447 * c-objc-common.c: Likewise.
1448 * c-objc-common.h: Likewise.
1449 * c-typeck.c: Likewise.
1450 * c-convert.c: Likewise.
1451 * c-lang.c: Likewise.
1452 * c-aux-info.c: Likewise.
1453 * c-errors.c: Likewise.
1454 * gccspec.c: Likewise.
1455 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
1456 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
1457\f
23a5b65a 1458Copyright (C) 2012-2014 Free Software Foundation, Inc.
d4a10d0a
SB
1459
1460Copying and distribution of this file, with or without modification,
1461are permitted in any medium without royalty provided the copyright
1462notice and this notice are preserved.
This page took 0.653728 seconds and 5 git commands to generate.