]> gcc.gnu.org Git - gcc.git/blame - gcc/c/ChangeLog
replace ISL with isl
[gcc.git] / gcc / c / ChangeLog
CommitLineData
de67c4c3
DM
12015-12-16 David Malcolm <dmalcolm@redhat.com>
2
3 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
4 to 4.
5 (c_parser_peek_nth_token): New function.
6 (c_parser_peek_conflict_marker): New function.
7 (c_parser_error): Detect conflict markers and report them as such.
8
a10704e1
DM
92015-12-16 David Malcolm <dmalcolm@redhat.com>
10
11 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
12 to preserve range information for the primary expression
13 in the call to c_parser_postfix_expression_after_primary.
14
8062bca6
DM
152015-12-16 David Malcolm <dmalcolm@redhat.com>
16
17 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
18 expression location, falling back on the first token location,
19 rather than always using the latter.
20
d06f8b75
MP
212015-12-16 Marek Polacek <polacek@redhat.com>
22
23 PR c/64637
24 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
25 available.
26
2994fb91
MP
272015-12-15 Marek Polacek <polacek@redhat.com>
28
29 PR c/68907
30 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
31 artificial decl.
32
a1b93f8d
DM
332015-12-08 David Malcolm <dmalcolm@redhat.com>
34
35 * c-parser.c (c_parser_alignof_expression): Capture location of
36 closing parenthesis (if any), or of end of unary expression, and
37 use it to build a src_range for the expression.
38
46c6e1e2
DM
392015-12-08 David Malcolm <dmalcolm@redhat.com>
40
41 PR c/68757
42 * c-parser.c (c_parser_get_builtin_args): Add
43 "out_close_paren_loc" param, and write back to it.
44 (c_parser_postfix_expression): Capture the closing
45 parenthesis location for RID_CHOOSE_EXPR,
46 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
47 RID_BUILTIN_SHUFFLE and use it to set the source range
48 for such expressions; within RID_BUILTIN_COMPLEX set
49 the underlying location.
50
66189108
MP
512015-12-07 Marek Polacek <polacek@redhat.com>
52
53 PR c/68668
54 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
55 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
56
f187980b
EB
572015-12-04 Eric Botcazou <ebotcazou@adacore.com>
58
59 * c-tree.h (c_build_va_arg): Adjust prototype.
60 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
61 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
62 parameter, adjust throughout and issue an error if EXPR is a component
63 with reverse storage order.
64
4250754e
JM
652015-12-02 Jason Merrill <jason@redhat.com>
66
67 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
68 (c_fully_fold_internal, decl_constant_value_for_optimization):
69 Move from c-common.c.
70 * c-tree.h: Declare decl_constant_value_for_optimization.
71 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
72
e9e32ee6
JM
732015-12-02 Joseph Myers <joseph@codesourcery.com>
74
75 PR c/68162
76 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
77 following link from declarator to next declarator. Track original
78 qualified type and pass it to c_build_qualified_type.
79 * c-typeck.c (c_build_qualified_type): Add arguments
80 orig_qual_type and orig_qual_indirect.
81
ff7a55bf
TS
822015-12-02 Thomas Schwinge <thomas@codesourcery.com>
83
84 * c-parser.c (c_parser_omp_clause_name)
85 (c_parser_oacc_all_clauses): Alphabetical sorting.
86
657e4e47
JJ
872015-12-02 Jakub Jelinek <jakub@redhat.com>
88
89 PR c/68533
90 * c-decl.c (get_parm_info): Use b->locus instead of input_location
91 for diagnostics.
92
37d5ad46
JB
932015-12-01 Julian Brown <julian@codesourcery.com>
94 Cesar Philippidis <cesar@codesourcery.com>
95 James Norris <James_Norris@mentor.com>
96
97 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
98 (c_parser_oacc_clause_use_device): New function.
99 (c_parser_oacc_all_clauses): Add use_device support.
100 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
101 (c_parser_oacc_host_data): New function.
102 (c_parser_omp_construct): Add host_data support.
103 * c-tree.h (c_finish_oacc_host_data): Add prototype.
104 * c-typeck.c (c_finish_oacc_host_data): New function.
105 (c_finish_omp_clauses): Add use_device support.
106
a4850ce9
JH
1072015-11-29 Jan Hubicka <hubicka@ucw.cz>
108
109 PR c/67106
110 * c-decl.c: Set TYPE_PACKED in variants.
111
b58d3df2
ML
1122015-11-27 Martin Liska <mliska@suse.cz>
113
114 PR c++/68312
115 * c-array-notation.c (fix_builtin_array_notation_fn):
116 Use release_vec_vec instead of vec::release.
117 (build_array_notation_expr): Likewise.
118 (fix_conditional_array_notations_1): Likewise.
119 (fix_array_notation_expr): Likewise.
120 (fix_array_notation_call_expr): Likewise.
121
aec17bfe
JJ
1222015-11-27 Jakub Jelinek <jakub@redhat.com>
123
124 PR c/63326
125 * c-parser.c (c_parser_compound_statement_nostart): If
126 last_label is true, use pragma_stmt instead of pragma_compound
127 as second c_parser_pragma argument.
128 (c_parser_omp_ordered, c_parser_omp_target_update,
129 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
130 false as second argument to c_parser_skip_to_pragma_eol after
131 diagnosing standalone directives used in pragma_stmt context.
132
688c4de0
IV
1332015-11-24 Ilya Verbin <ilya.verbin@intel.com>
134
135 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
136 with "if (ENABLE_OFFLOADING)".
137
cbd03aee
DM
1382015-11-23 David Malcolm <dmalcolm@redhat.com>
139
140 PR objc/68438
141 * c-parser.c (c_parser_postfix_expression): Set up source ranges
142 for various Objective-C constructs: Class.name syntax,
143 @selector(), @protocol(), @encode(), and [] message syntax.
144
a87a86e1
DM
1452015-11-20 David Malcolm <dmalcolm@redhat.com>
146
147 PR 62314
148 * c-typeck.c (should_suggest_deref_p): New function.
149 (build_component_ref): Special-case POINTER_TYPE when
150 generating a "not a structure of union" error message, and
151 suggest a "->" rather than a ".", providing a fix-it hint.
152
8ece8dfb
DM
1532015-11-19 David Malcolm <dmalcolm@redhat.com>
154
155 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
156 candidate into a new function, find_closest_identifier.
157
433068cc
MP
1582015-11-19 Marek Polacek <polacek@redhat.com>
159
160 PR c/68412
161 * c-typeck.c (parser_build_binary_op): Properly handle
162 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
163
bef08b71
DM
1642015-11-17 David Malcolm <dmalcolm@redhat.com>
165
166 * c-parser.c (set_c_expr_source_range): Bulletproof both
167 overloaded implementations against NULL expr->value.
168 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
169 values.
170 (c_parser_unary_expression): Likewise when handling addresses of
171 labels.
172 (c_parser_postfix_expression): Likewise for statement expressions,
173 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
174 __builtin_va_arg, and for __builtin_offset_of.
175 (c_parser_postfix_expression_after_paren_type): Initialize expr's
176 src_range using the range of the braced initializer.
177 (c_parser_transaction_expression): Set src_range for "ret" to a
178 sane pair of values.
179
fff77217
KY
1802015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
181
182 * c-parser.c (c_finish_omp_declare_simd): Look for
183 "simd" attribute as well. Update error message.
184
1d899da2
TS
1852015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
186
187 * c-parser.c (c_parser_omp_declare_target): Adjust.
188
e4606348
JJ
1892015-11-14 Jakub Jelinek <jakub@redhat.com>
190
191 * c-typeck.c (c_finish_omp_clauses): Don't mark
192 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
193
3e636daf
MP
1942015-11-14 Marek Polacek <polacek@redhat.com>
195
196 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
197 * c-typeck.c: Likewise.
198
ebedc9a3
DM
1992015-11-13 David Malcolm <dmalcolm@redhat.com>
200
201 * c-decl.c (warn_defaults_to): Pass line_table to
202 rich_location ctor.
203 * c-errors.c (pedwarn_c99): Likewise.
204 (pedwarn_c90): Likewise.
205 * c-parser.c (set_c_expr_source_range): New functions.
206 (c_token::get_range): New method.
207 (c_token::get_finish): New method.
208 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
209 based on the range from the start of the LHS to the end of the
210 RHS.
211 (c_parser_conditional_expression): Likewise, based on the range
212 from the start of the cond.value to the end of exp2.value.
213 (c_parser_binary_expression): Call set_c_expr_source_range on
214 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
215 (c_parser_cast_expression): Call set_c_expr_source_range on ret
216 based on the cast_loc through to the end of the expr.
217 (c_parser_unary_expression): Likewise, based on the
218 op_loc through to the end of op.
219 (c_parser_sizeof_expression) Likewise, based on the start of the
220 sizeof token through to either the closing paren or the end of
221 expr.
222 (c_parser_postfix_expression): Likewise, using the token range,
223 or from the open paren through to the close paren for
224 parenthesized expressions.
225 (c_parser_postfix_expression_after_primary): Likewise, for
226 various kinds of expression.
227 * c-tree.h (struct c_expr): Add field "src_range".
228 (c_expr::get_start): New method.
229 (c_expr::get_finish): New method.
230 (set_c_expr_source_range): New decls.
231 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
232 on ret for prefix unary ops.
233 (parser_build_binary_op): Likewise, running from the start of
234 arg1.value through to the end of arg2.value.
235
ec8b536f
MP
2362015-11-13 Marek Polacek <polacek@redhat.com>
237
238 PR c/68320
239 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
240
277fe616
DM
2412015-11-13 David Malcolm <dmalcolm@redhat.com>
242
243 * c-typeck.c: Include spellcheck.h.
244 (lookup_field_fuzzy_find_candidates): New function.
245 (lookup_field_fuzzy): New function.
246 (build_component_ref): If the field was not found, try using
247 lookup_field_fuzzy and potentially offer a suggestion.
248
6e232ba4
JN
2492015-11-12 James Norris <jnorris@codesourcery.com>
250 Joseph Myers <joseph@codesourcery.com>
251
252 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
253 (c_parser_omp_clause_name): Handle 'device_resident' clause.
254 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
255 and PRAGMA_OMP_CLAUSE_LINK.
256 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
257 and PRAGMA_OACC_CLAUSE_LINK.
258 (OACC_DECLARE_CLAUSE_MASK): New definition.
259 (c_parser_oacc_declare): New function.
260
9be4f715
MP
2612015-11-12 Marek Polacek <polacek@redhat.com>
262
263 PR c/67784
264 * c-parser.c (c_parser_for_statement): Reclassify the token in
265 a correct scope.
266
e78bede6
MP
2672015-11-11 Marek Polacek <polacek@redhat.com>
268
269 PR c/68107
270 PR c++/68266
271 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
272 checking the size of an array.
273
69f293c9
AM
2742015-11-11 Andrew MacLeod <amacleod@redhat.com>
275
276 * c-array-notation.c: Remove unused header files.
277 * c-aux-info.c: Likewise.
278 * c-convert.c: Likewise.
279 * c-decl.c: Likewise.
280 * c-errors.c: Likewise.
281 * c-lang.c: Likewise.
282 * c-objc-common.c: Likewise.
283 * c-parser.c: Likewise.
284 * c-typeck.c: Likewise.
285 * gccspec.c: Likewise.
286
3a40d81d
NS
2872015-11-09 Thomas Schwinge <thomas@codesourcery.com>
288 Cesar Philippidis <cesar@codesourcery.com>
289 James Norris <jnorris@codesourcery.com>
290 Julian Brown <julian@codesourcery.com>
291 Nathan Sidwell <nathan@codesourcery.com>
292
293 c/
294 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
295 routine arg.
296 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
297 (c_parser_pragma): Parse 'acc routine'.
298 (OACC_ROUTINE_CLAUSE_MARK): Define.
299 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
300
fc402eec
AA
3012015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
302
303 PR debug/67192
304 * c-typeck.c (c_finish_loop): For unconditional loops, set the
305 location of the backward-goto to the start of the loop body.
306
f6b0b3db
AA
3072015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
308
309 PR debug/67192
310 * c-parser.c (c_parser_while_statement): Finish the loop before
311 parsing ahead for misleading indentation.
312 (c_parser_for_statement): Likewise.
313
ee45a32d
EB
3142015-11-08 Eric Botcazou <ebotcazou@adacore.com>
315
316 * c-decl.c (finish_struct): If the structure has reverse storage
317 order, rewrite the type of array fields with scalar component. Call
318 maybe_apply_pragma_scalar_storage_order on entry.
319 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
320 errors on bit-fields and reverse SSO here and not...
321 (c_mark_addressable): ...here.
322 (output_init_element): Adjust call to initializer_constant_valid_p.
323 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
324
8a645150
DM
3252015-11-06 David Malcolm <dmalcolm@redhat.com>
326
327 * c-decl.c (warn_defaults_to): Update for change in signature
328 of diagnostic_set_info.
329 * c-errors.c (pedwarn_c99): Likewise.
330 (pedwarn_c90): Likewise.
331 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
332 for textinfo::set_location.
333
7a5e4956
CP
3342015-11-05 Cesar Philippidis <cesar@codesourcery.com>
335 Thomas Schwinge <thomas@codesourcery.com>
336 James Norris <jnorris@codesourcery.com>
337
338 * c-parser.c (c_parser_omp_clause_name): Add support for
339 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
340 (c_parser_omp_clause_default): Add is_oacc argument. Handle
341 default(none) in OpenACC.
342 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
343 arguments.
344 (c_parser_oacc_clause_tile): New function.
345 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
346 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
347 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
348 TILE}.
349 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
350 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
351 FIRSTPRIVATE}.
352 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
353 (c_parser_oacc_update): Update the error message for missing clauses.
354 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
355 and OMP_CLAUSE_INDEPENDENT.
356
bfcfbfa0
MP
3572015-11-05 Marek Polacek <polacek@redhat.com>
358
359 PR c/68090
360 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
361 deal with pre-evaluation on invalid types.
362
e01d41e5
JJ
3632015-11-05 Jakub Jelinek <jakub@redhat.com>
364 Ilya Verbin <ilya.verbin@intel.com>
365
366 * c-parser.c: Include context.h and gimple-expr.h.
367 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
368 monotonic together with nonmonotonic.
369 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
370 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
371 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
372 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
373 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
374 expressions on combined target teams before the target.
375 (c_parser_omp_declare_target): If decl has "omp declare target" or
376 "omp declare target link" attribute, and cgraph or varpool node already
377 exists, then set corresponding flags. Call c_finish_omp_clauses
378 in the parenthesized extended-list syntax case.
379 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
380 declare target.
381 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
382 on OMP_CLAUSE_REDUCTION array sections.
383 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
384 into the constant offset, or for variable low-bound using
385 POINTER_PLUS_EXPR. For structure element based array sections use
386 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
387 (c_finish_omp_clauses): Drop generic_field_head, structure
388 elements are now always mapped even as array section bases,
389 diagnose same var in data sharing and mapping clauses. Diagnose if
390 linear step on declare simd is neither a constant nor a uniform
391 parameter. Look through POINTER_PLUS_EXPR for array section
392 reductions. Diagnose the same var or function appearing multiple
393 times on the same directive. Fix up wording for the to clause if t
394 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
395 modifier on kinds other than dynamic or guided or nonmonotonic
396 modifier together with ordered clause.
397
4bf9e5a8
TS
3982015-11-03 Thomas Schwinge <thomas@codesourcery.com>
399 Chung-Lin Tang <cltang@codesourcery.com>
400
401 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
402
2adfab87
AM
4032015-10-29 Andrew MacLeod <amacleod@redhat.com>
404
405 * c-array-notation.c: Reorder #include's and remove duplicates.
406 * c-aux-info.c: Likewise.
407 * c-convert.c: Likewise.
408 * c-decl.c: Likewise.
409 * c-errors.c: Likewise.
410 * c-lang.c: Likewise.
411 * c-objc-common.c: Likewise.
412 * c-parser.c: Likewise.
413 * c-typeck.c: Likewise.
414
e922069e
JW
4152015-10-26 Jim Wilson <jim.wilson@linaro.org>
416
417 PR debug/66068
418 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
419 after calling build_qualified_type.
420
765dd391
CP
4212015-10-27 Cesar Philippidis <cesar@codesourcery.com>
422 Thomas Schwinge <thomas@codesourcery.com>
423 James Norris <jnorris@codesourcery.com>
424 Joseph Myers <joseph@codesourcery.com>
425 Julian Brown <julian@codesourcery.com>
426 Bernd Schmidt <bschmidt@redhat.com>
427
428 * c-parser.c (c_parser_oacc_shape_clause): New.
429 (c_parser_oacc_simple_clause): New.
430 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
431 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
432
88bae6f4
TS
4332015-10-27 Thomas Schwinge <thomas@codesourcery.com>
434 James Norris <jnorris@codesourcery.com>
435 Cesar Philippidis <cesar@codesourcery.com>
436
437 PR c/64765
438 PR c/64880
439 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
440 parameters, and handle these. Adjust all users.
441 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
442 into...
443 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
444 all users.
445 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
446 declare functions.
447 (c_finish_omp_construct): Declare function.
448 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
449 Merge functions into...
450 (c_finish_omp_construct): ... this new function.
451
a8fc2579
RB
4522015-10-22 Richard Biener <rguenther@suse.de>
453
454 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
455 before folding a MINUS_EXPR.
456
e9122ef6
MP
4572015-10-21 Marek Polacek <polacek@redhat.com>
458
459 PR c/68024
460 * c-decl.c (start_function): Warn about vararg functions without
461 a prototype.
462
9f47c7e5
IE
4632015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
464
465 * c-typeck.c (build_conditional_expr): Use boolean vector
466 type for vector comparison.
467 (build_vec_cmp): New.
468 (build_binary_op): Use build_vec_cmp for comparison.
469
fa60eeb9
MP
4702015-10-20 Marek Polacek <polacek@redhat.com>
471
472 * c-parser.c (is_cilkplus_vector_p): Don't define here.
473
2c7020eb
MP
4742015-10-20 Marek Polacek <polacek@redhat.com>
475
476 PR c/67964
477 * c-parser.c (c_parser_attributes): Break out of the loop if the
478 token after an attribute isn't a comma.
479
d9a6bd32
JJ
4802015-10-13 Jakub Jelinek <jakub@redhat.com>
481 Aldy Hernandez <aldyh@redhat.com>
482
483 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
484 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
485 (c_parser_omp_variable_list): Handle structure elements for
486 map, to and from clauses. Handle array sections in reduction
487 clause. Formatting fixes.
488 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
489 if clause modifiers.
490 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
491 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
492 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
493 c_parser_omp_clause_is_device_ptr): New functions.
494 (c_parser_omp_clause_ordered): Parse optional parameter.
495 (c_parser_omp_clause_reduction): Handle array reductions.
496 (c_parser_omp_clause_schedule): Parse optional simd modifier.
497 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
498 functions.
499 (c_parser_omp_clause_linear): Parse linear clause modifiers.
500 (c_parser_omp_clause_depend_sink): New function.
501 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
502 (c_parser_omp_clause_map): Parse release/delete map kinds and
503 optional always modifier.
504 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
505 and c_finish_omp_clauses callers.
506 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
507 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
508 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
509 (OMP_CRITICAL_CLAUSE_MASK): Define.
510 (c_parser_omp_critical): Parse critical clauses.
511 (c_parser_omp_for_loop): Handle doacross loops, adjust
512 c_finish_omp_for and c_finish_omp_clauses callers.
513 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
514 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
515 (OMP_FOR_CLAUSE_MASK): Add linear clause.
516 (c_parser_omp_for): Disallow ordered clause when combined with
517 distribute. Disallow linear clause when combined with distribute
518 and not combined with simd.
519 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
520 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
521 parse clauses and if depend clause is found, don't parse a body.
522 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
523 Allow target parallel without for after it.
524 (OMP_TASK_CLAUSE_MASK): Add priority clause.
525 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
526 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
527 invalid kinds.
528 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
529 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
530 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
531 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
532 functions.
533 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
534 defaultmap and is_device_ptr clauses.
535 (c_parser_omp_target): Parse target parallel and target simd. Set
536 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
537 and target exit data. Diagnose invalid map kinds.
538 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
539 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
540 construct.
541 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
542 &omp_priv.
543 (OMP_TASKLOOP_CLAUSE_MASK): Define.
544 (c_parser_omp_taskloop): New function.
545 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
546 handle PRAGMA_OMP_TASKLOOP.
547 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
548 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
549 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
550 Add IS_OMP argument, handle structure element bases, diagnose
551 bitfields, pass IS_OMP recursively, diagnose known zero length
552 array sections in depend clauses, handle array sections in reduction
553 clause, diagnose negative length even for pointers.
554 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
555 types, pass IS_OMP down to handle_omp_array_sections_1, handle
556 array sections in reduction clause, set
557 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
558 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
559 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
560 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
561
21ba0cea
MP
5622015-10-06 Marek Polacek <polacek@redhat.com>
563
564 * c-parser.c (c_parser_statement_after_labels): Use
565 protected_set_expr_location.
566 (c_parser_omp_clause_num_gangs): Likewise.
567 (c_parser_omp_clause_num_threads): Likewise.
568 (c_parser_omp_clause_num_workers): Likewise.
569 (c_parser_omp_clause_vector_length): Likewise.
570 (c_parser_omp_clause_num_teams): Likewise.
571 (c_parser_omp_clause_thread_limit): Likewise.
572 * c-typeck.c (build_c_cast): Likewise.
573 (c_cast_expr): Likewise.
574
624d31fe
RS
5752015-10-05 Richard Sandiford <richard.sandiford@arm.com>
576
577 * c-typeck.c (c_tree_equal): Use real_equal instead of
578 REAL_VALUES_EQUAL.
579
b8fd7909
JM
5802015-10-04 Jason Merrill <jason@redhat.com>
581
582 * c-parser.c (c_lex_one_token): Handle @synchronized.
583 * c-decl.c (match_builtin_function_types): A declaration of a built-in
584 can change whether the function is transaction_safe.
585
1c7485af
MP
5862015-10-02 Marek Polacek <polacek@redhat.com>
587
588 PR c/67730
589 * c-typeck.c (convert_for_assignment): Use the expansion point
590 location throughout.
591
3e3b8d63
MP
5922015-10-02 Marek Polacek <polacek@redhat.com>
593
594 PR c/64249
595 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
596 and pass it down to c_parser_if_statement.
597 (c_parser_else_body): Add CHAIN parameter and pass it down to
598 c_parser_statement_after_labels.
599 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
600 duplicated if-else-if conditions.
601
aabef2de
MP
6022015-10-01 Marek Polacek <polacek@redhat.com>
603
604 * c-typeck.c (convert_for_assignment): Improve commentary.
605
de8ddd5f
MP
6062015-09-30 Marek Polacek <polacek@redhat.com>
607
608 PR c/67730
609 * c-typeck.c (c_finish_return): Use the expansion point location for
610 certain "return with value" warnings.
611
c4914de6
MLI
6122015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
613
614 * c-parser.c (pragma_lex): Add loc argument.
615
0e36f5c7
MP
6162015-09-15 Marek Polacek <polacek@redhat.com>
617
618 PR c/67580
619 * c-decl.c (tag_exists_p): New function.
620 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
621 struct/union/enum keywords are missing.
622 * c-tree.h (tag_exists_p): Declare.
623
2f3bb934
MP
6242015-09-15 Marek Polacek <polacek@redhat.com>
625
626 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
627 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
628 Return NULL_TREE instead of 0.
629 (lookup_name): Return NULL_TREE instead of 0.
630 (lookup_name_in_scope): Likewise.
631 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
632 (parser_xref_tag): Use false instead of 0.
633 (start_struct): Use true instead of 1.
634 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
635
aa256c4a
MP
6362015-09-14 Marek Polacek <polacek@redhat.com>
637
638 * c-typeck.c (set_nonincremental_init_from_string): Use
639 HOST_WIDE_INT_M1U when shifting a negative value.
640
dbb68221
MW
6412015-09-09 Mark Wielaard <mjw@redhat.com>
642
643 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
644 parm against NULL.
645
a8a098ac
JJ
6462015-09-10 Jakub Jelinek <jakub@redhat.com>
647
648 PR c/67502
649 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
650 into OMP_FOR_PRE_BODY rather than before the loop.
651
f4b189d5
JJ
6522015-09-09 Jakub Jelinek <jakub@redhat.com>
653
0bb99c11
JJ
654 PR c/67501
655 * c-parser.c (c_parser_oacc_all_clauses,
656 c_parser_omp_all_clauses): Remove invalid clause from
657 list of clauses even if parser->error is set.
658
fce5e5e3
JJ
659 PR c/67500
660 * c-parser.c (c_parser_omp_clause_aligned,
661 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
662 test for errors.
663 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
664 error_mark_node.
665
f4b189d5
JJ
666 PR c/67495
667 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
668 instead of c_parser_unary_expression. If the result is !lvalue_p,
669 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
670
b2aaf235
MP
6712015-09-04 Marek Polacek <polacek@redhat.com>
672
673 PR sanitizer/67279
674 * c-typeck.c (build_binary_op): Don't instrument static initializers.
675
1807ffc1
MS
6762015-09-03 Martin Sebor <msebor@redhat.com>
677
678 PR c/66516
8b652e65
JJ
679 * c-typeck.c (convert_arguments, parser_build_unary_op,
680 build_conditional_expr, c_cast_expr, convert_for_assignment,
681 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
682 reject_gcc_builtin.
683 (c_decl_implicit): Define.
684
d04ff417
MP
6852015-09-02 Marek Polacek <polacek@redhat.com>
686
687 PR c/67432
688 * c-parser.c (c_parser_enum_specifier): Give a better error for
689 an empty enum.
690
a79683d5
TS
6912015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
692
693 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
694
191a6b94
MP
6952015-08-12 Marek Polacek <polacek@redhat.com>
696
697 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
698 LOC to it.
699
420a9d9b
MP
7002015-08-03 Marek Polacek <polacek@redhat.com>
701
702 PR c/67088
703 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
704 Use it.
705 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
706
992118a1
PP
7072015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
708
709 * c-parser.c (c_parser_if_body): Take token_indent_info
710 argument. Call warn_for_misleading_indentation even when the
711 body is a semicolon. Extract token_indent_infos corresponding
712 to the guard, body and next tokens. Adjust call to
713 warn_for_misleading_indentation accordingly.
714 (c_parser_else_body): Likewise.
715 (c_parser_if_statement): Likewise.
716 (c_parser_while_statement): Likewise.
717 (c_parser_for_statement): Likewise.
718
46308474
LFSM
7192015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
720 Manuel López-Ibáñez <manu@gcc.gnu.org>
721
722 * c-decl.c (get_parm_info): Remove static var. Update warning
723 message.
724
05b28fd6
MP
7252015-07-27 Marek Polacek <polacek@redhat.com>
726
727 PR c++/66555
728 PR c/54979
729 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
730
451b5e48
MP
7312015-07-20 Marek Polacek <polacek@redhat.com>
732
733 PR c++/55095
734 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
735 (build_binary_op): Warn about left shift overflows.
736
1916bcb5
AM
7372015-07-09 Andrew MacLeod <amacleod@redhat.com>
738
739 * c-array-notation.c: Adjust includes for flags.h changes.
740 * c-objc-common.c: Likewise.
741
c7131fb2
AM
7422015-07-07 Andrew MacLeod <amacleod@redhat.com>
743
744 * c-array-notation.c: Adjust includes.
745 * c-aux-info.c: Likewise.
746 * c-convert.c: Likewise.
747 * c-decl.c: Likewise.
748 * c-errors.c: Likewise.
749 * c-lang.c: Likewise.
750 * c-objc-common.c: Likewise.
751 * c-parser.c: Likewise.
752 * c-typeck.c: Likewise.
753
da2e71c9
MLI
7542015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
755
756 PR fortran/66605
757 * c-decl.c (finish_function): Call do_warn_unused_parameter.
758
b155cfd9
MP
7592015-06-29 Marek Polacek <polacek@redhat.com>
760
761 PR c/66322
762 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
763 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
764 about -Wswitch-bool here.
765 (do_case): Update c_add_case_label call.
766 (c_finish_case): Update c_do_switch_warnings call.
767
31521951
MP
7682015-06-27 Marek Polacek <polacek@redhat.com>
769
770 * c-typeck.c: Use VECTOR_TYPE_P throughout.
771
22d03525
MP
7722015-06-26 Marek Polacek <polacek@redhat.com>
773
774 * c-array-notation.c (fix_builtin_array_notation_fn): Use
775 INDIRECT_REF_P.
776 * c-typeck.c (array_to_pointer_conversion): Likewise.
777 (build_unary_op): Likewise.
778 (c_finish_return): Likewise.
779
f0889939
AM
7802015-06-25 Andrew MacLeod <amacleod@redhat.com>
781
782 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
783 * c-parser.c: Likewise.
784
8d67ee55
RS
7852015-06-25 Richard Sandiford <richard.sandiford@arm.com>
786
787 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
788 instead of pointer_hash.
789 (detect_field_duplicates): Likewise.
790
0ae9bd27
MP
7912015-06-25 Marek Polacek <polacek@redhat.com>
792
793 * c-array-notation.c: Use VAR_P throughout.
794 * c-decl.c: Likewise.
795 * c-objc-common.c: Likewise.
796 * c-parser.c: Likewise.
797 * c-typeck.c: Likewise.
798
62f9079a
MP
7992015-06-25 Marek Polacek <polacek@redhat.com>
800
801 * c-decl.c: Use is_global_var throughout.
802 * c-parser.c: Likewise.
803 * c-typeck.c: Likewise.
804
abb226c9
AM
8052015-06-17 Andrew MacLeod <amacleod@redhat.com>
806
807 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
808 * c-aux-info.c: Likewise.
809 * c-convert.c: Likewise.
810 * c-decl.c: Likewise.
811 * c-errors.c: Likewise.
812 * c-lang.c: Likewise.
813 * c-objc-common.c: Likewise.
814 * c-parser.c: Likewise.
815 * c-typeck.c: Likewise.
816
8cbababc
JH
8172015-06-11 Jan Hubicka <hubicka@ucw.cz>
818
819 PR middle-end/66325
820 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
821 variants.
822
a0349665
PMR
8232015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
824
825 * c-decl.c (pop_scope): Register the main translation unit
826 through the new debug hook.
827
13fdf2e2
AM
8282015-06-08 Andrew MacLeod <amacleod@redhat.com>
829
830 * c-array-notation.c : Adjust include files.
831 * c-aux-info.c : Likewise.
832 * c-convert.c : Likewise.
833 * c-decl.c : Likewise.
834 * c-errors.c : Likewise.
835 * c-lang.c : Likewise.
836 * c-lang.h : Likewise.
837 * c-objc-common.c : Likewise.
838 * c-parser.c : Likewise.
839 * c-typeck.c : Likewise.
840
d7438551
AH
8412015-06-05 Aldy Hernandez <aldyh@redhat.com>
842
843 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
844 immediately clobber it.
845 (c_write_global_declarations_1): Remove call to
846 check_global_declaration_1.
847 (c_write_global_declarations_2): Remove.
848 (c_write_final_cleanups): Rename from c_write_global_declarations.
849 Remove call to finalize_compilation_unit.
850 Remove calls to debugging hooks.
851 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
852 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
853 * c-tree.h: Remove c_write_global_declarations.
854
ecb9f223
AM
8552015-06-04 Andrew MacLeod <amacleod@redhat.com>
856
857 * c-array-notation.c: Adjust includes for restructured coretypes.h.
858 * c-aux-info.c: Likewise.
859 * c-convert.c: Likewise.
860 * c-decl.c: Likewise.
861 * c-errors.c: Likewise.
862 * c-lang.c: Likewise.
863 * c-objc-common.c: Likewise.
864 * c-parser.c: Likewise.
865 * c-typeck.c: Likewise.
866
9482b620
MP
8672015-06-04 Marek Polacek <polacek@redhat.com>
868
869 PR c/66341
870 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
871 it is a lvalue.
872
bc51ace3
PK
8732015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
874
875 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
876 Warn for empty struct.
877 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
878
ea5b45b6
AT
8792015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
880
881 * c-decl.c (start_function): Call plugin before parsing.
882 (finish_function): Call plugin after parsing.
883
c2d47482
PK
8842015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
885
886 PR c/49551
887 * c-decl.c (merge_decls): Merge DECL_COMMON.
888
a95492ab
JW
8892015-05-22 Jim Wilson <jim.wilson@linaro.org>
890
891 * Make-lang.in (check_gcc_pallelize): Define.
892
fd5c817a
MP
8932015-05-22 Marek Polacek <polacek@redhat.com>
894
895 PR c/47043
896 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
897 attributes.
898
c7b70a3c
MP
8992015-05-21 Marek Polacek <polacek@redhat.com>
900
901 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
902 DECL_BUILT_IN.
903
21b634ae
MP
9042015-05-20 Marek Polacek <polacek@redhat.com>
905
906 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
907 * c-typeck.c: Likewise.
908
296a8c2f
MP
9092015-05-19 Marek Polacek <polacek@redhat.com>
910
911 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
912
41b37d5e
JJ
9132015-05-19 Jakub Jelinek <jakub@redhat.com>
914
915 PR middle-end/66199
916 * c-parser.c (c_parser_omp_for_loop): Don't add
917 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
918 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
919 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
920 constructs.
921
fab27f52
MM
9222015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
923
924 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 925 swaps.
fab27f52 926
40de31cf
MLI
9272015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
928
929 PR fortran/44054
930 * c-objc-common.c (c_tree_printer): Replace locus pointer with
931 accessor function.
932
3aa3c9fc
MP
9332015-05-14 Marek Polacek <polacek@redhat.com>
934
935 PR c/66066
936 PR c/66127
937 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
938 rather than with 0.
939
c3388e62
DM
9402015-05-12 David Malcolm <dmalcolm@redhat.com>
941
942 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
943 to add a call to warn_for_misleading_indentation.
944 (c_parser_else_body): Likewise, adding param "else_loc".
945 (c_parser_if_statement): Check for misleading indentation.
946 (c_parser_while_statement): Likewise.
947 (c_parser_for_statement): Likewise.
948
755e528f
MP
9492015-05-08 Marek Polacek <polacek@redhat.com>
950
951 PR c/64918
952 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
953 (output_init_element): Likewise.
954
0173bd2a
MP
9552015-05-07 Marek Polacek <polacek@redhat.com>
956
957 PR c/65179
958 * c-typeck.c (build_binary_op): Warn when left shifting a negative
959 value.
960
9babc352
MP
9612015-04-30 Marek Polacek <polacek@redhat.com>
962
963 * c-typeck.c (set_init_label): Call error_at instead of error and
964 pass LOC to it.
965
ac9f18db
MP
966 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
967 the type of a decl.
968
ec3fba51
MP
969 * c-typeck.c (c_build_va_arg): Clarify the error message.
970
b811915d
TS
9712015-04-29 Thomas Schwinge <thomas@codesourcery.com>
972
973 * c-parser.c (c_parser_oacc_enter_exit_data): Use
974 OMP_STANDALONE_CLAUSES.
975
f3075008
MP
9762015-04-28 Marek Polacek <polacek@redhat.com>
977
978 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
979
4e81b788
MP
9802015-04-28 Marek Polacek <polacek@redhat.com>
981
982 PR c/65901
983 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
984
6c1db78e
MP
9852015-04-25 Marek Polacek <polacek@redhat.com>
986
987 PR c/52085
988 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
989 attribute.
990
5c4abbb8
MP
9912015-04-23 Marek Polacek <polacek@redhat.com>
992
993 PR c/65345
994 * c-decl.c (set_labels_context_r): New function.
995 (store_parm_decls): Call it via walk_tree_without_duplicates.
996 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
997 instead of create_tmp_var. Build TARGET_EXPR instead of
998 COMPOUND_EXPR.
999 (build_atomic_assign): Use create_tmp_var_raw instead of
1000 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
1001
06aca1d5
IV
10022015-04-20 Ilya Verbin <ilya.verbin@intel.com>
1003
1004 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
1005 (c_parser_omp_target_update): Add missed %> to error_at ().
1006
8fba1830
BRF
10072015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1008
1009 PR target/55143
1010 * c-decl.c (c_default_pointer_mode): Remove definition.
1011 * c-tree.h (c_default_pointer_mode): Remove declaration.
1012
62021f64
TB
10132015-03-27 Tobias Burnus <burnus@net-b.de>
1014
1015 PR c/65586
1016 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
1017 error out.
1018 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
1019 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
1020 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
1021
9b65e171
JJ
10222015-03-19 Jakub Jelinek <jakub@redhat.com>
1023
1024 * c-decl.c (c_decl_attributes): Also add "omp declare target"
1025 attribute for DECL_EXTERNAL VAR_DECLs.
1026
17958621
JJ
10272015-03-11 Jakub Jelinek <jakub@redhat.com>
1028
1029 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
1030 argument.
1031
7ccb1a11
JJ
10322015-03-10 Jakub Jelinek <jakub@redhat.com>
1033
1034 PR c/65120
1035 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
1036 before preparing arguments to warn_logical_not_parentheses.
1037
01177669
JJ
10382015-03-09 Jakub Jelinek <jakub@redhat.com>
1039
1040 PR c/65120
1041 * c-typeck.c (parser_build_binary_op): Don't warn for
1042 !!x == y or !b == y where b is _Bool.
1043
802ac282
MP
10442015-03-09 Marek Polacek <polacek@redhat.com>
1045
1046 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
1047 * c-decl.c (grokdeclarator): Likewise.
1048 * c-typeck.c (build_binary_op): Likewise.
1049
e5165b60
MP
10502015-02-27 Marek Polacek <polacek@redhat.com>
1051
1052 PR c/65228
1053 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
1054
065d214c
MP
10552015-02-14 Marek Polacek <polacek@redhat.com>
1056
1057 PR c/64768
1058 * c-decl.c (grokdeclarator): Set the range of a flexible array member
1059 declared through a typedef name.
1060
e5d9235b
MP
10612015-02-13 Marek Polacek <polacek@redhat.com>
1062
1063 PR c/65050
1064 * c-decl.c (grokdeclarator): Print also the type when giving
1065 the error message about array's incomplete element type.
1066
fa01ffcc
JJ
10672015-02-11 Jakub Jelinek <jakub@redhat.com>
1068
1069 PR c/64824
1070 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
1071 check in the POP macro.
1072
c3e38a03
MP
10732015-02-09 Marek Polacek <polacek@redhat.com>
1074
1075 PR c/64856
1076 * c-typeck.c (process_init_element): Don't always wrap
1077 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
1078 initializing a range of elements.
1079
4886ec8e
JJ
10802015-02-04 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR c/64824
1083 PR c/64868
1084 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
1085
c3e38a03 10862015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
1087
1088 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
1089 processing enum declaration.
1090
7b33f0c8
MP
10912015-01-29 Marek Polacek <polacek@redhat.com>
1092
1093 PR c/64709
1094 * c-typeck.c (pop_init_level): If constructor_elements has
1095 exactly one element with integer_zerop value, set constructor_zeroinit
1096 to 1. Remove braces around warning_init call.
1097
dea63e49
JJ
10982015-01-27 Jakub Jelinek <jakub@redhat.com>
1099
1100 PR c/64766
1101 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
1102 of FUNCTION_DECLs with error_mark_node.
1103
d38f7dce
JJ
11042015-01-26 Jakub Jelinek <jakub@redhat.com>
1105
1106 PR c/64778
1107 * c-typeck.c (convert_arguments): Return -1 if there are
1108 error_args, even if we've diagnosed too many arguments.
1109
cbf5d0e7
RB
11102015-01-21 Richard Biener <rguenther@suse.de>
1111
1112 PR middle-end/64313
1113 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
1114 for builtins the user declared correctly.
1115
41dbbb37
TS
11162015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1117 Bernd Schmidt <bernds@codesourcery.com>
1118 Cesar Philippidis <cesar@codesourcery.com>
1119 James Norris <jnorris@codesourcery.com>
1120 Jakub Jelinek <jakub@redhat.com>
1121 Ilmir Usmanov <i.usmanov@samsung.com>
1122
1123 * c-parser.c: Include "gomp-constants.h".
1124 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1125 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1126 Use OMP_CLAUSE_SET_MAP_KIND.
1127 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
1128 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
1129 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
1130 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
1131 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
1132 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
1133 "copyout", "create", "delete", "deviceptr", "gang", "host",
1134 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
1135 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1136 "present_or_create", "pcreate", "seq", "self", "vector",
1137 "vector_length", "wait", "worker".
1138 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1139 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
1140 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1141 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1142 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
1143 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
1144 (c_parser_oacc_data_clause_deviceptr)
1145 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
1146 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
1147 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
1148 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
1149 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
1150 (c_parser_oacc_parallel, c_parser_oacc_update)
1151 (c_parser_oacc_wait): New functions.
1152 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
1153 (c_finish_oacc_data): New prototypes.
1154 * c-typeck.c: Include "gomp-constants.h".
1155 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
1156 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1157 OMP_CLAUSE_SET_MAP_KIND.
1158 (c_finish_oacc_parallel, c_finish_oacc_kernels)
1159 (c_finish_oacc_data): New functions.
1160 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
1161 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1162 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1163 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
1164 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
1165 GOMP_MAP_FORCE_DEVICEPTR.
1166
adfac8df
JJ
11672015-01-09 Michael Collison <michael.collison@linaro.org>
1168
1169 * c-array-notation.c: Include hash-set.h, machmode.h,
1170 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1171 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1172 * c-aux-info.c: Ditto.
1173 * c-convert.c: Ditto.
1174 * c-decl.c: Ditto.
1175 * c-errors.c: Ditto.
1176 * c-lang.c: Dittoxs.
1177 * c-objc-common.c: Ditto.
1178 * c-parser.c: Ditto.
1179 * c-typeck.c: Include hash-set.h, machmode.h,
1180 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1181 fold-const.h, wide-int.h, inchash.h, real.h and
1182 fixed-value.h due to flattening of tree.h.
1183
2cc901dc
MP
11842015-01-07 Marek Polacek <polacek@redhat.com>
1185
1186 PR c/64417
1187 * c-typeck.c (process_init_element): Disallow initialization of
1188 a flexible array member with a string constant if the structure
1189 is in an array.
1190
5624e564
JJ
11912015-01-05 Jakub Jelinek <jakub@redhat.com>
1192
e5341100
JJ
1193 PR sanitizer/64344
1194 * c-typeck.c (convert_for_assignment, c_finish_return): For
1195 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
1196 types also set in_late_binary_op around convert call.
1197 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
1198 to integral type casts, if not in_late_binary_op, pass c_fully_fold
1199 result on expr as last argument to ubsan_instrument_float_cast,
1200 if in_late_binary_op, don't use c_save_expr but save_expr.
1201
5624e564
JJ
1202 Update copyright years.
1203
5bd012f8
MP
12042015-01-05 Marek Polacek <polacek@redhat.com>
1205
1206 PR c/64423
1207 * c-typeck.c (build_array_ref): Pass loc down to
1208 warn_array_subscript_with_type_char.
1209
768952be
MU
12102014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1211
1212 * c-typeck.c: New behavious for pointers to arrays with qualifiers
1213 (common-pointer-type): For pointers to arrays take qualifiers from
1214 element type.
1215 (build_conditional_expr): Add warnings for lost qualifiers.
1216 (comp-target-types): Allow pointers to arrays with different qualifiers.
1217 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
1218 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
1219 to PEDWARN_FOR_QUALIFIERS.
1220
8f94a8c4
JJ
12212014-12-17 Jakub Jelinek <jakub@redhat.com>
1222
1223 PR sanitizer/64289
1224 * c-convert.c: Include ubsan.h.
1225 (convert): For real -> integral casts and
1226 -fsanitize=float-cast-overflow don't call convert_to_integer, but
1227 instead instrument the float cast directly.
1228
b731b390
JJ
12292014-11-29 Jakub Jelinek <jakub@redhat.com>
1230
1231 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
1232 c_finish_stmt_expr): Remove NULL last argument from
1233 create_tmp_var_raw and create_tmp_var calls.
1234 * c-array-notation.c (fix_builtin_array_notation_fn,
1235 build_array_notation_expr, fix_conditional_array_notations_1,
1236 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
1237
541e35a6
MP
12382014-11-28 Marek Polacek <polacek@redhat.com>
1239
1240 PR c/63862
1241 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
1242 convert the right operand to integer type.
1243
b286be94
MP
12442014-11-25 Marek Polacek <polacek@redhat.com>
1245
1246 PR c/63877
1247 * c-decl.c (start_function): Disable -Wmissing-declarations warning
1248 for inline functions.
1249
aa7da51a
JJ
12502014-11-21 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR target/63764
1253 * c-typeck.c (build_array_ref): Adjust
1254 convert_vector_to_pointer_for_subscript caller. If it returns true,
1255 call non_lvalue_loc on the result.
1256
d876207f
RB
12572014-11-11 Richard Biener <rguenther@suse.de>
1258
1259 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
1260 to true.
1261
e5e44252
AK
12622014-11-10 Andi Kleen <ak@linux.intel.com>
1263
1264 PR c/60804
1265 * c-parser.c (c_parser_statement_after_labels): Call
1266 check_no_cilk.
1267 (c_parser_if_statement): Dito.
1268 (c_parser_switch_statement): Dito.
1269 (c_parser_while_statement): Dito.
1270 (c_parser_do_statement): Dito.
1271 (c_parser_for_statement): Dito.
1272 * c-typeck.c (c_finish_loop): Dito.
1273
13c21655
PC
12742014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1275
1276 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
1277 OPT_Wshift_count_overflow in the warnings.
1278
2d51fcef
MP
12792014-10-30 Marek Polacek <polacek@redhat.com>
1280
1281 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
1282 print the stripped version as well, if they're not the same.
1283
ef4bddc2
RS
12842014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1285
1286 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
1287 machine_mode.
1288
c582198b
AM
12892014-10-28 Andrew MacLeod <amacleod@redhat.com>
1290
1291 * c-decl.c: Adjust include files.
1292 * c-parser.c: Ditto.
1293
ddc8de03
PM
12942014-10-27 Phil Muldoon <pmuldoon@redhat.com>
1295 Tom Tromey <tromey@redhat.com>
1296
1297 * c-tree.h (enum c_oracle_request): New.
1298 (c_binding_oracle_function): New typedef.
1299 (c_binding_oracle, c_pushtag, c_bind): Declare.
1300 * c-decl.c (c_binding_oracle): New global.
1301 (I_SYMBOL_CHECKED): New macro.
1302 (i_symbol_binding): New function.
1303 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
1304 (I_TAG_CHECKED): New macro.
1305 (i_tag_binding): New function.
1306 (I_TAG_BINDING, I_TAG_DECL): Redefine.
1307 (I_LABEL_CHECKED): New macro.
1308 (i_label_binding): New function.
1309 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
1310 (c_print_identifier): Save and restore c_binding_oracle.
1311 (c_pushtag, c_bind): New functions.
1312
60393bbc
AM
13132014-10-27 Andrew MacLeod <amacleod@redhat.com>
1314
1315 * c-typeck.c: Adjust include files.
1316
d723bb7c
MLI
13172014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1318
1319 PR c++/53061
1320 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
1321 initialization here...
1322 (c_initialize_diagnostics): ... but here. Set defaults after
1323 building pretty-printer.
1324
1bc5a451
MP
13252014-10-23 Marek Polacek <polacek@redhat.com>
1326
1327 PR c/63626
1328 * c-decl.c (pop_scope): Don't print warning in external_scope.
1329
4435bb92
MP
13302014-10-19 Marek Polacek <polacek@redhat.com>
1331
1332 PR c/63567
1333 * c-typeck.c (output_init_element): Allow initializing objects with
1334 static storage duration with compound literals even in C99 and add
1335 pedwarn for it.
1336
7278465e
MP
13372014-10-17 Marek Polacek <polacek@redhat.com>
1338
1339 PR c/63567
1340 * c-typeck.c (digest_init): Allow initializing objects with static
1341 storage duration with compound literals even in C99 and add pedwarn
1342 for it.
1343
d9b7be2e
MP
13442014-10-17 Marek Polacek <polacek@redhat.com>
1345
1346 PR c/63543
1347 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
1348 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
1349 error multiple times. Print the type.
1350
f406ae1f
MP
13512014-10-17 Marek Polacek <polacek@redhat.com>
1352
1353 PR c/63549
1354 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
1355 type.
1356
92574c7c
MP
13572014-10-17 Marek Polacek <polacek@redhat.com>
1358
1359 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
1360 (start_function): Use OPT_Wimplicit_int instead of 0.
1361 (store_parm_decls_oldstyle): Likewise.
1362
1bc4a978
MT
13632014-10-17 Alan Modra <amodra@gmail.com>
1364
1365 PR middle-end/61848
1366 * c-decl.c (merge_decls): Don't merge section name or tls model
1367 to newdecl symtab node, instead merge to olddecl. Override
1368 existing olddecl section name. Set tls_model for all thread-local
1369 vars, not just OMP thread-private ones. Remove incorrect comment.
1370
83685514
AM
13712014-10-16 Andrew MacLeod <amacleod@redhat.com>
1372
1373 * c-decl.c: Adjust include files.
1374
78a7c317
DD
13752014-10-14 DJ Delorie <dj@redhat.com>
1376
1377 * c-parser.c (c_parse_init): Add RID entries for each __intN.
1378 (c_token_starts_typename): Check all __intN, not just __int128.
1379 (c_token_starts_declspecs): Likewise.
1380 (c_parser_declspecs): Likewise.
1381 (c_parser_attribute_any_word): Likewise.
1382 (c_parser_objc_selector): Likewise.
1383 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
1384 (struct c_declspecs): Add int_n_idx field to record *which* __intN
1385 is specified.
1386 * c-decl.c (declspecs_add_type): Check for all __intN, not just
1387 __int128.
1388 (finish_declspecs): Likewise.
1389
74d98c1e
AB
13902014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
1391
1392 * c-parser.c (c_parser_all_labels): New function to replace
1393 the duplicate code.
1394 (c_parser_statement): Call the new function.
1395
84937de2
MP
13962014-10-09 Marek Polacek <polacek@redhat.com>
1397
1398 PR c/63480
1399 * c-typeck.c (pop_init_level): Don't warn about initializing
1400 with { }.
1401
0382aaa0
MP
14022014-10-07 Marek Polacek <polacek@redhat.com>
1403
1404 PR c/59717
1405 * c-decl.c (header_for_builtin_fn): New function.
1406 (implicitly_declare): Suggest which header to include.
1407
7a0ca710
MP
14082014-10-07 Marek Polacek <polacek@redhat.com>
1409
1410 * c-convert.c (convert): Use error_operand_p.
1411 * c-typeck.c (require_complete_type): Likewise.
1412 (really_atomic_lvalue): Likewise.
1413 (digest_init): Likewise.
1414 (handle_omp_array_sections_1): Likewise.
1415
6bc8a126
MP
14162014-10-03 Marek Polacek <polacek@redhat.com>
1417
1418 PR c/63453
1419 * c-decl.c (pop_scope): Don't warn about "inline function declared
1420 but never defined" for functions marked with gnu_inline attribute.
1421
d90c0a59
JJ
14222014-09-25 Jakub Jelinek <jakub@redhat.com>
1423
1424 PR c++/63249
1425 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
1426 on low_bound and length.
1427
083e891e
MP
14282014-09-24 Marek Polacek <polacek@redhat.com>
1429
1430 PR c/61405
1431 PR c/53874
1432 * c-parser.c: Don't define CPP_KEYWORD.
1433 (c_parser_switch_statement): Pass original type to c_finish_case.
1434 * c-tree.h (c_finish_case): Update declaration.
1435 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
1436 conditionally to c_do_switch_warnings.
1437
8d95fe25
MP
14382014-09-03 Marek Polacek <polacek@redhat.com>
1439
1440 PR c/62024
1441 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
1442 conversions.
1443
9a771876
JJ
14442014-09-02 Jakub Jelinek <jakub@redhat.com>
1445 Balaji V. Iyer <balaji.v.iyer@intel.com>
1446 Igor Zamyatin <igor.zamyatin@intel.com>
1447
1448 * c-parser.c (c_parser_cilk_for): New function.
1449 (c_parser_cilk_grainsize): Likewise.
1450 (c_get_temp_regvar): Likewise.
1451 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
1452 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
1453 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
1454 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
1455 case.
1456
b7679d96
CG
14572014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
1458
1459 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
1460 with using HOST_WIDE_INT without truncation to 'int'
1461
59ea0364
MP
14622014-08-22 Marek Polacek <polacek@redhat.com>
1463
1464 PR c++/62199
1465 * c-typeck.c (parser_build_binary_op): Adjust call to
1466 warn_logical_not_parentheses.
1467
671a475e
IZ
14682014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
1469
1470 PR other/62008
1471 * c-parser.c (c_parser_array_notation): Check for correct
1472 type of an array added.
1473
04159acf
MP
14742014-08-19 Marek Polacek <polacek@redhat.com>
1475
1476 PR c++/62153
1477 * c-typeck.c (build_binary_op): If either operand of a comparison
1478 is a boolean expression, call maybe_warn_bool_compare.
1479
c77935ee
PP
14802014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
1481
1482 PR c/45584
1483 * c-typeck.c (build_c_cast): Do a conversion even when the
1484 TYPE_MAIN_VARIANTs are the same.
1485
35aff4fb
MP
14862014-08-19 Marek Polacek <polacek@redhat.com>
1487
1488 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
1489 pedwarn_c99 instead of pedwarn.
1490 (grokfield): Likewise.
1491 (warn_defaults_to): New function.
1492 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
1493 Unconditionally call pedwarn_c99 instead of pedwarn.
1494 (start_function): Call warn_defaults_to instead of pedwarn_c99.
1495 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
1496 check flag_isoc11 before.
1497 * c-errors.c (pedwarn_c99): Change the return type to bool.
1498 Handle -Wc99-c11-compat.
1499 * c-parser.c (disable_extension_diagnostics): Handle
1500 warn_c99_c11_compat.
1501 (restore_extension_diagnostics): Likewise.
1502 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
1503 instead of pedwarn, don't check flag_isoc11 before.
1504 (c_parser_declspecs): Likewise.
1505 (c_parser_alignas_specifier): Likewise.
1506 (c_parser_alignof_expression): Likewise.
1507 (c_parser_generic_selection): Likewise.
1508 * c-tree.h (pedwarn_c99): Update declaration.
1509 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
1510 of pedwarn_c99.
1511
177cce46
MP
15122014-08-19 Marek Polacek <polacek@redhat.com>
1513
1514 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
1515 to pedwarn_c90.
1516 * c-errors.c: Include "opts.h".
1517 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
1518 * c-parser.c (disable_extension_diagnostics): Handle negative value
1519 of warn_c90_c99_compat, too.
1520 (restore_extension_diagnostics): Likewise.
1521 (c_parser_compound_statement_nostart): Pass
1522 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
1523
6dc99c33
MP
15242014-08-12 Marek Polacek <polacek@redhat.com>
1525
1526 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
1527 Add pedwarn.
1528 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
1529 Likewise.
1530 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
1531
f3bede71
MP
15322014-08-10 Marek Polacek <polacek@redhat.com>
1533
1534 PR c/51849
1535 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
1536 Call pedwarn_c90 instead of pedwarn.
1537 (check_bitfield_type_and_width): Likewise.
1538 (declspecs_add_qual): Likewise.
1539 (declspecs_add_type): Likewise.
1540 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
1541 Adjust to only call pedwarn_c90.
1542 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
1543 pedwarn_c90 instead of pedwarn.
1544 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
1545 * c-parser.c (disable_extension_diagnostics): Handle
1546 warn_c90_c99_compat.
1547 (restore_extension_diagnostics): Likewise.
1548 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
1549 pedwarn_c90 instead of pedwarn.
1550 (c_parser_initelt): Likewise.
1551 (c_parser_postfix_expression): Likewise.
1552 (c_parser_postfix_expression_after_paren_type): Likewise.
1553 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
1554 * c-tree.h: Fix formatting.
1555 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
1556 pedwarn_c90 instead of pedwarn.
1557
9f25a338
TS
15582014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1559
1560 * c-typeck.c: Remove include of pointer-set.h.
1561
044331a8
MP
15622014-08-07 Marek Polacek <polacek@redhat.com>
1563
1564 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
1565
b787e7a2
TS
15662014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1567
1568 * c-typeck.c: Use hash_map instead of pointer_map.
1569
6e2830c3
TS
15702014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1571
1572 * c-decl.c: Use hash_set instead of pointer_set.
1573
a7ee52fb
IZ
15742014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1575
1576 PR middle-end/61455
1577 * c-array-notation.c (expand_array_notations): Handling
1578 of DECL_EXPR added.
1579
b4dfdc11
MG
15802014-07-31 Marc Glisse <marc.glisse@inria.fr>
1581
1582 PR c++/60517
1583 * c-typeck.c (c_finish_return): Return 0 instead of the address of
1584 a local variable.
1585
976d5a22
TT
15862014-07-30 Tom Tromey <tromey@redhat.com>
1587
1588 * c-typeck.c (struct constructor_stack) <designator_depth>: New
1589 field.
1590 (really_start_incremental_init, push_init_level): Initialize
1591 designator_depth.
1592 (pop_init_level): Set global designator_depth.
1593 (process_init_element): Check for designated_init attribute.
1594
30281de2
MP
15952014-07-20 Marek Polacek <polacek@redhat.com>
1596
1597 PR c/61852
1598 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
1599 (implicitly_declare): Pass location to implicit_decl_warning.
1600
b108f48f
JJ
16012014-07-14 Jakub Jelinek <jakub@redhat.com>
1602
1603 PR middle-end/61294
1604 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
1605 If non-NULL, call c_parser_check_literal_zero.
1606 (c_parser_check_literal_zero): New function.
1607 (c_parser_postfix_expression_after_primary): Adjust
1608 c_parser_expr_list caller, handle -Wmemset-transposed-args.
1609
773ec47f
MP
16102014-07-06 Marek Polacek <polacek@redhat.com>
1611
1612 PR c/6940
1613 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
1614 * c-tree.h (C_ARRAY_PARAMETER): Define.
1615 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
1616 function parameter.
1617
22e1cf1c
JH
16182014-07-02 Jan Hubicka <hubicka@ucw.cz>
1619 Chen Gang <gang.chen.5i5j@gmail.com>
1620
1621 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
1622 releasing symbol.
1623
52ec0ea3
MP
16242014-07-01 Marek Polacek <polacek@redhat.com>
1625
1626 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
1627 instead of 0 to WARN_FOR_ASSIGNMENT.
1628
d5c3d343
MP
16292014-07-01 Marek Polacek <polacek@redhat.com>
1630
1631 PR c/58286
1632 * c-typeck.c (convert_for_assignment): Pass
1633 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
1634
6a7253a4
MP
16352014-06-30 Marek Polacek <polacek@redhat.com>
1636
1637 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
1638 has no_sanitize_undefined attribute.
1639
5e88a8f4
IZ
16402014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
1641
1642 PR middle-end/57541
1643 * c-array-notation.c (fix_builtin_array_notation_fn):
1644 Check for 0 arguments in builtin call. Check that bultin argument is
1645 correct.
1646 * c-parser.c (c_parser_array_notation): Check for incorrect initial
1647 index.
1648
9698b078
SH
16492014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1650
1651 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
1652 qualifiers in __auto_type for atomic types.
1653 (c_parser_typeof_specifier): Discard all type qualifiers in
1654 __typeof__ for atomic types.
1655
6e07c515
MP
16562014-06-25 Marek Polacek <polacek@redhat.com>
1657
1658 PR c/61162
1659 * c-parser.c (c_parser_statement_after_labels): Pass the location of
1660 the return expression to c_finish_return.
1661
da6f124d
JJ
16622014-06-25 Jakub Jelinek <jakub@redhat.com>
1663
1664 * c-typeck.c (c_finish_omp_clauses): Make sure
1665 OMP_CLAUSE_LINEAR_STEP has correct type.
1666
c203e8a7
TS
16672014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1668
1669 * c-decl.c: Adjust.
1670
56ad0e38
JJ
16712014-06-24 Jakub Jelinek <jakub@redhat.com>
1672
1673 * c-parser.c (c_parser_omp_for_loop): For
1674 #pragma omp parallel for simd move lastprivate clause from parallel
1675 to for rather than simd.
1676
47c2554f
MP
16772014-06-23 Marek Polacek <polacek@redhat.com>
1678
1679 * c-typeck.c (parser_build_binary_op): Don't call
1680 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
1681
56363ffd
JH
16822014-06-15 Jan Hubicka <hubicka@ucw.cz>
1683
1684 * c-parser.c (c_parser_omp_threadprivate): Likewise.
1685 * c-decl.c (merge_decls): Likewise.
1686
d7ff7ae5
MP
16872014-06-09 Marek Polacek <polacek@redhat.com>
1688
1689 PR c/36446
1690 * c-typeck.c (error_init): Call inform instead of error_at.
1691 (pedwarn_init): Call inform instead of pedwarn.
1692 (warning_init): Call inform instead of warning_at.
1693
24d047a3
JH
16942014-06-07 Jan Hubicka <hubicka@ucw.cz>
1695
1696 * c-decl.c (merge_decls): Use set_decl_section_name.
1697 (duplicate_decls): Remove node if it exists.
1698
9bac5cbb
G
16992014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
1700
1701 PR c/53119
1702 * c-typeck.c (push_init_level, process_init_element,
1703 pop_init_level): Correct check for zero initialization, move
1704 missing brace warning to respect zero initialization.
1705
8ffcdea8
MP
17062014-06-05 Marek Polacek <polacek@redhat.com>
1707
1708 PR c/56724
1709 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
1710
742938c9
MP
17112014-06-05 Marek Polacek <polacek@redhat.com>
1712
1713 PR c/49706
1714 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
1715 on the left hand side operand of a comparison.
1716
6447c55d
MP
17172014-06-05 Marek Polacek <polacek@redhat.com>
1718
1719 PR c/48062
1720 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
1721 Print note only if the warning was printed.
1722
9dc7743c
IZ
17232014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
1724
1725 PR c/58942
1726 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
1727 with a pointer.
1728
fedfecef
MP
17292014-06-03 Marek Polacek <polacek@redhat.com>
1730
1731 PR c/60439
1732 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
1733 c_start_case.
1734 * c-tree.h (c_start_case): Update.
1735 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
1736 switch condition has boolean value.
1737
9b2b7279
AM
17382014-06-02 Andrew MacLeod <amacleod@redhat.com>
1739
1740 * c-decl.c: Include builtins.h.
1741 * c-parser.c: Likewise.
1742
5c1bc275
MP
17432014-05-27 Marek Polacek <polacek@redhat.com>
1744
1745 PR c/56724
1746 * c-typeck.c (convert_arguments): Get location of a parameter. Change
1747 error and warning calls to error_at and warning_at. Pass location of
1748 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
1749 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
1750 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
1751
97563bc8
IZ
17522014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
1753
1754 PR c/61191
1755 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
1756 function parameters.
1757
aede2c10
JH
17582014-05-23 Jan Hubicka <hubicka@ucw.cz>
1759
1760 * c-decl.c (merge_decls): Preserve symtab node pointers.
1761 (duplicate_decls): Free new decl.
1762
edbba2ce
TS
17632014-05-23 Thomas Schwinge <thomas@codesourcery.com>
1764
f3316c6d
TS
1765 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
1766 initialization.
1767
edbba2ce
TS
1768 * c-parser.c (c_parser_omp_target): Return bool values.
1769
68c81f24
TS
17702014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1771
1772 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
1773 num_teams_loc variable to num_thread_limit_loc.
1774
632f2871
RS
17752014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1776
1777 * c-array-notation.c (expand_array_notations): Use void_node
1778 instead of void_zero_node.
1779
766090c2
TS
17802014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1781
1782 * c-decl.c (finish_struct): Adjust.
1783 (finish_enum): Likewise.
1784 (bind): Adjust.
1785 (record_inline_static): Likewise.
1786 (push_scope): Likewise.
1787 (make_label): Likewise.
1788 (lookup_label_for_goto): Likewise.
1789 (finish_struct): Likewise.
1790 (finish_enum): Likewise.
1791 (store_parm_decls): Likewise.
1792 (c_push_function_context): Likewise.
1793 * c-lang.h: Remove usage of variable_size gty attribute.
1794 * c-parser.c (c_parse_init): Adjust.
1795 (c_parse_file): Likewise.
1796
2b107f6b
MP
17972014-05-13 Marek Polacek <polacek@redhat.com>
1798
1799 PR c/61162
1800 * c-typeck.c (convert_for_assignment): Pass location to
1801 WARN_FOR_ASSIGNMENT instead of input_location.
1802
d033409e
MP
18032014-05-10 Marek Polacek <polacek@redhat.com>
1804
1805 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
1806 maybe_warn_string_init.
1807 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
1808 maybe_warn_string_init.
1809 * c-tree.h (maybe_warn_string_init): Update declaration.
1810 * c-typeck.c (maybe_warn_string_init): Add location parameter.
1811 Call pedwarn_init with loc instead of with input_location.
1812 (digest_init): Pass init_loc to maybe_warn_string_init.
1813 (pop_init_level): Call pedwarn_init with loc instead of with
1814 input_location.
1815 (set_init_index): Likewise.
1816 (process_init_element): Likewise.
1817
ea58ef42
MP
18182014-05-09 Marek Polacek <polacek@redhat.com>
1819
1820 PR c/61096
1821 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
1822 (c_parser_initelt): Pass location to set_init_label. Pass array index
1823 location to set_init_index.
1824 * c-tree.h (push_init_level): Update declaration.
1825 (pop_init_level): Likewise.
1826 (set_init_index): Likewise.
1827 (set_init_label): Likewise.
1828 * c-typeck.c (error_init): Add location parameter. Call error_at
1829 instead of error.
1830 (digest_init): Pass init_loc to error_init.
1831 (really_start_incremental_init):
1832 (push_init_level): Add location parameter. Pass loc to pop_init_level
1833 and error_init.
1834 (pop_init_level): Likewise.
1835 (set_designator): Add location parameter. Pass loc to pop_init_level,
1836 push_init_level, and error_init.
1837 (set_init_index): Add location parameter. Pass loc to error_init and
1838 set_designator.
1839 (set_init_label): Likewise.
1840 (output_init_element): Pass loc to error_init.
1841 (process_init_element): Pass loc to error_init, pop_init_level,
1842 pedwarn_init, and push_init_level.
1843
661a0813
MP
18442014-05-09 Marek Polacek <polacek@redhat.com>
1845
1846 PR c/50459
1847 * c-parser.c (c_parser_attributes): Parse the arguments as an
1848 expression-list if the attribute takes identifier.
1849
2793eeab
MP
18502014-05-08 Marek Polacek <polacek@redhat.com>
1851
1852 PR c/61053
1853 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
1854 TYPE_ALIGN_UNIT.
1855
f827930a
MP
18562014-05-08 Marek Polacek <polacek@redhat.com>
1857
1858 PR c/61077
1859 * c-decl.c (start_function): Warn for _Atomic-qualified return type
1860 of main.
1861
1d60af08
KZ
18622014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1863 Mike Stump <mikestump@comcast.net>
1864 Richard Sandiford <rdsandiford@googlemail.com>
1865
1866 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
1867 (finish_enum): Use wide-int interfaces.
1868 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
1869 * c-typeck.c (build_c_cast): Likewise.
1870 (set_nonincremental_init_from_string): Likewise.
1871 (c_tree_equal): Likewise.
1872
a0e24419
MP
18732014-05-02 Marek Polacek <polacek@redhat.com>
1874
1875 PR c/25801
1876 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
1877 Return size_one_node when the type is not complete.
1878 (pointer_diff): Remove comment.
1879 (build_unary_op): Improve error messages.
1880
19fc9faa
MP
18812014-05-02 Marek Polacek <polacek@redhat.com>
1882
1883 * c-typeck.c (c_finish_return): Separate warning_at calls.
1884
63bc4e87
MP
18852014-05-02 Marek Polacek <polacek@redhat.com>
1886
1887 * c-tree.h (error_init): Remove declaration.
1888 (pedwarn_init): Likewise.
1889 * c-typeck.c (error_init): Make static and move above.
1890 (pedwarn_init): Likewise.
1891 (warning_init): Move above.
1892 (maybe_warn_string_init): Likewise.
1893
4bd2511b
JL
18942014-05-01 Jeff Law <law@redhat.com>
1895
1896 Revert:
1897
1898 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1899 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1900 avoid goto.
1901
6a358dcb
MP
19022014-05-02 Marek Polacek <polacek@redhat.com>
1903
1904 PR c/60784
1905 * c-typeck.c (push_init_level): Set constructor_designated to
1906 p->designated for structures.
1907
ae5ebda4
MP
19082014-05-01 Marek Polacek <polacek@redhat.com>
1909
1910 PR c/60915
1911 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1912 function-definition has an attribute after the declarator.
1913
96b40f8d
MP
19142014-05-01 Marek Polacek <polacek@redhat.com>
1915
1916 PR c/60257
1917 * c-typeck.c (warning_init): Add location_t parameter. Call
1918 warning_at instead of warning.
1919 (push_init_level): Pass input_location to warning_init.
1920 (add_pending_init): Add location_t parameter. Pass loc to
1921 warning_init.
1922 (set_nonincremental_init): Pass input_location to add_pending_init.
1923 (set_nonincremental_init_from_string): Likewise.
1924 (output_init_element): Pass loc to warning_init and to
1925 add_pending_init.
1926
32e00768
MP
19272014-05-01 Marek Polacek <polacek@redhat.com>
1928
1929 PR c/43395
1930 * c-typeck.c (c_finish_return): Distinguish between label and variable
1931 when warning about returning local address.
1932
c9379ce2
MP
19332014-05-01 Marek Polacek <polacek@redhat.com>
1934
1935 PR c/29467
1936 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1937 in C89 mode.
1938
d00887e8
MP
19392014-05-01 Marek Polacek <polacek@redhat.com>
1940
1941 PR c/43245
1942 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1943 instead of 0 to WARN_FOR_QUALIFIERS.
1944
5436fa2e
MP
19452014-05-01 Marek Polacek <polacek@redhat.com>
1946
1947 PR c/56989
1948 * c-typeck.c (default_conversion): Use better location for
1949 error call.
1950
f8ed5150
MP
19512014-04-30 Marek Polacek <polacek@redhat.com>
1952
1953 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1954 also when SANITIZE_FLOAT_DIVIDE is on.
1955
8337d1db
MP
19562014-04-30 Marek Polacek <polacek@redhat.com>
1957
1958 PR c/60139
1959 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1960 and pedwarn_init. Use loc insted of input_location.
1961
c4bdc42f
MP
19622014-04-30 Marek Polacek <polacek@redhat.com>
1963
1964 PR c/60351
1965 * c-typeck.c (build_binary_op): Use location when warning about
1966 shift count.
1967
45484dcf
MP
19682014-04-25 Marek Polacek <polacek@redhat.com>
1969
1970 PR c/18079
1971 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1972 always_inline/noinline and hot/cold attributes.
1973
34cf811f
MP
19742014-04-25 Marek Polacek <polacek@redhat.com>
1975
1976 PR c/60114
1977 * c-parser.c (c_parser_initelt): Pass input_location to
1978 process_init_element.
1979 (c_parser_initval): Pass loc to process_init_element.
1980 * c-tree.h (process_init_element): Adjust declaration.
1981 * c-typeck.c (push_init_level): Pass input_location to
1982 process_init_element.
1983 (pop_init_level): Likewise.
1984 (set_designator): Likewise.
1985 (output_init_element): Add location_t parameter. Pass loc to
1986 digest_init.
1987 (output_pending_init_elements): Pass input_location to
1988 output_init_element.
1989 (process_init_element): Add location_t parameter. Pass loc to
1990 output_init_element.
1991
42056eac
JJ
19922014-04-24 Jakub Jelinek <jakub@redhat.com>
1993
1994 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1995 atomic-clause, allow comma in between atomic-clause and
1996 seq_cst.
1997
e162a134
JJ
19982014-04-22 Jakub Jelinek <jakub@redhat.com>
1999
2000 PR c/59073
2001 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
2002 fails, don't set OM_PARALLEL_COMBINED and return NULL.
2003
2f6babac
IZ
20042014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2005
2006 PR middle-end/60469
2007 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2008 create_tmp_var instead build_decl for creating temps.
2009 (build_array_notation_expr): Likewise.
2010 (fix_conditional_array_notations_1): Likewise.
2011 (fix_array_notation_expr): Likewise.
2012 (fix_array_notation_call_expr): Likewise.
2013
8edbfaa6
JJ
20142014-03-28 Jakub Jelinek <jakub@redhat.com>
2015
2016 PR c++/60689
2017 * c-tree.h (c_build_function_call_vec): New prototype.
2018 * c-typeck.c (build_function_call_vec): Don't call
2019 resolve_overloaded_builtin here.
2020 (c_build_function_call_vec): New wrapper function around
2021 build_function_call_vec. Call resolve_overloaded_builtin here.
2022 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
2023 Call c_build_function_call_vec instead of build_function_call_vec.
2024 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2025 * c-decl.c (finish_decl): Likewise.
2026
7485aeea
MLI
20272014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2028
2029 PR c/55383
2030 * c-typeck.c: Use correct format string in cast-qual warning
2031
b17a8b07
TS
20322014-03-07 Thomas Schwinge <thomas@codesourcery.com>
2033
2034 * c-decl.c (c_decl_attributes): Use
2035 lang_hooks.types.omp_mappable_type.
2036 * c-typeck.c (c_finish_omp_clauses): Likewise.
2037
3af9c5e9
MP
20382014-03-06 Marek Polacek <polacek@redhat.com>
2039
2040 PR c/60197
2041 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
2042 of checking tree code.
2043
1c9f5f33
PK
20442014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2045
2046 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
2047 (c_parser_parameter_declaration): Likewise.
2048
cc28fc7f
MP
20492014-02-19 Marek Polacek <polacek@redhat.com>
2050
2051 PR c/60195
2052 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
2053 Call mark_exp_read on exp.value.
2054 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
2055 TREE_ADDRESSABLE on old instead of val.
2056 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
2057
b581c05c
PK
20582014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2059
2060 * c-parser.c (c_parser_get_builtin_args): Replace calls to
2061 C_EXPR_APPEND by vec_safe_push.
2062 * c-tree.h (C_EXPR_APPEND): Remove.
2063
81e5eca8
MP
20642014-01-31 Marek Polacek <polacek@redhat.com>
2065
2066 PR c/59963
2067 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
2068 build_function_call_vec.
2069 (build_function_call): Likewise.
2070 (build_atomic_assign): Likewise.
2071 (build_function_call_vec): Add arg_loc parameter. Use it.
2072 (convert_arguments): Likewise.
2073 (convert_for_assignment): Rename rhs_loc to expr_loc.
2074 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
2075 (c_parser_objc_keywordexpr): Likewise.
2076 (c_parser_postfix_expression_after_primary): Call
2077 build_function_call_vec with expr_loc rather than op_loc.
2078 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
2079 build_function_call_vec.
2080 (c_parser_expr_list): Add locations parameter. Fill it with locations
2081 of function arguments.
2082 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
2083
68fca595
MP
20842014-01-30 Marek Polacek <polacek@redhat.com>
2085
2086 PR c/59940
2087 * c-typeck.c (build_function_call_vec): Use loc parameter.
2088 (convert_arguments): Add location parameter. Use it.
2089 (ep_convert_and_check): Likewise.
2090 (build_atomic_assign): Adjust convert_for_assignment call.
2091 (build_modify_expr): Likewise.
2092 (digest_init): Likewise.
2093 (c_finish_return): Likewise.
2094 (build_conditional_expr): Adjust ep_convert_and_check calls.
2095 (convert_for_assignment): Add rhs_loc parameter. Use it.
2096 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
2097 calls.
2098
fa337f3a
RB
20992014-01-30 Richard Biener <rguenther@suse.de>
2100
2101 PR c/59905
2102 * c-typeck.c (build_function_call_vec): Do not replace calls
2103 to a function via an incompatible type with a runtime abort.
2104
b72271b9
BI
21052014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2106
2107 * c-parser.c (c_parser_declaration_or_fndef): Replaced
2108 flag_enable_cilkplus with flag_cilkplus.
2109 (c_parser_direct_declarator_inner): Likewise.
2110 (c_parser_attribute_any_word): Likewise.
2111 (c_parser_attributes): Likewise.
2112 (c_parser_compound_statement): Likewise.
2113 (c_parser_statement_after_labels): Likewise.
2114 (c_parser_if_statement): Likewise.
2115 (c_parser_switch_statement): Likewise.
2116 (c_parser_do_statement): Likewise.
2117 (c_parser_for_statement): Likewise.
2118 (c_parser_unary_expression): Likewise.
2119 (c_parser_postfix_expression): Likewise.
2120 (c_parser_postfix_expression_after_primary): Likewise.
2121 (c_parser_postfix_expression_after_primary): Likewise.
2122 (c_parser_omp_clause_name): Likewise.
2123 (c_finish_omp_declare_simd): Likewise.
2124 (c_parser_cilk_verify_simd): Likewise.
2125 * c-typeck.c (build_array_ref): Likewise.
2126 (build_function_call_vec): Likewise.
2127 (convert_arguments): Likewise.
2128 (build_compound_expr): Likewise.
2129 (c_finish_return): Likewise.
2130 (c_finish_if_stmt): Likewise.
2131 (c_finish_loop): Likewise.
2132 (build_binary_op): Likewise.
2133
393e8e8b
MP
21342014-01-23 Marek Polacek <polacek@redhat.com>
2135
2136 PR c/59846
2137 * c-typeck.c (parser_build_binary_op): Use location instead of
2138 input_location.
2139 (build_binary_op): Pass location to shorten_compare.
2140
f04dda30
MP
21412014-01-23 Marek Polacek <polacek@redhat.com>
2142
2143 PR c/58346
2144 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
2145 an empty aggregate.
2146
789eadcd
MP
21472014-01-23 Marek Polacek <polacek@redhat.com>
2148
2149 PR c/59871
2150 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
2151 of a comma expression.
2152 (emit_side_effect_warnings): Likewise.
2153
40f14e9f
BI
21542014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2155
2156 PR c/59825
2157 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
2158 function to use walk_tree and moved a lot of its functionality to
2159 expand_array_notations.
2160 (expand_array_notations): New function.
2161
74558dd9
BI
21622014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2163
2164 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
2165 attribute an attribute without value.
2166
652fea39
JJ
21672014-01-23 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR middle-end/58809
2170 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
2171 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
2172
f34f1c87
MP
21732014-01-22 Marek Polacek <polacek@redhat.com>
2174
2175 PR c/59891
2176 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
2177 of remove_c_maybe_const_expr on op1 and op2.
2178
241f845a
JJ
21792014-01-15 Jakub Jelinek <jakub@redhat.com>
2180
2181 PR c/58943
2182 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
2183 effects, preevaluate rhs using SAVE_EXPR first.
2184
9a74f20c
BI
21852014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
2186
2187 PR c++/59631
2188 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
2189 statements with if-elseif statements.
2190
96066ce1
MP
21912014-01-06 Marek Polacek <polacek@redhat.com>
2192
2193 PR c/57773
2194 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
2195 defined bit-field types only in ISO C.
2196
23a5b65a
RS
21972014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2198
2199 Update copyright years
2200
f9030485
RS
22012014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2202
2203 * c-array-notation.c: Use the standard form for the copyright notice.
2204
41958c28
BI
22052013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2206
2207 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
2208 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
2209 field in parser is not empty. If not-empty, call the function
2210 c_parser_finish_omp_declare_simd.
2211 (c_parser_cilk_clause_vectorlength): Modified function to be shared
2212 between SIMD-enabled functions and #pragma simd. Added new parameter.
2213 (c_parser_cilk_all_clauses): Modified the usage of the function
2214 c_parser_cilk_clause_vectorlength as mentioned above.
2215 (c_parser_cilk_simd_fn_vector_attrs): New function.
2216 (c_finish_cilk_simd_fn_tokens): Likewise.
2217 (is_cilkplus_vector_p): Likewise.
2218 (c_parser_omp_clause_name): Added checking for "vectorlength,"
2219 "nomask," and "mask" strings in clause name.
2220 (c_parser_omp_all_clauses): Added 3 new case statements:
2221 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
2222 PRAGMA_CILK_CLAUSE_NOMASK.
2223 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
2224 check for vector attribute and if so call the function
2225 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
2226 called the function c_finish_cilk_simd_fn_tokens.
2227 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
2228 parser field is non-empty. If so, parse them as you would parse
2229 the omp declare simd pragma.
2230 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
2231 Added a check when step is a parameter and flag it as error.
2232 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
2233 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
2234 pragma_omp_clause.
2235
cef0fd0e
TS
22362013-12-17 Thomas Schwinge <thomas@codesourcery.com>
2237
2238 * c-parser.c (c_parser_omp_parallel): Fix description.
2239
12893402
BI
22402013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2241
2242 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
2243 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2244 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2245 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
2246
296674db
JM
22472013-12-04 Joseph Myers <joseph@codesourcery.com>
2248
2249 PR c/52023
2250 * c-parser.c (c_parser_alignas_specifier): Use
2251 c_sizeof_or_alignof_type instead of c_alignof.
2252 (c_parser_alignof_expression): Likewise, with min_alignof
2253 parameter depending on alignof spelling used.
2254
edd28054
MP
22552013-12-04 Marek Polacek <polacek@redhat.com>
2256
2257 PR c/54113
2258 * c-decl.c (start_function): Don't warn for missing prototype for
2259 inline functions.
2260
da0fc454
MP
22612013-12-03 Marek Polacek <polacek@redhat.com>
2262
2263 PR c/59351
2264 * c-decl.c (build_compound_literal): Allow compound literals with
2265 empty initial value.
2266
4c2ecab0
JM
22672013-12-02 Joseph Myers <joseph@codesourcery.com>
2268
2269 PR c/58235
2270 * c-typeck.c (build_modify_expr): Diagnose assignment to
2271 expression with array type.
2272
340baef7
JM
22732013-11-29 Joseph Myers <joseph@codesourcery.com>
2274
2275 PR c/42262
2276 * c-typeck.c (process_init_element): Do not treat a string as
2277 initializing a whole array when used with a designator for an
2278 individual element.
2279
6763b9f7
JM
22802013-11-29 Joseph Myers <joseph@codesourcery.com>
2281
2282 PR c/57574
2283 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
2284 an inline function following a static declaration.
2285
e7bd1de1
JJ
22862013-11-28 Jakub Jelinek <jakub@redhat.com>
2287
2288 PR c/59310
2289 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
2290 to p_name before calling c_parser_omp_teams instead of after.
2291 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
2292 argument. Remove unused p_name variable.
2293
0136f8f0
AH
22942013-11-27 Aldy Hernandez <aldyh@redhat.com>
2295 Jakub Jelinek <jakub@redhat.com>
2296
2297 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
2298 external_scope is NULL.
2299
241b71bb
TV
23002013-11-27 Tom de Vries <tom@codesourcery.com>
2301 Marc Glisse <marc.glisse@inria.fr>
2302
2303 PR c++/59032
2304 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
2305
2fb9a547
AM
23062013-11-22 Andrew MacLeod <amacleod@redhat.com>
2307
2308 * c-typeck.c: Add required include files from gimple.h.
2309
8400e75e
DM
23102013-11-22 David Malcolm <dmalcolm@redhat.com>
2311
2312 * c-decl.c (define_label, shadow_tag_warned)
2313 (check_bitfield_type_and_width, grokdeclarator, grokparms,
2314 store_parm_decls_newstyle, store_parm_decls_oldstyle)
2315 (declspecs_add_type): Remove use of in_system_header macro.
2316 * c-parser.c (c_parser_unary_expression): Likewise.
2317 * c-typeck.c (store_init_value, process_init_element)
2318 (c_start_case): Likewise.
2319
2320 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
2321 macro.
2322
2323 * c-parser.c (c_parser_set_source_position_from_token): Remove
2324 reference to in_system_header from comment.
2325
386b1f1f
RS
23262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2327
2328 * c-decl.c (grokdeclarator): Update comment to refer to
2329 tree_to_[su]hwi rather than tree_low_cst.
2330
ae7e9ddd
RS
23312013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2332
2333 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
2334 tree_to_uhwi throughout.
2335
9439e9a1
RS
23362013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2337
2338 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
2339 throughout.
2340
9541ffee
RS
23412013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2342
2343 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2344 throughout.
2345
c02065fc
AH
23462013-11-15 Aldy Hernandez <aldyh@redhat.com>
2347
2348 * c-parser.c (c_parser_cilk_simd): New.
2349 (c_parser_cilk_verify_simd): New.
2350 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
2351 (c_parser_omp_for_loop): Add case for NE_EXPR.
2352 Set c_break_label for CILK_SIMD.
2353 (c_parser_cilk_clause_vectorlength): New.
2354 (c_parser_cilk_clause_linear): New.
2355 (c_parser_cilk_clause_name): New.
2356 (c_parser_cilk_all_clauses): New.
2357 * c-typeck.c (build_unary_op): Pass location argument to
2358 readonly_error.
2359 (build_modify_expr): Same.
2360 (build_asm_expr): Same.
2361 (c_finish_bc_stmt): Error on break/continue in loops.
2362
18f429e2
AM
23632013-11-14 Andrew MacLeod <amacleod@redhat.com>
2364
2365 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
2366
d8a2d370
DN
23672013-11-14 Diego Novillo <dnovillo@google.com>
2368
2369 * c-decl.c: Include print-tree.h.
2370 Include stor-layout.h.
2371 Include varasm.h.
2372 Include attribs.h.
2373 Include stringpool.h.
2374 * c-lang.c: Include fold-const.h.
2375 * c-parser.c: Include stringpool.h.
2376 Include attribs.h.
2377 Include stor-layout.h.
2378 Include varasm.h.
2379 Include trans-mem.h.
2380 * c-typeck.c: Include stor-layout.h.
2381 Include trans-mem.h.
2382 Include varasm.h.
2383 Include stmt.h.
2384
38b7bc7f
JM
23852013-11-13 Joseph Myers <joseph@codesourcery.com>
2386
2387 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
2388 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
2389 __auto_type.
2390 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
2391 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
2392 RID_AUTO_TYPE.
2393 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
2394 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
2395 (c_parser_declarator, c_parser_direct_declarator_inner)
2396 (c_parser_parameter_declaration, c_parser_type_name): All callers
2397 changed.
2398 (c_parser_declaration_or_fndef): Handle declarations with type
2399 determined from the initializer.
2400
45b0be94
AM
24012013-11-12 Andrew MacLeod <amacleod@redhat.com>
2402
18f429e2 2403 * c-typeck.c: Include gimplify.h.
45b0be94 2404
582d9b50
JM
24052013-11-12 Joseph Myers <joseph@codesourcery.com>
2406
2407 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
2408 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
2409 comment.
2410 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
2411 or _Thread_local as appropriate in diagnostics.
2412 (build_null_declspecs): Initialize ret->thread_gnu_p.
2413 (declspecs_add_scspec): Handle either __thread or _Thread_local
2414 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
2415 pedantic. Do not disallow _Thread_local extern and _Thread_local
2416 static.
2417
267bac10
JM
24182013-11-07 Joseph Myers <joseph@codesourcery.com>
2419 Andrew MacLeod <amacleod@redhat.com>
2420
2421 * c-aux-info.c (gen_type): Handle atomic qualifier.
2422 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
2423 qualifiers when compating types.
2424 (shadow_tag_warned): Handle atomic_p in declspecs.
2425 (quals_from_declspecs): Likewise.
2426 (start_decl): Use c_type_promotes_to when promoting argument
2427 types.
2428 (grokdeclarator): Handle _Atomic.
2429 (get_parm_info): Diagnose any qualifier on "void" as only
2430 parameter.
2431 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
2432 comparing types. Use c_type_promotes_to when promoting argument
2433 types.
2434 (finish_function): Use c_type_promotes_to when promoting argument
2435 types.
2436 (build_null_declspecs): Handle atomic_p in declspecs.
2437 (declspecs_add_qual): Handle RID_ATOMIC.
2438 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
2439 (c_token_starts_declspecs): Handle RID_ATOMIC.
2440 (c_parser_declspecs): Handle atomic type specifiers and
2441 qualifiers.
2442 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
2443 from types of expressions with atomic type.
2444 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
2445 (c_parser_attribute_any_word): Handle RID_ATOMIC.
2446 (c_parser_initializer, c_parser_initelt, c_parser_initval)
2447 (c_parser_statement_after_labels, c_parser_switch_statement)
2448 (c_parser_for_statement, c_parser_expr_no_commas)
2449 (c_parser_conditional_expression, c_parser_binary_expression)
2450 (c_parser_cast_expression, c_parser_unary_expression)
2451 (c_parser_postfix_expression)
2452 (c_parser_postfix_expression_after_primary, c_parser_expression):
2453 Use convert_lvalue_to_rvalue.
2454 (c_parser_expression_conv, c_parser_expr_list): Document
2455 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
2456 (c_parser_objc_synchronized_statement): Use
2457 convert_lvalue_to_rvalue.
2458 (c_parser_objc_selector): Handle RID_ATOMIC.
2459 (c_parser_objc_receiver, c_parser_array_notation): Use
2460 convert_lvalue_to_rvalue.
2461 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
2462 _Atomic (type-name).
2463 (struct c_declspecs): Add atomic_p field.
2464 (convert_lvalue_to_rvalue): Declare.
2465 * c-typeck.c (c_type_promotes_to): Promote atomic types to
2466 corresponding atomic types.
2467 (qualify_type): Don't add _Atomic qualifiers from second argument.
2468 (comp_target_types): Do not allow _Atomic mismatches.
2469 (type_lists_compatible_p): Do not remove atomic qualifiers when
2470 comparing types.
2471 (really_atomic_lvalue, convert_lvalue_to_rvalue)
2472 (build_atomic_assign): New functions.
2473 (build_unary_op): Use build_atomic_assign for atomic increment and
2474 decrement.
2475 (build_conditional_expr): Do not treat _Atomic void as a qualified
2476 version of void.
2477 (build_modify_expr): Use build_atomic_assign for atomic LHS.
2478 (find_anonymous_field_with_type, convert_to_anonymous_field)
2479 (convert_for_assignment): Do not remove atomic qualifiers when
2480 comparing types.
2481 (digest_init): Do not accept initialization of arrays of atomic
2482 elements by string constants.
2483 (build_asm_expr): Use convert_lvalue_to_rvalue.
2484 (build_binary_op): Do not treat _Atomic void as a qualified
2485 version of void.
2486
0c249d4b
DD
24872013-11-06 DJ Delorie <dj@redhat.com>
2488
2489 * c-decl.c (locate_old_decl): If a previous conflicting decl is
2490 both explicit and builtin, print the location of the explicit one.
2491
6d7f7e0a
TB
24922013-11-05 Tobias Burnus <burnus@net-b.de>
2493
2494 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
2495 c_parser_omp_distribute, c_parser_omp_teams,
2496 c_parser_omp_target, c_parser_omp_declare): Handle
2497 -fopenmp-simd.
2498
b906f4ca
MP
24992013-11-03 Marek Polacek <polacek@redhat.com>
2500
2501 * c-decl.c (grokdeclarator): Add VLA instrumentation.
2502
ee1d5a02
JJ
25032013-11-01 Jakub Jelinek <jakub@redhat.com>
2504
2505 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
2506 check_dup_generic at the end, unless remove is true.
2507 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
2508 remove = true;.
2509 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
2510
5a9785fb
JJ
25112013-10-31 Jakub Jelinek <jakub@redhat.com>
2512
2513 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
2514 with decl that is not pointer nor array.
2515
939b37da
BI
25162013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2517
2518 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
2519 a spawning function is found.
2520 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
2521 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
2522 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2523 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
2524 case.
2525 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
2526 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
2527 expr.
2528 (c_finish_return): Added a check to reject _Cilk_spawn in return
2529 expression.
2530 (build_cilk_spawn): New function.
2531 (build_cilk_sync): Likewise.
2532 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
2533
d4af74d4
TB
25342013-10-27 Tobias Burnus <burnus@net-b.de>
2535
2536 PR other/33426
2537 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
2538 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
2539 (c_parser_statement_after_labels): Update calls.
2540
d73749df 25412013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2542
2543 PR other/33426
2544 * c-parser.c (c_parser_pragma, c_parser_for_statement):
2545 Handle PRAGMA_IVDEP.
2546 (c_parser_statement_after_labels): Update call.
2547
f28aa681
MP
25482013-10-24 Marek Polacek <polacek@redhat.com>
2549
2550 * c-parser.c (c_parser_struct_declaration): Add a comment.
2551 (c_parser_declarator): Don't allow _Alignas here.
2552
0645c1a2
AM
25532013-10-17 Andrew MacLeod <amacleod@redhat.com>
2554
2555 * c-parser.c: Include omp-low.h.
2556 * c-typeck.c: Likewise.
2557
568a31f2
MP
25582013-10-17 Marek Polacek <polacek@redhat.com>
2559
2560 PR c/58267
2561 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
2562 Document syntax of the array-declarator.
2563 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
2564 are not permitted.
2565 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
2566 (c_parser_struct_declaration): Likewise.
2567 (c_parser_declarator): Likewise.
2568 (c_parser_direct_declarator_inner): Likewise.
2569 (c_parser_parameter_declaration): Likewise.
2570 (c_parser_type_name): Likewise.
2571
acf0174b
JJ
25722013-10-11 Jakub Jelinek <jakub@redhat.com>
2573
2574 * c-lang.h (current_omp_declare_target_attribute): New extern
2575 decl.
2576 * c-parser.c: Include c-lang.h.
2577 (struct c_parser): Change tokens to c_token *.
2578 Add tokens_buf field. Change tokens_avail type to unsigned int.
2579 (c_parser_consume_token): If parser->tokens isn't
2580 &parser->tokens_buf[0], increment parser->tokens.
2581 (c_parser_consume_pragma): Likewise.
2582 (enum pragma_context): Add pragma_struct and pragma_param.
2583 (c_parser_external_declaration): Adjust
2584 c_parser_declaration_or_fndef caller.
2585 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
2586 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
2587 Adjust recursive call.
2588 (c_parser_struct_or_union_specifier): Use pragma_struct instead
2589 of pragma_external.
2590 (c_parser_parameter_declaration): Use pragma_param instead of
2591 pragma_external.
2592 (c_parser_compound_statement_nostart, c_parser_label,
2593 c_parser_for_statement): Adjust
2594 c_parser_declaration_or_fndef callers.
2595 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
2596 it through to c_parser_conditional_expression.
2597 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
2598 pass it through to c_parser_binary_expression. Adjust recursive
2599 call.
2600 (c_parser_binary_expression): Remove prec argument, add
2601 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
2602 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
2603 binop matches it, use build2 instead of parser_build_binary_op.
2604 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
2605 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
2606 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
2607 Handle pragma_struct and pragma_param the same as pragma_external.
2608 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
2609 (c_parser_omp_variable_list): Parse array sections for
2610 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
2611 (c_parser_omp_clause_collapse): Fully fold collapse expression.
2612 (c_parser_omp_clause_reduction): Handle user defined reductions.
2613 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
2614 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
2615 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
2616 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
2617 c_parser_omp_clause_depend, c_parser_omp_clause_map,
2618 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
2619 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
2620 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
2621 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
2622 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
2623 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
2624 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
2625 (c_parser_omp_for_loop): Add CODE argument, pass it through
2626 to c_finish_omp_for. Change last argument to cclauses,
2627 and adjust uses to grab parallel clauses from the array of all
2628 the split clauses. Adjust c_parser_binary_expression,
2629 c_parser_declaration_or_fndef and c_finish_omp_for callers.
2630 (omp_split_clauses): New function.
2631 (c_parser_omp_simd): New function.
2632 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
2633 Allow the function to be called also when parsing combined constructs,
2634 and call c_parser_omp_simd when parsing for simd.
2635 (c_parser_omp_sections_scope): If section-sequence doesn't start with
2636 #pragma omp section, require exactly one structured-block instead of
2637 sequence of statements.
2638 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
2639 Allow the function to be called also when parsing combined constructs.
2640 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
2641 Allow the function to be called also when parsing combined
2642 constructs.
2643 (c_parser_omp_taskgroup, c_parser_omp_cancel,
2644 c_parser_omp_cancellation_point, c_parser_omp_distribute,
2645 c_parser_omp_teams, c_parser_omp_target_data,
2646 c_parser_omp_target_update, c_parser_omp_target,
2647 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
2648 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
2649 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
2650 (c_parser_omp_construct): Add p_name and mask vars. Handle
2651 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
2652 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
2653 and c_parser_omp_sections callers.
2654 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
2655 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
2656 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
2657 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
2658 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
2659 OMP_CLAUSE_DEPEND.
2660 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
2661 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
2662 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
2663 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
2664 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
2665 * c-typeck.c: Include tree-inline.h.
2666 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
2667 handle_omp_array_sections_1, handle_omp_array_sections,
2668 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
2669 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
2670 user defined reductions.
2671 (c_tree_equal): New function.
2672 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
2673 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
2674 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
2675 c_check_omp_declare_reduction_r): New prototypes.
2676 * c-decl.c (current_omp_declare_target_attribute): New variable.
2677 (c_decl_attributes): New function.
2678 (start_decl, start_function): Use it instead of decl_attributes.
2679 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
2680 c_omp_reduction_decl, c_omp_reduction_lookup,
2681 c_check_omp_declare_reduction_r): New functions.
2682
0a6c2227
TT
26832013-09-25 Tom Tromey <tromey@redhat.com>
2684
2685 * Make-lang.in (c/gccspec.o): Remove.
2686 (CFLAGS-c/gccspec.o): New variable.
2687 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
2688 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
2689 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
2690
f3bc55f0
TT
26912013-09-25 Tom Tromey <tromey@redhat.com>
2692
2693 * Make-lang.in (c/gccspec.o): Don't use subshell.
2694
a24d975c
MP
26952013-09-18 Marek Polacek <polacek@redhat.com>
2696
2697 PR sanitize/58443
2698 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
2699 Remove unnecessary check.
2700
ce6923c5
MP
27012013-09-18 Marek Polacek <polacek@redhat.com>
2702
2703 PR sanitizer/58411
2704 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
2705 no_sanitize_undefined attribute.
2706
a1e51df9
KT
27072013-09-13 Kai Tietz <ktietz@redhat.com>
2708
2709 PR target/57848
2710 * c-decl.c (c_builtin_function_ext_scope): Remove
2711 wrong assumption that it is never called on prexisting
2712 symbol.
2713
0af94e6f
JR
27142013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2715
2716 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
2717
20059c8b
GDR
27182013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2719
2720 * c-objc-common.c (c_tree_printer): Tidy.
2721
de5a5fa1
MP
27222013-08-30 Marek Polacek <polacek@redhat.com>
2723
2724 * c-typeck.c (build_binary_op): Add division by zero and shift
2725 instrumentation.
2726
2531a1d9 27272013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 2728 Joseph Myers <joseph@codesourcery.com>
2531a1d9 2729
6e2bcc98 2730 PR c/35649
2531a1d9
JR
2731 * c-typeck.c (c_common_type): Prefer double_type_node over
2732 other REAL_TYPE types with the same precision.
2733 (convert_arguments): Likewise.
2734
025311c4
GDR
27352013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
2736
2737 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
2738 (c_initialize_diagnostics): Call a destructor for the early printer.
2739
da6ca2b5
GDR
27402013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2741
2742 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
2743 printer initialization.
2744
318cda85 27452013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 2746
318cda85
BI
2747 PR c/57490
2748 * c-array-notation.c (fix_conditional_array_notations_1): Added a
2749 check for truth values.
2750 (expand_array_notation_exprs): Added truth values case. Removed an
2751 unwanted else. Added for-loop to walk through subtrees in default
2752 case.
2753
b066401f
GDR
27542013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2755
2756 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
2757
fb48aadc
JM
27582013-07-23 Joseph Myers <joseph@codesourcery.com>
2759
2760 * c-parser.c (struct c_generic_association): Fix typo.
2761
433cc7b0
TT
27622013-07-23 Tom Tromey <tromey@redhat.com>
2763 Joseph Myers <joseph@codesourcery.com>
2764
2765 * c-parser.c (struct c_generic_association): New.
2766 (c_generic_association_d): New typedef.
2767 (c_parser_generic_selection): New function.
2768 (c_parser_postfix_expression): Handle RID_GENERIC.
2769
26d40c3d
JM
27702013-07-13 Jason Merrill <jason@redhat.com>
2771
2772 PR c++/57793
2773 * c-decl.c (finish_struct): Check for too-large class.
2774
ecdbd01a 27752013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2776
2777 PR c/57821
2778 * c-typeck.c (set_init_index): When folding, check for index overflow.
2779
1141ed3f
BI
27802013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2781
2782 * c-parser.c (c_parser_array_notation): Removed rejection of array
2783 notations in an array of function pointers.
2784
713b46fa
BI
27852013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2786
2787 * c-array-notation.c (make_triplet_val_inv): New function.
2788 (create_cmp_incr): Likewise.
2789 (create_array_refs): Likewise.
2790 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
2791 Also modularized common parts between functions and called the function.
2792 (build_array_notation_expr): Likewise.
2793 (fix_conditional_array_notations_1): Likewise.
2794 (fix_array_notation_expr): Likewise.
2795 (fix_array_notation_call_expr): Likewise.
2796
92f20202
MP
27972013-06-18 Marek Polacek <polacek@redhat.com>
2798
2799 PR c/57630
2800 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
2801
73a23b06
BI
28022013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
2803
2804 * c-array-notation.c (build_array_notation_expr): Reject array notation
2805 mismatch between LHS and RHS even inside a call_expr. Also, removed
2806 a couple while statements that were dead code.
2807
00b8517d
BI
28082013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
2809
2810 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
2811 excessive precision expressions in function parameters. Also removed
2812 couple unwanted while statements.
2813
1509bdda
BI
28142013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2815
2816 * c-array-notation.c (expand_array_notation_exprs): Added
2817 ARRAY_NOTATION_REF case.
2818
d60f1706
BI
28192013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2820
2821 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
2822 function to c-family/array-notation-common.c.
2823 (is_cilkplus_reduce_builtin): Likewise.
2824 (find_rank): Likewise.
2825 (extract_array_notation_exprs): Likewise.
2826 (replace_array_notations): Likewise.
2827 (find_inv_trees): Likewise.
2828 (replace_inv_trees): Likewise.
2829 (contains_array_notation_expr): Likewise.
2830 (find_correct_array_notation_type): Likewise.
2831 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
2832 (struct inv_list): Moved this to c-family/array-notation-common.c.
2833 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
2834
6d6efbb3
BI
28352013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
2836
2837 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
2838 reduction functions outside the for-loop. Added a check if the fundecl
2839 is non-NULL. Finally, removed an unwanted if-statement, and made the
2840 body unconditional.
2841
25c22937
BI
28422013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2843
2844 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
2845 condition of the if-statement matches the rank of else-block and then-
2846 block when array notations are used.
2847 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
2848 expression after the entire function body is parsed.
2849 (c_parser_expr_no_commas): Delayed creating array notation expressions
2850 to the end of function parsing.
2851 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
2852 whole if-statement instead of just the condition.
2853 (expand_array_notation_exprs): Added MODIFY_EXPR case.
2854
edd25645
BI
28552013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2856
2857 PR c/57474
2858 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
2859 array to NULL_TREE if they are unused. Also added a check for the
2860 field to be NULL before its fields are used in future.
2861
065ce7f1
RO
28622013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2863
2864 PR bootstrap/57450
2865 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
2866 (build_array_notation_expr): Likewise.
2867
36536d79
BI
28682013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2869
2870 * c-typeck.c (build_array_ref): Added a check to see if array's
2871 index is greater than one. If true, then emit an error.
2872 (build_function_call_vec): Exclude error reporting and checking
2873 for builtin array-notation functions.
2874 (convert_arguments): Likewise.
2875 (c_finish_return): Added a check for array notations as a return
2876 expression. If true, then emit an error.
2877 (c_finish_loop): Added a check for array notations in a loop
2878 condition. If true then emit an error.
2879 (lvalue_p): Added a ARRAY_NOTATION_REF case.
2880 (build_binary_op): Added a check for array notation expr inside
2881 op1 and op0. If present, we call another function to find correct
2882 type.
2883 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
2884 * c-parser.c (c_parser_compound_statement): Check if array
2885 notation code is used in tree, if so, then transform them into
2886 appropriate C code.
2887 (c_parser_expr_no_commas): Check if array notation is used in LHS
2888 or RHS, if so, then build array notation expression instead of
2889 regular modify.
2890 (c_parser_postfix_expression_after_primary): Added a check for
2891 colon(s) after square braces, if so then handle it like an array
2892 notation. Also, break up array notations in unary op if found.
2893 (c_parser_direct_declarator_inner): Added a check for array
2894 notation.
2895 (c_parser_compound_statement): Added a check for array notation in
2896 a stmt. If one is present, then expand array notation expr.
2897 (c_parser_if_statement): Likewise.
2898 (c_parser_switch_statement): Added a check for array notations in
2899 a switch statement's condition. If true, then output an error.
2900 (c_parser_while_statement): Similarly, but for a while.
2901 (c_parser_do_statement): Similarly, but for a do-while.
2902 (c_parser_for_statement): Similarly, but for a for-loop.
2903 (c_parser_unary_expression): Check if array notation is used in a
2904 pre-increment or pre-decrement expression. If true, then expand
2905 them.
2906 (c_parser_array_notation): New function.
2907 * c-array-notation.c: New file.
2908 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2909
cd192ccc
MS
29102013-05-23 Mike Stump <mikestump@comcast.net>
2911
2912 * c-typeck.c (convert_for_assignment): Handle references to memory
2913 spaces better.
2914
427b248d
JM
29152013-05-16 Jason Merrill <jason@redhat.com>
2916
2917 * Make-lang.in (cc1$(exeext)): Use link mutex.
2918
44d90fe1
PC
29192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2920
2921 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2922 to simply use OPT_Wpointer_arith.
2923 (build_unary_op): Likewise.
2924
4e7d7b3d
JJ
29252013-04-03 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR c/19449
2928 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2929 argument. If set, or it temporarily for parsing of the first
2930 argument into force_folding_builtin_constant_p.
2931 (c_parser_postfix_expression): Adjust callers.
2932
839b422f
RB
29332013-03-21 Richard Biener <rguenther@suse.de>
2934
2935 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2936 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2937
2ee028f1
MP
29382013-02-12 Marek Polacek <polacek@redhat.com>
2939
2940 PR c/44938
2941 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2942 origtypes to NULL.
2943
8824edff
JJ
29442013-01-24 Jakub Jelinek <jakub@redhat.com>
2945
2946 PR c/56078
2947 * c-typeck.c (set_nonincremental_init_from_string): If
2948 constructor_max_index is NULL, treat it as if tree_int_cst_lt
2949 returned false.
2950 (process_init_element): Likewise.
2951
eadd3d0d
JJ
29522012-12-20 Jakub Jelinek <jakub@redhat.com>
2953
2954 PR c++/55619
2955 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2956 argument, don't call default_function_array_conversion
2957 nor c_fully_fold here.
2958 (c_parser_asm_statement): Adjust callers.
2959 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2960 and outputs here, and call default_function_array_conversion
2961 on inputs that don't need to be addressable.
2962
f8a93a2e
JJ
29632012-12-18 Jakub Jelinek <jakub@redhat.com>
2964
2965 PR c/39464
2966 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2967 warning require that both c_common_unsigned_type as well as
2968 c_common_signed_type is the same for both mvl and mvr types.
2969
9771b263
DN
29702012-11-16 Diego Novillo <dnovillo@google.com>
2971
2972 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2973
2974 * c-common.c: Use new vec API in vec.h.
2975 * c-common.h: Likewise.
2976 * c-gimplify.c: Likewise.
2977 * c-pragma.c: Likewise.
2978 * c-pretty-print.c: Likewise.
2979 * c-pretty-print.h: Likewise.
2980 * c-semantics.c: Likewise.
2981 * c-decl.c: Likewise.
2982 * c-parser.c: Likewise.
2983 * c-tree.h: Likewise.
2984 * c-typeck.c: Likewise.
2985
880661a4
JW
29862012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2987
2988 PR c++/54930
2989 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2990
077d1abe
MLI
29912012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2992
2993 PR c/53066
2994 * c-decl.c (warn_if_shadowing): Do not warn if a variable
2995 shadows a function, unless the variable is a function or a
2996 pointer-to-function.
2997
3a785c97
JJ
29982012-10-12 Jakub Jelinek <jakub@redhat.com>
2999
3000 PR c/54381
3001 * c-parser.c (struct c_tree_loc_pair): Removed.
3002 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
3003 add location_t * and tree * arguments, fill in array of 3
3004 sizeof_arg trees and corresponding locs.
3005 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
3006 c_parser_expr_list callers.
3007 (c_parser_postfix_expression_after_primary): Likewise. Pass
3008 array of 3 sizeof_arg trees and locs (corresponding to first
3009 3 arguments) to sizeof_pointer_memaccess_warning.
3010
703c8606
LC
30112012-10-09 Lawrence Crowl <crowl@google.com>
3012
3013 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
3014 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
3015 hash table.
3016
5d9de0d0
PC
30172012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3018
3019 PR c++/54194
3020 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
3021 call.
3022
a212e43f
MG
30232012-10-09 Marc Glisse <marc.glisse@inria.fr>
3024
3025 PR c++/54427
3026 * c-typeck.c: Include c-common.h.
3027 (enum stv_conv): Moved to c-common.h.
3028 (scalar_to_vector): Moved to c-common.c.
3029 (build_binary_op): Adapt to scalar_to_vector's new prototype.
3030 * Make-lang.in: c-typeck.c depends on c-common.h.
3031
3b78de56
AC
30322012-10-04 Arnaud Charlet <charlet@adacore.com>
3033
3034 * c-decl.c (c_write_global_declarations): Fix handling of
3035 -fdump-ada-spec*.
3036
78c60e3d
SS
30372012-09-30 Sharad Singhai <singhai@google.com>
3038
3039 * c-decl.c (c_write_global_declarations): Use a different method
3040 to determine if the dump has ben initialized.
3041
9f33203d
JM
30422012-09-14 Joseph Myers <joseph@codesourcery.com>
3043
3044 PR c/54552
3045 * c-typeck.c (c_cast_expr): When casting to a type requiring
3046 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
3047 c_fully_fold first.
3048
a27d595d
JM
30492012-09-14 Joseph Myers <joseph@codesourcery.com>
3050
3051 PR c/54103
3052 * c-typeck.c (build_unary_op): Pass original argument of
3053 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
3054 any C_MAYBE_CONST_EXPR, if it has integer operands.
3055 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
3056 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
3057 to c_objc_common_truthvalue_conversion, then remove any
3058 C_MAYBE_CONST_EXPR, if they have integer operands. Use
3059 c_objc_common_truthvalue_conversion not
3060 c_common_truthvalue_conversion.
3061 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
3062 call note_integer_operands for arguments with integer operands
3063 that are not integer constants.
3064
9feb29df
JJ
30652012-09-13 Jakub Jelinek <jakub@redhat.com>
3066
3067 PR c/54559
3068 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
3069 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
3070
d409320c
JJ
30712012-08-31 Jakub Jelinek <jakub@redhat.com>
3072
3073 PR c/54428
3074 * c-convert.c (convert): Don't call fold_convert_loc if
3075 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
3076 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
3077 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
3078
6265d07c
JJ
30792012-08-24 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR c/54355
3082 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
3083 for nested and empty_ok arguments in the call to
3084 c_parser_declaration_or_fndef.
3085
1a4049e7
JJ
30862012-08-17 Jakub Jelinek <jakub@redhat.com>
3087
3088 * c-tree.h (c_last_sizeof_arg): Declare.
3089 * c-parser.c (struct c_tree_loc_pair): New type.
3090 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
3091 non-NULL.
3092 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
3093 (c_parser_postfix_expression_after_primary): Likewise. Call
3094 sizeof_pointer_memaccess_warning if needed.
3095 (sizeof_ptr_memacc_comptypes): New function.
3096 * c-typeck.c (c_last_sizeof_arg): New global variable.
3097 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
3098
0229aee9
UB
30992012-07-24 Uros Bizjak <ubizjak@gmail.com>
3100
3101 * c-lang.h (lang_decl): Add variable_size GTY option.
3102
7ee2468b
SB
31032012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3104
3105 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
3106 * Make-lang.in: Fix dependencies.
3107
d4a10d0a
SB
31082012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3109
3110 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
3111 and add language Makefile hooks.
3112 * config-lang.in: New file.
3113 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
3114 add the required "normal" config-lang.in rules.
3115 * c-lang.h: Moved from gcc/ to here.
3116 * c-tree.h: Likewise.
3117 * c-objc-common.c: Likewise.
3118 * c-objc-common.h: Likewise.
3119 * c-typeck.c: Likewise.
3120 * c-convert.c: Likewise.
3121 * c-lang.c: Likewise.
3122 * c-aux-info.c: Likewise.
3123 * c-errors.c: Likewise.
3124 * gccspec.c: Likewise.
3125 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
3126 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
3127\f
5624e564 3128Copyright (C) 2012-2015 Free Software Foundation, Inc.
d4a10d0a
SB
3129
3130Copying and distribution of this file, with or without modification,
3131are permitted in any medium without royalty provided the copyright
3132notice and this notice are preserved.
This page took 1.062436 seconds and 5 git commands to generate.