]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c/ChangeLog
Makefile.in (check_gcc_parallelize): Delete.
[thirdparty/gcc.git] / gcc / c / ChangeLog
1 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
2
3 * Make-lang.in (check_gcc_pallelize): Define.
4
5 2015-05-22 Marek Polacek <polacek@redhat.com>
6
7 PR c/47043
8 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
9 attributes.
10
11 2015-05-21 Marek Polacek <polacek@redhat.com>
12
13 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
14 DECL_BUILT_IN.
15
16 2015-05-20 Marek Polacek <polacek@redhat.com>
17
18 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
19 * c-typeck.c: Likewise.
20
21 2015-05-19 Marek Polacek <polacek@redhat.com>
22
23 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
24
25 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26
27 PR middle-end/66199
28 * c-parser.c (c_parser_omp_for_loop): Don't add
29 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
30 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
31 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
32 constructs.
33
34 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
35
36 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
37 swaps.
38
39 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
40
41 PR fortran/44054
42 * c-objc-common.c (c_tree_printer): Replace locus pointer with
43 accessor function.
44
45 2015-05-14 Marek Polacek <polacek@redhat.com>
46
47 PR c/66066
48 PR c/66127
49 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
50 rather than with 0.
51
52 2015-05-12 David Malcolm <dmalcolm@redhat.com>
53
54 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
55 to add a call to warn_for_misleading_indentation.
56 (c_parser_else_body): Likewise, adding param "else_loc".
57 (c_parser_if_statement): Check for misleading indentation.
58 (c_parser_while_statement): Likewise.
59 (c_parser_for_statement): Likewise.
60
61 2015-05-08 Marek Polacek <polacek@redhat.com>
62
63 PR c/64918
64 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
65 (output_init_element): Likewise.
66
67 2015-05-07 Marek Polacek <polacek@redhat.com>
68
69 PR c/65179
70 * c-typeck.c (build_binary_op): Warn when left shifting a negative
71 value.
72
73 2015-04-30 Marek Polacek <polacek@redhat.com>
74
75 * c-typeck.c (set_init_label): Call error_at instead of error and
76 pass LOC to it.
77
78 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
79 the type of a decl.
80
81 * c-typeck.c (c_build_va_arg): Clarify the error message.
82
83 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
84
85 * c-parser.c (c_parser_oacc_enter_exit_data): Use
86 OMP_STANDALONE_CLAUSES.
87
88 2015-04-28 Marek Polacek <polacek@redhat.com>
89
90 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
91
92 2015-04-28 Marek Polacek <polacek@redhat.com>
93
94 PR c/65901
95 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
96
97 2015-04-25 Marek Polacek <polacek@redhat.com>
98
99 PR c/52085
100 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
101 attribute.
102
103 2015-04-23 Marek Polacek <polacek@redhat.com>
104
105 PR c/65345
106 * c-decl.c (set_labels_context_r): New function.
107 (store_parm_decls): Call it via walk_tree_without_duplicates.
108 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
109 instead of create_tmp_var. Build TARGET_EXPR instead of
110 COMPOUND_EXPR.
111 (build_atomic_assign): Use create_tmp_var_raw instead of
112 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
113
114 2015-04-20 Ilya Verbin <ilya.verbin@intel.com>
115
116 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
117 (c_parser_omp_target_update): Add missed %> to error_at ().
118
119 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
120
121 PR target/55143
122 * c-decl.c (c_default_pointer_mode): Remove definition.
123 * c-tree.h (c_default_pointer_mode): Remove declaration.
124
125 2015-03-27 Tobias Burnus <burnus@net-b.de>
126
127 PR c/65586
128 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
129 error out.
130 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
131 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
132 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
133
134 2015-03-19 Jakub Jelinek <jakub@redhat.com>
135
136 * c-decl.c (c_decl_attributes): Also add "omp declare target"
137 attribute for DECL_EXTERNAL VAR_DECLs.
138
139 2015-03-11 Jakub Jelinek <jakub@redhat.com>
140
141 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
142 argument.
143
144 2015-03-10 Jakub Jelinek <jakub@redhat.com>
145
146 PR c/65120
147 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
148 before preparing arguments to warn_logical_not_parentheses.
149
150 2015-03-09 Jakub Jelinek <jakub@redhat.com>
151
152 PR c/65120
153 * c-typeck.c (parser_build_binary_op): Don't warn for
154 !!x == y or !b == y where b is _Bool.
155
156 2015-03-09 Marek Polacek <polacek@redhat.com>
157
158 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
159 * c-decl.c (grokdeclarator): Likewise.
160 * c-typeck.c (build_binary_op): Likewise.
161
162 2015-02-27 Marek Polacek <polacek@redhat.com>
163
164 PR c/65228
165 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
166
167 2015-02-14 Marek Polacek <polacek@redhat.com>
168
169 PR c/64768
170 * c-decl.c (grokdeclarator): Set the range of a flexible array member
171 declared through a typedef name.
172
173 2015-02-13 Marek Polacek <polacek@redhat.com>
174
175 PR c/65050
176 * c-decl.c (grokdeclarator): Print also the type when giving
177 the error message about array's incomplete element type.
178
179 2015-02-11 Jakub Jelinek <jakub@redhat.com>
180
181 PR c/64824
182 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
183 check in the POP macro.
184
185 2015-02-09 Marek Polacek <polacek@redhat.com>
186
187 PR c/64856
188 * c-typeck.c (process_init_element): Don't always wrap
189 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
190 initializing a range of elements.
191
192 2015-02-04 Jakub Jelinek <jakub@redhat.com>
193
194 PR c/64824
195 PR c/64868
196 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
197
198 2015-02-02 Bruno Loff <bruno.loff@gmail.com>
199
200 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
201 processing enum declaration.
202
203 2015-01-29 Marek Polacek <polacek@redhat.com>
204
205 PR c/64709
206 * c-typeck.c (pop_init_level): If constructor_elements has
207 exactly one element with integer_zerop value, set constructor_zeroinit
208 to 1. Remove braces around warning_init call.
209
210 2015-01-27 Jakub Jelinek <jakub@redhat.com>
211
212 PR c/64766
213 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
214 of FUNCTION_DECLs with error_mark_node.
215
216 2015-01-26 Jakub Jelinek <jakub@redhat.com>
217
218 PR c/64778
219 * c-typeck.c (convert_arguments): Return -1 if there are
220 error_args, even if we've diagnosed too many arguments.
221
222 2015-01-21 Richard Biener <rguenther@suse.de>
223
224 PR middle-end/64313
225 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
226 for builtins the user declared correctly.
227
228 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
229 Bernd Schmidt <bernds@codesourcery.com>
230 Cesar Philippidis <cesar@codesourcery.com>
231 James Norris <jnorris@codesourcery.com>
232 Jakub Jelinek <jakub@redhat.com>
233 Ilmir Usmanov <i.usmanov@samsung.com>
234
235 * c-parser.c: Include "gomp-constants.h".
236 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
237 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
238 Use OMP_CLAUSE_SET_MAP_KIND.
239 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
240 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
241 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
242 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
243 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
244 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
245 "copyout", "create", "delete", "deviceptr", "gang", "host",
246 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
247 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
248 "present_or_create", "pcreate", "seq", "self", "vector",
249 "vector_length", "wait", "worker".
250 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
251 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
252 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
253 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
254 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
255 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
256 (c_parser_oacc_data_clause_deviceptr)
257 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
258 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
259 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
260 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
261 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
262 (c_parser_oacc_parallel, c_parser_oacc_update)
263 (c_parser_oacc_wait): New functions.
264 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
265 (c_finish_oacc_data): New prototypes.
266 * c-typeck.c: Include "gomp-constants.h".
267 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
268 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
269 OMP_CLAUSE_SET_MAP_KIND.
270 (c_finish_oacc_parallel, c_finish_oacc_kernels)
271 (c_finish_oacc_data): New functions.
272 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
273 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
274 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
275 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
276 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
277 GOMP_MAP_FORCE_DEVICEPTR.
278
279 2015-01-09 Michael Collison <michael.collison@linaro.org>
280
281 * c-array-notation.c: Include hash-set.h, machmode.h,
282 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
283 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
284 * c-aux-info.c: Ditto.
285 * c-convert.c: Ditto.
286 * c-decl.c: Ditto.
287 * c-errors.c: Ditto.
288 * c-lang.c: Dittoxs.
289 * c-objc-common.c: Ditto.
290 * c-parser.c: Ditto.
291 * c-typeck.c: Include hash-set.h, machmode.h,
292 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
293 fold-const.h, wide-int.h, inchash.h, real.h and
294 fixed-value.h due to flattening of tree.h.
295
296 2015-01-07 Marek Polacek <polacek@redhat.com>
297
298 PR c/64417
299 * c-typeck.c (process_init_element): Disallow initialization of
300 a flexible array member with a string constant if the structure
301 is in an array.
302
303 2015-01-05 Jakub Jelinek <jakub@redhat.com>
304
305 PR sanitizer/64344
306 * c-typeck.c (convert_for_assignment, c_finish_return): For
307 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
308 types also set in_late_binary_op around convert call.
309 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
310 to integral type casts, if not in_late_binary_op, pass c_fully_fold
311 result on expr as last argument to ubsan_instrument_float_cast,
312 if in_late_binary_op, don't use c_save_expr but save_expr.
313
314 Update copyright years.
315
316 2015-01-05 Marek Polacek <polacek@redhat.com>
317
318 PR c/64423
319 * c-typeck.c (build_array_ref): Pass loc down to
320 warn_array_subscript_with_type_char.
321
322 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
323
324 * c-typeck.c: New behavious for pointers to arrays with qualifiers
325 (common-pointer-type): For pointers to arrays take qualifiers from
326 element type.
327 (build_conditional_expr): Add warnings for lost qualifiers.
328 (comp-target-types): Allow pointers to arrays with different qualifiers.
329 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
330 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
331 to PEDWARN_FOR_QUALIFIERS.
332
333 2014-12-17 Jakub Jelinek <jakub@redhat.com>
334
335 PR sanitizer/64289
336 * c-convert.c: Include ubsan.h.
337 (convert): For real -> integral casts and
338 -fsanitize=float-cast-overflow don't call convert_to_integer, but
339 instead instrument the float cast directly.
340
341 2014-11-29 Jakub Jelinek <jakub@redhat.com>
342
343 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
344 c_finish_stmt_expr): Remove NULL last argument from
345 create_tmp_var_raw and create_tmp_var calls.
346 * c-array-notation.c (fix_builtin_array_notation_fn,
347 build_array_notation_expr, fix_conditional_array_notations_1,
348 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
349
350 2014-11-28 Marek Polacek <polacek@redhat.com>
351
352 PR c/63862
353 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
354 convert the right operand to integer type.
355
356 2014-11-25 Marek Polacek <polacek@redhat.com>
357
358 PR c/63877
359 * c-decl.c (start_function): Disable -Wmissing-declarations warning
360 for inline functions.
361
362 2014-11-21 Jakub Jelinek <jakub@redhat.com>
363
364 PR target/63764
365 * c-typeck.c (build_array_ref): Adjust
366 convert_vector_to_pointer_for_subscript caller. If it returns true,
367 call non_lvalue_loc on the result.
368
369 2014-11-11 Richard Biener <rguenther@suse.de>
370
371 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
372 to true.
373
374 2014-11-10 Andi Kleen <ak@linux.intel.com>
375
376 PR c/60804
377 * c-parser.c (c_parser_statement_after_labels): Call
378 check_no_cilk.
379 (c_parser_if_statement): Dito.
380 (c_parser_switch_statement): Dito.
381 (c_parser_while_statement): Dito.
382 (c_parser_do_statement): Dito.
383 (c_parser_for_statement): Dito.
384 * c-typeck.c (c_finish_loop): Dito.
385
386 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
387
388 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
389 OPT_Wshift_count_overflow in the warnings.
390
391 2014-10-30 Marek Polacek <polacek@redhat.com>
392
393 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
394 print the stripped version as well, if they're not the same.
395
396 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
397
398 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
399 machine_mode.
400
401 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
402
403 * c-decl.c: Adjust include files.
404 * c-parser.c: Ditto.
405
406 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
407 Tom Tromey <tromey@redhat.com>
408
409 * c-tree.h (enum c_oracle_request): New.
410 (c_binding_oracle_function): New typedef.
411 (c_binding_oracle, c_pushtag, c_bind): Declare.
412 * c-decl.c (c_binding_oracle): New global.
413 (I_SYMBOL_CHECKED): New macro.
414 (i_symbol_binding): New function.
415 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
416 (I_TAG_CHECKED): New macro.
417 (i_tag_binding): New function.
418 (I_TAG_BINDING, I_TAG_DECL): Redefine.
419 (I_LABEL_CHECKED): New macro.
420 (i_label_binding): New function.
421 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
422 (c_print_identifier): Save and restore c_binding_oracle.
423 (c_pushtag, c_bind): New functions.
424
425 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
426
427 * c-typeck.c: Adjust include files.
428
429 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
430
431 PR c++/53061
432 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
433 initialization here...
434 (c_initialize_diagnostics): ... but here. Set defaults after
435 building pretty-printer.
436
437 2014-10-23 Marek Polacek <polacek@redhat.com>
438
439 PR c/63626
440 * c-decl.c (pop_scope): Don't print warning in external_scope.
441
442 2014-10-19 Marek Polacek <polacek@redhat.com>
443
444 PR c/63567
445 * c-typeck.c (output_init_element): Allow initializing objects with
446 static storage duration with compound literals even in C99 and add
447 pedwarn for it.
448
449 2014-10-17 Marek Polacek <polacek@redhat.com>
450
451 PR c/63567
452 * c-typeck.c (digest_init): Allow initializing objects with static
453 storage duration with compound literals even in C99 and add pedwarn
454 for it.
455
456 2014-10-17 Marek Polacek <polacek@redhat.com>
457
458 PR c/63543
459 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
460 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
461 error multiple times. Print the type.
462
463 2014-10-17 Marek Polacek <polacek@redhat.com>
464
465 PR c/63549
466 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
467 type.
468
469 2014-10-17 Marek Polacek <polacek@redhat.com>
470
471 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
472 (start_function): Use OPT_Wimplicit_int instead of 0.
473 (store_parm_decls_oldstyle): Likewise.
474
475 2014-10-17 Alan Modra <amodra@gmail.com>
476
477 PR middle-end/61848
478 * c-decl.c (merge_decls): Don't merge section name or tls model
479 to newdecl symtab node, instead merge to olddecl. Override
480 existing olddecl section name. Set tls_model for all thread-local
481 vars, not just OMP thread-private ones. Remove incorrect comment.
482
483 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
484
485 * c-decl.c: Adjust include files.
486
487 2014-10-14 DJ Delorie <dj@redhat.com>
488
489 * c-parser.c (c_parse_init): Add RID entries for each __intN.
490 (c_token_starts_typename): Check all __intN, not just __int128.
491 (c_token_starts_declspecs): Likewise.
492 (c_parser_declspecs): Likewise.
493 (c_parser_attribute_any_word): Likewise.
494 (c_parser_objc_selector): Likewise.
495 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
496 (struct c_declspecs): Add int_n_idx field to record *which* __intN
497 is specified.
498 * c-decl.c (declspecs_add_type): Check for all __intN, not just
499 __int128.
500 (finish_declspecs): Likewise.
501
502 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
503
504 * c-parser.c (c_parser_all_labels): New function to replace
505 the duplicate code.
506 (c_parser_statement): Call the new function.
507
508 2014-10-09 Marek Polacek <polacek@redhat.com>
509
510 PR c/63480
511 * c-typeck.c (pop_init_level): Don't warn about initializing
512 with { }.
513
514 2014-10-07 Marek Polacek <polacek@redhat.com>
515
516 PR c/59717
517 * c-decl.c (header_for_builtin_fn): New function.
518 (implicitly_declare): Suggest which header to include.
519
520 2014-10-07 Marek Polacek <polacek@redhat.com>
521
522 * c-convert.c (convert): Use error_operand_p.
523 * c-typeck.c (require_complete_type): Likewise.
524 (really_atomic_lvalue): Likewise.
525 (digest_init): Likewise.
526 (handle_omp_array_sections_1): Likewise.
527
528 2014-10-03 Marek Polacek <polacek@redhat.com>
529
530 PR c/63453
531 * c-decl.c (pop_scope): Don't warn about "inline function declared
532 but never defined" for functions marked with gnu_inline attribute.
533
534 2014-09-25 Jakub Jelinek <jakub@redhat.com>
535
536 PR c++/63249
537 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
538 on low_bound and length.
539
540 2014-09-24 Marek Polacek <polacek@redhat.com>
541
542 PR c/61405
543 PR c/53874
544 * c-parser.c: Don't define CPP_KEYWORD.
545 (c_parser_switch_statement): Pass original type to c_finish_case.
546 * c-tree.h (c_finish_case): Update declaration.
547 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
548 conditionally to c_do_switch_warnings.
549
550 2014-09-03 Marek Polacek <polacek@redhat.com>
551
552 PR c/62024
553 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
554 conversions.
555
556 2014-09-02 Jakub Jelinek <jakub@redhat.com>
557 Balaji V. Iyer <balaji.v.iyer@intel.com>
558 Igor Zamyatin <igor.zamyatin@intel.com>
559
560 * c-parser.c (c_parser_cilk_for): New function.
561 (c_parser_cilk_grainsize): Likewise.
562 (c_get_temp_regvar): Likewise.
563 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
564 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
565 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
566 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
567 case.
568
569 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
570
571 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
572 with using HOST_WIDE_INT without truncation to 'int'
573
574 2014-08-22 Marek Polacek <polacek@redhat.com>
575
576 PR c++/62199
577 * c-typeck.c (parser_build_binary_op): Adjust call to
578 warn_logical_not_parentheses.
579
580 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
581
582 PR other/62008
583 * c-parser.c (c_parser_array_notation): Check for correct
584 type of an array added.
585
586 2014-08-19 Marek Polacek <polacek@redhat.com>
587
588 PR c++/62153
589 * c-typeck.c (build_binary_op): If either operand of a comparison
590 is a boolean expression, call maybe_warn_bool_compare.
591
592 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
593
594 PR c/45584
595 * c-typeck.c (build_c_cast): Do a conversion even when the
596 TYPE_MAIN_VARIANTs are the same.
597
598 2014-08-19 Marek Polacek <polacek@redhat.com>
599
600 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
601 pedwarn_c99 instead of pedwarn.
602 (grokfield): Likewise.
603 (warn_defaults_to): New function.
604 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
605 Unconditionally call pedwarn_c99 instead of pedwarn.
606 (start_function): Call warn_defaults_to instead of pedwarn_c99.
607 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
608 check flag_isoc11 before.
609 * c-errors.c (pedwarn_c99): Change the return type to bool.
610 Handle -Wc99-c11-compat.
611 * c-parser.c (disable_extension_diagnostics): Handle
612 warn_c99_c11_compat.
613 (restore_extension_diagnostics): Likewise.
614 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
615 instead of pedwarn, don't check flag_isoc11 before.
616 (c_parser_declspecs): Likewise.
617 (c_parser_alignas_specifier): Likewise.
618 (c_parser_alignof_expression): Likewise.
619 (c_parser_generic_selection): Likewise.
620 * c-tree.h (pedwarn_c99): Update declaration.
621 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
622 of pedwarn_c99.
623
624 2014-08-19 Marek Polacek <polacek@redhat.com>
625
626 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
627 to pedwarn_c90.
628 * c-errors.c: Include "opts.h".
629 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
630 * c-parser.c (disable_extension_diagnostics): Handle negative value
631 of warn_c90_c99_compat, too.
632 (restore_extension_diagnostics): Likewise.
633 (c_parser_compound_statement_nostart): Pass
634 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
635
636 2014-08-12 Marek Polacek <polacek@redhat.com>
637
638 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
639 Add pedwarn.
640 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
641 Likewise.
642 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
643
644 2014-08-10 Marek Polacek <polacek@redhat.com>
645
646 PR c/51849
647 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
648 Call pedwarn_c90 instead of pedwarn.
649 (check_bitfield_type_and_width): Likewise.
650 (declspecs_add_qual): Likewise.
651 (declspecs_add_type): Likewise.
652 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
653 Adjust to only call pedwarn_c90.
654 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
655 pedwarn_c90 instead of pedwarn.
656 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
657 * c-parser.c (disable_extension_diagnostics): Handle
658 warn_c90_c99_compat.
659 (restore_extension_diagnostics): Likewise.
660 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
661 pedwarn_c90 instead of pedwarn.
662 (c_parser_initelt): Likewise.
663 (c_parser_postfix_expression): Likewise.
664 (c_parser_postfix_expression_after_paren_type): Likewise.
665 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
666 * c-tree.h: Fix formatting.
667 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
668 pedwarn_c90 instead of pedwarn.
669
670 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
671
672 * c-typeck.c: Remove include of pointer-set.h.
673
674 2014-08-07 Marek Polacek <polacek@redhat.com>
675
676 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
677
678 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
679
680 * c-typeck.c: Use hash_map instead of pointer_map.
681
682 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
683
684 * c-decl.c: Use hash_set instead of pointer_set.
685
686 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
687
688 PR middle-end/61455
689 * c-array-notation.c (expand_array_notations): Handling
690 of DECL_EXPR added.
691
692 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
693
694 PR c++/60517
695 * c-typeck.c (c_finish_return): Return 0 instead of the address of
696 a local variable.
697
698 2014-07-30 Tom Tromey <tromey@redhat.com>
699
700 * c-typeck.c (struct constructor_stack) <designator_depth>: New
701 field.
702 (really_start_incremental_init, push_init_level): Initialize
703 designator_depth.
704 (pop_init_level): Set global designator_depth.
705 (process_init_element): Check for designated_init attribute.
706
707 2014-07-20 Marek Polacek <polacek@redhat.com>
708
709 PR c/61852
710 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
711 (implicitly_declare): Pass location to implicit_decl_warning.
712
713 2014-07-14 Jakub Jelinek <jakub@redhat.com>
714
715 PR middle-end/61294
716 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
717 If non-NULL, call c_parser_check_literal_zero.
718 (c_parser_check_literal_zero): New function.
719 (c_parser_postfix_expression_after_primary): Adjust
720 c_parser_expr_list caller, handle -Wmemset-transposed-args.
721
722 2014-07-06 Marek Polacek <polacek@redhat.com>
723
724 PR c/6940
725 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
726 * c-tree.h (C_ARRAY_PARAMETER): Define.
727 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
728 function parameter.
729
730 2014-07-02 Jan Hubicka <hubicka@ucw.cz>
731 Chen Gang <gang.chen.5i5j@gmail.com>
732
733 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
734 releasing symbol.
735
736 2014-07-01 Marek Polacek <polacek@redhat.com>
737
738 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
739 instead of 0 to WARN_FOR_ASSIGNMENT.
740
741 2014-07-01 Marek Polacek <polacek@redhat.com>
742
743 PR c/58286
744 * c-typeck.c (convert_for_assignment): Pass
745 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
746
747 2014-06-30 Marek Polacek <polacek@redhat.com>
748
749 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
750 has no_sanitize_undefined attribute.
751
752 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
753
754 PR middle-end/57541
755 * c-array-notation.c (fix_builtin_array_notation_fn):
756 Check for 0 arguments in builtin call. Check that bultin argument is
757 correct.
758 * c-parser.c (c_parser_array_notation): Check for incorrect initial
759 index.
760
761 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
762
763 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
764 qualifiers in __auto_type for atomic types.
765 (c_parser_typeof_specifier): Discard all type qualifiers in
766 __typeof__ for atomic types.
767
768 2014-06-25 Marek Polacek <polacek@redhat.com>
769
770 PR c/61162
771 * c-parser.c (c_parser_statement_after_labels): Pass the location of
772 the return expression to c_finish_return.
773
774 2014-06-25 Jakub Jelinek <jakub@redhat.com>
775
776 * c-typeck.c (c_finish_omp_clauses): Make sure
777 OMP_CLAUSE_LINEAR_STEP has correct type.
778
779 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
780
781 * c-decl.c: Adjust.
782
783 2014-06-24 Jakub Jelinek <jakub@redhat.com>
784
785 * c-parser.c (c_parser_omp_for_loop): For
786 #pragma omp parallel for simd move lastprivate clause from parallel
787 to for rather than simd.
788
789 2014-06-23 Marek Polacek <polacek@redhat.com>
790
791 * c-typeck.c (parser_build_binary_op): Don't call
792 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
793
794 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
795
796 * c-parser.c (c_parser_omp_threadprivate): Likewise.
797 * c-decl.c (merge_decls): Likewise.
798
799 2014-06-09 Marek Polacek <polacek@redhat.com>
800
801 PR c/36446
802 * c-typeck.c (error_init): Call inform instead of error_at.
803 (pedwarn_init): Call inform instead of pedwarn.
804 (warning_init): Call inform instead of warning_at.
805
806 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
807
808 * c-decl.c (merge_decls): Use set_decl_section_name.
809 (duplicate_decls): Remove node if it exists.
810
811 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
812
813 PR c/53119
814 * c-typeck.c (push_init_level, process_init_element,
815 pop_init_level): Correct check for zero initialization, move
816 missing brace warning to respect zero initialization.
817
818 2014-06-05 Marek Polacek <polacek@redhat.com>
819
820 PR c/56724
821 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
822
823 2014-06-05 Marek Polacek <polacek@redhat.com>
824
825 PR c/49706
826 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
827 on the left hand side operand of a comparison.
828
829 2014-06-05 Marek Polacek <polacek@redhat.com>
830
831 PR c/48062
832 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
833 Print note only if the warning was printed.
834
835 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
836
837 PR c/58942
838 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
839 with a pointer.
840
841 2014-06-03 Marek Polacek <polacek@redhat.com>
842
843 PR c/60439
844 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
845 c_start_case.
846 * c-tree.h (c_start_case): Update.
847 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
848 switch condition has boolean value.
849
850 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
851
852 * c-decl.c: Include builtins.h.
853 * c-parser.c: Likewise.
854
855 2014-05-27 Marek Polacek <polacek@redhat.com>
856
857 PR c/56724
858 * c-typeck.c (convert_arguments): Get location of a parameter. Change
859 error and warning calls to error_at and warning_at. Pass location of
860 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
861 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
862 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
863
864 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
865
866 PR c/61191
867 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
868 function parameters.
869
870 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
871
872 * c-decl.c (merge_decls): Preserve symtab node pointers.
873 (duplicate_decls): Free new decl.
874
875 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
876
877 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
878 initialization.
879
880 * c-parser.c (c_parser_omp_target): Return bool values.
881
882 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
883
884 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
885 num_teams_loc variable to num_thread_limit_loc.
886
887 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
888
889 * c-array-notation.c (expand_array_notations): Use void_node
890 instead of void_zero_node.
891
892 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
893
894 * c-decl.c (finish_struct): Adjust.
895 (finish_enum): Likewise.
896 (bind): Adjust.
897 (record_inline_static): Likewise.
898 (push_scope): Likewise.
899 (make_label): Likewise.
900 (lookup_label_for_goto): Likewise.
901 (finish_struct): Likewise.
902 (finish_enum): Likewise.
903 (store_parm_decls): Likewise.
904 (c_push_function_context): Likewise.
905 * c-lang.h: Remove usage of variable_size gty attribute.
906 * c-parser.c (c_parse_init): Adjust.
907 (c_parse_file): Likewise.
908
909 2014-05-13 Marek Polacek <polacek@redhat.com>
910
911 PR c/61162
912 * c-typeck.c (convert_for_assignment): Pass location to
913 WARN_FOR_ASSIGNMENT instead of input_location.
914
915 2014-05-10 Marek Polacek <polacek@redhat.com>
916
917 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
918 maybe_warn_string_init.
919 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
920 maybe_warn_string_init.
921 * c-tree.h (maybe_warn_string_init): Update declaration.
922 * c-typeck.c (maybe_warn_string_init): Add location parameter.
923 Call pedwarn_init with loc instead of with input_location.
924 (digest_init): Pass init_loc to maybe_warn_string_init.
925 (pop_init_level): Call pedwarn_init with loc instead of with
926 input_location.
927 (set_init_index): Likewise.
928 (process_init_element): Likewise.
929
930 2014-05-09 Marek Polacek <polacek@redhat.com>
931
932 PR c/61096
933 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
934 (c_parser_initelt): Pass location to set_init_label. Pass array index
935 location to set_init_index.
936 * c-tree.h (push_init_level): Update declaration.
937 (pop_init_level): Likewise.
938 (set_init_index): Likewise.
939 (set_init_label): Likewise.
940 * c-typeck.c (error_init): Add location parameter. Call error_at
941 instead of error.
942 (digest_init): Pass init_loc to error_init.
943 (really_start_incremental_init):
944 (push_init_level): Add location parameter. Pass loc to pop_init_level
945 and error_init.
946 (pop_init_level): Likewise.
947 (set_designator): Add location parameter. Pass loc to pop_init_level,
948 push_init_level, and error_init.
949 (set_init_index): Add location parameter. Pass loc to error_init and
950 set_designator.
951 (set_init_label): Likewise.
952 (output_init_element): Pass loc to error_init.
953 (process_init_element): Pass loc to error_init, pop_init_level,
954 pedwarn_init, and push_init_level.
955
956 2014-05-09 Marek Polacek <polacek@redhat.com>
957
958 PR c/50459
959 * c-parser.c (c_parser_attributes): Parse the arguments as an
960 expression-list if the attribute takes identifier.
961
962 2014-05-08 Marek Polacek <polacek@redhat.com>
963
964 PR c/61053
965 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
966 TYPE_ALIGN_UNIT.
967
968 2014-05-08 Marek Polacek <polacek@redhat.com>
969
970 PR c/61077
971 * c-decl.c (start_function): Warn for _Atomic-qualified return type
972 of main.
973
974 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
975 Mike Stump <mikestump@comcast.net>
976 Richard Sandiford <rdsandiford@googlemail.com>
977
978 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
979 (finish_enum): Use wide-int interfaces.
980 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
981 * c-typeck.c (build_c_cast): Likewise.
982 (set_nonincremental_init_from_string): Likewise.
983 (c_tree_equal): Likewise.
984
985 2014-05-02 Marek Polacek <polacek@redhat.com>
986
987 PR c/25801
988 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
989 Return size_one_node when the type is not complete.
990 (pointer_diff): Remove comment.
991 (build_unary_op): Improve error messages.
992
993 2014-05-02 Marek Polacek <polacek@redhat.com>
994
995 * c-typeck.c (c_finish_return): Separate warning_at calls.
996
997 2014-05-02 Marek Polacek <polacek@redhat.com>
998
999 * c-tree.h (error_init): Remove declaration.
1000 (pedwarn_init): Likewise.
1001 * c-typeck.c (error_init): Make static and move above.
1002 (pedwarn_init): Likewise.
1003 (warning_init): Move above.
1004 (maybe_warn_string_init): Likewise.
1005
1006 2014-05-01 Jeff Law <law@redhat.com>
1007
1008 Revert:
1009
1010 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1011 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1012 avoid goto.
1013
1014 2014-05-02 Marek Polacek <polacek@redhat.com>
1015
1016 PR c/60784
1017 * c-typeck.c (push_init_level): Set constructor_designated to
1018 p->designated for structures.
1019
1020 2014-05-01 Marek Polacek <polacek@redhat.com>
1021
1022 PR c/60915
1023 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1024 function-definition has an attribute after the declarator.
1025
1026 2014-05-01 Marek Polacek <polacek@redhat.com>
1027
1028 PR c/60257
1029 * c-typeck.c (warning_init): Add location_t parameter. Call
1030 warning_at instead of warning.
1031 (push_init_level): Pass input_location to warning_init.
1032 (add_pending_init): Add location_t parameter. Pass loc to
1033 warning_init.
1034 (set_nonincremental_init): Pass input_location to add_pending_init.
1035 (set_nonincremental_init_from_string): Likewise.
1036 (output_init_element): Pass loc to warning_init and to
1037 add_pending_init.
1038
1039 2014-05-01 Marek Polacek <polacek@redhat.com>
1040
1041 PR c/43395
1042 * c-typeck.c (c_finish_return): Distinguish between label and variable
1043 when warning about returning local address.
1044
1045 2014-05-01 Marek Polacek <polacek@redhat.com>
1046
1047 PR c/29467
1048 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1049 in C89 mode.
1050
1051 2014-05-01 Marek Polacek <polacek@redhat.com>
1052
1053 PR c/43245
1054 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1055 instead of 0 to WARN_FOR_QUALIFIERS.
1056
1057 2014-05-01 Marek Polacek <polacek@redhat.com>
1058
1059 PR c/56989
1060 * c-typeck.c (default_conversion): Use better location for
1061 error call.
1062
1063 2014-04-30 Marek Polacek <polacek@redhat.com>
1064
1065 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1066 also when SANITIZE_FLOAT_DIVIDE is on.
1067
1068 2014-04-30 Marek Polacek <polacek@redhat.com>
1069
1070 PR c/60139
1071 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1072 and pedwarn_init. Use loc insted of input_location.
1073
1074 2014-04-30 Marek Polacek <polacek@redhat.com>
1075
1076 PR c/60351
1077 * c-typeck.c (build_binary_op): Use location when warning about
1078 shift count.
1079
1080 2014-04-25 Marek Polacek <polacek@redhat.com>
1081
1082 PR c/18079
1083 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1084 always_inline/noinline and hot/cold attributes.
1085
1086 2014-04-25 Marek Polacek <polacek@redhat.com>
1087
1088 PR c/60114
1089 * c-parser.c (c_parser_initelt): Pass input_location to
1090 process_init_element.
1091 (c_parser_initval): Pass loc to process_init_element.
1092 * c-tree.h (process_init_element): Adjust declaration.
1093 * c-typeck.c (push_init_level): Pass input_location to
1094 process_init_element.
1095 (pop_init_level): Likewise.
1096 (set_designator): Likewise.
1097 (output_init_element): Add location_t parameter. Pass loc to
1098 digest_init.
1099 (output_pending_init_elements): Pass input_location to
1100 output_init_element.
1101 (process_init_element): Add location_t parameter. Pass loc to
1102 output_init_element.
1103
1104 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1105
1106 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1107 atomic-clause, allow comma in between atomic-clause and
1108 seq_cst.
1109
1110 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1111
1112 PR c/59073
1113 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1114 fails, don't set OM_PARALLEL_COMBINED and return NULL.
1115
1116 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1117
1118 PR middle-end/60469
1119 * c-array-notation.c (fix_builtin_array_notation_fn): Use
1120 create_tmp_var instead build_decl for creating temps.
1121 (build_array_notation_expr): Likewise.
1122 (fix_conditional_array_notations_1): Likewise.
1123 (fix_array_notation_expr): Likewise.
1124 (fix_array_notation_call_expr): Likewise.
1125
1126 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1127
1128 PR c++/60689
1129 * c-tree.h (c_build_function_call_vec): New prototype.
1130 * c-typeck.c (build_function_call_vec): Don't call
1131 resolve_overloaded_builtin here.
1132 (c_build_function_call_vec): New wrapper function around
1133 build_function_call_vec. Call resolve_overloaded_builtin here.
1134 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1135 Call c_build_function_call_vec instead of build_function_call_vec.
1136 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1137 * c-decl.c (finish_decl): Likewise.
1138
1139 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1140
1141 PR c/55383
1142 * c-typeck.c: Use correct format string in cast-qual warning
1143
1144 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
1145
1146 * c-decl.c (c_decl_attributes): Use
1147 lang_hooks.types.omp_mappable_type.
1148 * c-typeck.c (c_finish_omp_clauses): Likewise.
1149
1150 2014-03-06 Marek Polacek <polacek@redhat.com>
1151
1152 PR c/60197
1153 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1154 of checking tree code.
1155
1156 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1157
1158 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1159 (c_parser_parameter_declaration): Likewise.
1160
1161 2014-02-19 Marek Polacek <polacek@redhat.com>
1162
1163 PR c/60195
1164 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1165 Call mark_exp_read on exp.value.
1166 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
1167 TREE_ADDRESSABLE on old instead of val.
1168 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1169
1170 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1171
1172 * c-parser.c (c_parser_get_builtin_args): Replace calls to
1173 C_EXPR_APPEND by vec_safe_push.
1174 * c-tree.h (C_EXPR_APPEND): Remove.
1175
1176 2014-01-31 Marek Polacek <polacek@redhat.com>
1177
1178 PR c/59963
1179 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1180 build_function_call_vec.
1181 (build_function_call): Likewise.
1182 (build_atomic_assign): Likewise.
1183 (build_function_call_vec): Add arg_loc parameter. Use it.
1184 (convert_arguments): Likewise.
1185 (convert_for_assignment): Rename rhs_loc to expr_loc.
1186 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1187 (c_parser_objc_keywordexpr): Likewise.
1188 (c_parser_postfix_expression_after_primary): Call
1189 build_function_call_vec with expr_loc rather than op_loc.
1190 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
1191 build_function_call_vec.
1192 (c_parser_expr_list): Add locations parameter. Fill it with locations
1193 of function arguments.
1194 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1195
1196 2014-01-30 Marek Polacek <polacek@redhat.com>
1197
1198 PR c/59940
1199 * c-typeck.c (build_function_call_vec): Use loc parameter.
1200 (convert_arguments): Add location parameter. Use it.
1201 (ep_convert_and_check): Likewise.
1202 (build_atomic_assign): Adjust convert_for_assignment call.
1203 (build_modify_expr): Likewise.
1204 (digest_init): Likewise.
1205 (c_finish_return): Likewise.
1206 (build_conditional_expr): Adjust ep_convert_and_check calls.
1207 (convert_for_assignment): Add rhs_loc parameter. Use it.
1208 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1209 calls.
1210
1211 2014-01-30 Richard Biener <rguenther@suse.de>
1212
1213 PR c/59905
1214 * c-typeck.c (build_function_call_vec): Do not replace calls
1215 to a function via an incompatible type with a runtime abort.
1216
1217 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1218
1219 * c-parser.c (c_parser_declaration_or_fndef): Replaced
1220 flag_enable_cilkplus with flag_cilkplus.
1221 (c_parser_direct_declarator_inner): Likewise.
1222 (c_parser_attribute_any_word): Likewise.
1223 (c_parser_attributes): Likewise.
1224 (c_parser_compound_statement): Likewise.
1225 (c_parser_statement_after_labels): Likewise.
1226 (c_parser_if_statement): Likewise.
1227 (c_parser_switch_statement): Likewise.
1228 (c_parser_do_statement): Likewise.
1229 (c_parser_for_statement): Likewise.
1230 (c_parser_unary_expression): Likewise.
1231 (c_parser_postfix_expression): Likewise.
1232 (c_parser_postfix_expression_after_primary): Likewise.
1233 (c_parser_postfix_expression_after_primary): Likewise.
1234 (c_parser_omp_clause_name): Likewise.
1235 (c_finish_omp_declare_simd): Likewise.
1236 (c_parser_cilk_verify_simd): Likewise.
1237 * c-typeck.c (build_array_ref): Likewise.
1238 (build_function_call_vec): Likewise.
1239 (convert_arguments): Likewise.
1240 (build_compound_expr): Likewise.
1241 (c_finish_return): Likewise.
1242 (c_finish_if_stmt): Likewise.
1243 (c_finish_loop): Likewise.
1244 (build_binary_op): Likewise.
1245
1246 2014-01-23 Marek Polacek <polacek@redhat.com>
1247
1248 PR c/59846
1249 * c-typeck.c (parser_build_binary_op): Use location instead of
1250 input_location.
1251 (build_binary_op): Pass location to shorten_compare.
1252
1253 2014-01-23 Marek Polacek <polacek@redhat.com>
1254
1255 PR c/58346
1256 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1257 an empty aggregate.
1258
1259 2014-01-23 Marek Polacek <polacek@redhat.com>
1260
1261 PR c/59871
1262 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1263 of a comma expression.
1264 (emit_side_effect_warnings): Likewise.
1265
1266 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1267
1268 PR c/59825
1269 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1270 function to use walk_tree and moved a lot of its functionality to
1271 expand_array_notations.
1272 (expand_array_notations): New function.
1273
1274 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1275
1276 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1277 attribute an attribute without value.
1278
1279 2014-01-23 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR middle-end/58809
1282 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1283 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1284
1285 2014-01-22 Marek Polacek <polacek@redhat.com>
1286
1287 PR c/59891
1288 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1289 of remove_c_maybe_const_expr on op1 and op2.
1290
1291 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1292
1293 PR c/58943
1294 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1295 effects, preevaluate rhs using SAVE_EXPR first.
1296
1297 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
1298
1299 PR c++/59631
1300 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1301 statements with if-elseif statements.
1302
1303 2014-01-06 Marek Polacek <polacek@redhat.com>
1304
1305 PR c/57773
1306 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1307 defined bit-field types only in ISO C.
1308
1309 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1310
1311 Update copyright years
1312
1313 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1314
1315 * c-array-notation.c: Use the standard form for the copyright notice.
1316
1317 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1318
1319 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1320 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1321 field in parser is not empty. If not-empty, call the function
1322 c_parser_finish_omp_declare_simd.
1323 (c_parser_cilk_clause_vectorlength): Modified function to be shared
1324 between SIMD-enabled functions and #pragma simd. Added new parameter.
1325 (c_parser_cilk_all_clauses): Modified the usage of the function
1326 c_parser_cilk_clause_vectorlength as mentioned above.
1327 (c_parser_cilk_simd_fn_vector_attrs): New function.
1328 (c_finish_cilk_simd_fn_tokens): Likewise.
1329 (is_cilkplus_vector_p): Likewise.
1330 (c_parser_omp_clause_name): Added checking for "vectorlength,"
1331 "nomask," and "mask" strings in clause name.
1332 (c_parser_omp_all_clauses): Added 3 new case statements:
1333 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1334 PRAGMA_CILK_CLAUSE_NOMASK.
1335 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
1336 check for vector attribute and if so call the function
1337 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
1338 called the function c_finish_cilk_simd_fn_tokens.
1339 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1340 parser field is non-empty. If so, parse them as you would parse
1341 the omp declare simd pragma.
1342 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1343 Added a check when step is a parameter and flag it as error.
1344 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1345 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1346 pragma_omp_clause.
1347
1348 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1349
1350 * c-parser.c (c_parser_omp_parallel): Fix description.
1351
1352 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1353
1354 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1355 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1356 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1357 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1358
1359 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1360
1361 PR c/52023
1362 * c-parser.c (c_parser_alignas_specifier): Use
1363 c_sizeof_or_alignof_type instead of c_alignof.
1364 (c_parser_alignof_expression): Likewise, with min_alignof
1365 parameter depending on alignof spelling used.
1366
1367 2013-12-04 Marek Polacek <polacek@redhat.com>
1368
1369 PR c/54113
1370 * c-decl.c (start_function): Don't warn for missing prototype for
1371 inline functions.
1372
1373 2013-12-03 Marek Polacek <polacek@redhat.com>
1374
1375 PR c/59351
1376 * c-decl.c (build_compound_literal): Allow compound literals with
1377 empty initial value.
1378
1379 2013-12-02 Joseph Myers <joseph@codesourcery.com>
1380
1381 PR c/58235
1382 * c-typeck.c (build_modify_expr): Diagnose assignment to
1383 expression with array type.
1384
1385 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1386
1387 PR c/42262
1388 * c-typeck.c (process_init_element): Do not treat a string as
1389 initializing a whole array when used with a designator for an
1390 individual element.
1391
1392 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1393
1394 PR c/57574
1395 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1396 an inline function following a static declaration.
1397
1398 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR c/59310
1401 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1402 to p_name before calling c_parser_omp_teams instead of after.
1403 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1404 argument. Remove unused p_name variable.
1405
1406 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1407 Jakub Jelinek <jakub@redhat.com>
1408
1409 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1410 external_scope is NULL.
1411
1412 2013-11-27 Tom de Vries <tom@codesourcery.com>
1413 Marc Glisse <marc.glisse@inria.fr>
1414
1415 PR c++/59032
1416 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1417
1418 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1419
1420 * c-typeck.c: Add required include files from gimple.h.
1421
1422 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1423
1424 * c-decl.c (define_label, shadow_tag_warned)
1425 (check_bitfield_type_and_width, grokdeclarator, grokparms,
1426 store_parm_decls_newstyle, store_parm_decls_oldstyle)
1427 (declspecs_add_type): Remove use of in_system_header macro.
1428 * c-parser.c (c_parser_unary_expression): Likewise.
1429 * c-typeck.c (store_init_value, process_init_element)
1430 (c_start_case): Likewise.
1431
1432 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1433 macro.
1434
1435 * c-parser.c (c_parser_set_source_position_from_token): Remove
1436 reference to in_system_header from comment.
1437
1438 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1439
1440 * c-decl.c (grokdeclarator): Update comment to refer to
1441 tree_to_[su]hwi rather than tree_low_cst.
1442
1443 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1444
1445 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1446 tree_to_uhwi throughout.
1447
1448 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1449
1450 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1451 throughout.
1452
1453 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1454
1455 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1456 throughout.
1457
1458 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1459
1460 * c-parser.c (c_parser_cilk_simd): New.
1461 (c_parser_cilk_verify_simd): New.
1462 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1463 (c_parser_omp_for_loop): Add case for NE_EXPR.
1464 Set c_break_label for CILK_SIMD.
1465 (c_parser_cilk_clause_vectorlength): New.
1466 (c_parser_cilk_clause_linear): New.
1467 (c_parser_cilk_clause_name): New.
1468 (c_parser_cilk_all_clauses): New.
1469 * c-typeck.c (build_unary_op): Pass location argument to
1470 readonly_error.
1471 (build_modify_expr): Same.
1472 (build_asm_expr): Same.
1473 (c_finish_bc_stmt): Error on break/continue in loops.
1474
1475 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1476
1477 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1478
1479 2013-11-14 Diego Novillo <dnovillo@google.com>
1480
1481 * c-decl.c: Include print-tree.h.
1482 Include stor-layout.h.
1483 Include varasm.h.
1484 Include attribs.h.
1485 Include stringpool.h.
1486 * c-lang.c: Include fold-const.h.
1487 * c-parser.c: Include stringpool.h.
1488 Include attribs.h.
1489 Include stor-layout.h.
1490 Include varasm.h.
1491 Include trans-mem.h.
1492 * c-typeck.c: Include stor-layout.h.
1493 Include trans-mem.h.
1494 Include varasm.h.
1495 Include stmt.h.
1496
1497 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1498
1499 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1500 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1501 __auto_type.
1502 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1503 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1504 RID_AUTO_TYPE.
1505 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1506 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1507 (c_parser_declarator, c_parser_direct_declarator_inner)
1508 (c_parser_parameter_declaration, c_parser_type_name): All callers
1509 changed.
1510 (c_parser_declaration_or_fndef): Handle declarations with type
1511 determined from the initializer.
1512
1513 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1514
1515 * c-typeck.c: Include gimplify.h.
1516
1517 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1518
1519 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1520 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1521 comment.
1522 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1523 or _Thread_local as appropriate in diagnostics.
1524 (build_null_declspecs): Initialize ret->thread_gnu_p.
1525 (declspecs_add_scspec): Handle either __thread or _Thread_local
1526 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
1527 pedantic. Do not disallow _Thread_local extern and _Thread_local
1528 static.
1529
1530 2013-11-07 Joseph Myers <joseph@codesourcery.com>
1531 Andrew MacLeod <amacleod@redhat.com>
1532
1533 * c-aux-info.c (gen_type): Handle atomic qualifier.
1534 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1535 qualifiers when compating types.
1536 (shadow_tag_warned): Handle atomic_p in declspecs.
1537 (quals_from_declspecs): Likewise.
1538 (start_decl): Use c_type_promotes_to when promoting argument
1539 types.
1540 (grokdeclarator): Handle _Atomic.
1541 (get_parm_info): Diagnose any qualifier on "void" as only
1542 parameter.
1543 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1544 comparing types. Use c_type_promotes_to when promoting argument
1545 types.
1546 (finish_function): Use c_type_promotes_to when promoting argument
1547 types.
1548 (build_null_declspecs): Handle atomic_p in declspecs.
1549 (declspecs_add_qual): Handle RID_ATOMIC.
1550 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1551 (c_token_starts_declspecs): Handle RID_ATOMIC.
1552 (c_parser_declspecs): Handle atomic type specifiers and
1553 qualifiers.
1554 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1555 from types of expressions with atomic type.
1556 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1557 (c_parser_attribute_any_word): Handle RID_ATOMIC.
1558 (c_parser_initializer, c_parser_initelt, c_parser_initval)
1559 (c_parser_statement_after_labels, c_parser_switch_statement)
1560 (c_parser_for_statement, c_parser_expr_no_commas)
1561 (c_parser_conditional_expression, c_parser_binary_expression)
1562 (c_parser_cast_expression, c_parser_unary_expression)
1563 (c_parser_postfix_expression)
1564 (c_parser_postfix_expression_after_primary, c_parser_expression):
1565 Use convert_lvalue_to_rvalue.
1566 (c_parser_expression_conv, c_parser_expr_list): Document
1567 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
1568 (c_parser_objc_synchronized_statement): Use
1569 convert_lvalue_to_rvalue.
1570 (c_parser_objc_selector): Handle RID_ATOMIC.
1571 (c_parser_objc_receiver, c_parser_array_notation): Use
1572 convert_lvalue_to_rvalue.
1573 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1574 _Atomic (type-name).
1575 (struct c_declspecs): Add atomic_p field.
1576 (convert_lvalue_to_rvalue): Declare.
1577 * c-typeck.c (c_type_promotes_to): Promote atomic types to
1578 corresponding atomic types.
1579 (qualify_type): Don't add _Atomic qualifiers from second argument.
1580 (comp_target_types): Do not allow _Atomic mismatches.
1581 (type_lists_compatible_p): Do not remove atomic qualifiers when
1582 comparing types.
1583 (really_atomic_lvalue, convert_lvalue_to_rvalue)
1584 (build_atomic_assign): New functions.
1585 (build_unary_op): Use build_atomic_assign for atomic increment and
1586 decrement.
1587 (build_conditional_expr): Do not treat _Atomic void as a qualified
1588 version of void.
1589 (build_modify_expr): Use build_atomic_assign for atomic LHS.
1590 (find_anonymous_field_with_type, convert_to_anonymous_field)
1591 (convert_for_assignment): Do not remove atomic qualifiers when
1592 comparing types.
1593 (digest_init): Do not accept initialization of arrays of atomic
1594 elements by string constants.
1595 (build_asm_expr): Use convert_lvalue_to_rvalue.
1596 (build_binary_op): Do not treat _Atomic void as a qualified
1597 version of void.
1598
1599 2013-11-06 DJ Delorie <dj@redhat.com>
1600
1601 * c-decl.c (locate_old_decl): If a previous conflicting decl is
1602 both explicit and builtin, print the location of the explicit one.
1603
1604 2013-11-05 Tobias Burnus <burnus@net-b.de>
1605
1606 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1607 c_parser_omp_distribute, c_parser_omp_teams,
1608 c_parser_omp_target, c_parser_omp_declare): Handle
1609 -fopenmp-simd.
1610
1611 2013-11-03 Marek Polacek <polacek@redhat.com>
1612
1613 * c-decl.c (grokdeclarator): Add VLA instrumentation.
1614
1615 2013-11-01 Jakub Jelinek <jakub@redhat.com>
1616
1617 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1618 check_dup_generic at the end, unless remove is true.
1619 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1620 remove = true;.
1621 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1622
1623 2013-10-31 Jakub Jelinek <jakub@redhat.com>
1624
1625 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1626 with decl that is not pointer nor array.
1627
1628 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1629
1630 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1631 a spawning function is found.
1632 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1633 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1634 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1635 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1636 case.
1637 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1638 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1639 expr.
1640 (c_finish_return): Added a check to reject _Cilk_spawn in return
1641 expression.
1642 (build_cilk_spawn): New function.
1643 (build_cilk_sync): Likewise.
1644 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1645
1646 2013-10-27 Tobias Burnus <burnus@net-b.de>
1647
1648 PR other/33426
1649 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1650 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1651 (c_parser_statement_after_labels): Update calls.
1652
1653 2013-10-24 Tobias Burnus <burnus@net-b.de>
1654
1655 PR other/33426
1656 * c-parser.c (c_parser_pragma, c_parser_for_statement):
1657 Handle PRAGMA_IVDEP.
1658 (c_parser_statement_after_labels): Update call.
1659
1660 2013-10-24 Marek Polacek <polacek@redhat.com>
1661
1662 * c-parser.c (c_parser_struct_declaration): Add a comment.
1663 (c_parser_declarator): Don't allow _Alignas here.
1664
1665 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
1666
1667 * c-parser.c: Include omp-low.h.
1668 * c-typeck.c: Likewise.
1669
1670 2013-10-17 Marek Polacek <polacek@redhat.com>
1671
1672 PR c/58267
1673 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1674 Document syntax of the array-declarator.
1675 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1676 are not permitted.
1677 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1678 (c_parser_struct_declaration): Likewise.
1679 (c_parser_declarator): Likewise.
1680 (c_parser_direct_declarator_inner): Likewise.
1681 (c_parser_parameter_declaration): Likewise.
1682 (c_parser_type_name): Likewise.
1683
1684 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1685
1686 * c-lang.h (current_omp_declare_target_attribute): New extern
1687 decl.
1688 * c-parser.c: Include c-lang.h.
1689 (struct c_parser): Change tokens to c_token *.
1690 Add tokens_buf field. Change tokens_avail type to unsigned int.
1691 (c_parser_consume_token): If parser->tokens isn't
1692 &parser->tokens_buf[0], increment parser->tokens.
1693 (c_parser_consume_pragma): Likewise.
1694 (enum pragma_context): Add pragma_struct and pragma_param.
1695 (c_parser_external_declaration): Adjust
1696 c_parser_declaration_or_fndef caller.
1697 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1698 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1699 Adjust recursive call.
1700 (c_parser_struct_or_union_specifier): Use pragma_struct instead
1701 of pragma_external.
1702 (c_parser_parameter_declaration): Use pragma_param instead of
1703 pragma_external.
1704 (c_parser_compound_statement_nostart, c_parser_label,
1705 c_parser_for_statement): Adjust
1706 c_parser_declaration_or_fndef callers.
1707 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1708 it through to c_parser_conditional_expression.
1709 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1710 pass it through to c_parser_binary_expression. Adjust recursive
1711 call.
1712 (c_parser_binary_expression): Remove prec argument, add
1713 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
1714 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1715 binop matches it, use build2 instead of parser_build_binary_op.
1716 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1717 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1718 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1719 Handle pragma_struct and pragma_param the same as pragma_external.
1720 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1721 (c_parser_omp_variable_list): Parse array sections for
1722 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1723 (c_parser_omp_clause_collapse): Fully fold collapse expression.
1724 (c_parser_omp_clause_reduction): Handle user defined reductions.
1725 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1726 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1727 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1728 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1729 c_parser_omp_clause_depend, c_parser_omp_clause_map,
1730 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1731 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1732 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1733 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
1734 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
1735 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1736 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
1737 (c_parser_omp_for_loop): Add CODE argument, pass it through
1738 to c_finish_omp_for. Change last argument to cclauses,
1739 and adjust uses to grab parallel clauses from the array of all
1740 the split clauses. Adjust c_parser_binary_expression,
1741 c_parser_declaration_or_fndef and c_finish_omp_for callers.
1742 (omp_split_clauses): New function.
1743 (c_parser_omp_simd): New function.
1744 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1745 Allow the function to be called also when parsing combined constructs,
1746 and call c_parser_omp_simd when parsing for simd.
1747 (c_parser_omp_sections_scope): If section-sequence doesn't start with
1748 #pragma omp section, require exactly one structured-block instead of
1749 sequence of statements.
1750 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1751 Allow the function to be called also when parsing combined constructs.
1752 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1753 Allow the function to be called also when parsing combined
1754 constructs.
1755 (c_parser_omp_taskgroup, c_parser_omp_cancel,
1756 c_parser_omp_cancellation_point, c_parser_omp_distribute,
1757 c_parser_omp_teams, c_parser_omp_target_data,
1758 c_parser_omp_target_update, c_parser_omp_target,
1759 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1760 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1761 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1762 (c_parser_omp_construct): Add p_name and mask vars. Handle
1763 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1764 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
1765 and c_parser_omp_sections callers.
1766 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1767 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1768 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1769 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
1770 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
1771 OMP_CLAUSE_DEPEND.
1772 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1773 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1774 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1775 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1776 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1777 * c-typeck.c: Include tree-inline.h.
1778 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1779 handle_omp_array_sections_1, handle_omp_array_sections,
1780 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1781 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1782 user defined reductions.
1783 (c_tree_equal): New function.
1784 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1785 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1786 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1787 c_check_omp_declare_reduction_r): New prototypes.
1788 * c-decl.c (current_omp_declare_target_attribute): New variable.
1789 (c_decl_attributes): New function.
1790 (start_decl, start_function): Use it instead of decl_attributes.
1791 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1792 c_omp_reduction_decl, c_omp_reduction_lookup,
1793 c_check_omp_declare_reduction_r): New functions.
1794
1795 2013-09-25 Tom Tromey <tromey@redhat.com>
1796
1797 * Make-lang.in (c/gccspec.o): Remove.
1798 (CFLAGS-c/gccspec.o): New variable.
1799 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1800 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1801 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1802
1803 2013-09-25 Tom Tromey <tromey@redhat.com>
1804
1805 * Make-lang.in (c/gccspec.o): Don't use subshell.
1806
1807 2013-09-18 Marek Polacek <polacek@redhat.com>
1808
1809 PR sanitize/58443
1810 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1811 Remove unnecessary check.
1812
1813 2013-09-18 Marek Polacek <polacek@redhat.com>
1814
1815 PR sanitizer/58411
1816 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1817 no_sanitize_undefined attribute.
1818
1819 2013-09-13 Kai Tietz <ktietz@redhat.com>
1820
1821 PR target/57848
1822 * c-decl.c (c_builtin_function_ext_scope): Remove
1823 wrong assumption that it is never called on prexisting
1824 symbol.
1825
1826 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1827
1828 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1829
1830 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1831
1832 * c-objc-common.c (c_tree_printer): Tidy.
1833
1834 2013-08-30 Marek Polacek <polacek@redhat.com>
1835
1836 * c-typeck.c (build_binary_op): Add division by zero and shift
1837 instrumentation.
1838
1839 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
1840 Joseph Myers <joseph@codesourcery.com>
1841
1842 PR c/35649
1843 * c-typeck.c (c_common_type): Prefer double_type_node over
1844 other REAL_TYPE types with the same precision.
1845 (convert_arguments): Likewise.
1846
1847 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1848
1849 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1850 (c_initialize_diagnostics): Call a destructor for the early printer.
1851
1852 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1853
1854 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1855 printer initialization.
1856
1857 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
1858
1859 PR c/57490
1860 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1861 check for truth values.
1862 (expand_array_notation_exprs): Added truth values case. Removed an
1863 unwanted else. Added for-loop to walk through subtrees in default
1864 case.
1865
1866 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1867
1868 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1869
1870 2013-07-23 Joseph Myers <joseph@codesourcery.com>
1871
1872 * c-parser.c (struct c_generic_association): Fix typo.
1873
1874 2013-07-23 Tom Tromey <tromey@redhat.com>
1875 Joseph Myers <joseph@codesourcery.com>
1876
1877 * c-parser.c (struct c_generic_association): New.
1878 (c_generic_association_d): New typedef.
1879 (c_parser_generic_selection): New function.
1880 (c_parser_postfix_expression): Handle RID_GENERIC.
1881
1882 2013-07-13 Jason Merrill <jason@redhat.com>
1883
1884 PR c++/57793
1885 * c-decl.c (finish_struct): Check for too-large class.
1886
1887 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1888
1889 PR c/57821
1890 * c-typeck.c (set_init_index): When folding, check for index overflow.
1891
1892 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1893
1894 * c-parser.c (c_parser_array_notation): Removed rejection of array
1895 notations in an array of function pointers.
1896
1897 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1898
1899 * c-array-notation.c (make_triplet_val_inv): New function.
1900 (create_cmp_incr): Likewise.
1901 (create_array_refs): Likewise.
1902 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1903 Also modularized common parts between functions and called the function.
1904 (build_array_notation_expr): Likewise.
1905 (fix_conditional_array_notations_1): Likewise.
1906 (fix_array_notation_expr): Likewise.
1907 (fix_array_notation_call_expr): Likewise.
1908
1909 2013-06-18 Marek Polacek <polacek@redhat.com>
1910
1911 PR c/57630
1912 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1913
1914 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
1915
1916 * c-array-notation.c (build_array_notation_expr): Reject array notation
1917 mismatch between LHS and RHS even inside a call_expr. Also, removed
1918 a couple while statements that were dead code.
1919
1920 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
1921
1922 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1923 excessive precision expressions in function parameters. Also removed
1924 couple unwanted while statements.
1925
1926 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1927
1928 * c-array-notation.c (expand_array_notation_exprs): Added
1929 ARRAY_NOTATION_REF case.
1930
1931 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1932
1933 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1934 function to c-family/array-notation-common.c.
1935 (is_cilkplus_reduce_builtin): Likewise.
1936 (find_rank): Likewise.
1937 (extract_array_notation_exprs): Likewise.
1938 (replace_array_notations): Likewise.
1939 (find_inv_trees): Likewise.
1940 (replace_inv_trees): Likewise.
1941 (contains_array_notation_expr): Likewise.
1942 (find_correct_array_notation_type): Likewise.
1943 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1944 (struct inv_list): Moved this to c-family/array-notation-common.c.
1945 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1946
1947 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
1948
1949 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1950 reduction functions outside the for-loop. Added a check if the fundecl
1951 is non-NULL. Finally, removed an unwanted if-statement, and made the
1952 body unconditional.
1953
1954 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1955
1956 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1957 condition of the if-statement matches the rank of else-block and then-
1958 block when array notations are used.
1959 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1960 expression after the entire function body is parsed.
1961 (c_parser_expr_no_commas): Delayed creating array notation expressions
1962 to the end of function parsing.
1963 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1964 whole if-statement instead of just the condition.
1965 (expand_array_notation_exprs): Added MODIFY_EXPR case.
1966
1967 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1968
1969 PR c/57474
1970 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1971 array to NULL_TREE if they are unused. Also added a check for the
1972 field to be NULL before its fields are used in future.
1973
1974 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1975
1976 PR bootstrap/57450
1977 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1978 (build_array_notation_expr): Likewise.
1979
1980 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1981
1982 * c-typeck.c (build_array_ref): Added a check to see if array's
1983 index is greater than one. If true, then emit an error.
1984 (build_function_call_vec): Exclude error reporting and checking
1985 for builtin array-notation functions.
1986 (convert_arguments): Likewise.
1987 (c_finish_return): Added a check for array notations as a return
1988 expression. If true, then emit an error.
1989 (c_finish_loop): Added a check for array notations in a loop
1990 condition. If true then emit an error.
1991 (lvalue_p): Added a ARRAY_NOTATION_REF case.
1992 (build_binary_op): Added a check for array notation expr inside
1993 op1 and op0. If present, we call another function to find correct
1994 type.
1995 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1996 * c-parser.c (c_parser_compound_statement): Check if array
1997 notation code is used in tree, if so, then transform them into
1998 appropriate C code.
1999 (c_parser_expr_no_commas): Check if array notation is used in LHS
2000 or RHS, if so, then build array notation expression instead of
2001 regular modify.
2002 (c_parser_postfix_expression_after_primary): Added a check for
2003 colon(s) after square braces, if so then handle it like an array
2004 notation. Also, break up array notations in unary op if found.
2005 (c_parser_direct_declarator_inner): Added a check for array
2006 notation.
2007 (c_parser_compound_statement): Added a check for array notation in
2008 a stmt. If one is present, then expand array notation expr.
2009 (c_parser_if_statement): Likewise.
2010 (c_parser_switch_statement): Added a check for array notations in
2011 a switch statement's condition. If true, then output an error.
2012 (c_parser_while_statement): Similarly, but for a while.
2013 (c_parser_do_statement): Similarly, but for a do-while.
2014 (c_parser_for_statement): Similarly, but for a for-loop.
2015 (c_parser_unary_expression): Check if array notation is used in a
2016 pre-increment or pre-decrement expression. If true, then expand
2017 them.
2018 (c_parser_array_notation): New function.
2019 * c-array-notation.c: New file.
2020 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2021
2022 2013-05-23 Mike Stump <mikestump@comcast.net>
2023
2024 * c-typeck.c (convert_for_assignment): Handle references to memory
2025 spaces better.
2026
2027 2013-05-16 Jason Merrill <jason@redhat.com>
2028
2029 * Make-lang.in (cc1$(exeext)): Use link mutex.
2030
2031 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2032
2033 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2034 to simply use OPT_Wpointer_arith.
2035 (build_unary_op): Likewise.
2036
2037 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2038
2039 PR c/19449
2040 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2041 argument. If set, or it temporarily for parsing of the first
2042 argument into force_folding_builtin_constant_p.
2043 (c_parser_postfix_expression): Adjust callers.
2044
2045 2013-03-21 Richard Biener <rguenther@suse.de>
2046
2047 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2048 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2049
2050 2013-02-12 Marek Polacek <polacek@redhat.com>
2051
2052 PR c/44938
2053 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2054 origtypes to NULL.
2055
2056 2013-01-24 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR c/56078
2059 * c-typeck.c (set_nonincremental_init_from_string): If
2060 constructor_max_index is NULL, treat it as if tree_int_cst_lt
2061 returned false.
2062 (process_init_element): Likewise.
2063
2064 2012-12-20 Jakub Jelinek <jakub@redhat.com>
2065
2066 PR c++/55619
2067 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2068 argument, don't call default_function_array_conversion
2069 nor c_fully_fold here.
2070 (c_parser_asm_statement): Adjust callers.
2071 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2072 and outputs here, and call default_function_array_conversion
2073 on inputs that don't need to be addressable.
2074
2075 2012-12-18 Jakub Jelinek <jakub@redhat.com>
2076
2077 PR c/39464
2078 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2079 warning require that both c_common_unsigned_type as well as
2080 c_common_signed_type is the same for both mvl and mvr types.
2081
2082 2012-11-16 Diego Novillo <dnovillo@google.com>
2083
2084 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2085
2086 * c-common.c: Use new vec API in vec.h.
2087 * c-common.h: Likewise.
2088 * c-gimplify.c: Likewise.
2089 * c-pragma.c: Likewise.
2090 * c-pretty-print.c: Likewise.
2091 * c-pretty-print.h: Likewise.
2092 * c-semantics.c: Likewise.
2093 * c-decl.c: Likewise.
2094 * c-parser.c: Likewise.
2095 * c-tree.h: Likewise.
2096 * c-typeck.c: Likewise.
2097
2098 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2099
2100 PR c++/54930
2101 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2102
2103 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2104
2105 PR c/53066
2106 * c-decl.c (warn_if_shadowing): Do not warn if a variable
2107 shadows a function, unless the variable is a function or a
2108 pointer-to-function.
2109
2110 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2111
2112 PR c/54381
2113 * c-parser.c (struct c_tree_loc_pair): Removed.
2114 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2115 add location_t * and tree * arguments, fill in array of 3
2116 sizeof_arg trees and corresponding locs.
2117 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2118 c_parser_expr_list callers.
2119 (c_parser_postfix_expression_after_primary): Likewise. Pass
2120 array of 3 sizeof_arg trees and locs (corresponding to first
2121 3 arguments) to sizeof_pointer_memaccess_warning.
2122
2123 2012-10-09 Lawrence Crowl <crowl@google.com>
2124
2125 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2126 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2127 hash table.
2128
2129 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2130
2131 PR c++/54194
2132 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2133 call.
2134
2135 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2136
2137 PR c++/54427
2138 * c-typeck.c: Include c-common.h.
2139 (enum stv_conv): Moved to c-common.h.
2140 (scalar_to_vector): Moved to c-common.c.
2141 (build_binary_op): Adapt to scalar_to_vector's new prototype.
2142 * Make-lang.in: c-typeck.c depends on c-common.h.
2143
2144 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2145
2146 * c-decl.c (c_write_global_declarations): Fix handling of
2147 -fdump-ada-spec*.
2148
2149 2012-09-30 Sharad Singhai <singhai@google.com>
2150
2151 * c-decl.c (c_write_global_declarations): Use a different method
2152 to determine if the dump has ben initialized.
2153
2154 2012-09-14 Joseph Myers <joseph@codesourcery.com>
2155
2156 PR c/54552
2157 * c-typeck.c (c_cast_expr): When casting to a type requiring
2158 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2159 c_fully_fold first.
2160
2161 2012-09-14 Joseph Myers <joseph@codesourcery.com>
2162
2163 PR c/54103
2164 * c-typeck.c (build_unary_op): Pass original argument of
2165 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2166 any C_MAYBE_CONST_EXPR, if it has integer operands.
2167 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2168 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2169 to c_objc_common_truthvalue_conversion, then remove any
2170 C_MAYBE_CONST_EXPR, if they have integer operands. Use
2171 c_objc_common_truthvalue_conversion not
2172 c_common_truthvalue_conversion.
2173 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2174 call note_integer_operands for arguments with integer operands
2175 that are not integer constants.
2176
2177 2012-09-13 Jakub Jelinek <jakub@redhat.com>
2178
2179 PR c/54559
2180 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2181 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2182
2183 2012-08-31 Jakub Jelinek <jakub@redhat.com>
2184
2185 PR c/54428
2186 * c-convert.c (convert): Don't call fold_convert_loc if
2187 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2188 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
2189 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2190
2191 2012-08-24 Jakub Jelinek <jakub@redhat.com>
2192
2193 PR c/54355
2194 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2195 for nested and empty_ok arguments in the call to
2196 c_parser_declaration_or_fndef.
2197
2198 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2199
2200 * c-tree.h (c_last_sizeof_arg): Declare.
2201 * c-parser.c (struct c_tree_loc_pair): New type.
2202 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
2203 non-NULL.
2204 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2205 (c_parser_postfix_expression_after_primary): Likewise. Call
2206 sizeof_pointer_memaccess_warning if needed.
2207 (sizeof_ptr_memacc_comptypes): New function.
2208 * c-typeck.c (c_last_sizeof_arg): New global variable.
2209 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2210
2211 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2212
2213 * c-lang.h (lang_decl): Add variable_size GTY option.
2214
2215 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2216
2217 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2218 * Make-lang.in: Fix dependencies.
2219
2220 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2221
2222 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2223 and add language Makefile hooks.
2224 * config-lang.in: New file.
2225 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2226 add the required "normal" config-lang.in rules.
2227 * c-lang.h: Moved from gcc/ to here.
2228 * c-tree.h: Likewise.
2229 * c-objc-common.c: Likewise.
2230 * c-objc-common.h: Likewise.
2231 * c-typeck.c: Likewise.
2232 * c-convert.c: Likewise.
2233 * c-lang.c: Likewise.
2234 * c-aux-info.c: Likewise.
2235 * c-errors.c: Likewise.
2236 * gccspec.c: Likewise.
2237 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
2238 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
2239 \f
2240 Copyright (C) 2012-2015 Free Software Foundation, Inc.
2241
2242 Copying and distribution of this file, with or without modification,
2243 are permitted in any medium without royalty provided the copyright
2244 notice and this notice are preserved.