]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
re PR c/59855 (Support sparse-style __attribute__((designated_init)) on structures...
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
a7ee52fb
IZ
12014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2
3 PR middle-end/61455
4 * c-array-notation.c (expand_array_notations): Handling
5 of DECL_EXPR added.
6
b4dfdc11
MG
72014-07-31 Marc Glisse <marc.glisse@inria.fr>
8
9 PR c++/60517
10 * c-typeck.c (c_finish_return): Return 0 instead of the address of
11 a local variable.
12
976d5a22
TT
132014-07-30 Tom Tromey <tromey@redhat.com>
14
15 * c-typeck.c (struct constructor_stack) <designator_depth>: New
16 field.
17 (really_start_incremental_init, push_init_level): Initialize
18 designator_depth.
19 (pop_init_level): Set global designator_depth.
20 (process_init_element): Check for designated_init attribute.
21
30281de2
MP
222014-07-20 Marek Polacek <polacek@redhat.com>
23
24 PR c/61852
25 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
26 (implicitly_declare): Pass location to implicit_decl_warning.
27
b108f48f
JJ
282014-07-14 Jakub Jelinek <jakub@redhat.com>
29
30 PR middle-end/61294
31 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
32 If non-NULL, call c_parser_check_literal_zero.
33 (c_parser_check_literal_zero): New function.
34 (c_parser_postfix_expression_after_primary): Adjust
35 c_parser_expr_list caller, handle -Wmemset-transposed-args.
36
773ec47f
MP
372014-07-06 Marek Polacek <polacek@redhat.com>
38
39 PR c/6940
40 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
41 * c-tree.h (C_ARRAY_PARAMETER): Define.
42 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
43 function parameter.
44
22e1cf1c
JH
452014-07-02 Jan Hubicka <hubicka@ucw.cz>
46 Chen Gang <gang.chen.5i5j@gmail.com>
47
48 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
49 releasing symbol.
50
52ec0ea3
MP
512014-07-01 Marek Polacek <polacek@redhat.com>
52
53 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
54 instead of 0 to WARN_FOR_ASSIGNMENT.
55
d5c3d343
MP
562014-07-01 Marek Polacek <polacek@redhat.com>
57
58 PR c/58286
59 * c-typeck.c (convert_for_assignment): Pass
60 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
61
6a7253a4
MP
622014-06-30 Marek Polacek <polacek@redhat.com>
63
64 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
65 has no_sanitize_undefined attribute.
66
5e88a8f4
IZ
672014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
68
69 PR middle-end/57541
70 * c-array-notation.c (fix_builtin_array_notation_fn):
71 Check for 0 arguments in builtin call. Check that bultin argument is
72 correct.
73 * c-parser.c (c_parser_array_notation): Check for incorrect initial
74 index.
75
9698b078
SH
762014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
77
78 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
79 qualifiers in __auto_type for atomic types.
80 (c_parser_typeof_specifier): Discard all type qualifiers in
81 __typeof__ for atomic types.
82
6e07c515
MP
832014-06-25 Marek Polacek <polacek@redhat.com>
84
85 PR c/61162
86 * c-parser.c (c_parser_statement_after_labels): Pass the location of
87 the return expression to c_finish_return.
88
da6f124d
JJ
892014-06-25 Jakub Jelinek <jakub@redhat.com>
90
91 * c-typeck.c (c_finish_omp_clauses): Make sure
92 OMP_CLAUSE_LINEAR_STEP has correct type.
93
c203e8a7
TS
942014-06-24 Trevor Saunders <tsaunders@mozilla.com>
95
96 * c-decl.c: Adjust.
97
56ad0e38
JJ
982014-06-24 Jakub Jelinek <jakub@redhat.com>
99
100 * c-parser.c (c_parser_omp_for_loop): For
101 #pragma omp parallel for simd move lastprivate clause from parallel
102 to for rather than simd.
103
47c2554f
MP
1042014-06-23 Marek Polacek <polacek@redhat.com>
105
106 * c-typeck.c (parser_build_binary_op): Don't call
107 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
108
56363ffd
JH
1092014-06-15 Jan Hubicka <hubicka@ucw.cz>
110
111 * c-parser.c (c_parser_omp_threadprivate): Likewise.
112 * c-decl.c (merge_decls): Likewise.
113
d7ff7ae5
MP
1142014-06-09 Marek Polacek <polacek@redhat.com>
115
116 PR c/36446
117 * c-typeck.c (error_init): Call inform instead of error_at.
118 (pedwarn_init): Call inform instead of pedwarn.
119 (warning_init): Call inform instead of warning_at.
120
24d047a3
JH
1212014-06-07 Jan Hubicka <hubicka@ucw.cz>
122
123 * c-decl.c (merge_decls): Use set_decl_section_name.
124 (duplicate_decls): Remove node if it exists.
125
9bac5cbb
G
1262014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
127
128 PR c/53119
129 * c-typeck.c (push_init_level, process_init_element,
130 pop_init_level): Correct check for zero initialization, move
131 missing brace warning to respect zero initialization.
132
8ffcdea8
MP
1332014-06-05 Marek Polacek <polacek@redhat.com>
134
135 PR c/56724
136 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
137
742938c9
MP
1382014-06-05 Marek Polacek <polacek@redhat.com>
139
140 PR c/49706
141 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
142 on the left hand side operand of a comparison.
143
6447c55d
MP
1442014-06-05 Marek Polacek <polacek@redhat.com>
145
146 PR c/48062
147 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
148 Print note only if the warning was printed.
149
9dc7743c
IZ
1502014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
151
152 PR c/58942
153 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
154 with a pointer.
155
fedfecef
MP
1562014-06-03 Marek Polacek <polacek@redhat.com>
157
158 PR c/60439
159 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
160 c_start_case.
161 * c-tree.h (c_start_case): Update.
162 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
163 switch condition has boolean value.
164
9b2b7279
AM
1652014-06-02 Andrew MacLeod <amacleod@redhat.com>
166
167 * c-decl.c: Include builtins.h.
168 * c-parser.c: Likewise.
169
5c1bc275
MP
1702014-05-27 Marek Polacek <polacek@redhat.com>
171
172 PR c/56724
173 * c-typeck.c (convert_arguments): Get location of a parameter. Change
174 error and warning calls to error_at and warning_at. Pass location of
175 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
176 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
177 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
178
97563bc8
IZ
1792014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
180
181 PR c/61191
182 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
183 function parameters.
184
aede2c10
JH
1852014-05-23 Jan Hubicka <hubicka@ucw.cz>
186
187 * c-decl.c (merge_decls): Preserve symtab node pointers.
188 (duplicate_decls): Free new decl.
189
edbba2ce
TS
1902014-05-23 Thomas Schwinge <thomas@codesourcery.com>
191
f3316c6d
TS
192 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
193 initialization.
194
edbba2ce
TS
195 * c-parser.c (c_parser_omp_target): Return bool values.
196
68c81f24
TS
1972014-05-22 Thomas Schwinge <thomas@codesourcery.com>
198
199 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
200 num_teams_loc variable to num_thread_limit_loc.
201
632f2871
RS
2022014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
203
204 * c-array-notation.c (expand_array_notations): Use void_node
205 instead of void_zero_node.
206
766090c2
TS
2072014-05-17 Trevor Saunders <tsaunders@mozilla.com>
208
209 * c-decl.c (finish_struct): Adjust.
210 (finish_enum): Likewise.
211 (bind): Adjust.
212 (record_inline_static): Likewise.
213 (push_scope): Likewise.
214 (make_label): Likewise.
215 (lookup_label_for_goto): Likewise.
216 (finish_struct): Likewise.
217 (finish_enum): Likewise.
218 (store_parm_decls): Likewise.
219 (c_push_function_context): Likewise.
220 * c-lang.h: Remove usage of variable_size gty attribute.
221 * c-parser.c (c_parse_init): Adjust.
222 (c_parse_file): Likewise.
223
2b107f6b
MP
2242014-05-13 Marek Polacek <polacek@redhat.com>
225
226 PR c/61162
227 * c-typeck.c (convert_for_assignment): Pass location to
228 WARN_FOR_ASSIGNMENT instead of input_location.
229
d033409e
MP
2302014-05-10 Marek Polacek <polacek@redhat.com>
231
232 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
233 maybe_warn_string_init.
234 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
235 maybe_warn_string_init.
236 * c-tree.h (maybe_warn_string_init): Update declaration.
237 * c-typeck.c (maybe_warn_string_init): Add location parameter.
238 Call pedwarn_init with loc instead of with input_location.
239 (digest_init): Pass init_loc to maybe_warn_string_init.
240 (pop_init_level): Call pedwarn_init with loc instead of with
241 input_location.
242 (set_init_index): Likewise.
243 (process_init_element): Likewise.
244
ea58ef42
MP
2452014-05-09 Marek Polacek <polacek@redhat.com>
246
247 PR c/61096
248 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
249 (c_parser_initelt): Pass location to set_init_label. Pass array index
250 location to set_init_index.
251 * c-tree.h (push_init_level): Update declaration.
252 (pop_init_level): Likewise.
253 (set_init_index): Likewise.
254 (set_init_label): Likewise.
255 * c-typeck.c (error_init): Add location parameter. Call error_at
256 instead of error.
257 (digest_init): Pass init_loc to error_init.
258 (really_start_incremental_init):
259 (push_init_level): Add location parameter. Pass loc to pop_init_level
260 and error_init.
261 (pop_init_level): Likewise.
262 (set_designator): Add location parameter. Pass loc to pop_init_level,
263 push_init_level, and error_init.
264 (set_init_index): Add location parameter. Pass loc to error_init and
265 set_designator.
266 (set_init_label): Likewise.
267 (output_init_element): Pass loc to error_init.
268 (process_init_element): Pass loc to error_init, pop_init_level,
269 pedwarn_init, and push_init_level.
270
661a0813
MP
2712014-05-09 Marek Polacek <polacek@redhat.com>
272
273 PR c/50459
274 * c-parser.c (c_parser_attributes): Parse the arguments as an
275 expression-list if the attribute takes identifier.
276
2793eeab
MP
2772014-05-08 Marek Polacek <polacek@redhat.com>
278
279 PR c/61053
280 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
281 TYPE_ALIGN_UNIT.
282
f827930a
MP
2832014-05-08 Marek Polacek <polacek@redhat.com>
284
285 PR c/61077
286 * c-decl.c (start_function): Warn for _Atomic-qualified return type
287 of main.
288
1d60af08
KZ
2892014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
290 Mike Stump <mikestump@comcast.net>
291 Richard Sandiford <rdsandiford@googlemail.com>
292
293 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
294 (finish_enum): Use wide-int interfaces.
295 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
296 * c-typeck.c (build_c_cast): Likewise.
297 (set_nonincremental_init_from_string): Likewise.
298 (c_tree_equal): Likewise.
299
a0e24419
MP
3002014-05-02 Marek Polacek <polacek@redhat.com>
301
302 PR c/25801
303 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
304 Return size_one_node when the type is not complete.
305 (pointer_diff): Remove comment.
306 (build_unary_op): Improve error messages.
307
19fc9faa
MP
3082014-05-02 Marek Polacek <polacek@redhat.com>
309
310 * c-typeck.c (c_finish_return): Separate warning_at calls.
311
63bc4e87
MP
3122014-05-02 Marek Polacek <polacek@redhat.com>
313
314 * c-tree.h (error_init): Remove declaration.
315 (pedwarn_init): Likewise.
316 * c-typeck.c (error_init): Make static and move above.
317 (pedwarn_init): Likewise.
318 (warning_init): Move above.
319 (maybe_warn_string_init): Likewise.
320
4bd2511b
JL
3212014-05-01 Jeff Law <law@redhat.com>
322
323 Revert:
324
325 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
326 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
327 avoid goto.
328
6a358dcb
MP
3292014-05-02 Marek Polacek <polacek@redhat.com>
330
331 PR c/60784
332 * c-typeck.c (push_init_level): Set constructor_designated to
333 p->designated for structures.
334
ae5ebda4
MP
3352014-05-01 Marek Polacek <polacek@redhat.com>
336
337 PR c/60915
338 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
339 function-definition has an attribute after the declarator.
340
96b40f8d
MP
3412014-05-01 Marek Polacek <polacek@redhat.com>
342
343 PR c/60257
344 * c-typeck.c (warning_init): Add location_t parameter. Call
345 warning_at instead of warning.
346 (push_init_level): Pass input_location to warning_init.
347 (add_pending_init): Add location_t parameter. Pass loc to
348 warning_init.
349 (set_nonincremental_init): Pass input_location to add_pending_init.
350 (set_nonincremental_init_from_string): Likewise.
351 (output_init_element): Pass loc to warning_init and to
352 add_pending_init.
353
32e00768
MP
3542014-05-01 Marek Polacek <polacek@redhat.com>
355
356 PR c/43395
357 * c-typeck.c (c_finish_return): Distinguish between label and variable
358 when warning about returning local address.
359
c9379ce2
MP
3602014-05-01 Marek Polacek <polacek@redhat.com>
361
362 PR c/29467
363 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
364 in C89 mode.
365
d00887e8
MP
3662014-05-01 Marek Polacek <polacek@redhat.com>
367
368 PR c/43245
369 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
370 instead of 0 to WARN_FOR_QUALIFIERS.
371
5436fa2e
MP
3722014-05-01 Marek Polacek <polacek@redhat.com>
373
374 PR c/56989
375 * c-typeck.c (default_conversion): Use better location for
376 error call.
377
f8ed5150
MP
3782014-04-30 Marek Polacek <polacek@redhat.com>
379
380 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
381 also when SANITIZE_FLOAT_DIVIDE is on.
382
8337d1db
MP
3832014-04-30 Marek Polacek <polacek@redhat.com>
384
385 PR c/60139
386 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
387 and pedwarn_init. Use loc insted of input_location.
388
c4bdc42f
MP
3892014-04-30 Marek Polacek <polacek@redhat.com>
390
391 PR c/60351
392 * c-typeck.c (build_binary_op): Use location when warning about
393 shift count.
394
45484dcf
MP
3952014-04-25 Marek Polacek <polacek@redhat.com>
396
397 PR c/18079
398 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
399 always_inline/noinline and hot/cold attributes.
400
34cf811f
MP
4012014-04-25 Marek Polacek <polacek@redhat.com>
402
403 PR c/60114
404 * c-parser.c (c_parser_initelt): Pass input_location to
405 process_init_element.
406 (c_parser_initval): Pass loc to process_init_element.
407 * c-tree.h (process_init_element): Adjust declaration.
408 * c-typeck.c (push_init_level): Pass input_location to
409 process_init_element.
410 (pop_init_level): Likewise.
411 (set_designator): Likewise.
412 (output_init_element): Add location_t parameter. Pass loc to
413 digest_init.
414 (output_pending_init_elements): Pass input_location to
415 output_init_element.
416 (process_init_element): Add location_t parameter. Pass loc to
417 output_init_element.
418
42056eac
JJ
4192014-04-24 Jakub Jelinek <jakub@redhat.com>
420
421 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
422 atomic-clause, allow comma in between atomic-clause and
423 seq_cst.
424
e162a134
JJ
4252014-04-22 Jakub Jelinek <jakub@redhat.com>
426
427 PR c/59073
428 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
429 fails, don't set OM_PARALLEL_COMBINED and return NULL.
430
2f6babac
IZ
4312014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
432
433 PR middle-end/60469
434 * c-array-notation.c (fix_builtin_array_notation_fn): Use
435 create_tmp_var instead build_decl for creating temps.
436 (build_array_notation_expr): Likewise.
437 (fix_conditional_array_notations_1): Likewise.
438 (fix_array_notation_expr): Likewise.
439 (fix_array_notation_call_expr): Likewise.
440
8edbfaa6
JJ
4412014-03-28 Jakub Jelinek <jakub@redhat.com>
442
443 PR c++/60689
444 * c-tree.h (c_build_function_call_vec): New prototype.
445 * c-typeck.c (build_function_call_vec): Don't call
446 resolve_overloaded_builtin here.
447 (c_build_function_call_vec): New wrapper function around
448 build_function_call_vec. Call resolve_overloaded_builtin here.
449 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
450 Call c_build_function_call_vec instead of build_function_call_vec.
451 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
452 * c-decl.c (finish_decl): Likewise.
453
7485aeea
MLI
4542014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
455
456 PR c/55383
457 * c-typeck.c: Use correct format string in cast-qual warning
458
b17a8b07
TS
4592014-03-07 Thomas Schwinge <thomas@codesourcery.com>
460
461 * c-decl.c (c_decl_attributes): Use
462 lang_hooks.types.omp_mappable_type.
463 * c-typeck.c (c_finish_omp_clauses): Likewise.
464
3af9c5e9
MP
4652014-03-06 Marek Polacek <polacek@redhat.com>
466
467 PR c/60197
468 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
469 of checking tree code.
470
1c9f5f33
PK
4712014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
472
473 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
474 (c_parser_parameter_declaration): Likewise.
475
cc28fc7f
MP
4762014-02-19 Marek Polacek <polacek@redhat.com>
477
478 PR c/60195
479 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
480 Call mark_exp_read on exp.value.
481 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
482 TREE_ADDRESSABLE on old instead of val.
483 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
484
b581c05c
PK
4852014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
486
487 * c-parser.c (c_parser_get_builtin_args): Replace calls to
488 C_EXPR_APPEND by vec_safe_push.
489 * c-tree.h (C_EXPR_APPEND): Remove.
490
81e5eca8
MP
4912014-01-31 Marek Polacek <polacek@redhat.com>
492
493 PR c/59963
494 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
495 build_function_call_vec.
496 (build_function_call): Likewise.
497 (build_atomic_assign): Likewise.
498 (build_function_call_vec): Add arg_loc parameter. Use it.
499 (convert_arguments): Likewise.
500 (convert_for_assignment): Rename rhs_loc to expr_loc.
501 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
502 (c_parser_objc_keywordexpr): Likewise.
503 (c_parser_postfix_expression_after_primary): Call
504 build_function_call_vec with expr_loc rather than op_loc.
505 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
506 build_function_call_vec.
507 (c_parser_expr_list): Add locations parameter. Fill it with locations
508 of function arguments.
509 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
510
68fca595
MP
5112014-01-30 Marek Polacek <polacek@redhat.com>
512
513 PR c/59940
514 * c-typeck.c (build_function_call_vec): Use loc parameter.
515 (convert_arguments): Add location parameter. Use it.
516 (ep_convert_and_check): Likewise.
517 (build_atomic_assign): Adjust convert_for_assignment call.
518 (build_modify_expr): Likewise.
519 (digest_init): Likewise.
520 (c_finish_return): Likewise.
521 (build_conditional_expr): Adjust ep_convert_and_check calls.
522 (convert_for_assignment): Add rhs_loc parameter. Use it.
523 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
524 calls.
525
fa337f3a
RB
5262014-01-30 Richard Biener <rguenther@suse.de>
527
528 PR c/59905
529 * c-typeck.c (build_function_call_vec): Do not replace calls
530 to a function via an incompatible type with a runtime abort.
531
b72271b9
BI
5322014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
533
534 * c-parser.c (c_parser_declaration_or_fndef): Replaced
535 flag_enable_cilkplus with flag_cilkplus.
536 (c_parser_direct_declarator_inner): Likewise.
537 (c_parser_attribute_any_word): Likewise.
538 (c_parser_attributes): Likewise.
539 (c_parser_compound_statement): Likewise.
540 (c_parser_statement_after_labels): Likewise.
541 (c_parser_if_statement): Likewise.
542 (c_parser_switch_statement): Likewise.
543 (c_parser_do_statement): Likewise.
544 (c_parser_for_statement): Likewise.
545 (c_parser_unary_expression): Likewise.
546 (c_parser_postfix_expression): Likewise.
547 (c_parser_postfix_expression_after_primary): Likewise.
548 (c_parser_postfix_expression_after_primary): Likewise.
549 (c_parser_omp_clause_name): Likewise.
550 (c_finish_omp_declare_simd): Likewise.
551 (c_parser_cilk_verify_simd): Likewise.
552 * c-typeck.c (build_array_ref): Likewise.
553 (build_function_call_vec): Likewise.
554 (convert_arguments): Likewise.
555 (build_compound_expr): Likewise.
556 (c_finish_return): Likewise.
557 (c_finish_if_stmt): Likewise.
558 (c_finish_loop): Likewise.
559 (build_binary_op): Likewise.
560
393e8e8b
MP
5612014-01-23 Marek Polacek <polacek@redhat.com>
562
563 PR c/59846
564 * c-typeck.c (parser_build_binary_op): Use location instead of
565 input_location.
566 (build_binary_op): Pass location to shorten_compare.
567
f04dda30
MP
5682014-01-23 Marek Polacek <polacek@redhat.com>
569
570 PR c/58346
571 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
572 an empty aggregate.
573
789eadcd
MP
5742014-01-23 Marek Polacek <polacek@redhat.com>
575
576 PR c/59871
577 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
578 of a comma expression.
579 (emit_side_effect_warnings): Likewise.
580
40f14e9f
BI
5812014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
582
583 PR c/59825
584 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
585 function to use walk_tree and moved a lot of its functionality to
586 expand_array_notations.
587 (expand_array_notations): New function.
588
74558dd9
BI
5892014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
590
591 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
592 attribute an attribute without value.
593
652fea39
JJ
5942014-01-23 Jakub Jelinek <jakub@redhat.com>
595
596 PR middle-end/58809
597 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
598 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
599
f34f1c87
MP
6002014-01-22 Marek Polacek <polacek@redhat.com>
601
602 PR c/59891
603 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
604 of remove_c_maybe_const_expr on op1 and op2.
605
241f845a
JJ
6062014-01-15 Jakub Jelinek <jakub@redhat.com>
607
608 PR c/58943
609 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
610 effects, preevaluate rhs using SAVE_EXPR first.
611
9a74f20c
BI
6122014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
613
614 PR c++/59631
615 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
616 statements with if-elseif statements.
617
96066ce1
MP
6182014-01-06 Marek Polacek <polacek@redhat.com>
619
620 PR c/57773
621 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
622 defined bit-field types only in ISO C.
623
23a5b65a
RS
6242014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
625
626 Update copyright years
627
f9030485
RS
6282014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
629
630 * c-array-notation.c: Use the standard form for the copyright notice.
631
41958c28
BI
6322013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
633
634 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
635 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
636 field in parser is not empty. If not-empty, call the function
637 c_parser_finish_omp_declare_simd.
638 (c_parser_cilk_clause_vectorlength): Modified function to be shared
639 between SIMD-enabled functions and #pragma simd. Added new parameter.
640 (c_parser_cilk_all_clauses): Modified the usage of the function
641 c_parser_cilk_clause_vectorlength as mentioned above.
642 (c_parser_cilk_simd_fn_vector_attrs): New function.
643 (c_finish_cilk_simd_fn_tokens): Likewise.
644 (is_cilkplus_vector_p): Likewise.
645 (c_parser_omp_clause_name): Added checking for "vectorlength,"
646 "nomask," and "mask" strings in clause name.
647 (c_parser_omp_all_clauses): Added 3 new case statements:
648 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
649 PRAGMA_CILK_CLAUSE_NOMASK.
650 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
651 check for vector attribute and if so call the function
652 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
653 called the function c_finish_cilk_simd_fn_tokens.
654 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
655 parser field is non-empty. If so, parse them as you would parse
656 the omp declare simd pragma.
657 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
658 Added a check when step is a parameter and flag it as error.
659 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
660 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
661 pragma_omp_clause.
662
cef0fd0e
TS
6632013-12-17 Thomas Schwinge <thomas@codesourcery.com>
664
665 * c-parser.c (c_parser_omp_parallel): Fix description.
666
12893402
BI
6672013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
668
669 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
670 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
671 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
672 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
673
296674db
JM
6742013-12-04 Joseph Myers <joseph@codesourcery.com>
675
676 PR c/52023
677 * c-parser.c (c_parser_alignas_specifier): Use
678 c_sizeof_or_alignof_type instead of c_alignof.
679 (c_parser_alignof_expression): Likewise, with min_alignof
680 parameter depending on alignof spelling used.
681
edd28054
MP
6822013-12-04 Marek Polacek <polacek@redhat.com>
683
684 PR c/54113
685 * c-decl.c (start_function): Don't warn for missing prototype for
686 inline functions.
687
da0fc454
MP
6882013-12-03 Marek Polacek <polacek@redhat.com>
689
690 PR c/59351
691 * c-decl.c (build_compound_literal): Allow compound literals with
692 empty initial value.
693
4c2ecab0
JM
6942013-12-02 Joseph Myers <joseph@codesourcery.com>
695
696 PR c/58235
697 * c-typeck.c (build_modify_expr): Diagnose assignment to
698 expression with array type.
699
340baef7
JM
7002013-11-29 Joseph Myers <joseph@codesourcery.com>
701
702 PR c/42262
703 * c-typeck.c (process_init_element): Do not treat a string as
704 initializing a whole array when used with a designator for an
705 individual element.
706
6763b9f7
JM
7072013-11-29 Joseph Myers <joseph@codesourcery.com>
708
709 PR c/57574
710 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
711 an inline function following a static declaration.
712
e7bd1de1
JJ
7132013-11-28 Jakub Jelinek <jakub@redhat.com>
714
715 PR c/59310
716 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
717 to p_name before calling c_parser_omp_teams instead of after.
718 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
719 argument. Remove unused p_name variable.
720
0136f8f0
AH
7212013-11-27 Aldy Hernandez <aldyh@redhat.com>
722 Jakub Jelinek <jakub@redhat.com>
723
724 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
725 external_scope is NULL.
726
241b71bb
TV
7272013-11-27 Tom de Vries <tom@codesourcery.com>
728 Marc Glisse <marc.glisse@inria.fr>
729
730 PR c++/59032
731 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
732
2fb9a547
AM
7332013-11-22 Andrew MacLeod <amacleod@redhat.com>
734
735 * c-typeck.c: Add required include files from gimple.h.
736
8400e75e
DM
7372013-11-22 David Malcolm <dmalcolm@redhat.com>
738
739 * c-decl.c (define_label, shadow_tag_warned)
740 (check_bitfield_type_and_width, grokdeclarator, grokparms,
741 store_parm_decls_newstyle, store_parm_decls_oldstyle)
742 (declspecs_add_type): Remove use of in_system_header macro.
743 * c-parser.c (c_parser_unary_expression): Likewise.
744 * c-typeck.c (store_init_value, process_init_element)
745 (c_start_case): Likewise.
746
747 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
748 macro.
749
750 * c-parser.c (c_parser_set_source_position_from_token): Remove
751 reference to in_system_header from comment.
752
386b1f1f
RS
7532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
754
755 * c-decl.c (grokdeclarator): Update comment to refer to
756 tree_to_[su]hwi rather than tree_low_cst.
757
ae7e9ddd
RS
7582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
759
760 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
761 tree_to_uhwi throughout.
762
9439e9a1
RS
7632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
764
765 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
766 throughout.
767
9541ffee
RS
7682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
769
770 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
771 throughout.
772
c02065fc
AH
7732013-11-15 Aldy Hernandez <aldyh@redhat.com>
774
775 * c-parser.c (c_parser_cilk_simd): New.
776 (c_parser_cilk_verify_simd): New.
777 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
778 (c_parser_omp_for_loop): Add case for NE_EXPR.
779 Set c_break_label for CILK_SIMD.
780 (c_parser_cilk_clause_vectorlength): New.
781 (c_parser_cilk_clause_linear): New.
782 (c_parser_cilk_clause_name): New.
783 (c_parser_cilk_all_clauses): New.
784 * c-typeck.c (build_unary_op): Pass location argument to
785 readonly_error.
786 (build_modify_expr): Same.
787 (build_asm_expr): Same.
788 (c_finish_bc_stmt): Error on break/continue in loops.
789
18f429e2
AM
7902013-11-14 Andrew MacLeod <amacleod@redhat.com>
791
792 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
793
d8a2d370
DN
7942013-11-14 Diego Novillo <dnovillo@google.com>
795
796 * c-decl.c: Include print-tree.h.
797 Include stor-layout.h.
798 Include varasm.h.
799 Include attribs.h.
800 Include stringpool.h.
801 * c-lang.c: Include fold-const.h.
802 * c-parser.c: Include stringpool.h.
803 Include attribs.h.
804 Include stor-layout.h.
805 Include varasm.h.
806 Include trans-mem.h.
807 * c-typeck.c: Include stor-layout.h.
808 Include trans-mem.h.
809 Include varasm.h.
810 Include stmt.h.
811
38b7bc7f
JM
8122013-11-13 Joseph Myers <joseph@codesourcery.com>
813
814 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
815 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
816 __auto_type.
817 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
818 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
819 RID_AUTO_TYPE.
820 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
821 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
822 (c_parser_declarator, c_parser_direct_declarator_inner)
823 (c_parser_parameter_declaration, c_parser_type_name): All callers
824 changed.
825 (c_parser_declaration_or_fndef): Handle declarations with type
826 determined from the initializer.
827
45b0be94
AM
8282013-11-12 Andrew MacLeod <amacleod@redhat.com>
829
18f429e2 830 * c-typeck.c: Include gimplify.h.
45b0be94 831
582d9b50
JM
8322013-11-12 Joseph Myers <joseph@codesourcery.com>
833
834 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
835 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
836 comment.
837 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
838 or _Thread_local as appropriate in diagnostics.
839 (build_null_declspecs): Initialize ret->thread_gnu_p.
840 (declspecs_add_scspec): Handle either __thread or _Thread_local
841 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
842 pedantic. Do not disallow _Thread_local extern and _Thread_local
843 static.
844
267bac10
JM
8452013-11-07 Joseph Myers <joseph@codesourcery.com>
846 Andrew MacLeod <amacleod@redhat.com>
847
848 * c-aux-info.c (gen_type): Handle atomic qualifier.
849 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
850 qualifiers when compating types.
851 (shadow_tag_warned): Handle atomic_p in declspecs.
852 (quals_from_declspecs): Likewise.
853 (start_decl): Use c_type_promotes_to when promoting argument
854 types.
855 (grokdeclarator): Handle _Atomic.
856 (get_parm_info): Diagnose any qualifier on "void" as only
857 parameter.
858 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
859 comparing types. Use c_type_promotes_to when promoting argument
860 types.
861 (finish_function): Use c_type_promotes_to when promoting argument
862 types.
863 (build_null_declspecs): Handle atomic_p in declspecs.
864 (declspecs_add_qual): Handle RID_ATOMIC.
865 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
866 (c_token_starts_declspecs): Handle RID_ATOMIC.
867 (c_parser_declspecs): Handle atomic type specifiers and
868 qualifiers.
869 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
870 from types of expressions with atomic type.
871 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
872 (c_parser_attribute_any_word): Handle RID_ATOMIC.
873 (c_parser_initializer, c_parser_initelt, c_parser_initval)
874 (c_parser_statement_after_labels, c_parser_switch_statement)
875 (c_parser_for_statement, c_parser_expr_no_commas)
876 (c_parser_conditional_expression, c_parser_binary_expression)
877 (c_parser_cast_expression, c_parser_unary_expression)
878 (c_parser_postfix_expression)
879 (c_parser_postfix_expression_after_primary, c_parser_expression):
880 Use convert_lvalue_to_rvalue.
881 (c_parser_expression_conv, c_parser_expr_list): Document
882 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
883 (c_parser_objc_synchronized_statement): Use
884 convert_lvalue_to_rvalue.
885 (c_parser_objc_selector): Handle RID_ATOMIC.
886 (c_parser_objc_receiver, c_parser_array_notation): Use
887 convert_lvalue_to_rvalue.
888 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
889 _Atomic (type-name).
890 (struct c_declspecs): Add atomic_p field.
891 (convert_lvalue_to_rvalue): Declare.
892 * c-typeck.c (c_type_promotes_to): Promote atomic types to
893 corresponding atomic types.
894 (qualify_type): Don't add _Atomic qualifiers from second argument.
895 (comp_target_types): Do not allow _Atomic mismatches.
896 (type_lists_compatible_p): Do not remove atomic qualifiers when
897 comparing types.
898 (really_atomic_lvalue, convert_lvalue_to_rvalue)
899 (build_atomic_assign): New functions.
900 (build_unary_op): Use build_atomic_assign for atomic increment and
901 decrement.
902 (build_conditional_expr): Do not treat _Atomic void as a qualified
903 version of void.
904 (build_modify_expr): Use build_atomic_assign for atomic LHS.
905 (find_anonymous_field_with_type, convert_to_anonymous_field)
906 (convert_for_assignment): Do not remove atomic qualifiers when
907 comparing types.
908 (digest_init): Do not accept initialization of arrays of atomic
909 elements by string constants.
910 (build_asm_expr): Use convert_lvalue_to_rvalue.
911 (build_binary_op): Do not treat _Atomic void as a qualified
912 version of void.
913
0c249d4b
DD
9142013-11-06 DJ Delorie <dj@redhat.com>
915
916 * c-decl.c (locate_old_decl): If a previous conflicting decl is
917 both explicit and builtin, print the location of the explicit one.
918
6d7f7e0a
TB
9192013-11-05 Tobias Burnus <burnus@net-b.de>
920
921 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
922 c_parser_omp_distribute, c_parser_omp_teams,
923 c_parser_omp_target, c_parser_omp_declare): Handle
924 -fopenmp-simd.
925
b906f4ca
MP
9262013-11-03 Marek Polacek <polacek@redhat.com>
927
928 * c-decl.c (grokdeclarator): Add VLA instrumentation.
929
ee1d5a02
JJ
9302013-11-01 Jakub Jelinek <jakub@redhat.com>
931
932 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
933 check_dup_generic at the end, unless remove is true.
934 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
935 remove = true;.
936 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
937
5a9785fb
JJ
9382013-10-31 Jakub Jelinek <jakub@redhat.com>
939
940 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
941 with decl that is not pointer nor array.
942
939b37da
BI
9432013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
944
945 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
946 a spawning function is found.
947 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
948 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
949 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
950 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
951 case.
952 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
953 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
954 expr.
955 (c_finish_return): Added a check to reject _Cilk_spawn in return
956 expression.
957 (build_cilk_spawn): New function.
958 (build_cilk_sync): Likewise.
959 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
960
d4af74d4
TB
9612013-10-27 Tobias Burnus <burnus@net-b.de>
962
963 PR other/33426
964 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
965 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
966 (c_parser_statement_after_labels): Update calls.
967
d73749df 9682013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
969
970 PR other/33426
971 * c-parser.c (c_parser_pragma, c_parser_for_statement):
972 Handle PRAGMA_IVDEP.
973 (c_parser_statement_after_labels): Update call.
974
f28aa681
MP
9752013-10-24 Marek Polacek <polacek@redhat.com>
976
977 * c-parser.c (c_parser_struct_declaration): Add a comment.
978 (c_parser_declarator): Don't allow _Alignas here.
979
0645c1a2
AM
9802013-10-17 Andrew MacLeod <amacleod@redhat.com>
981
982 * c-parser.c: Include omp-low.h.
983 * c-typeck.c: Likewise.
984
568a31f2
MP
9852013-10-17 Marek Polacek <polacek@redhat.com>
986
987 PR c/58267
988 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
989 Document syntax of the array-declarator.
990 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
991 are not permitted.
992 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
993 (c_parser_struct_declaration): Likewise.
994 (c_parser_declarator): Likewise.
995 (c_parser_direct_declarator_inner): Likewise.
996 (c_parser_parameter_declaration): Likewise.
997 (c_parser_type_name): Likewise.
998
acf0174b
JJ
9992013-10-11 Jakub Jelinek <jakub@redhat.com>
1000
1001 * c-lang.h (current_omp_declare_target_attribute): New extern
1002 decl.
1003 * c-parser.c: Include c-lang.h.
1004 (struct c_parser): Change tokens to c_token *.
1005 Add tokens_buf field. Change tokens_avail type to unsigned int.
1006 (c_parser_consume_token): If parser->tokens isn't
1007 &parser->tokens_buf[0], increment parser->tokens.
1008 (c_parser_consume_pragma): Likewise.
1009 (enum pragma_context): Add pragma_struct and pragma_param.
1010 (c_parser_external_declaration): Adjust
1011 c_parser_declaration_or_fndef caller.
1012 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1013 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1014 Adjust recursive call.
1015 (c_parser_struct_or_union_specifier): Use pragma_struct instead
1016 of pragma_external.
1017 (c_parser_parameter_declaration): Use pragma_param instead of
1018 pragma_external.
1019 (c_parser_compound_statement_nostart, c_parser_label,
1020 c_parser_for_statement): Adjust
1021 c_parser_declaration_or_fndef callers.
1022 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1023 it through to c_parser_conditional_expression.
1024 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1025 pass it through to c_parser_binary_expression. Adjust recursive
1026 call.
1027 (c_parser_binary_expression): Remove prec argument, add
1028 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
1029 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1030 binop matches it, use build2 instead of parser_build_binary_op.
1031 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1032 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1033 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1034 Handle pragma_struct and pragma_param the same as pragma_external.
1035 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1036 (c_parser_omp_variable_list): Parse array sections for
1037 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1038 (c_parser_omp_clause_collapse): Fully fold collapse expression.
1039 (c_parser_omp_clause_reduction): Handle user defined reductions.
1040 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1041 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1042 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1043 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1044 c_parser_omp_clause_depend, c_parser_omp_clause_map,
1045 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1046 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1047 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1048 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
1049 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
1050 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1051 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
1052 (c_parser_omp_for_loop): Add CODE argument, pass it through
1053 to c_finish_omp_for. Change last argument to cclauses,
1054 and adjust uses to grab parallel clauses from the array of all
1055 the split clauses. Adjust c_parser_binary_expression,
1056 c_parser_declaration_or_fndef and c_finish_omp_for callers.
1057 (omp_split_clauses): New function.
1058 (c_parser_omp_simd): New function.
1059 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1060 Allow the function to be called also when parsing combined constructs,
1061 and call c_parser_omp_simd when parsing for simd.
1062 (c_parser_omp_sections_scope): If section-sequence doesn't start with
1063 #pragma omp section, require exactly one structured-block instead of
1064 sequence of statements.
1065 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1066 Allow the function to be called also when parsing combined constructs.
1067 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1068 Allow the function to be called also when parsing combined
1069 constructs.
1070 (c_parser_omp_taskgroup, c_parser_omp_cancel,
1071 c_parser_omp_cancellation_point, c_parser_omp_distribute,
1072 c_parser_omp_teams, c_parser_omp_target_data,
1073 c_parser_omp_target_update, c_parser_omp_target,
1074 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1075 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1076 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1077 (c_parser_omp_construct): Add p_name and mask vars. Handle
1078 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1079 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
1080 and c_parser_omp_sections callers.
1081 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1082 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1083 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1084 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
1085 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
1086 OMP_CLAUSE_DEPEND.
1087 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1088 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1089 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1090 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1091 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1092 * c-typeck.c: Include tree-inline.h.
1093 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1094 handle_omp_array_sections_1, handle_omp_array_sections,
1095 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1096 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1097 user defined reductions.
1098 (c_tree_equal): New function.
1099 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1100 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1101 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1102 c_check_omp_declare_reduction_r): New prototypes.
1103 * c-decl.c (current_omp_declare_target_attribute): New variable.
1104 (c_decl_attributes): New function.
1105 (start_decl, start_function): Use it instead of decl_attributes.
1106 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1107 c_omp_reduction_decl, c_omp_reduction_lookup,
1108 c_check_omp_declare_reduction_r): New functions.
1109
0a6c2227
TT
11102013-09-25 Tom Tromey <tromey@redhat.com>
1111
1112 * Make-lang.in (c/gccspec.o): Remove.
1113 (CFLAGS-c/gccspec.o): New variable.
1114 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1115 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1116 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1117
f3bc55f0
TT
11182013-09-25 Tom Tromey <tromey@redhat.com>
1119
1120 * Make-lang.in (c/gccspec.o): Don't use subshell.
1121
a24d975c
MP
11222013-09-18 Marek Polacek <polacek@redhat.com>
1123
1124 PR sanitize/58443
1125 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1126 Remove unnecessary check.
1127
ce6923c5
MP
11282013-09-18 Marek Polacek <polacek@redhat.com>
1129
1130 PR sanitizer/58411
1131 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1132 no_sanitize_undefined attribute.
1133
a1e51df9
KT
11342013-09-13 Kai Tietz <ktietz@redhat.com>
1135
1136 PR target/57848
1137 * c-decl.c (c_builtin_function_ext_scope): Remove
1138 wrong assumption that it is never called on prexisting
1139 symbol.
1140
0af94e6f
JR
11412013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1142
1143 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1144
20059c8b
GDR
11452013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1146
1147 * c-objc-common.c (c_tree_printer): Tidy.
1148
de5a5fa1
MP
11492013-08-30 Marek Polacek <polacek@redhat.com>
1150
1151 * c-typeck.c (build_binary_op): Add division by zero and shift
1152 instrumentation.
1153
2531a1d9 11542013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 1155 Joseph Myers <joseph@codesourcery.com>
2531a1d9 1156
6e2bcc98 1157 PR c/35649
2531a1d9
JR
1158 * c-typeck.c (c_common_type): Prefer double_type_node over
1159 other REAL_TYPE types with the same precision.
1160 (convert_arguments): Likewise.
1161
025311c4
GDR
11622013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1163
1164 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1165 (c_initialize_diagnostics): Call a destructor for the early printer.
1166
da6ca2b5
GDR
11672013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1168
1169 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1170 printer initialization.
1171
318cda85 11722013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 1173
318cda85
BI
1174 PR c/57490
1175 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1176 check for truth values.
1177 (expand_array_notation_exprs): Added truth values case. Removed an
1178 unwanted else. Added for-loop to walk through subtrees in default
1179 case.
1180
b066401f
GDR
11812013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1182
1183 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1184
fb48aadc
JM
11852013-07-23 Joseph Myers <joseph@codesourcery.com>
1186
1187 * c-parser.c (struct c_generic_association): Fix typo.
1188
433cc7b0
TT
11892013-07-23 Tom Tromey <tromey@redhat.com>
1190 Joseph Myers <joseph@codesourcery.com>
1191
1192 * c-parser.c (struct c_generic_association): New.
1193 (c_generic_association_d): New typedef.
1194 (c_parser_generic_selection): New function.
1195 (c_parser_postfix_expression): Handle RID_GENERIC.
1196
26d40c3d
JM
11972013-07-13 Jason Merrill <jason@redhat.com>
1198
1199 PR c++/57793
1200 * c-decl.c (finish_struct): Check for too-large class.
1201
ecdbd01a 12022013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1203
1204 PR c/57821
1205 * c-typeck.c (set_init_index): When folding, check for index overflow.
1206
1141ed3f
BI
12072013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1208
1209 * c-parser.c (c_parser_array_notation): Removed rejection of array
1210 notations in an array of function pointers.
1211
713b46fa
BI
12122013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1213
1214 * c-array-notation.c (make_triplet_val_inv): New function.
1215 (create_cmp_incr): Likewise.
1216 (create_array_refs): Likewise.
1217 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1218 Also modularized common parts between functions and called the function.
1219 (build_array_notation_expr): Likewise.
1220 (fix_conditional_array_notations_1): Likewise.
1221 (fix_array_notation_expr): Likewise.
1222 (fix_array_notation_call_expr): Likewise.
1223
92f20202
MP
12242013-06-18 Marek Polacek <polacek@redhat.com>
1225
1226 PR c/57630
1227 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1228
73a23b06
BI
12292013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
1230
1231 * c-array-notation.c (build_array_notation_expr): Reject array notation
1232 mismatch between LHS and RHS even inside a call_expr. Also, removed
1233 a couple while statements that were dead code.
1234
00b8517d
BI
12352013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
1236
1237 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1238 excessive precision expressions in function parameters. Also removed
1239 couple unwanted while statements.
1240
1509bdda
BI
12412013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1242
1243 * c-array-notation.c (expand_array_notation_exprs): Added
1244 ARRAY_NOTATION_REF case.
1245
d60f1706
BI
12462013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1247
1248 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1249 function to c-family/array-notation-common.c.
1250 (is_cilkplus_reduce_builtin): Likewise.
1251 (find_rank): Likewise.
1252 (extract_array_notation_exprs): Likewise.
1253 (replace_array_notations): Likewise.
1254 (find_inv_trees): Likewise.
1255 (replace_inv_trees): Likewise.
1256 (contains_array_notation_expr): Likewise.
1257 (find_correct_array_notation_type): Likewise.
1258 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1259 (struct inv_list): Moved this to c-family/array-notation-common.c.
1260 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1261
6d6efbb3
BI
12622013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
1263
1264 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1265 reduction functions outside the for-loop. Added a check if the fundecl
1266 is non-NULL. Finally, removed an unwanted if-statement, and made the
1267 body unconditional.
1268
25c22937
BI
12692013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1270
1271 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1272 condition of the if-statement matches the rank of else-block and then-
1273 block when array notations are used.
1274 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1275 expression after the entire function body is parsed.
1276 (c_parser_expr_no_commas): Delayed creating array notation expressions
1277 to the end of function parsing.
1278 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1279 whole if-statement instead of just the condition.
1280 (expand_array_notation_exprs): Added MODIFY_EXPR case.
1281
edd25645
BI
12822013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1283
1284 PR c/57474
1285 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1286 array to NULL_TREE if they are unused. Also added a check for the
1287 field to be NULL before its fields are used in future.
1288
065ce7f1
RO
12892013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1290
1291 PR bootstrap/57450
1292 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1293 (build_array_notation_expr): Likewise.
1294
36536d79
BI
12952013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1296
1297 * c-typeck.c (build_array_ref): Added a check to see if array's
1298 index is greater than one. If true, then emit an error.
1299 (build_function_call_vec): Exclude error reporting and checking
1300 for builtin array-notation functions.
1301 (convert_arguments): Likewise.
1302 (c_finish_return): Added a check for array notations as a return
1303 expression. If true, then emit an error.
1304 (c_finish_loop): Added a check for array notations in a loop
1305 condition. If true then emit an error.
1306 (lvalue_p): Added a ARRAY_NOTATION_REF case.
1307 (build_binary_op): Added a check for array notation expr inside
1308 op1 and op0. If present, we call another function to find correct
1309 type.
1310 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1311 * c-parser.c (c_parser_compound_statement): Check if array
1312 notation code is used in tree, if so, then transform them into
1313 appropriate C code.
1314 (c_parser_expr_no_commas): Check if array notation is used in LHS
1315 or RHS, if so, then build array notation expression instead of
1316 regular modify.
1317 (c_parser_postfix_expression_after_primary): Added a check for
1318 colon(s) after square braces, if so then handle it like an array
1319 notation. Also, break up array notations in unary op if found.
1320 (c_parser_direct_declarator_inner): Added a check for array
1321 notation.
1322 (c_parser_compound_statement): Added a check for array notation in
1323 a stmt. If one is present, then expand array notation expr.
1324 (c_parser_if_statement): Likewise.
1325 (c_parser_switch_statement): Added a check for array notations in
1326 a switch statement's condition. If true, then output an error.
1327 (c_parser_while_statement): Similarly, but for a while.
1328 (c_parser_do_statement): Similarly, but for a do-while.
1329 (c_parser_for_statement): Similarly, but for a for-loop.
1330 (c_parser_unary_expression): Check if array notation is used in a
1331 pre-increment or pre-decrement expression. If true, then expand
1332 them.
1333 (c_parser_array_notation): New function.
1334 * c-array-notation.c: New file.
1335 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1336
cd192ccc
MS
13372013-05-23 Mike Stump <mikestump@comcast.net>
1338
1339 * c-typeck.c (convert_for_assignment): Handle references to memory
1340 spaces better.
1341
427b248d
JM
13422013-05-16 Jason Merrill <jason@redhat.com>
1343
1344 * Make-lang.in (cc1$(exeext)): Use link mutex.
1345
44d90fe1
PC
13462013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1347
1348 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1349 to simply use OPT_Wpointer_arith.
1350 (build_unary_op): Likewise.
1351
4e7d7b3d
JJ
13522013-04-03 Jakub Jelinek <jakub@redhat.com>
1353
1354 PR c/19449
1355 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1356 argument. If set, or it temporarily for parsing of the first
1357 argument into force_folding_builtin_constant_p.
1358 (c_parser_postfix_expression): Adjust callers.
1359
839b422f
RB
13602013-03-21 Richard Biener <rguenther@suse.de>
1361
1362 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1363 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1364
2ee028f1
MP
13652013-02-12 Marek Polacek <polacek@redhat.com>
1366
1367 PR c/44938
1368 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1369 origtypes to NULL.
1370
8824edff
JJ
13712013-01-24 Jakub Jelinek <jakub@redhat.com>
1372
1373 PR c/56078
1374 * c-typeck.c (set_nonincremental_init_from_string): If
1375 constructor_max_index is NULL, treat it as if tree_int_cst_lt
1376 returned false.
1377 (process_init_element): Likewise.
1378
eadd3d0d
JJ
13792012-12-20 Jakub Jelinek <jakub@redhat.com>
1380
1381 PR c++/55619
1382 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1383 argument, don't call default_function_array_conversion
1384 nor c_fully_fold here.
1385 (c_parser_asm_statement): Adjust callers.
1386 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1387 and outputs here, and call default_function_array_conversion
1388 on inputs that don't need to be addressable.
1389
f8a93a2e
JJ
13902012-12-18 Jakub Jelinek <jakub@redhat.com>
1391
1392 PR c/39464
1393 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1394 warning require that both c_common_unsigned_type as well as
1395 c_common_signed_type is the same for both mvl and mvr types.
1396
9771b263
DN
13972012-11-16 Diego Novillo <dnovillo@google.com>
1398
1399 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1400
1401 * c-common.c: Use new vec API in vec.h.
1402 * c-common.h: Likewise.
1403 * c-gimplify.c: Likewise.
1404 * c-pragma.c: Likewise.
1405 * c-pretty-print.c: Likewise.
1406 * c-pretty-print.h: Likewise.
1407 * c-semantics.c: Likewise.
1408 * c-decl.c: Likewise.
1409 * c-parser.c: Likewise.
1410 * c-tree.h: Likewise.
1411 * c-typeck.c: Likewise.
1412
880661a4
JW
14132012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1414
1415 PR c++/54930
1416 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1417
077d1abe
MLI
14182012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1419
1420 PR c/53066
1421 * c-decl.c (warn_if_shadowing): Do not warn if a variable
1422 shadows a function, unless the variable is a function or a
1423 pointer-to-function.
1424
3a785c97
JJ
14252012-10-12 Jakub Jelinek <jakub@redhat.com>
1426
1427 PR c/54381
1428 * c-parser.c (struct c_tree_loc_pair): Removed.
1429 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1430 add location_t * and tree * arguments, fill in array of 3
1431 sizeof_arg trees and corresponding locs.
1432 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1433 c_parser_expr_list callers.
1434 (c_parser_postfix_expression_after_primary): Likewise. Pass
1435 array of 3 sizeof_arg trees and locs (corresponding to first
1436 3 arguments) to sizeof_pointer_memaccess_warning.
1437
703c8606
LC
14382012-10-09 Lawrence Crowl <crowl@google.com>
1439
1440 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1441 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1442 hash table.
1443
5d9de0d0
PC
14442012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1445
1446 PR c++/54194
1447 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1448 call.
1449
a212e43f
MG
14502012-10-09 Marc Glisse <marc.glisse@inria.fr>
1451
1452 PR c++/54427
1453 * c-typeck.c: Include c-common.h.
1454 (enum stv_conv): Moved to c-common.h.
1455 (scalar_to_vector): Moved to c-common.c.
1456 (build_binary_op): Adapt to scalar_to_vector's new prototype.
1457 * Make-lang.in: c-typeck.c depends on c-common.h.
1458
3b78de56
AC
14592012-10-04 Arnaud Charlet <charlet@adacore.com>
1460
1461 * c-decl.c (c_write_global_declarations): Fix handling of
1462 -fdump-ada-spec*.
1463
78c60e3d
SS
14642012-09-30 Sharad Singhai <singhai@google.com>
1465
1466 * c-decl.c (c_write_global_declarations): Use a different method
1467 to determine if the dump has ben initialized.
1468
9f33203d
JM
14692012-09-14 Joseph Myers <joseph@codesourcery.com>
1470
1471 PR c/54552
1472 * c-typeck.c (c_cast_expr): When casting to a type requiring
1473 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1474 c_fully_fold first.
1475
a27d595d
JM
14762012-09-14 Joseph Myers <joseph@codesourcery.com>
1477
1478 PR c/54103
1479 * c-typeck.c (build_unary_op): Pass original argument of
1480 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1481 any C_MAYBE_CONST_EXPR, if it has integer operands.
1482 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1483 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1484 to c_objc_common_truthvalue_conversion, then remove any
1485 C_MAYBE_CONST_EXPR, if they have integer operands. Use
1486 c_objc_common_truthvalue_conversion not
1487 c_common_truthvalue_conversion.
1488 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1489 call note_integer_operands for arguments with integer operands
1490 that are not integer constants.
1491
9feb29df
JJ
14922012-09-13 Jakub Jelinek <jakub@redhat.com>
1493
1494 PR c/54559
1495 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1496 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1497
d409320c
JJ
14982012-08-31 Jakub Jelinek <jakub@redhat.com>
1499
1500 PR c/54428
1501 * c-convert.c (convert): Don't call fold_convert_loc if
1502 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1503 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
1504 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1505
6265d07c
JJ
15062012-08-24 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR c/54355
1509 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1510 for nested and empty_ok arguments in the call to
1511 c_parser_declaration_or_fndef.
1512
1a4049e7
JJ
15132012-08-17 Jakub Jelinek <jakub@redhat.com>
1514
1515 * c-tree.h (c_last_sizeof_arg): Declare.
1516 * c-parser.c (struct c_tree_loc_pair): New type.
1517 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
1518 non-NULL.
1519 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1520 (c_parser_postfix_expression_after_primary): Likewise. Call
1521 sizeof_pointer_memaccess_warning if needed.
1522 (sizeof_ptr_memacc_comptypes): New function.
1523 * c-typeck.c (c_last_sizeof_arg): New global variable.
1524 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1525
0229aee9
UB
15262012-07-24 Uros Bizjak <ubizjak@gmail.com>
1527
1528 * c-lang.h (lang_decl): Add variable_size GTY option.
1529
7ee2468b
SB
15302012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1531
1532 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1533 * Make-lang.in: Fix dependencies.
1534
d4a10d0a
SB
15352012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1536
1537 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1538 and add language Makefile hooks.
1539 * config-lang.in: New file.
1540 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1541 add the required "normal" config-lang.in rules.
1542 * c-lang.h: Moved from gcc/ to here.
1543 * c-tree.h: Likewise.
1544 * c-objc-common.c: Likewise.
1545 * c-objc-common.h: Likewise.
1546 * c-typeck.c: Likewise.
1547 * c-convert.c: Likewise.
1548 * c-lang.c: Likewise.
1549 * c-aux-info.c: Likewise.
1550 * c-errors.c: Likewise.
1551 * gccspec.c: Likewise.
1552 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
1553 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
1554\f
23a5b65a 1555Copyright (C) 2012-2014 Free Software Foundation, Inc.
d4a10d0a
SB
1556
1557Copying and distribution of this file, with or without modification,
1558are permitted in any medium without royalty provided the copyright
1559notice and this notice are preserved.