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