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