Makefile.in: Don't cat ../stage_current if it does not exist.
[gcc.git] / gcc / c / ChangeLog
1 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2
3 * Make-lang.in: Don't cat ../stage_current if it does not exist.
4
5 2016-06-23 Andi Kleen <ak@linux.intel.com>
6
7 * Make-lang.in: Add support for autofdo.
8
9 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10
11 PR c/70339
12 * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
13 (implicit_decl_warning): When issuing warnings for implicit
14 declarations, attempt to provide a suggestion via
15 lookup_name_fuzzy.
16 (undeclared_variable): Likewise when issuing errors.
17 (lookup_name_in_scope): Likewise.
18 (struct edit_distance_traits<cpp_hashnode *>): New struct.
19 (best_macro_match): New typedef.
20 (find_closest_macro_cpp_cb): New function.
21 (lookup_name_fuzzy): New function.
22 * c-parser.c: Include gcc-rich-location.h.
23 (c_token_starts_typename): Split out case CPP_KEYWORD into...
24 (c_keyword_starts_typename): ...this new function.
25 (c_parser_declaration_or_fndef): When issuing errors about
26 missing "struct" etc, add a fixit. For other kinds of errors,
27 attempt to provide a suggestion via lookup_name_fuzzy.
28 (c_parser_parms_declarator): When looking ahead to detect typos in
29 type names, also reject CPP_KEYWORD.
30 (c_parser_parameter_declaration): When issuing errors about
31 unknown type names, attempt to provide a suggestion via
32 lookup_name_fuzzy.
33 * c-tree.h (c_keyword_starts_typename): New prototype.
34
35 2016-06-20 Joseph Myers <joseph@codesourcery.com>
36
37 PR c/71601
38 * c-typeck.c (build_conditional_expr): Return error_mark_node if
39 c_common_type returns error_mark_node.
40
41 2016-06-19 Martin Sebor <msebor@redhat.com>
42
43 PR c/69507
44 * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
45 __alignof__ (expression).
46
47 2016-06-14 David Malcolm <dmalcolm@redhat.com>
48
49 * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
50
51 2016-06-14 David Malcolm <dmalcolm@redhat.com>
52
53 * c-typeck.c (build_component_ref): Simplify fixit code by
54 using gcc_rich_location::add_fixit_misspelled_id.
55 (set_init_label): Likewise.
56
57 2016-06-13 David Malcolm <dmalcolm@redhat.com>
58
59 * c-parser.c (c_parser_initelt): Provide location of name for new
60 location_t param of set_init_label.
61 * c-tree.h (set_init_label): Add location_t param.
62 * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
63 param and use it when issuing error messages about unrecognized
64 field names. Attempt to provide a fixit hint if appropriate,
65 otherwise update the error message to provide the type name.
66
67 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
68
69 PR c/71381
70 * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
71 Loosen checking.
72
73 2016-06-08 Martin Sebor <msebor@redhat.com>
74 Jakub Jelinek <jakub@redhat.com>
75
76 PR c++/70507
77 PR c/68120
78 * c-typeck.c (convert_arguments): Don't promote last argument
79 of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
80
81 2016-06-08 Marek Polacek <polacek@redhat.com>
82
83 PR c/71418
84 * c-decl.c (grokdeclarator): Check TYPE_P.
85
86 PR c/71426
87 * c-decl.c (get_parm_info): Don't crash on an assert on invalid
88 code.
89
90 2016-06-07 David Malcolm <dmalcolm@redhat.com>
91
92 * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
93 and structure element reference, capture the location of the
94 element name token and pass it to build_component_ref.
95 (c_parser_postfix_expression_after_primary): Likewise for
96 structure element dereference.
97 (c_parser_omp_variable_list): Likewise for
98 OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
99 * c-tree.h (build_component_ref): Add location_t param.
100 * c-typeck.c (build_component_ref): Add location_t param
101 COMPONENT_LOC. Use it, if available, when issuing hints about
102 mispelled member names to provide a fixit replacement hint.
103
104 2016-06-06 Marek Polacek <polacek@redhat.com>
105
106 PR c/71362
107 * c-parser.c (c_parser_direct_declarator): Set location.
108
109 2016-06-06 Marek Polacek <polacek@redhat.com>
110
111 * c-typeck.c (comptypes_internal): Handle comparisons of
112 INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check
113 TYPE_REF_CAN_ALIAS_ALL.
114
115 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
116
117 * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
118 arguments as addressable when async clause exists.
119
120 2016-05-30 Jakub Jelinek <jakub@redhat.com>
121
122 PR c++/71349
123 * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
124 when combined with target construct.
125
126 2016-05-26 Jakub Jelinek <jakub@redhat.com>
127
128 * c-parser.c (c_parser_omp_clause_schedule): Warn if
129 OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
130
131 2016-05-25 Marek Polacek <polacek@redhat.com>
132
133 PR c/71265
134 * c-decl.c (c_make_fname_decl): Don't check seen_error.
135
136 PR c/71266
137 * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
138
139 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
140
141 * c-parser.c (c_parser_oacc_declare): Add support for
142 GOMP_MAP_FIRSTPRIVATE_POINTER.
143 * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
144 argument with enum c_omp_region_type ort.
145 (handle_omp_array_sections): Likewise. Update call to
146 handle_omp_array_sections_1.
147 (c_finish_omp_clauses): Add specific errors and warning messages for
148 OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
149 call to handle_omp_array_sections.
150
151 2016-05-24 Thomas Schwinge <thomas@codesourcery.com>
152
153 * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
154
155 2016-05-24 Richard Biener <rguenther@suse.de>
156
157 PR middle-end/70434
158 PR c/69504
159 * c-typeck.c (build_array_ref): Do not complain about indexing
160 non-lvalue vectors. Adjust for function name change.
161
162 2016-05-20 Martin Sebor <msebor@redhat.com>
163
164 PR c/71115
165 * c-typeck.c (error_init): Use
166 expansion_point_location_if_in_system_header.
167 (warning_init): Same.
168
169 2016-05-19 David Malcolm <dmalcolm@redhat.com>
170
171 PR c/71171
172 * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
173 in error-handling.
174 (c_parser_postfix_expression): Likewise.
175 * c-tree.h (c_expr::set_error): New method.
176 * c-typeck.c (parser_build_binary_op): In error-handling, ensure
177 that result's range is initialized.
178
179 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
180
181 * c-typeck.c (parser_build_unary_op): Fix formatting.
182
183 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
184
185 * c-decl.c (grokdeclarator): Remove errmsg and use of
186 targetm.invalid_return_type.
187 (grokparms): Remove errmsg and use of
188 targetm.invalid_parameter_type.
189
190 2016-05-13 Joseph Myers <joseph@codesourcery.com>
191
192 * c-decl.c (grokdeclarator): For C11, discard qualifiers on
193 function return type.
194
195 2016-05-12 Marek Polacek <polacek@redhat.com>
196
197 PR c/70756
198 * c-decl.c (build_compound_literal): Pass LOC down to
199 c_incomplete_type_error.
200 * c-tree.h (require_complete_type): Adjust declaration.
201 (c_incomplete_type_error): Likewise.
202 * c-typeck.c (require_complete_type): Add location parameter, pass it
203 down to c_incomplete_type_error.
204 (c_incomplete_type_error): Add location parameter, pass it down to
205 error_at.
206 (build_component_ref): Pass location down to c_incomplete_type_error.
207 (default_conversion): Pass location down to require_complete_type.
208 (build_array_ref): Likewise.
209 (build_function_call_vec): Likewise.
210 (convert_arguments): Likewise.
211 (build_unary_op): Likewise.
212 (build_c_cast): Likewise.
213 (build_modify_expr): Likewise.
214 (convert_for_assignment): Likewise.
215 (c_finish_omp_clauses): Likewise.
216
217 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
218
219 PR c/43651
220 * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
221 is enabled.
222 * c-errors.c (pedwarn_c90): Return true if warned.
223 * c-tree.h (pedwarn_c90): Change return type to bool.
224 (enum c_declspec_word): Add new enumerator cdw_atomic.
225
226 2016-05-11 Marek Polacek <polacek@redhat.com>
227
228 PR c++/71024
229 * c-decl.c (diagnose_mismatched_decls): Factor out code to
230 diagnose_mismatched_attributes and call it.
231
232 2016-05-10 Marek Polacek <polacek@redhat.com>
233
234 PR c/70255
235 * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
236 on a declaration following the definition.
237
238 2016-05-05 Jakub Jelinek <jakub@redhat.com>
239
240 * c-parser.c (c_parser_switch_statement): Add IF_P argument,
241 parse it through to c_parser_c99_block_statement.
242 (c_parser_statement_after_labels): Adjust c_parser_switch_statement
243 caller.
244
245 2016-05-04 Marek Polacek <polacek@redhat.com>
246
247 * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
248 OPT_Wdangling_else.
249
250 2016-05-04 Marek Polacek <polacek@redhat.com>
251
252 PR c/48778
253 * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
254 for macro expansions.
255
256 2016-05-03 Marek Polacek <polacek@redhat.com>
257
258 PR c/70859
259 * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
260 check_builtin_function_arguments.
261
262 2016-05-03 Richard Biener <rguenther@suse.de>
263
264 * Make-lang.in (cc1-checksum.c): For stage-final re-use
265 the checksum from the previous stage.
266
267 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
268
269 * c-parser.c (c_parser_oacc_all_clauses): Update call to
270 c_finish_omp_clauses.
271 (c_parser_omp_all_clauses): Likewise.
272 (c_parser_oacc_cache): Likewise.
273 (c_parser_oacc_loop): Likewise.
274 (omp_split_clauses): Likewise.
275 (c_parser_omp_declare_target): Likewise.
276 (c_parser_cilk_all_clauses): Likewise.
277 (c_parser_cilk_for): Likewise.
278 * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
279 is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
280
281 2016-05-02 Marek Polacek <polacek@redhat.com>
282
283 PR c/70851
284 * c-decl.c (grokdeclarator): Diagnose when array's size has an
285 incomplete type.
286
287 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
288
289 PR middle-end/70626
290 * c-parser.c (c_parser_oacc_loop): Don't augment mask with
291 OACC_LOOP_CLAUSE_MASK.
292 (c_parser_oacc_kernels_parallel): Update call to
293 c_oacc_split_loop_clauses.
294
295 2016-04-28 Andrew MacLeod <amacleod@redhat.com>
296
297 * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
298 argument to build_modify_expr in two cases.
299
300 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
301
302 * c-parser.c (c_parser_postfix_expression_after_primary): Call
303 warn_for_memset instead of warning directly here.
304
305 2016-04-26 Marek Polacek <polacek@redhat.com>
306
307 PR c/67784
308 * c-parser.c (c_parser_maybe_reclassify_token): New function factored
309 out of ...
310 (c_parser_for_statement): ... here.
311 (c_parser_if_statement): Use it.
312 (c_parser_switch_statement): Use it.
313 (c_parser_while_statement): Use it.
314
315 PR c/70791
316 * c-decl.c (pushdecl): Pass LOCUS down to warning.
317
318 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
319
320 PR c++/69363
321 * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
322 instead of c_finish_cilk_clauses.
323 * c-tree.h (c_finish_omp_clauses): Add new default argument.
324 * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow
325 floating-point variables in the linear clause for Cilk Plus.
326
327 2016-04-18 Michael Matz <matz@suse.de>
328
329 * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
330 (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
331
332 2016-04-15 Marek Polacek <polacek@redhat.com>
333
334 PR c/70671
335 * c-typeck.c (build_unary_op): Pass location down to error and
336 warning call.
337
338 2016-04-15 Jakub Jelinek <jakub@redhat.com>
339
340 PR c/70436
341 * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
342 where needed.
343 (c_parser_external_declaration, c_parser_struct_or_union_specifier,
344 c_parser_parameter_declaration, c_parser_compound_statement_nostart,
345 c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
346 Adjust c_parser_pragma callers.
347 (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for
348 caller.
349 (c_parser_omp_structured_block): Add IF_P argument, pass it down to
350 c_parser_statement.
351 (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
352 c_parser_oacc_kernels_parallel, c_parser_omp_critical,
353 c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
354 c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
355 c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
356 c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
357 c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
358 c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
359 down where needed.
360 (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces.
361 (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
362 calls.
363
364 2016-04-13 Marek Polacek <polacek@redhat.com>
365
366 PR c/70436
367 * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
368 adjust callers.
369 (c_parser_statement): Likewise.
370 (c_parser_c99_block_statement): Likewise.
371 (c_parser_while_statement): Likewise.
372 (c_parser_for_statement): Likewise.
373 (c_parser_if_body): Don't set IF_P here.
374 (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
375 about dangling else here.
376 * c-tree.h (c_finish_if_stmt): Adjust declaration.
377 * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
378 warn about dangling else here.
379
380 2016-04-04 Marek Polacek <polacek@redhat.com>
381
382 PR c/70307
383 * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
384
385 2016-03-31 Marek Polacek <polacek@redhat.com>
386
387 PR c/70297
388 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
389
390 2016-03-18 David Malcolm <dmalcolm@redhat.com>
391
392 PR c/70281
393 * c-parser.c (c_parser_postfix_expression): Set the source range
394 for uses of "__builtin_types_compatible_p".
395
396 2016-03-17 Jakub Jelinek <jakub@redhat.com>
397
398 PR c/70280
399 * c-typeck.c (composite_type): Don't count void_list_node
400 into len, if the list is terminated by void_list_node, start
401 with void_list_node instead of NULL for newargs. Stop
402 at void_list_node.
403
404 2016-03-16 Marek Polacek <polacek@redhat.com>
405
406 PR c/70093
407 * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
408 nested functions returning VM types.
409
410 2016-03-09 Cesar Philippidis <cesar@codesourcery.com>
411
412 * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
413 when calling c_finish_omp_clauses.
414
415 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
416
417 PR c/69824
418 * c-decl.c (get_parm_info): Don't queue implicit function declarations
419 for later.
420
421 2016-03-04 Marek Polacek <polacek@redhat.com>
422
423 PR c/69798
424 * c-parser.c (c_parser_postfix_expression): Call
425 c_parser_cast_expression rather than c_parser_postfix_expression.
426
427 2016-03-01 Jakub Jelinek <jakub@redhat.com>
428
429 PR c/69796
430 PR c/69974
431 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
432 of incomplete decls to error_mark_node.
433
434 2016-02-24 Marek Polacek <polacek@redhat.com>
435
436 PR c/69819
437 * c-decl.c (finish_decl): Don't update the copy of the type of a
438 different decl type.
439
440 2016-02-23 Jakub Jelinek <jakub@redhat.com>
441
442 PR objc/69844
443 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
444 in id_kind reclassification.
445
446 2016-02-16 Jakub Jelinek <jakub@redhat.com>
447
448 PR c/69835
449 * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
450
451 2016-02-16 James Norris <jnorris@codesourcery.com>
452
453 PR c/64748
454 * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
455
456 2016-02-12 Bernd Schmidt <bschmidt@redhat.com>
457
458 * c-decl.c (build_null_declspecs): Zero the entire struct.
459
460 PR c/69522
461 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All
462 callers changed. If nested_p is true, use it to call
463 finish_implicit_inits.
464 * c-tree.h (finish_implicit_inits): Declare.
465 * c-typeck.c (finish_implicit_inits): New function. Move code
466 from ...
467 (push_init_level): ... here.
468 (set_designator, process_init_element): Call finish_implicit_inits.
469
470 2016-02-11 Jakub Jelinek <jakub@redhat.com>
471
472 PR c/69768
473 * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
474 arguments for -Waddress warning.
475
476 2016-02-04 Jakub Jelinek <jakub@redhat.com>
477
478 PR c/69669
479 * c-decl.c (finish_enum): When honoring mode attribute,
480 make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
481
482 2016-01-29 Jakub Jelinek <jakub@redhat.com>
483
484 PR debug/69518
485 * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
486 all type variants, not just TYPE_MAIN_VARIANT.
487
488 2016-01-27 Jakub Jelinek <jakub@redhat.com>
489
490 PR debug/66869
491 * c-decl.c (c_write_global_declarations_1): Warn with
492 warn_unused_function if static prototype without definition
493 is not C_DECL_USED.
494
495 2016-01-27 Marek Polacek <polacek@redhat.com>
496
497 PR c/68062
498 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
499 to unsigned, if needed. Add -Wsign-compare warning.
500
501 2016-01-26 Jakub Jelinek <jakub@redhat.com>
502
503 PR tree-optimization/69483
504 * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
505
506 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
507
508 PR c/24293
509 * c-tree.h (incomplete_record_decls): Declare.
510 * c-parser.c (incomplete_record_decls): Define.
511 (c_parser_translation_unit): Iterate through incomplete_record_decls and
512 report error if any decl has zero size.
513 * c-decl.c (finish_decl): Append static decl with incomplete struct/union
514 or enum type to incomplete_record_decls.
515
516 2016-01-14 Tom de Vries <tom@codesourcery.com>
517
518 PR tree-optimization/68773
519 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
520 set force_output.
521
522 2016-01-14 Marek Polacek <polacek@redhat.com>
523
524 PR c/69262
525 * c-decl.c (grokdeclarator): Provide more information for invalid
526 array declarations.
527
528 2016-01-06 David Malcolm <dmalcolm@redhat.com>
529
530 * c-parser.c (c_parser_unary_expression): For dereferences, build
531 a combined location before calling build_indirect_ref, so that
532 error reports cover the full range, manually updating the c_expr
533 src_range.
534
535 2016-01-06 Marek Polacek <polacek@redhat.com>
536
537 PR sanitizer/69099
538 * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to
539 ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of
540 NULL.
541
542 2016-01-04 Jakub Jelinek <jakub@redhat.com>
543
544 Update copyright years.
545
546 2016-01-04 Marek Polacek <polacek@redhat.com>
547
548 PR c/68908
549 * c-typeck.c (build_atomic_assign): Improve commentary. Add
550 optimization to use __atomic_fetch_* built-in if possible.
551
552 2015-12-23 Thomas Schwinge <thomas@codesourcery.com>
553
554 * c-parser.c (c_parser_oacc_clause_use_device): Merge function
555 into...
556 (c_parser_omp_clause_use_device_ptr): ... this function. Adjust
557 all users.
558
559 2015-12-22 Marek Polacek <polacek@redhat.com>
560
561 PR c/69002
562 * c-typeck.c (build_component_ref): Warn when acessing elements of
563 atomic structures or unions.
564
565 2015-12-21 David Malcolm <dmalcolm@redhat.com>
566
567 * c-typeck.c: Include "gcc-rich-location.h".
568 (build_binary_op): In the two places that call binary_op_error,
569 create a gcc_rich_location and populate it with the location of
570 the binary op and its two operands.
571
572 2015-12-16 David Malcolm <dmalcolm@redhat.com>
573
574 * c-parser.c (c_parser_statement_after_labels): When calling
575 c_finish_return, Use the return expression's location if it has
576 one, falling back to the location of the first token within it.
577 * c-typeck.c (c_finish_return): When issuing warnings about
578 the incorrect presence/absence of a return value, issue a note
579 showing the declaration of the function.
580
581 2015-12-16 David Malcolm <dmalcolm@redhat.com>
582
583 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
584 to 4.
585 (c_parser_peek_nth_token): New function.
586 (c_parser_peek_conflict_marker): New function.
587 (c_parser_error): Detect conflict markers and report them as such.
588
589 2015-12-16 David Malcolm <dmalcolm@redhat.com>
590
591 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
592 to preserve range information for the primary expression
593 in the call to c_parser_postfix_expression_after_primary.
594
595 2015-12-16 David Malcolm <dmalcolm@redhat.com>
596
597 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
598 expression location, falling back on the first token location,
599 rather than always using the latter.
600
601 2015-12-16 Marek Polacek <polacek@redhat.com>
602
603 PR c/64637
604 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
605 available.
606
607 2015-12-15 Marek Polacek <polacek@redhat.com>
608
609 PR c/68907
610 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
611 artificial decl.
612
613 2015-12-08 David Malcolm <dmalcolm@redhat.com>
614
615 * c-parser.c (c_parser_alignof_expression): Capture location of
616 closing parenthesis (if any), or of end of unary expression, and
617 use it to build a src_range for the expression.
618
619 2015-12-08 David Malcolm <dmalcolm@redhat.com>
620
621 PR c/68757
622 * c-parser.c (c_parser_get_builtin_args): Add
623 "out_close_paren_loc" param, and write back to it.
624 (c_parser_postfix_expression): Capture the closing
625 parenthesis location for RID_CHOOSE_EXPR,
626 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
627 RID_BUILTIN_SHUFFLE and use it to set the source range
628 for such expressions; within RID_BUILTIN_COMPLEX set
629 the underlying location.
630
631 2015-12-07 Marek Polacek <polacek@redhat.com>
632
633 PR c/68668
634 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
635 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
636
637 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
638
639 * c-tree.h (c_build_va_arg): Adjust prototype.
640 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
641 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
642 parameter, adjust throughout and issue an error if EXPR is a component
643 with reverse storage order.
644
645 2015-12-02 Jason Merrill <jason@redhat.com>
646
647 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
648 (c_fully_fold_internal, decl_constant_value_for_optimization):
649 Move from c-common.c.
650 * c-tree.h: Declare decl_constant_value_for_optimization.
651 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
652
653 2015-12-02 Joseph Myers <joseph@codesourcery.com>
654
655 PR c/68162
656 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
657 following link from declarator to next declarator. Track original
658 qualified type and pass it to c_build_qualified_type.
659 * c-typeck.c (c_build_qualified_type): Add arguments
660 orig_qual_type and orig_qual_indirect.
661
662 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
663
664 * c-parser.c (c_parser_omp_clause_name)
665 (c_parser_oacc_all_clauses): Alphabetical sorting.
666
667 2015-12-02 Jakub Jelinek <jakub@redhat.com>
668
669 PR c/68533
670 * c-decl.c (get_parm_info): Use b->locus instead of input_location
671 for diagnostics.
672
673 2015-12-01 Julian Brown <julian@codesourcery.com>
674 Cesar Philippidis <cesar@codesourcery.com>
675 James Norris <James_Norris@mentor.com>
676
677 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
678 (c_parser_oacc_clause_use_device): New function.
679 (c_parser_oacc_all_clauses): Add use_device support.
680 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
681 (c_parser_oacc_host_data): New function.
682 (c_parser_omp_construct): Add host_data support.
683 * c-tree.h (c_finish_oacc_host_data): Add prototype.
684 * c-typeck.c (c_finish_oacc_host_data): New function.
685 (c_finish_omp_clauses): Add use_device support.
686
687 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
688
689 PR c/67106
690 * c-decl.c: Set TYPE_PACKED in variants.
691
692 2015-11-27 Martin Liska <mliska@suse.cz>
693
694 PR c++/68312
695 * c-array-notation.c (fix_builtin_array_notation_fn):
696 Use release_vec_vec instead of vec::release.
697 (build_array_notation_expr): Likewise.
698 (fix_conditional_array_notations_1): Likewise.
699 (fix_array_notation_expr): Likewise.
700 (fix_array_notation_call_expr): Likewise.
701
702 2015-11-27 Jakub Jelinek <jakub@redhat.com>
703
704 PR c/63326
705 * c-parser.c (c_parser_compound_statement_nostart): If
706 last_label is true, use pragma_stmt instead of pragma_compound
707 as second c_parser_pragma argument.
708 (c_parser_omp_ordered, c_parser_omp_target_update,
709 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
710 false as second argument to c_parser_skip_to_pragma_eol after
711 diagnosing standalone directives used in pragma_stmt context.
712
713 2015-11-24 Ilya Verbin <ilya.verbin@intel.com>
714
715 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
716 with "if (ENABLE_OFFLOADING)".
717
718 2015-11-23 David Malcolm <dmalcolm@redhat.com>
719
720 PR objc/68438
721 * c-parser.c (c_parser_postfix_expression): Set up source ranges
722 for various Objective-C constructs: Class.name syntax,
723 @selector(), @protocol(), @encode(), and [] message syntax.
724
725 2015-11-20 David Malcolm <dmalcolm@redhat.com>
726
727 PR 62314
728 * c-typeck.c (should_suggest_deref_p): New function.
729 (build_component_ref): Special-case POINTER_TYPE when
730 generating a "not a structure of union" error message, and
731 suggest a "->" rather than a ".", providing a fix-it hint.
732
733 2015-11-19 David Malcolm <dmalcolm@redhat.com>
734
735 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
736 candidate into a new function, find_closest_identifier.
737
738 2015-11-19 Marek Polacek <polacek@redhat.com>
739
740 PR c/68412
741 * c-typeck.c (parser_build_binary_op): Properly handle
742 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
743
744 2015-11-17 David Malcolm <dmalcolm@redhat.com>
745
746 * c-parser.c (set_c_expr_source_range): Bulletproof both
747 overloaded implementations against NULL expr->value.
748 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
749 values.
750 (c_parser_unary_expression): Likewise when handling addresses of
751 labels.
752 (c_parser_postfix_expression): Likewise for statement expressions,
753 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
754 __builtin_va_arg, and for __builtin_offset_of.
755 (c_parser_postfix_expression_after_paren_type): Initialize expr's
756 src_range using the range of the braced initializer.
757 (c_parser_transaction_expression): Set src_range for "ret" to a
758 sane pair of values.
759
760 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
761
762 * c-parser.c (c_finish_omp_declare_simd): Look for
763 "simd" attribute as well. Update error message.
764
765 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
766
767 * c-parser.c (c_parser_omp_declare_target): Adjust.
768
769 2015-11-14 Jakub Jelinek <jakub@redhat.com>
770
771 * c-typeck.c (c_finish_omp_clauses): Don't mark
772 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
773
774 2015-11-14 Marek Polacek <polacek@redhat.com>
775
776 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
777 * c-typeck.c: Likewise.
778
779 2015-11-13 David Malcolm <dmalcolm@redhat.com>
780
781 * c-decl.c (warn_defaults_to): Pass line_table to
782 rich_location ctor.
783 * c-errors.c (pedwarn_c99): Likewise.
784 (pedwarn_c90): Likewise.
785 * c-parser.c (set_c_expr_source_range): New functions.
786 (c_token::get_range): New method.
787 (c_token::get_finish): New method.
788 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
789 based on the range from the start of the LHS to the end of the
790 RHS.
791 (c_parser_conditional_expression): Likewise, based on the range
792 from the start of the cond.value to the end of exp2.value.
793 (c_parser_binary_expression): Call set_c_expr_source_range on
794 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
795 (c_parser_cast_expression): Call set_c_expr_source_range on ret
796 based on the cast_loc through to the end of the expr.
797 (c_parser_unary_expression): Likewise, based on the
798 op_loc through to the end of op.
799 (c_parser_sizeof_expression) Likewise, based on the start of the
800 sizeof token through to either the closing paren or the end of
801 expr.
802 (c_parser_postfix_expression): Likewise, using the token range,
803 or from the open paren through to the close paren for
804 parenthesized expressions.
805 (c_parser_postfix_expression_after_primary): Likewise, for
806 various kinds of expression.
807 * c-tree.h (struct c_expr): Add field "src_range".
808 (c_expr::get_start): New method.
809 (c_expr::get_finish): New method.
810 (set_c_expr_source_range): New decls.
811 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
812 on ret for prefix unary ops.
813 (parser_build_binary_op): Likewise, running from the start of
814 arg1.value through to the end of arg2.value.
815
816 2015-11-13 Marek Polacek <polacek@redhat.com>
817
818 PR c/68320
819 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
820
821 2015-11-13 David Malcolm <dmalcolm@redhat.com>
822
823 * c-typeck.c: Include spellcheck.h.
824 (lookup_field_fuzzy_find_candidates): New function.
825 (lookup_field_fuzzy): New function.
826 (build_component_ref): If the field was not found, try using
827 lookup_field_fuzzy and potentially offer a suggestion.
828
829 2015-11-12 James Norris <jnorris@codesourcery.com>
830 Joseph Myers <joseph@codesourcery.com>
831
832 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
833 (c_parser_omp_clause_name): Handle 'device_resident' clause.
834 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
835 and PRAGMA_OMP_CLAUSE_LINK.
836 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
837 and PRAGMA_OACC_CLAUSE_LINK.
838 (OACC_DECLARE_CLAUSE_MASK): New definition.
839 (c_parser_oacc_declare): New function.
840
841 2015-11-12 Marek Polacek <polacek@redhat.com>
842
843 PR c/67784
844 * c-parser.c (c_parser_for_statement): Reclassify the token in
845 a correct scope.
846
847 2015-11-11 Marek Polacek <polacek@redhat.com>
848
849 PR c/68107
850 PR c++/68266
851 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
852 checking the size of an array.
853
854 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
855
856 * c-array-notation.c: Remove unused header files.
857 * c-aux-info.c: Likewise.
858 * c-convert.c: Likewise.
859 * c-decl.c: Likewise.
860 * c-errors.c: Likewise.
861 * c-lang.c: Likewise.
862 * c-objc-common.c: Likewise.
863 * c-parser.c: Likewise.
864 * c-typeck.c: Likewise.
865 * gccspec.c: Likewise.
866
867 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
868 Cesar Philippidis <cesar@codesourcery.com>
869 James Norris <jnorris@codesourcery.com>
870 Julian Brown <julian@codesourcery.com>
871 Nathan Sidwell <nathan@codesourcery.com>
872
873 c/
874 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
875 routine arg.
876 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
877 (c_parser_pragma): Parse 'acc routine'.
878 (OACC_ROUTINE_CLAUSE_MARK): Define.
879 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
880
881 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
882
883 PR debug/67192
884 * c-typeck.c (c_finish_loop): For unconditional loops, set the
885 location of the backward-goto to the start of the loop body.
886
887 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
888
889 PR debug/67192
890 * c-parser.c (c_parser_while_statement): Finish the loop before
891 parsing ahead for misleading indentation.
892 (c_parser_for_statement): Likewise.
893
894 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
895
896 * c-decl.c (finish_struct): If the structure has reverse storage
897 order, rewrite the type of array fields with scalar component. Call
898 maybe_apply_pragma_scalar_storage_order on entry.
899 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
900 errors on bit-fields and reverse SSO here and not...
901 (c_mark_addressable): ...here.
902 (output_init_element): Adjust call to initializer_constant_valid_p.
903 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
904
905 2015-11-06 David Malcolm <dmalcolm@redhat.com>
906
907 * c-decl.c (warn_defaults_to): Update for change in signature
908 of diagnostic_set_info.
909 * c-errors.c (pedwarn_c99): Likewise.
910 (pedwarn_c90): Likewise.
911 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
912 for textinfo::set_location.
913
914 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
915 Thomas Schwinge <thomas@codesourcery.com>
916 James Norris <jnorris@codesourcery.com>
917
918 * c-parser.c (c_parser_omp_clause_name): Add support for
919 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
920 (c_parser_omp_clause_default): Add is_oacc argument. Handle
921 default(none) in OpenACC.
922 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
923 arguments.
924 (c_parser_oacc_clause_tile): New function.
925 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
926 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
927 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
928 TILE}.
929 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
930 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
931 FIRSTPRIVATE}.
932 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
933 (c_parser_oacc_update): Update the error message for missing clauses.
934 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
935 and OMP_CLAUSE_INDEPENDENT.
936
937 2015-11-05 Marek Polacek <polacek@redhat.com>
938
939 PR c/68090
940 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
941 deal with pre-evaluation on invalid types.
942
943 2015-11-05 Jakub Jelinek <jakub@redhat.com>
944 Ilya Verbin <ilya.verbin@intel.com>
945
946 * c-parser.c: Include context.h and gimple-expr.h.
947 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
948 monotonic together with nonmonotonic.
949 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
950 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
951 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
952 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
953 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
954 expressions on combined target teams before the target.
955 (c_parser_omp_declare_target): If decl has "omp declare target" or
956 "omp declare target link" attribute, and cgraph or varpool node already
957 exists, then set corresponding flags. Call c_finish_omp_clauses
958 in the parenthesized extended-list syntax case.
959 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
960 declare target.
961 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
962 on OMP_CLAUSE_REDUCTION array sections.
963 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
964 into the constant offset, or for variable low-bound using
965 POINTER_PLUS_EXPR. For structure element based array sections use
966 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
967 (c_finish_omp_clauses): Drop generic_field_head, structure
968 elements are now always mapped even as array section bases,
969 diagnose same var in data sharing and mapping clauses. Diagnose if
970 linear step on declare simd is neither a constant nor a uniform
971 parameter. Look through POINTER_PLUS_EXPR for array section
972 reductions. Diagnose the same var or function appearing multiple
973 times on the same directive. Fix up wording for the to clause if t
974 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
975 modifier on kinds other than dynamic or guided or nonmonotonic
976 modifier together with ordered clause.
977
978 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
979 Chung-Lin Tang <cltang@codesourcery.com>
980
981 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
982
983 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
984
985 * c-array-notation.c: Reorder #include's and remove duplicates.
986 * c-aux-info.c: Likewise.
987 * c-convert.c: Likewise.
988 * c-decl.c: Likewise.
989 * c-errors.c: Likewise.
990 * c-lang.c: Likewise.
991 * c-objc-common.c: Likewise.
992 * c-parser.c: Likewise.
993 * c-typeck.c: Likewise.
994
995 2015-10-26 Jim Wilson <jim.wilson@linaro.org>
996
997 PR debug/66068
998 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
999 after calling build_qualified_type.
1000
1001 2015-10-27 Cesar Philippidis <cesar@codesourcery.com>
1002 Thomas Schwinge <thomas@codesourcery.com>
1003 James Norris <jnorris@codesourcery.com>
1004 Joseph Myers <joseph@codesourcery.com>
1005 Julian Brown <julian@codesourcery.com>
1006 Bernd Schmidt <bschmidt@redhat.com>
1007
1008 * c-parser.c (c_parser_oacc_shape_clause): New.
1009 (c_parser_oacc_simple_clause): New.
1010 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
1011 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
1012
1013 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1014 James Norris <jnorris@codesourcery.com>
1015 Cesar Philippidis <cesar@codesourcery.com>
1016
1017 PR c/64765
1018 PR c/64880
1019 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
1020 parameters, and handle these. Adjust all users.
1021 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
1022 into...
1023 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
1024 all users.
1025 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
1026 declare functions.
1027 (c_finish_omp_construct): Declare function.
1028 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
1029 Merge functions into...
1030 (c_finish_omp_construct): ... this new function.
1031
1032 2015-10-22 Richard Biener <rguenther@suse.de>
1033
1034 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
1035 before folding a MINUS_EXPR.
1036
1037 2015-10-21 Marek Polacek <polacek@redhat.com>
1038
1039 PR c/68024
1040 * c-decl.c (start_function): Warn about vararg functions without
1041 a prototype.
1042
1043 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1044
1045 * c-typeck.c (build_conditional_expr): Use boolean vector
1046 type for vector comparison.
1047 (build_vec_cmp): New.
1048 (build_binary_op): Use build_vec_cmp for comparison.
1049
1050 2015-10-20 Marek Polacek <polacek@redhat.com>
1051
1052 * c-parser.c (is_cilkplus_vector_p): Don't define here.
1053
1054 2015-10-20 Marek Polacek <polacek@redhat.com>
1055
1056 PR c/67964
1057 * c-parser.c (c_parser_attributes): Break out of the loop if the
1058 token after an attribute isn't a comma.
1059
1060 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1061 Aldy Hernandez <aldyh@redhat.com>
1062
1063 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
1064 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
1065 (c_parser_omp_variable_list): Handle structure elements for
1066 map, to and from clauses. Handle array sections in reduction
1067 clause. Formatting fixes.
1068 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
1069 if clause modifiers.
1070 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1071 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1072 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
1073 c_parser_omp_clause_is_device_ptr): New functions.
1074 (c_parser_omp_clause_ordered): Parse optional parameter.
1075 (c_parser_omp_clause_reduction): Handle array reductions.
1076 (c_parser_omp_clause_schedule): Parse optional simd modifier.
1077 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
1078 functions.
1079 (c_parser_omp_clause_linear): Parse linear clause modifiers.
1080 (c_parser_omp_clause_depend_sink): New function.
1081 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
1082 (c_parser_omp_clause_map): Parse release/delete map kinds and
1083 optional always modifier.
1084 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
1085 and c_finish_omp_clauses callers.
1086 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
1087 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
1088 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
1089 (OMP_CRITICAL_CLAUSE_MASK): Define.
1090 (c_parser_omp_critical): Parse critical clauses.
1091 (c_parser_omp_for_loop): Handle doacross loops, adjust
1092 c_finish_omp_for and c_finish_omp_clauses callers.
1093 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
1094 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
1095 (OMP_FOR_CLAUSE_MASK): Add linear clause.
1096 (c_parser_omp_for): Disallow ordered clause when combined with
1097 distribute. Disallow linear clause when combined with distribute
1098 and not combined with simd.
1099 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
1100 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
1101 parse clauses and if depend clause is found, don't parse a body.
1102 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
1103 Allow target parallel without for after it.
1104 (OMP_TASK_CLAUSE_MASK): Add priority clause.
1105 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
1106 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
1107 invalid kinds.
1108 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
1109 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
1110 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
1111 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
1112 functions.
1113 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
1114 defaultmap and is_device_ptr clauses.
1115 (c_parser_omp_target): Parse target parallel and target simd. Set
1116 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
1117 and target exit data. Diagnose invalid map kinds.
1118 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
1119 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
1120 construct.
1121 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
1122 &omp_priv.
1123 (OMP_TASKLOOP_CLAUSE_MASK): Define.
1124 (c_parser_omp_taskloop): New function.
1125 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
1126 handle PRAGMA_OMP_TASKLOOP.
1127 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
1128 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
1129 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
1130 Add IS_OMP argument, handle structure element bases, diagnose
1131 bitfields, pass IS_OMP recursively, diagnose known zero length
1132 array sections in depend clauses, handle array sections in reduction
1133 clause, diagnose negative length even for pointers.
1134 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
1135 types, pass IS_OMP down to handle_omp_array_sections_1, handle
1136 array sections in reduction clause, set
1137 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
1138 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
1139 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
1140 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
1141
1142 2015-10-06 Marek Polacek <polacek@redhat.com>
1143
1144 * c-parser.c (c_parser_statement_after_labels): Use
1145 protected_set_expr_location.
1146 (c_parser_omp_clause_num_gangs): Likewise.
1147 (c_parser_omp_clause_num_threads): Likewise.
1148 (c_parser_omp_clause_num_workers): Likewise.
1149 (c_parser_omp_clause_vector_length): Likewise.
1150 (c_parser_omp_clause_num_teams): Likewise.
1151 (c_parser_omp_clause_thread_limit): Likewise.
1152 * c-typeck.c (build_c_cast): Likewise.
1153 (c_cast_expr): Likewise.
1154
1155 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1156
1157 * c-typeck.c (c_tree_equal): Use real_equal instead of
1158 REAL_VALUES_EQUAL.
1159
1160 2015-10-04 Jason Merrill <jason@redhat.com>
1161
1162 * c-parser.c (c_lex_one_token): Handle @synchronized.
1163 * c-decl.c (match_builtin_function_types): A declaration of a built-in
1164 can change whether the function is transaction_safe.
1165
1166 2015-10-02 Marek Polacek <polacek@redhat.com>
1167
1168 PR c/67730
1169 * c-typeck.c (convert_for_assignment): Use the expansion point
1170 location throughout.
1171
1172 2015-10-02 Marek Polacek <polacek@redhat.com>
1173
1174 PR c/64249
1175 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
1176 and pass it down to c_parser_if_statement.
1177 (c_parser_else_body): Add CHAIN parameter and pass it down to
1178 c_parser_statement_after_labels.
1179 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
1180 duplicated if-else-if conditions.
1181
1182 2015-10-01 Marek Polacek <polacek@redhat.com>
1183
1184 * c-typeck.c (convert_for_assignment): Improve commentary.
1185
1186 2015-09-30 Marek Polacek <polacek@redhat.com>
1187
1188 PR c/67730
1189 * c-typeck.c (c_finish_return): Use the expansion point location for
1190 certain "return with value" warnings.
1191
1192 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1193
1194 * c-parser.c (pragma_lex): Add loc argument.
1195
1196 2015-09-15 Marek Polacek <polacek@redhat.com>
1197
1198 PR c/67580
1199 * c-decl.c (tag_exists_p): New function.
1200 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
1201 struct/union/enum keywords are missing.
1202 * c-tree.h (tag_exists_p): Declare.
1203
1204 2015-09-15 Marek Polacek <polacek@redhat.com>
1205
1206 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
1207 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
1208 Return NULL_TREE instead of 0.
1209 (lookup_name): Return NULL_TREE instead of 0.
1210 (lookup_name_in_scope): Likewise.
1211 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1212 (parser_xref_tag): Use false instead of 0.
1213 (start_struct): Use true instead of 1.
1214 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1215
1216 2015-09-14 Marek Polacek <polacek@redhat.com>
1217
1218 * c-typeck.c (set_nonincremental_init_from_string): Use
1219 HOST_WIDE_INT_M1U when shifting a negative value.
1220
1221 2015-09-09 Mark Wielaard <mjw@redhat.com>
1222
1223 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
1224 parm against NULL.
1225
1226 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR c/67502
1229 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
1230 into OMP_FOR_PRE_BODY rather than before the loop.
1231
1232 2015-09-09 Jakub Jelinek <jakub@redhat.com>
1233
1234 PR c/67501
1235 * c-parser.c (c_parser_oacc_all_clauses,
1236 c_parser_omp_all_clauses): Remove invalid clause from
1237 list of clauses even if parser->error is set.
1238
1239 PR c/67500
1240 * c-parser.c (c_parser_omp_clause_aligned,
1241 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
1242 test for errors.
1243 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
1244 error_mark_node.
1245
1246 PR c/67495
1247 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
1248 instead of c_parser_unary_expression. If the result is !lvalue_p,
1249 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
1250
1251 2015-09-04 Marek Polacek <polacek@redhat.com>
1252
1253 PR sanitizer/67279
1254 * c-typeck.c (build_binary_op): Don't instrument static initializers.
1255
1256 2015-09-03 Martin Sebor <msebor@redhat.com>
1257
1258 PR c/66516
1259 * c-typeck.c (convert_arguments, parser_build_unary_op,
1260 build_conditional_expr, c_cast_expr, convert_for_assignment,
1261 build_binary_op, _objc_common_truthvalue_conversion): Call
1262 reject_gcc_builtin.
1263 (c_decl_implicit): Define.
1264
1265 2015-09-02 Marek Polacek <polacek@redhat.com>
1266
1267 PR c/67432
1268 * c-parser.c (c_parser_enum_specifier): Give a better error for
1269 an empty enum.
1270
1271 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1272
1273 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
1274
1275 2015-08-12 Marek Polacek <polacek@redhat.com>
1276
1277 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
1278 LOC to it.
1279
1280 2015-08-03 Marek Polacek <polacek@redhat.com>
1281
1282 PR c/67088
1283 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
1284 Use it.
1285 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
1286
1287 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1288
1289 * c-parser.c (c_parser_if_body): Take token_indent_info
1290 argument. Call warn_for_misleading_indentation even when the
1291 body is a semicolon. Extract token_indent_infos corresponding
1292 to the guard, body and next tokens. Adjust call to
1293 warn_for_misleading_indentation accordingly.
1294 (c_parser_else_body): Likewise.
1295 (c_parser_if_statement): Likewise.
1296 (c_parser_while_statement): Likewise.
1297 (c_parser_for_statement): Likewise.
1298
1299 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
1300 Manuel López-Ibáñez <manu@gcc.gnu.org>
1301
1302 * c-decl.c (get_parm_info): Remove static var. Update warning
1303 message.
1304
1305 2015-07-27 Marek Polacek <polacek@redhat.com>
1306
1307 PR c++/66555
1308 PR c/54979
1309 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
1310
1311 2015-07-20 Marek Polacek <polacek@redhat.com>
1312
1313 PR c++/55095
1314 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
1315 (build_binary_op): Warn about left shift overflows.
1316
1317 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1318
1319 * c-array-notation.c: Adjust includes for flags.h changes.
1320 * c-objc-common.c: Likewise.
1321
1322 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1323
1324 * c-array-notation.c: Adjust includes.
1325 * c-aux-info.c: Likewise.
1326 * c-convert.c: Likewise.
1327 * c-decl.c: Likewise.
1328 * c-errors.c: Likewise.
1329 * c-lang.c: Likewise.
1330 * c-objc-common.c: Likewise.
1331 * c-parser.c: Likewise.
1332 * c-typeck.c: Likewise.
1333
1334 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1335
1336 PR fortran/66605
1337 * c-decl.c (finish_function): Call do_warn_unused_parameter.
1338
1339 2015-06-29 Marek Polacek <polacek@redhat.com>
1340
1341 PR c/66322
1342 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
1343 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
1344 about -Wswitch-bool here.
1345 (do_case): Update c_add_case_label call.
1346 (c_finish_case): Update c_do_switch_warnings call.
1347
1348 2015-06-27 Marek Polacek <polacek@redhat.com>
1349
1350 * c-typeck.c: Use VECTOR_TYPE_P throughout.
1351
1352 2015-06-26 Marek Polacek <polacek@redhat.com>
1353
1354 * c-array-notation.c (fix_builtin_array_notation_fn): Use
1355 INDIRECT_REF_P.
1356 * c-typeck.c (array_to_pointer_conversion): Likewise.
1357 (build_unary_op): Likewise.
1358 (c_finish_return): Likewise.
1359
1360 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1361
1362 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
1363 * c-parser.c: Likewise.
1364
1365 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1366
1367 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
1368 instead of pointer_hash.
1369 (detect_field_duplicates): Likewise.
1370
1371 2015-06-25 Marek Polacek <polacek@redhat.com>
1372
1373 * c-array-notation.c: Use VAR_P throughout.
1374 * c-decl.c: Likewise.
1375 * c-objc-common.c: Likewise.
1376 * c-parser.c: Likewise.
1377 * c-typeck.c: Likewise.
1378
1379 2015-06-25 Marek Polacek <polacek@redhat.com>
1380
1381 * c-decl.c: Use is_global_var throughout.
1382 * c-parser.c: Likewise.
1383 * c-typeck.c: Likewise.
1384
1385 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1386
1387 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
1388 * c-aux-info.c: Likewise.
1389 * c-convert.c: Likewise.
1390 * c-decl.c: Likewise.
1391 * c-errors.c: Likewise.
1392 * c-lang.c: Likewise.
1393 * c-objc-common.c: Likewise.
1394 * c-parser.c: Likewise.
1395 * c-typeck.c: Likewise.
1396
1397 2015-06-11 Jan Hubicka <hubicka@ucw.cz>
1398
1399 PR middle-end/66325
1400 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
1401 variants.
1402
1403 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
1404
1405 * c-decl.c (pop_scope): Register the main translation unit
1406 through the new debug hook.
1407
1408 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1409
1410 * c-array-notation.c : Adjust include files.
1411 * c-aux-info.c : Likewise.
1412 * c-convert.c : Likewise.
1413 * c-decl.c : Likewise.
1414 * c-errors.c : Likewise.
1415 * c-lang.c : Likewise.
1416 * c-lang.h : Likewise.
1417 * c-objc-common.c : Likewise.
1418 * c-parser.c : Likewise.
1419 * c-typeck.c : Likewise.
1420
1421 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1422
1423 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
1424 immediately clobber it.
1425 (c_write_global_declarations_1): Remove call to
1426 check_global_declaration_1.
1427 (c_write_global_declarations_2): Remove.
1428 (c_write_final_cleanups): Rename from c_write_global_declarations.
1429 Remove call to finalize_compilation_unit.
1430 Remove calls to debugging hooks.
1431 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
1432 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
1433 * c-tree.h: Remove c_write_global_declarations.
1434
1435 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1436
1437 * c-array-notation.c: Adjust includes for restructured coretypes.h.
1438 * c-aux-info.c: Likewise.
1439 * c-convert.c: Likewise.
1440 * c-decl.c: Likewise.
1441 * c-errors.c: Likewise.
1442 * c-lang.c: Likewise.
1443 * c-objc-common.c: Likewise.
1444 * c-parser.c: Likewise.
1445 * c-typeck.c: Likewise.
1446
1447 2015-06-04 Marek Polacek <polacek@redhat.com>
1448
1449 PR c/66341
1450 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
1451 it is a lvalue.
1452
1453 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1454
1455 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
1456 Warn for empty struct.
1457 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
1458
1459 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
1460
1461 * c-decl.c (start_function): Call plugin before parsing.
1462 (finish_function): Call plugin after parsing.
1463
1464 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1465
1466 PR c/49551
1467 * c-decl.c (merge_decls): Merge DECL_COMMON.
1468
1469 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
1470
1471 * Make-lang.in (check_gcc_pallelize): Define.
1472
1473 2015-05-22 Marek Polacek <polacek@redhat.com>
1474
1475 PR c/47043
1476 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
1477 attributes.
1478
1479 2015-05-21 Marek Polacek <polacek@redhat.com>
1480
1481 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
1482 DECL_BUILT_IN.
1483
1484 2015-05-20 Marek Polacek <polacek@redhat.com>
1485
1486 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1487 * c-typeck.c: Likewise.
1488
1489 2015-05-19 Marek Polacek <polacek@redhat.com>
1490
1491 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
1492
1493 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1494
1495 PR middle-end/66199
1496 * c-parser.c (c_parser_omp_for_loop): Don't add
1497 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
1498 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
1499 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
1500 constructs.
1501
1502 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1503
1504 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
1505 swaps.
1506
1507 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1508
1509 PR fortran/44054
1510 * c-objc-common.c (c_tree_printer): Replace locus pointer with
1511 accessor function.
1512
1513 2015-05-14 Marek Polacek <polacek@redhat.com>
1514
1515 PR c/66066
1516 PR c/66127
1517 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
1518 rather than with 0.
1519
1520 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1521
1522 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
1523 to add a call to warn_for_misleading_indentation.
1524 (c_parser_else_body): Likewise, adding param "else_loc".
1525 (c_parser_if_statement): Check for misleading indentation.
1526 (c_parser_while_statement): Likewise.
1527 (c_parser_for_statement): Likewise.
1528
1529 2015-05-08 Marek Polacek <polacek@redhat.com>
1530
1531 PR c/64918
1532 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
1533 (output_init_element): Likewise.
1534
1535 2015-05-07 Marek Polacek <polacek@redhat.com>
1536
1537 PR c/65179
1538 * c-typeck.c (build_binary_op): Warn when left shifting a negative
1539 value.
1540
1541 2015-04-30 Marek Polacek <polacek@redhat.com>
1542
1543 * c-typeck.c (set_init_label): Call error_at instead of error and
1544 pass LOC to it.
1545
1546 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
1547 the type of a decl.
1548
1549 * c-typeck.c (c_build_va_arg): Clarify the error message.
1550
1551 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
1552
1553 * c-parser.c (c_parser_oacc_enter_exit_data): Use
1554 OMP_STANDALONE_CLAUSES.
1555
1556 2015-04-28 Marek Polacek <polacek@redhat.com>
1557
1558 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
1559
1560 2015-04-28 Marek Polacek <polacek@redhat.com>
1561
1562 PR c/65901
1563 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
1564
1565 2015-04-25 Marek Polacek <polacek@redhat.com>
1566
1567 PR c/52085
1568 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
1569 attribute.
1570
1571 2015-04-23 Marek Polacek <polacek@redhat.com>
1572
1573 PR c/65345
1574 * c-decl.c (set_labels_context_r): New function.
1575 (store_parm_decls): Call it via walk_tree_without_duplicates.
1576 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
1577 instead of create_tmp_var. Build TARGET_EXPR instead of
1578 COMPOUND_EXPR.
1579 (build_atomic_assign): Use create_tmp_var_raw instead of
1580 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
1581
1582 2015-04-20 Ilya Verbin <ilya.verbin@intel.com>
1583
1584 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
1585 (c_parser_omp_target_update): Add missed %> to error_at ().
1586
1587 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1588
1589 PR target/55143
1590 * c-decl.c (c_default_pointer_mode): Remove definition.
1591 * c-tree.h (c_default_pointer_mode): Remove declaration.
1592
1593 2015-03-27 Tobias Burnus <burnus@net-b.de>
1594
1595 PR c/65586
1596 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
1597 error out.
1598 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
1599 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
1600 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
1601
1602 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1603
1604 * c-decl.c (c_decl_attributes): Also add "omp declare target"
1605 attribute for DECL_EXTERNAL VAR_DECLs.
1606
1607 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1608
1609 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
1610 argument.
1611
1612 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR c/65120
1615 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
1616 before preparing arguments to warn_logical_not_parentheses.
1617
1618 2015-03-09 Jakub Jelinek <jakub@redhat.com>
1619
1620 PR c/65120
1621 * c-typeck.c (parser_build_binary_op): Don't warn for
1622 !!x == y or !b == y where b is _Bool.
1623
1624 2015-03-09 Marek Polacek <polacek@redhat.com>
1625
1626 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
1627 * c-decl.c (grokdeclarator): Likewise.
1628 * c-typeck.c (build_binary_op): Likewise.
1629
1630 2015-02-27 Marek Polacek <polacek@redhat.com>
1631
1632 PR c/65228
1633 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
1634
1635 2015-02-14 Marek Polacek <polacek@redhat.com>
1636
1637 PR c/64768
1638 * c-decl.c (grokdeclarator): Set the range of a flexible array member
1639 declared through a typedef name.
1640
1641 2015-02-13 Marek Polacek <polacek@redhat.com>
1642
1643 PR c/65050
1644 * c-decl.c (grokdeclarator): Print also the type when giving
1645 the error message about array's incomplete element type.
1646
1647 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1648
1649 PR c/64824
1650 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
1651 check in the POP macro.
1652
1653 2015-02-09 Marek Polacek <polacek@redhat.com>
1654
1655 PR c/64856
1656 * c-typeck.c (process_init_element): Don't always wrap
1657 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
1658 initializing a range of elements.
1659
1660 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1661
1662 PR c/64824
1663 PR c/64868
1664 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
1665
1666 2015-02-02 Bruno Loff <bruno.loff@gmail.com>
1667
1668 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
1669 processing enum declaration.
1670
1671 2015-01-29 Marek Polacek <polacek@redhat.com>
1672
1673 PR c/64709
1674 * c-typeck.c (pop_init_level): If constructor_elements has
1675 exactly one element with integer_zerop value, set constructor_zeroinit
1676 to 1. Remove braces around warning_init call.
1677
1678 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1679
1680 PR c/64766
1681 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
1682 of FUNCTION_DECLs with error_mark_node.
1683
1684 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1685
1686 PR c/64778
1687 * c-typeck.c (convert_arguments): Return -1 if there are
1688 error_args, even if we've diagnosed too many arguments.
1689
1690 2015-01-21 Richard Biener <rguenther@suse.de>
1691
1692 PR middle-end/64313
1693 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
1694 for builtins the user declared correctly.
1695
1696 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1697 Bernd Schmidt <bernds@codesourcery.com>
1698 Cesar Philippidis <cesar@codesourcery.com>
1699 James Norris <jnorris@codesourcery.com>
1700 Jakub Jelinek <jakub@redhat.com>
1701 Ilmir Usmanov <i.usmanov@samsung.com>
1702
1703 * c-parser.c: Include "gomp-constants.h".
1704 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1705 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1706 Use OMP_CLAUSE_SET_MAP_KIND.
1707 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
1708 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
1709 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
1710 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
1711 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
1712 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
1713 "copyout", "create", "delete", "deviceptr", "gang", "host",
1714 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
1715 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1716 "present_or_create", "pcreate", "seq", "self", "vector",
1717 "vector_length", "wait", "worker".
1718 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1719 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
1720 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1721 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1722 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
1723 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
1724 (c_parser_oacc_data_clause_deviceptr)
1725 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
1726 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
1727 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
1728 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
1729 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
1730 (c_parser_oacc_parallel, c_parser_oacc_update)
1731 (c_parser_oacc_wait): New functions.
1732 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
1733 (c_finish_oacc_data): New prototypes.
1734 * c-typeck.c: Include "gomp-constants.h".
1735 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
1736 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1737 OMP_CLAUSE_SET_MAP_KIND.
1738 (c_finish_oacc_parallel, c_finish_oacc_kernels)
1739 (c_finish_oacc_data): New functions.
1740 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
1741 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1742 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1743 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
1744 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
1745 GOMP_MAP_FORCE_DEVICEPTR.
1746
1747 2015-01-09 Michael Collison <michael.collison@linaro.org>
1748
1749 * c-array-notation.c: Include hash-set.h, machmode.h,
1750 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1751 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1752 * c-aux-info.c: Ditto.
1753 * c-convert.c: Ditto.
1754 * c-decl.c: Ditto.
1755 * c-errors.c: Ditto.
1756 * c-lang.c: Dittoxs.
1757 * c-objc-common.c: Ditto.
1758 * c-parser.c: Ditto.
1759 * c-typeck.c: Include hash-set.h, machmode.h,
1760 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1761 fold-const.h, wide-int.h, inchash.h, real.h and
1762 fixed-value.h due to flattening of tree.h.
1763
1764 2015-01-07 Marek Polacek <polacek@redhat.com>
1765
1766 PR c/64417
1767 * c-typeck.c (process_init_element): Disallow initialization of
1768 a flexible array member with a string constant if the structure
1769 is in an array.
1770
1771 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1772
1773 PR sanitizer/64344
1774 * c-typeck.c (convert_for_assignment, c_finish_return): For
1775 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
1776 types also set in_late_binary_op around convert call.
1777 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
1778 to integral type casts, if not in_late_binary_op, pass c_fully_fold
1779 result on expr as last argument to ubsan_instrument_float_cast,
1780 if in_late_binary_op, don't use c_save_expr but save_expr.
1781
1782 Update copyright years.
1783
1784 2015-01-05 Marek Polacek <polacek@redhat.com>
1785
1786 PR c/64423
1787 * c-typeck.c (build_array_ref): Pass loc down to
1788 warn_array_subscript_with_type_char.
1789
1790 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1791
1792 * c-typeck.c: New behavious for pointers to arrays with qualifiers
1793 (common-pointer-type): For pointers to arrays take qualifiers from
1794 element type.
1795 (build_conditional_expr): Add warnings for lost qualifiers.
1796 (comp-target-types): Allow pointers to arrays with different qualifiers.
1797 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
1798 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
1799 to PEDWARN_FOR_QUALIFIERS.
1800
1801 2014-12-17 Jakub Jelinek <jakub@redhat.com>
1802
1803 PR sanitizer/64289
1804 * c-convert.c: Include ubsan.h.
1805 (convert): For real -> integral casts and
1806 -fsanitize=float-cast-overflow don't call convert_to_integer, but
1807 instead instrument the float cast directly.
1808
1809 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1810
1811 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
1812 c_finish_stmt_expr): Remove NULL last argument from
1813 create_tmp_var_raw and create_tmp_var calls.
1814 * c-array-notation.c (fix_builtin_array_notation_fn,
1815 build_array_notation_expr, fix_conditional_array_notations_1,
1816 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
1817
1818 2014-11-28 Marek Polacek <polacek@redhat.com>
1819
1820 PR c/63862
1821 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
1822 convert the right operand to integer type.
1823
1824 2014-11-25 Marek Polacek <polacek@redhat.com>
1825
1826 PR c/63877
1827 * c-decl.c (start_function): Disable -Wmissing-declarations warning
1828 for inline functions.
1829
1830 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1831
1832 PR target/63764
1833 * c-typeck.c (build_array_ref): Adjust
1834 convert_vector_to_pointer_for_subscript caller. If it returns true,
1835 call non_lvalue_loc on the result.
1836
1837 2014-11-11 Richard Biener <rguenther@suse.de>
1838
1839 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
1840 to true.
1841
1842 2014-11-10 Andi Kleen <ak@linux.intel.com>
1843
1844 PR c/60804
1845 * c-parser.c (c_parser_statement_after_labels): Call
1846 check_no_cilk.
1847 (c_parser_if_statement): Dito.
1848 (c_parser_switch_statement): Dito.
1849 (c_parser_while_statement): Dito.
1850 (c_parser_do_statement): Dito.
1851 (c_parser_for_statement): Dito.
1852 * c-typeck.c (c_finish_loop): Dito.
1853
1854 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1855
1856 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
1857 OPT_Wshift_count_overflow in the warnings.
1858
1859 2014-10-30 Marek Polacek <polacek@redhat.com>
1860
1861 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
1862 print the stripped version as well, if they're not the same.
1863
1864 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1865
1866 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
1867 machine_mode.
1868
1869 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1870
1871 * c-decl.c: Adjust include files.
1872 * c-parser.c: Ditto.
1873
1874 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
1875 Tom Tromey <tromey@redhat.com>
1876
1877 * c-tree.h (enum c_oracle_request): New.
1878 (c_binding_oracle_function): New typedef.
1879 (c_binding_oracle, c_pushtag, c_bind): Declare.
1880 * c-decl.c (c_binding_oracle): New global.
1881 (I_SYMBOL_CHECKED): New macro.
1882 (i_symbol_binding): New function.
1883 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
1884 (I_TAG_CHECKED): New macro.
1885 (i_tag_binding): New function.
1886 (I_TAG_BINDING, I_TAG_DECL): Redefine.
1887 (I_LABEL_CHECKED): New macro.
1888 (i_label_binding): New function.
1889 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
1890 (c_print_identifier): Save and restore c_binding_oracle.
1891 (c_pushtag, c_bind): New functions.
1892
1893 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1894
1895 * c-typeck.c: Adjust include files.
1896
1897 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1898
1899 PR c++/53061
1900 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
1901 initialization here...
1902 (c_initialize_diagnostics): ... but here. Set defaults after
1903 building pretty-printer.
1904
1905 2014-10-23 Marek Polacek <polacek@redhat.com>
1906
1907 PR c/63626
1908 * c-decl.c (pop_scope): Don't print warning in external_scope.
1909
1910 2014-10-19 Marek Polacek <polacek@redhat.com>
1911
1912 PR c/63567
1913 * c-typeck.c (output_init_element): Allow initializing objects with
1914 static storage duration with compound literals even in C99 and add
1915 pedwarn for it.
1916
1917 2014-10-17 Marek Polacek <polacek@redhat.com>
1918
1919 PR c/63567
1920 * c-typeck.c (digest_init): Allow initializing objects with static
1921 storage duration with compound literals even in C99 and add pedwarn
1922 for it.
1923
1924 2014-10-17 Marek Polacek <polacek@redhat.com>
1925
1926 PR c/63543
1927 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
1928 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
1929 error multiple times. Print the type.
1930
1931 2014-10-17 Marek Polacek <polacek@redhat.com>
1932
1933 PR c/63549
1934 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
1935 type.
1936
1937 2014-10-17 Marek Polacek <polacek@redhat.com>
1938
1939 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
1940 (start_function): Use OPT_Wimplicit_int instead of 0.
1941 (store_parm_decls_oldstyle): Likewise.
1942
1943 2014-10-17 Alan Modra <amodra@gmail.com>
1944
1945 PR middle-end/61848
1946 * c-decl.c (merge_decls): Don't merge section name or tls model
1947 to newdecl symtab node, instead merge to olddecl. Override
1948 existing olddecl section name. Set tls_model for all thread-local
1949 vars, not just OMP thread-private ones. Remove incorrect comment.
1950
1951 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1952
1953 * c-decl.c: Adjust include files.
1954
1955 2014-10-14 DJ Delorie <dj@redhat.com>
1956
1957 * c-parser.c (c_parse_init): Add RID entries for each __intN.
1958 (c_token_starts_typename): Check all __intN, not just __int128.
1959 (c_token_starts_declspecs): Likewise.
1960 (c_parser_declspecs): Likewise.
1961 (c_parser_attribute_any_word): Likewise.
1962 (c_parser_objc_selector): Likewise.
1963 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
1964 (struct c_declspecs): Add int_n_idx field to record *which* __intN
1965 is specified.
1966 * c-decl.c (declspecs_add_type): Check for all __intN, not just
1967 __int128.
1968 (finish_declspecs): Likewise.
1969
1970 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
1971
1972 * c-parser.c (c_parser_all_labels): New function to replace
1973 the duplicate code.
1974 (c_parser_statement): Call the new function.
1975
1976 2014-10-09 Marek Polacek <polacek@redhat.com>
1977
1978 PR c/63480
1979 * c-typeck.c (pop_init_level): Don't warn about initializing
1980 with { }.
1981
1982 2014-10-07 Marek Polacek <polacek@redhat.com>
1983
1984 PR c/59717
1985 * c-decl.c (header_for_builtin_fn): New function.
1986 (implicitly_declare): Suggest which header to include.
1987
1988 2014-10-07 Marek Polacek <polacek@redhat.com>
1989
1990 * c-convert.c (convert): Use error_operand_p.
1991 * c-typeck.c (require_complete_type): Likewise.
1992 (really_atomic_lvalue): Likewise.
1993 (digest_init): Likewise.
1994 (handle_omp_array_sections_1): Likewise.
1995
1996 2014-10-03 Marek Polacek <polacek@redhat.com>
1997
1998 PR c/63453
1999 * c-decl.c (pop_scope): Don't warn about "inline function declared
2000 but never defined" for functions marked with gnu_inline attribute.
2001
2002 2014-09-25 Jakub Jelinek <jakub@redhat.com>
2003
2004 PR c++/63249
2005 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
2006 on low_bound and length.
2007
2008 2014-09-24 Marek Polacek <polacek@redhat.com>
2009
2010 PR c/61405
2011 PR c/53874
2012 * c-parser.c: Don't define CPP_KEYWORD.
2013 (c_parser_switch_statement): Pass original type to c_finish_case.
2014 * c-tree.h (c_finish_case): Update declaration.
2015 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
2016 conditionally to c_do_switch_warnings.
2017
2018 2014-09-03 Marek Polacek <polacek@redhat.com>
2019
2020 PR c/62024
2021 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
2022 conversions.
2023
2024 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2025 Balaji V. Iyer <balaji.v.iyer@intel.com>
2026 Igor Zamyatin <igor.zamyatin@intel.com>
2027
2028 * c-parser.c (c_parser_cilk_for): New function.
2029 (c_parser_cilk_grainsize): Likewise.
2030 (c_get_temp_regvar): Likewise.
2031 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
2032 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
2033 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
2034 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
2035 case.
2036
2037 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
2038
2039 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
2040 with using HOST_WIDE_INT without truncation to 'int'
2041
2042 2014-08-22 Marek Polacek <polacek@redhat.com>
2043
2044 PR c++/62199
2045 * c-typeck.c (parser_build_binary_op): Adjust call to
2046 warn_logical_not_parentheses.
2047
2048 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
2049
2050 PR other/62008
2051 * c-parser.c (c_parser_array_notation): Check for correct
2052 type of an array added.
2053
2054 2014-08-19 Marek Polacek <polacek@redhat.com>
2055
2056 PR c++/62153
2057 * c-typeck.c (build_binary_op): If either operand of a comparison
2058 is a boolean expression, call maybe_warn_bool_compare.
2059
2060 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
2061
2062 PR c/45584
2063 * c-typeck.c (build_c_cast): Do a conversion even when the
2064 TYPE_MAIN_VARIANTs are the same.
2065
2066 2014-08-19 Marek Polacek <polacek@redhat.com>
2067
2068 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
2069 pedwarn_c99 instead of pedwarn.
2070 (grokfield): Likewise.
2071 (warn_defaults_to): New function.
2072 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
2073 Unconditionally call pedwarn_c99 instead of pedwarn.
2074 (start_function): Call warn_defaults_to instead of pedwarn_c99.
2075 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
2076 check flag_isoc11 before.
2077 * c-errors.c (pedwarn_c99): Change the return type to bool.
2078 Handle -Wc99-c11-compat.
2079 * c-parser.c (disable_extension_diagnostics): Handle
2080 warn_c99_c11_compat.
2081 (restore_extension_diagnostics): Likewise.
2082 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
2083 instead of pedwarn, don't check flag_isoc11 before.
2084 (c_parser_declspecs): Likewise.
2085 (c_parser_alignas_specifier): Likewise.
2086 (c_parser_alignof_expression): Likewise.
2087 (c_parser_generic_selection): Likewise.
2088 * c-tree.h (pedwarn_c99): Update declaration.
2089 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
2090 of pedwarn_c99.
2091
2092 2014-08-19 Marek Polacek <polacek@redhat.com>
2093
2094 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
2095 to pedwarn_c90.
2096 * c-errors.c: Include "opts.h".
2097 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
2098 * c-parser.c (disable_extension_diagnostics): Handle negative value
2099 of warn_c90_c99_compat, too.
2100 (restore_extension_diagnostics): Likewise.
2101 (c_parser_compound_statement_nostart): Pass
2102 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
2103
2104 2014-08-12 Marek Polacek <polacek@redhat.com>
2105
2106 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
2107 Add pedwarn.
2108 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
2109 Likewise.
2110 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
2111
2112 2014-08-10 Marek Polacek <polacek@redhat.com>
2113
2114 PR c/51849
2115 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
2116 Call pedwarn_c90 instead of pedwarn.
2117 (check_bitfield_type_and_width): Likewise.
2118 (declspecs_add_qual): Likewise.
2119 (declspecs_add_type): Likewise.
2120 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
2121 Adjust to only call pedwarn_c90.
2122 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
2123 pedwarn_c90 instead of pedwarn.
2124 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
2125 * c-parser.c (disable_extension_diagnostics): Handle
2126 warn_c90_c99_compat.
2127 (restore_extension_diagnostics): Likewise.
2128 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
2129 pedwarn_c90 instead of pedwarn.
2130 (c_parser_initelt): Likewise.
2131 (c_parser_postfix_expression): Likewise.
2132 (c_parser_postfix_expression_after_paren_type): Likewise.
2133 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
2134 * c-tree.h: Fix formatting.
2135 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
2136 pedwarn_c90 instead of pedwarn.
2137
2138 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2139
2140 * c-typeck.c: Remove include of pointer-set.h.
2141
2142 2014-08-07 Marek Polacek <polacek@redhat.com>
2143
2144 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
2145
2146 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2147
2148 * c-typeck.c: Use hash_map instead of pointer_map.
2149
2150 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2151
2152 * c-decl.c: Use hash_set instead of pointer_set.
2153
2154 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2155
2156 PR middle-end/61455
2157 * c-array-notation.c (expand_array_notations): Handling
2158 of DECL_EXPR added.
2159
2160 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2161
2162 PR c++/60517
2163 * c-typeck.c (c_finish_return): Return 0 instead of the address of
2164 a local variable.
2165
2166 2014-07-30 Tom Tromey <tromey@redhat.com>
2167
2168 * c-typeck.c (struct constructor_stack) <designator_depth>: New
2169 field.
2170 (really_start_incremental_init, push_init_level): Initialize
2171 designator_depth.
2172 (pop_init_level): Set global designator_depth.
2173 (process_init_element): Check for designated_init attribute.
2174
2175 2014-07-20 Marek Polacek <polacek@redhat.com>
2176
2177 PR c/61852
2178 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
2179 (implicitly_declare): Pass location to implicit_decl_warning.
2180
2181 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2182
2183 PR middle-end/61294
2184 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
2185 If non-NULL, call c_parser_check_literal_zero.
2186 (c_parser_check_literal_zero): New function.
2187 (c_parser_postfix_expression_after_primary): Adjust
2188 c_parser_expr_list caller, handle -Wmemset-transposed-args.
2189
2190 2014-07-06 Marek Polacek <polacek@redhat.com>
2191
2192 PR c/6940
2193 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
2194 * c-tree.h (C_ARRAY_PARAMETER): Define.
2195 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
2196 function parameter.
2197
2198 2014-07-02 Jan Hubicka <hubicka@ucw.cz>
2199 Chen Gang <gang.chen.5i5j@gmail.com>
2200
2201 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
2202 releasing symbol.
2203
2204 2014-07-01 Marek Polacek <polacek@redhat.com>
2205
2206 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
2207 instead of 0 to WARN_FOR_ASSIGNMENT.
2208
2209 2014-07-01 Marek Polacek <polacek@redhat.com>
2210
2211 PR c/58286
2212 * c-typeck.c (convert_for_assignment): Pass
2213 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2214
2215 2014-06-30 Marek Polacek <polacek@redhat.com>
2216
2217 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
2218 has no_sanitize_undefined attribute.
2219
2220 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
2221
2222 PR middle-end/57541
2223 * c-array-notation.c (fix_builtin_array_notation_fn):
2224 Check for 0 arguments in builtin call. Check that bultin argument is
2225 correct.
2226 * c-parser.c (c_parser_array_notation): Check for incorrect initial
2227 index.
2228
2229 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2230
2231 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
2232 qualifiers in __auto_type for atomic types.
2233 (c_parser_typeof_specifier): Discard all type qualifiers in
2234 __typeof__ for atomic types.
2235
2236 2014-06-25 Marek Polacek <polacek@redhat.com>
2237
2238 PR c/61162
2239 * c-parser.c (c_parser_statement_after_labels): Pass the location of
2240 the return expression to c_finish_return.
2241
2242 2014-06-25 Jakub Jelinek <jakub@redhat.com>
2243
2244 * c-typeck.c (c_finish_omp_clauses): Make sure
2245 OMP_CLAUSE_LINEAR_STEP has correct type.
2246
2247 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
2248
2249 * c-decl.c: Adjust.
2250
2251 2014-06-24 Jakub Jelinek <jakub@redhat.com>
2252
2253 * c-parser.c (c_parser_omp_for_loop): For
2254 #pragma omp parallel for simd move lastprivate clause from parallel
2255 to for rather than simd.
2256
2257 2014-06-23 Marek Polacek <polacek@redhat.com>
2258
2259 * c-typeck.c (parser_build_binary_op): Don't call
2260 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
2261
2262 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
2263
2264 * c-parser.c (c_parser_omp_threadprivate): Likewise.
2265 * c-decl.c (merge_decls): Likewise.
2266
2267 2014-06-09 Marek Polacek <polacek@redhat.com>
2268
2269 PR c/36446
2270 * c-typeck.c (error_init): Call inform instead of error_at.
2271 (pedwarn_init): Call inform instead of pedwarn.
2272 (warning_init): Call inform instead of warning_at.
2273
2274 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2275
2276 * c-decl.c (merge_decls): Use set_decl_section_name.
2277 (duplicate_decls): Remove node if it exists.
2278
2279 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
2280
2281 PR c/53119
2282 * c-typeck.c (push_init_level, process_init_element,
2283 pop_init_level): Correct check for zero initialization, move
2284 missing brace warning to respect zero initialization.
2285
2286 2014-06-05 Marek Polacek <polacek@redhat.com>
2287
2288 PR c/56724
2289 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
2290
2291 2014-06-05 Marek Polacek <polacek@redhat.com>
2292
2293 PR c/49706
2294 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
2295 on the left hand side operand of a comparison.
2296
2297 2014-06-05 Marek Polacek <polacek@redhat.com>
2298
2299 PR c/48062
2300 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
2301 Print note only if the warning was printed.
2302
2303 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
2304
2305 PR c/58942
2306 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
2307 with a pointer.
2308
2309 2014-06-03 Marek Polacek <polacek@redhat.com>
2310
2311 PR c/60439
2312 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
2313 c_start_case.
2314 * c-tree.h (c_start_case): Update.
2315 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
2316 switch condition has boolean value.
2317
2318 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
2319
2320 * c-decl.c: Include builtins.h.
2321 * c-parser.c: Likewise.
2322
2323 2014-05-27 Marek Polacek <polacek@redhat.com>
2324
2325 PR c/56724
2326 * c-typeck.c (convert_arguments): Get location of a parameter. Change
2327 error and warning calls to error_at and warning_at. Pass location of
2328 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
2329 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
2330 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
2331
2332 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
2333
2334 PR c/61191
2335 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
2336 function parameters.
2337
2338 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
2339
2340 * c-decl.c (merge_decls): Preserve symtab node pointers.
2341 (duplicate_decls): Free new decl.
2342
2343 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
2344
2345 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
2346 initialization.
2347
2348 * c-parser.c (c_parser_omp_target): Return bool values.
2349
2350 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2351
2352 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
2353 num_teams_loc variable to num_thread_limit_loc.
2354
2355 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2356
2357 * c-array-notation.c (expand_array_notations): Use void_node
2358 instead of void_zero_node.
2359
2360 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2361
2362 * c-decl.c (finish_struct): Adjust.
2363 (finish_enum): Likewise.
2364 (bind): Adjust.
2365 (record_inline_static): Likewise.
2366 (push_scope): Likewise.
2367 (make_label): Likewise.
2368 (lookup_label_for_goto): Likewise.
2369 (finish_struct): Likewise.
2370 (finish_enum): Likewise.
2371 (store_parm_decls): Likewise.
2372 (c_push_function_context): Likewise.
2373 * c-lang.h: Remove usage of variable_size gty attribute.
2374 * c-parser.c (c_parse_init): Adjust.
2375 (c_parse_file): Likewise.
2376
2377 2014-05-13 Marek Polacek <polacek@redhat.com>
2378
2379 PR c/61162
2380 * c-typeck.c (convert_for_assignment): Pass location to
2381 WARN_FOR_ASSIGNMENT instead of input_location.
2382
2383 2014-05-10 Marek Polacek <polacek@redhat.com>
2384
2385 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
2386 maybe_warn_string_init.
2387 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
2388 maybe_warn_string_init.
2389 * c-tree.h (maybe_warn_string_init): Update declaration.
2390 * c-typeck.c (maybe_warn_string_init): Add location parameter.
2391 Call pedwarn_init with loc instead of with input_location.
2392 (digest_init): Pass init_loc to maybe_warn_string_init.
2393 (pop_init_level): Call pedwarn_init with loc instead of with
2394 input_location.
2395 (set_init_index): Likewise.
2396 (process_init_element): Likewise.
2397
2398 2014-05-09 Marek Polacek <polacek@redhat.com>
2399
2400 PR c/61096
2401 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
2402 (c_parser_initelt): Pass location to set_init_label. Pass array index
2403 location to set_init_index.
2404 * c-tree.h (push_init_level): Update declaration.
2405 (pop_init_level): Likewise.
2406 (set_init_index): Likewise.
2407 (set_init_label): Likewise.
2408 * c-typeck.c (error_init): Add location parameter. Call error_at
2409 instead of error.
2410 (digest_init): Pass init_loc to error_init.
2411 (really_start_incremental_init):
2412 (push_init_level): Add location parameter. Pass loc to pop_init_level
2413 and error_init.
2414 (pop_init_level): Likewise.
2415 (set_designator): Add location parameter. Pass loc to pop_init_level,
2416 push_init_level, and error_init.
2417 (set_init_index): Add location parameter. Pass loc to error_init and
2418 set_designator.
2419 (set_init_label): Likewise.
2420 (output_init_element): Pass loc to error_init.
2421 (process_init_element): Pass loc to error_init, pop_init_level,
2422 pedwarn_init, and push_init_level.
2423
2424 2014-05-09 Marek Polacek <polacek@redhat.com>
2425
2426 PR c/50459
2427 * c-parser.c (c_parser_attributes): Parse the arguments as an
2428 expression-list if the attribute takes identifier.
2429
2430 2014-05-08 Marek Polacek <polacek@redhat.com>
2431
2432 PR c/61053
2433 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
2434 TYPE_ALIGN_UNIT.
2435
2436 2014-05-08 Marek Polacek <polacek@redhat.com>
2437
2438 PR c/61077
2439 * c-decl.c (start_function): Warn for _Atomic-qualified return type
2440 of main.
2441
2442 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2443 Mike Stump <mikestump@comcast.net>
2444 Richard Sandiford <rdsandiford@googlemail.com>
2445
2446 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
2447 (finish_enum): Use wide-int interfaces.
2448 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
2449 * c-typeck.c (build_c_cast): Likewise.
2450 (set_nonincremental_init_from_string): Likewise.
2451 (c_tree_equal): Likewise.
2452
2453 2014-05-02 Marek Polacek <polacek@redhat.com>
2454
2455 PR c/25801
2456 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
2457 Return size_one_node when the type is not complete.
2458 (pointer_diff): Remove comment.
2459 (build_unary_op): Improve error messages.
2460
2461 2014-05-02 Marek Polacek <polacek@redhat.com>
2462
2463 * c-typeck.c (c_finish_return): Separate warning_at calls.
2464
2465 2014-05-02 Marek Polacek <polacek@redhat.com>
2466
2467 * c-tree.h (error_init): Remove declaration.
2468 (pedwarn_init): Likewise.
2469 * c-typeck.c (error_init): Make static and move above.
2470 (pedwarn_init): Likewise.
2471 (warning_init): Move above.
2472 (maybe_warn_string_init): Likewise.
2473
2474 2014-05-01 Jeff Law <law@redhat.com>
2475
2476 Revert:
2477
2478 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2479 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
2480 avoid goto.
2481
2482 2014-05-02 Marek Polacek <polacek@redhat.com>
2483
2484 PR c/60784
2485 * c-typeck.c (push_init_level): Set constructor_designated to
2486 p->designated for structures.
2487
2488 2014-05-01 Marek Polacek <polacek@redhat.com>
2489
2490 PR c/60915
2491 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
2492 function-definition has an attribute after the declarator.
2493
2494 2014-05-01 Marek Polacek <polacek@redhat.com>
2495
2496 PR c/60257
2497 * c-typeck.c (warning_init): Add location_t parameter. Call
2498 warning_at instead of warning.
2499 (push_init_level): Pass input_location to warning_init.
2500 (add_pending_init): Add location_t parameter. Pass loc to
2501 warning_init.
2502 (set_nonincremental_init): Pass input_location to add_pending_init.
2503 (set_nonincremental_init_from_string): Likewise.
2504 (output_init_element): Pass loc to warning_init and to
2505 add_pending_init.
2506
2507 2014-05-01 Marek Polacek <polacek@redhat.com>
2508
2509 PR c/43395
2510 * c-typeck.c (c_finish_return): Distinguish between label and variable
2511 when warning about returning local address.
2512
2513 2014-05-01 Marek Polacek <polacek@redhat.com>
2514
2515 PR c/29467
2516 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
2517 in C89 mode.
2518
2519 2014-05-01 Marek Polacek <polacek@redhat.com>
2520
2521 PR c/43245
2522 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
2523 instead of 0 to WARN_FOR_QUALIFIERS.
2524
2525 2014-05-01 Marek Polacek <polacek@redhat.com>
2526
2527 PR c/56989
2528 * c-typeck.c (default_conversion): Use better location for
2529 error call.
2530
2531 2014-04-30 Marek Polacek <polacek@redhat.com>
2532
2533 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
2534 also when SANITIZE_FLOAT_DIVIDE is on.
2535
2536 2014-04-30 Marek Polacek <polacek@redhat.com>
2537
2538 PR c/60139
2539 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
2540 and pedwarn_init. Use loc insted of input_location.
2541
2542 2014-04-30 Marek Polacek <polacek@redhat.com>
2543
2544 PR c/60351
2545 * c-typeck.c (build_binary_op): Use location when warning about
2546 shift count.
2547
2548 2014-04-25 Marek Polacek <polacek@redhat.com>
2549
2550 PR c/18079
2551 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
2552 always_inline/noinline and hot/cold attributes.
2553
2554 2014-04-25 Marek Polacek <polacek@redhat.com>
2555
2556 PR c/60114
2557 * c-parser.c (c_parser_initelt): Pass input_location to
2558 process_init_element.
2559 (c_parser_initval): Pass loc to process_init_element.
2560 * c-tree.h (process_init_element): Adjust declaration.
2561 * c-typeck.c (push_init_level): Pass input_location to
2562 process_init_element.
2563 (pop_init_level): Likewise.
2564 (set_designator): Likewise.
2565 (output_init_element): Add location_t parameter. Pass loc to
2566 digest_init.
2567 (output_pending_init_elements): Pass input_location to
2568 output_init_element.
2569 (process_init_element): Add location_t parameter. Pass loc to
2570 output_init_element.
2571
2572 2014-04-24 Jakub Jelinek <jakub@redhat.com>
2573
2574 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
2575 atomic-clause, allow comma in between atomic-clause and
2576 seq_cst.
2577
2578 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2579
2580 PR c/59073
2581 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
2582 fails, don't set OM_PARALLEL_COMBINED and return NULL.
2583
2584 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2585
2586 PR middle-end/60469
2587 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2588 create_tmp_var instead build_decl for creating temps.
2589 (build_array_notation_expr): Likewise.
2590 (fix_conditional_array_notations_1): Likewise.
2591 (fix_array_notation_expr): Likewise.
2592 (fix_array_notation_call_expr): Likewise.
2593
2594 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2595
2596 PR c++/60689
2597 * c-tree.h (c_build_function_call_vec): New prototype.
2598 * c-typeck.c (build_function_call_vec): Don't call
2599 resolve_overloaded_builtin here.
2600 (c_build_function_call_vec): New wrapper function around
2601 build_function_call_vec. Call resolve_overloaded_builtin here.
2602 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
2603 Call c_build_function_call_vec instead of build_function_call_vec.
2604 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2605 * c-decl.c (finish_decl): Likewise.
2606
2607 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2608
2609 PR c/55383
2610 * c-typeck.c: Use correct format string in cast-qual warning
2611
2612 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
2613
2614 * c-decl.c (c_decl_attributes): Use
2615 lang_hooks.types.omp_mappable_type.
2616 * c-typeck.c (c_finish_omp_clauses): Likewise.
2617
2618 2014-03-06 Marek Polacek <polacek@redhat.com>
2619
2620 PR c/60197
2621 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
2622 of checking tree code.
2623
2624 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2625
2626 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
2627 (c_parser_parameter_declaration): Likewise.
2628
2629 2014-02-19 Marek Polacek <polacek@redhat.com>
2630
2631 PR c/60195
2632 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
2633 Call mark_exp_read on exp.value.
2634 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
2635 TREE_ADDRESSABLE on old instead of val.
2636 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
2637
2638 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2639
2640 * c-parser.c (c_parser_get_builtin_args): Replace calls to
2641 C_EXPR_APPEND by vec_safe_push.
2642 * c-tree.h (C_EXPR_APPEND): Remove.
2643
2644 2014-01-31 Marek Polacek <polacek@redhat.com>
2645
2646 PR c/59963
2647 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
2648 build_function_call_vec.
2649 (build_function_call): Likewise.
2650 (build_atomic_assign): Likewise.
2651 (build_function_call_vec): Add arg_loc parameter. Use it.
2652 (convert_arguments): Likewise.
2653 (convert_for_assignment): Rename rhs_loc to expr_loc.
2654 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
2655 (c_parser_objc_keywordexpr): Likewise.
2656 (c_parser_postfix_expression_after_primary): Call
2657 build_function_call_vec with expr_loc rather than op_loc.
2658 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
2659 build_function_call_vec.
2660 (c_parser_expr_list): Add locations parameter. Fill it with locations
2661 of function arguments.
2662 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
2663
2664 2014-01-30 Marek Polacek <polacek@redhat.com>
2665
2666 PR c/59940
2667 * c-typeck.c (build_function_call_vec): Use loc parameter.
2668 (convert_arguments): Add location parameter. Use it.
2669 (ep_convert_and_check): Likewise.
2670 (build_atomic_assign): Adjust convert_for_assignment call.
2671 (build_modify_expr): Likewise.
2672 (digest_init): Likewise.
2673 (c_finish_return): Likewise.
2674 (build_conditional_expr): Adjust ep_convert_and_check calls.
2675 (convert_for_assignment): Add rhs_loc parameter. Use it.
2676 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
2677 calls.
2678
2679 2014-01-30 Richard Biener <rguenther@suse.de>
2680
2681 PR c/59905
2682 * c-typeck.c (build_function_call_vec): Do not replace calls
2683 to a function via an incompatible type with a runtime abort.
2684
2685 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2686
2687 * c-parser.c (c_parser_declaration_or_fndef): Replaced
2688 flag_enable_cilkplus with flag_cilkplus.
2689 (c_parser_direct_declarator_inner): Likewise.
2690 (c_parser_attribute_any_word): Likewise.
2691 (c_parser_attributes): Likewise.
2692 (c_parser_compound_statement): Likewise.
2693 (c_parser_statement_after_labels): Likewise.
2694 (c_parser_if_statement): Likewise.
2695 (c_parser_switch_statement): Likewise.
2696 (c_parser_do_statement): Likewise.
2697 (c_parser_for_statement): Likewise.
2698 (c_parser_unary_expression): Likewise.
2699 (c_parser_postfix_expression): Likewise.
2700 (c_parser_postfix_expression_after_primary): Likewise.
2701 (c_parser_postfix_expression_after_primary): Likewise.
2702 (c_parser_omp_clause_name): Likewise.
2703 (c_finish_omp_declare_simd): Likewise.
2704 (c_parser_cilk_verify_simd): Likewise.
2705 * c-typeck.c (build_array_ref): Likewise.
2706 (build_function_call_vec): Likewise.
2707 (convert_arguments): Likewise.
2708 (build_compound_expr): Likewise.
2709 (c_finish_return): Likewise.
2710 (c_finish_if_stmt): Likewise.
2711 (c_finish_loop): Likewise.
2712 (build_binary_op): Likewise.
2713
2714 2014-01-23 Marek Polacek <polacek@redhat.com>
2715
2716 PR c/59846
2717 * c-typeck.c (parser_build_binary_op): Use location instead of
2718 input_location.
2719 (build_binary_op): Pass location to shorten_compare.
2720
2721 2014-01-23 Marek Polacek <polacek@redhat.com>
2722
2723 PR c/58346
2724 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
2725 an empty aggregate.
2726
2727 2014-01-23 Marek Polacek <polacek@redhat.com>
2728
2729 PR c/59871
2730 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
2731 of a comma expression.
2732 (emit_side_effect_warnings): Likewise.
2733
2734 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2735
2736 PR c/59825
2737 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
2738 function to use walk_tree and moved a lot of its functionality to
2739 expand_array_notations.
2740 (expand_array_notations): New function.
2741
2742 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2743
2744 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
2745 attribute an attribute without value.
2746
2747 2014-01-23 Jakub Jelinek <jakub@redhat.com>
2748
2749 PR middle-end/58809
2750 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
2751 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
2752
2753 2014-01-22 Marek Polacek <polacek@redhat.com>
2754
2755 PR c/59891
2756 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
2757 of remove_c_maybe_const_expr on op1 and op2.
2758
2759 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR c/58943
2762 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
2763 effects, preevaluate rhs using SAVE_EXPR first.
2764
2765 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
2766
2767 PR c++/59631
2768 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
2769 statements with if-elseif statements.
2770
2771 2014-01-06 Marek Polacek <polacek@redhat.com>
2772
2773 PR c/57773
2774 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
2775 defined bit-field types only in ISO C.
2776
2777 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2778
2779 Update copyright years
2780
2781 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2782
2783 * c-array-notation.c: Use the standard form for the copyright notice.
2784
2785 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2786
2787 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
2788 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
2789 field in parser is not empty. If not-empty, call the function
2790 c_parser_finish_omp_declare_simd.
2791 (c_parser_cilk_clause_vectorlength): Modified function to be shared
2792 between SIMD-enabled functions and #pragma simd. Added new parameter.
2793 (c_parser_cilk_all_clauses): Modified the usage of the function
2794 c_parser_cilk_clause_vectorlength as mentioned above.
2795 (c_parser_cilk_simd_fn_vector_attrs): New function.
2796 (c_finish_cilk_simd_fn_tokens): Likewise.
2797 (is_cilkplus_vector_p): Likewise.
2798 (c_parser_omp_clause_name): Added checking for "vectorlength,"
2799 "nomask," and "mask" strings in clause name.
2800 (c_parser_omp_all_clauses): Added 3 new case statements:
2801 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
2802 PRAGMA_CILK_CLAUSE_NOMASK.
2803 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
2804 check for vector attribute and if so call the function
2805 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
2806 called the function c_finish_cilk_simd_fn_tokens.
2807 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
2808 parser field is non-empty. If so, parse them as you would parse
2809 the omp declare simd pragma.
2810 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
2811 Added a check when step is a parameter and flag it as error.
2812 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
2813 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
2814 pragma_omp_clause.
2815
2816 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
2817
2818 * c-parser.c (c_parser_omp_parallel): Fix description.
2819
2820 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2821
2822 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
2823 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2824 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2825 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
2826
2827 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2828
2829 PR c/52023
2830 * c-parser.c (c_parser_alignas_specifier): Use
2831 c_sizeof_or_alignof_type instead of c_alignof.
2832 (c_parser_alignof_expression): Likewise, with min_alignof
2833 parameter depending on alignof spelling used.
2834
2835 2013-12-04 Marek Polacek <polacek@redhat.com>
2836
2837 PR c/54113
2838 * c-decl.c (start_function): Don't warn for missing prototype for
2839 inline functions.
2840
2841 2013-12-03 Marek Polacek <polacek@redhat.com>
2842
2843 PR c/59351
2844 * c-decl.c (build_compound_literal): Allow compound literals with
2845 empty initial value.
2846
2847 2013-12-02 Joseph Myers <joseph@codesourcery.com>
2848
2849 PR c/58235
2850 * c-typeck.c (build_modify_expr): Diagnose assignment to
2851 expression with array type.
2852
2853 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2854
2855 PR c/42262
2856 * c-typeck.c (process_init_element): Do not treat a string as
2857 initializing a whole array when used with a designator for an
2858 individual element.
2859
2860 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2861
2862 PR c/57574
2863 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
2864 an inline function following a static declaration.
2865
2866 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2867
2868 PR c/59310
2869 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
2870 to p_name before calling c_parser_omp_teams instead of after.
2871 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
2872 argument. Remove unused p_name variable.
2873
2874 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2875 Jakub Jelinek <jakub@redhat.com>
2876
2877 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
2878 external_scope is NULL.
2879
2880 2013-11-27 Tom de Vries <tom@codesourcery.com>
2881 Marc Glisse <marc.glisse@inria.fr>
2882
2883 PR c++/59032
2884 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
2885
2886 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2887
2888 * c-typeck.c: Add required include files from gimple.h.
2889
2890 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2891
2892 * c-decl.c (define_label, shadow_tag_warned)
2893 (check_bitfield_type_and_width, grokdeclarator, grokparms,
2894 store_parm_decls_newstyle, store_parm_decls_oldstyle)
2895 (declspecs_add_type): Remove use of in_system_header macro.
2896 * c-parser.c (c_parser_unary_expression): Likewise.
2897 * c-typeck.c (store_init_value, process_init_element)
2898 (c_start_case): Likewise.
2899
2900 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
2901 macro.
2902
2903 * c-parser.c (c_parser_set_source_position_from_token): Remove
2904 reference to in_system_header from comment.
2905
2906 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2907
2908 * c-decl.c (grokdeclarator): Update comment to refer to
2909 tree_to_[su]hwi rather than tree_low_cst.
2910
2911 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2912
2913 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
2914 tree_to_uhwi throughout.
2915
2916 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2917
2918 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
2919 throughout.
2920
2921 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2922
2923 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2924 throughout.
2925
2926 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2927
2928 * c-parser.c (c_parser_cilk_simd): New.
2929 (c_parser_cilk_verify_simd): New.
2930 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
2931 (c_parser_omp_for_loop): Add case for NE_EXPR.
2932 Set c_break_label for CILK_SIMD.
2933 (c_parser_cilk_clause_vectorlength): New.
2934 (c_parser_cilk_clause_linear): New.
2935 (c_parser_cilk_clause_name): New.
2936 (c_parser_cilk_all_clauses): New.
2937 * c-typeck.c (build_unary_op): Pass location argument to
2938 readonly_error.
2939 (build_modify_expr): Same.
2940 (build_asm_expr): Same.
2941 (c_finish_bc_stmt): Error on break/continue in loops.
2942
2943 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2944
2945 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
2946
2947 2013-11-14 Diego Novillo <dnovillo@google.com>
2948
2949 * c-decl.c: Include print-tree.h.
2950 Include stor-layout.h.
2951 Include varasm.h.
2952 Include attribs.h.
2953 Include stringpool.h.
2954 * c-lang.c: Include fold-const.h.
2955 * c-parser.c: Include stringpool.h.
2956 Include attribs.h.
2957 Include stor-layout.h.
2958 Include varasm.h.
2959 Include trans-mem.h.
2960 * c-typeck.c: Include stor-layout.h.
2961 Include trans-mem.h.
2962 Include varasm.h.
2963 Include stmt.h.
2964
2965 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2966
2967 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
2968 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
2969 __auto_type.
2970 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
2971 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
2972 RID_AUTO_TYPE.
2973 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
2974 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
2975 (c_parser_declarator, c_parser_direct_declarator_inner)
2976 (c_parser_parameter_declaration, c_parser_type_name): All callers
2977 changed.
2978 (c_parser_declaration_or_fndef): Handle declarations with type
2979 determined from the initializer.
2980
2981 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2982
2983 * c-typeck.c: Include gimplify.h.
2984
2985 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2986
2987 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
2988 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
2989 comment.
2990 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
2991 or _Thread_local as appropriate in diagnostics.
2992 (build_null_declspecs): Initialize ret->thread_gnu_p.
2993 (declspecs_add_scspec): Handle either __thread or _Thread_local
2994 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
2995 pedantic. Do not disallow _Thread_local extern and _Thread_local
2996 static.
2997
2998 2013-11-07 Joseph Myers <joseph@codesourcery.com>
2999 Andrew MacLeod <amacleod@redhat.com>
3000
3001 * c-aux-info.c (gen_type): Handle atomic qualifier.
3002 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
3003 qualifiers when compating types.
3004 (shadow_tag_warned): Handle atomic_p in declspecs.
3005 (quals_from_declspecs): Likewise.
3006 (start_decl): Use c_type_promotes_to when promoting argument
3007 types.
3008 (grokdeclarator): Handle _Atomic.
3009 (get_parm_info): Diagnose any qualifier on "void" as only
3010 parameter.
3011 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
3012 comparing types. Use c_type_promotes_to when promoting argument
3013 types.
3014 (finish_function): Use c_type_promotes_to when promoting argument
3015 types.
3016 (build_null_declspecs): Handle atomic_p in declspecs.
3017 (declspecs_add_qual): Handle RID_ATOMIC.
3018 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
3019 (c_token_starts_declspecs): Handle RID_ATOMIC.
3020 (c_parser_declspecs): Handle atomic type specifiers and
3021 qualifiers.
3022 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
3023 from types of expressions with atomic type.
3024 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
3025 (c_parser_attribute_any_word): Handle RID_ATOMIC.
3026 (c_parser_initializer, c_parser_initelt, c_parser_initval)
3027 (c_parser_statement_after_labels, c_parser_switch_statement)
3028 (c_parser_for_statement, c_parser_expr_no_commas)
3029 (c_parser_conditional_expression, c_parser_binary_expression)
3030 (c_parser_cast_expression, c_parser_unary_expression)
3031 (c_parser_postfix_expression)
3032 (c_parser_postfix_expression_after_primary, c_parser_expression):
3033 Use convert_lvalue_to_rvalue.
3034 (c_parser_expression_conv, c_parser_expr_list): Document
3035 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
3036 (c_parser_objc_synchronized_statement): Use
3037 convert_lvalue_to_rvalue.
3038 (c_parser_objc_selector): Handle RID_ATOMIC.
3039 (c_parser_objc_receiver, c_parser_array_notation): Use
3040 convert_lvalue_to_rvalue.
3041 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
3042 _Atomic (type-name).
3043 (struct c_declspecs): Add atomic_p field.
3044 (convert_lvalue_to_rvalue): Declare.
3045 * c-typeck.c (c_type_promotes_to): Promote atomic types to
3046 corresponding atomic types.
3047 (qualify_type): Don't add _Atomic qualifiers from second argument.
3048 (comp_target_types): Do not allow _Atomic mismatches.
3049 (type_lists_compatible_p): Do not remove atomic qualifiers when
3050 comparing types.
3051 (really_atomic_lvalue, convert_lvalue_to_rvalue)
3052 (build_atomic_assign): New functions.
3053 (build_unary_op): Use build_atomic_assign for atomic increment and
3054 decrement.
3055 (build_conditional_expr): Do not treat _Atomic void as a qualified
3056 version of void.
3057 (build_modify_expr): Use build_atomic_assign for atomic LHS.
3058 (find_anonymous_field_with_type, convert_to_anonymous_field)
3059 (convert_for_assignment): Do not remove atomic qualifiers when
3060 comparing types.
3061 (digest_init): Do not accept initialization of arrays of atomic
3062 elements by string constants.
3063 (build_asm_expr): Use convert_lvalue_to_rvalue.
3064 (build_binary_op): Do not treat _Atomic void as a qualified
3065 version of void.
3066
3067 2013-11-06 DJ Delorie <dj@redhat.com>
3068
3069 * c-decl.c (locate_old_decl): If a previous conflicting decl is
3070 both explicit and builtin, print the location of the explicit one.
3071
3072 2013-11-05 Tobias Burnus <burnus@net-b.de>
3073
3074 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
3075 c_parser_omp_distribute, c_parser_omp_teams,
3076 c_parser_omp_target, c_parser_omp_declare): Handle
3077 -fopenmp-simd.
3078
3079 2013-11-03 Marek Polacek <polacek@redhat.com>
3080
3081 * c-decl.c (grokdeclarator): Add VLA instrumentation.
3082
3083 2013-11-01 Jakub Jelinek <jakub@redhat.com>
3084
3085 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
3086 check_dup_generic at the end, unless remove is true.
3087 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
3088 remove = true;.
3089 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
3090
3091 2013-10-31 Jakub Jelinek <jakub@redhat.com>
3092
3093 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
3094 with decl that is not pointer nor array.
3095
3096 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3097
3098 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
3099 a spawning function is found.
3100 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
3101 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3102 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3103 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
3104 case.
3105 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
3106 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
3107 expr.
3108 (c_finish_return): Added a check to reject _Cilk_spawn in return
3109 expression.
3110 (build_cilk_spawn): New function.
3111 (build_cilk_sync): Likewise.
3112 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
3113
3114 2013-10-27 Tobias Burnus <burnus@net-b.de>
3115
3116 PR other/33426
3117 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
3118 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
3119 (c_parser_statement_after_labels): Update calls.
3120
3121 2013-10-24 Tobias Burnus <burnus@net-b.de>
3122
3123 PR other/33426
3124 * c-parser.c (c_parser_pragma, c_parser_for_statement):
3125 Handle PRAGMA_IVDEP.
3126 (c_parser_statement_after_labels): Update call.
3127
3128 2013-10-24 Marek Polacek <polacek@redhat.com>
3129
3130 * c-parser.c (c_parser_struct_declaration): Add a comment.
3131 (c_parser_declarator): Don't allow _Alignas here.
3132
3133 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
3134
3135 * c-parser.c: Include omp-low.h.
3136 * c-typeck.c: Likewise.
3137
3138 2013-10-17 Marek Polacek <polacek@redhat.com>
3139
3140 PR c/58267
3141 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
3142 Document syntax of the array-declarator.
3143 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
3144 are not permitted.
3145 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
3146 (c_parser_struct_declaration): Likewise.
3147 (c_parser_declarator): Likewise.
3148 (c_parser_direct_declarator_inner): Likewise.
3149 (c_parser_parameter_declaration): Likewise.
3150 (c_parser_type_name): Likewise.
3151
3152 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3153
3154 * c-lang.h (current_omp_declare_target_attribute): New extern
3155 decl.
3156 * c-parser.c: Include c-lang.h.
3157 (struct c_parser): Change tokens to c_token *.
3158 Add tokens_buf field. Change tokens_avail type to unsigned int.
3159 (c_parser_consume_token): If parser->tokens isn't
3160 &parser->tokens_buf[0], increment parser->tokens.
3161 (c_parser_consume_pragma): Likewise.
3162 (enum pragma_context): Add pragma_struct and pragma_param.
3163 (c_parser_external_declaration): Adjust
3164 c_parser_declaration_or_fndef caller.
3165 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
3166 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
3167 Adjust recursive call.
3168 (c_parser_struct_or_union_specifier): Use pragma_struct instead
3169 of pragma_external.
3170 (c_parser_parameter_declaration): Use pragma_param instead of
3171 pragma_external.
3172 (c_parser_compound_statement_nostart, c_parser_label,
3173 c_parser_for_statement): Adjust
3174 c_parser_declaration_or_fndef callers.
3175 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
3176 it through to c_parser_conditional_expression.
3177 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
3178 pass it through to c_parser_binary_expression. Adjust recursive
3179 call.
3180 (c_parser_binary_expression): Remove prec argument, add
3181 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
3182 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
3183 binop matches it, use build2 instead of parser_build_binary_op.
3184 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
3185 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
3186 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
3187 Handle pragma_struct and pragma_param the same as pragma_external.
3188 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
3189 (c_parser_omp_variable_list): Parse array sections for
3190 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
3191 (c_parser_omp_clause_collapse): Fully fold collapse expression.
3192 (c_parser_omp_clause_reduction): Handle user defined reductions.
3193 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
3194 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
3195 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
3196 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
3197 c_parser_omp_clause_depend, c_parser_omp_clause_map,
3198 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
3199 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
3200 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
3201 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
3202 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
3203 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
3204 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
3205 (c_parser_omp_for_loop): Add CODE argument, pass it through
3206 to c_finish_omp_for. Change last argument to cclauses,
3207 and adjust uses to grab parallel clauses from the array of all
3208 the split clauses. Adjust c_parser_binary_expression,
3209 c_parser_declaration_or_fndef and c_finish_omp_for callers.
3210 (omp_split_clauses): New function.
3211 (c_parser_omp_simd): New function.
3212 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3213 Allow the function to be called also when parsing combined constructs,
3214 and call c_parser_omp_simd when parsing for simd.
3215 (c_parser_omp_sections_scope): If section-sequence doesn't start with
3216 #pragma omp section, require exactly one structured-block instead of
3217 sequence of statements.
3218 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
3219 Allow the function to be called also when parsing combined constructs.
3220 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
3221 Allow the function to be called also when parsing combined
3222 constructs.
3223 (c_parser_omp_taskgroup, c_parser_omp_cancel,
3224 c_parser_omp_cancellation_point, c_parser_omp_distribute,
3225 c_parser_omp_teams, c_parser_omp_target_data,
3226 c_parser_omp_target_update, c_parser_omp_target,
3227 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
3228 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
3229 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
3230 (c_parser_omp_construct): Add p_name and mask vars. Handle
3231 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
3232 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
3233 and c_parser_omp_sections callers.
3234 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
3235 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
3236 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
3237 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
3238 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
3239 OMP_CLAUSE_DEPEND.
3240 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
3241 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
3242 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
3243 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
3244 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
3245 * c-typeck.c: Include tree-inline.h.
3246 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
3247 handle_omp_array_sections_1, handle_omp_array_sections,
3248 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
3249 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
3250 user defined reductions.
3251 (c_tree_equal): New function.
3252 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
3253 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
3254 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
3255 c_check_omp_declare_reduction_r): New prototypes.
3256 * c-decl.c (current_omp_declare_target_attribute): New variable.
3257 (c_decl_attributes): New function.
3258 (start_decl, start_function): Use it instead of decl_attributes.
3259 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
3260 c_omp_reduction_decl, c_omp_reduction_lookup,
3261 c_check_omp_declare_reduction_r): New functions.
3262
3263 2013-09-25 Tom Tromey <tromey@redhat.com>
3264
3265 * Make-lang.in (c/gccspec.o): Remove.
3266 (CFLAGS-c/gccspec.o): New variable.
3267 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
3268 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
3269 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
3270
3271 2013-09-25 Tom Tromey <tromey@redhat.com>
3272
3273 * Make-lang.in (c/gccspec.o): Don't use subshell.
3274
3275 2013-09-18 Marek Polacek <polacek@redhat.com>
3276
3277 PR sanitize/58443
3278 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
3279 Remove unnecessary check.
3280
3281 2013-09-18 Marek Polacek <polacek@redhat.com>
3282
3283 PR sanitizer/58411
3284 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
3285 no_sanitize_undefined attribute.
3286
3287 2013-09-13 Kai Tietz <ktietz@redhat.com>
3288
3289 PR target/57848
3290 * c-decl.c (c_builtin_function_ext_scope): Remove
3291 wrong assumption that it is never called on prexisting
3292 symbol.
3293
3294 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3295
3296 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
3297
3298 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3299
3300 * c-objc-common.c (c_tree_printer): Tidy.
3301
3302 2013-08-30 Marek Polacek <polacek@redhat.com>
3303
3304 * c-typeck.c (build_binary_op): Add division by zero and shift
3305 instrumentation.
3306
3307 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
3308 Joseph Myers <joseph@codesourcery.com>
3309
3310 PR c/35649
3311 * c-typeck.c (c_common_type): Prefer double_type_node over
3312 other REAL_TYPE types with the same precision.
3313 (convert_arguments): Likewise.
3314
3315 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
3316
3317 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
3318 (c_initialize_diagnostics): Call a destructor for the early printer.
3319
3320 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3321
3322 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
3323 printer initialization.
3324
3325 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
3326
3327 PR c/57490
3328 * c-array-notation.c (fix_conditional_array_notations_1): Added a
3329 check for truth values.
3330 (expand_array_notation_exprs): Added truth values case. Removed an
3331 unwanted else. Added for-loop to walk through subtrees in default
3332 case.
3333
3334 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3335
3336 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
3337
3338 2013-07-23 Joseph Myers <joseph@codesourcery.com>
3339
3340 * c-parser.c (struct c_generic_association): Fix typo.
3341
3342 2013-07-23 Tom Tromey <tromey@redhat.com>
3343 Joseph Myers <joseph@codesourcery.com>
3344
3345 * c-parser.c (struct c_generic_association): New.
3346 (c_generic_association_d): New typedef.
3347 (c_parser_generic_selection): New function.
3348 (c_parser_postfix_expression): Handle RID_GENERIC.
3349
3350 2013-07-13 Jason Merrill <jason@redhat.com>
3351
3352 PR c++/57793
3353 * c-decl.c (finish_struct): Check for too-large class.
3354
3355 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3356
3357 PR c/57821
3358 * c-typeck.c (set_init_index): When folding, check for index overflow.
3359
3360 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3361
3362 * c-parser.c (c_parser_array_notation): Removed rejection of array
3363 notations in an array of function pointers.
3364
3365 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3366
3367 * c-array-notation.c (make_triplet_val_inv): New function.
3368 (create_cmp_incr): Likewise.
3369 (create_array_refs): Likewise.
3370 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
3371 Also modularized common parts between functions and called the function.
3372 (build_array_notation_expr): Likewise.
3373 (fix_conditional_array_notations_1): Likewise.
3374 (fix_array_notation_expr): Likewise.
3375 (fix_array_notation_call_expr): Likewise.
3376
3377 2013-06-18 Marek Polacek <polacek@redhat.com>
3378
3379 PR c/57630
3380 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
3381
3382 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
3383
3384 * c-array-notation.c (build_array_notation_expr): Reject array notation
3385 mismatch between LHS and RHS even inside a call_expr. Also, removed
3386 a couple while statements that were dead code.
3387
3388 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
3389
3390 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
3391 excessive precision expressions in function parameters. Also removed
3392 couple unwanted while statements.
3393
3394 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3395
3396 * c-array-notation.c (expand_array_notation_exprs): Added
3397 ARRAY_NOTATION_REF case.
3398
3399 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3400
3401 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
3402 function to c-family/array-notation-common.c.
3403 (is_cilkplus_reduce_builtin): Likewise.
3404 (find_rank): Likewise.
3405 (extract_array_notation_exprs): Likewise.
3406 (replace_array_notations): Likewise.
3407 (find_inv_trees): Likewise.
3408 (replace_inv_trees): Likewise.
3409 (contains_array_notation_expr): Likewise.
3410 (find_correct_array_notation_type): Likewise.
3411 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
3412 (struct inv_list): Moved this to c-family/array-notation-common.c.
3413 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
3414
3415 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
3416
3417 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
3418 reduction functions outside the for-loop. Added a check if the fundecl
3419 is non-NULL. Finally, removed an unwanted if-statement, and made the
3420 body unconditional.
3421
3422 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
3423
3424 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
3425 condition of the if-statement matches the rank of else-block and then-
3426 block when array notations are used.
3427 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
3428 expression after the entire function body is parsed.
3429 (c_parser_expr_no_commas): Delayed creating array notation expressions
3430 to the end of function parsing.
3431 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
3432 whole if-statement instead of just the condition.
3433 (expand_array_notation_exprs): Added MODIFY_EXPR case.
3434
3435 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
3436
3437 PR c/57474
3438 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
3439 array to NULL_TREE if they are unused. Also added a check for the
3440 field to be NULL before its fields are used in future.
3441
3442 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3443
3444 PR bootstrap/57450
3445 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
3446 (build_array_notation_expr): Likewise.
3447
3448 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3449
3450 * c-typeck.c (build_array_ref): Added a check to see if array's
3451 index is greater than one. If true, then emit an error.
3452 (build_function_call_vec): Exclude error reporting and checking
3453 for builtin array-notation functions.
3454 (convert_arguments): Likewise.
3455 (c_finish_return): Added a check for array notations as a return
3456 expression. If true, then emit an error.
3457 (c_finish_loop): Added a check for array notations in a loop
3458 condition. If true then emit an error.
3459 (lvalue_p): Added a ARRAY_NOTATION_REF case.
3460 (build_binary_op): Added a check for array notation expr inside
3461 op1 and op0. If present, we call another function to find correct
3462 type.
3463 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
3464 * c-parser.c (c_parser_compound_statement): Check if array
3465 notation code is used in tree, if so, then transform them into
3466 appropriate C code.
3467 (c_parser_expr_no_commas): Check if array notation is used in LHS
3468 or RHS, if so, then build array notation expression instead of
3469 regular modify.
3470 (c_parser_postfix_expression_after_primary): Added a check for
3471 colon(s) after square braces, if so then handle it like an array
3472 notation. Also, break up array notations in unary op if found.
3473 (c_parser_direct_declarator_inner): Added a check for array
3474 notation.
3475 (c_parser_compound_statement): Added a check for array notation in
3476 a stmt. If one is present, then expand array notation expr.
3477 (c_parser_if_statement): Likewise.
3478 (c_parser_switch_statement): Added a check for array notations in
3479 a switch statement's condition. If true, then output an error.
3480 (c_parser_while_statement): Similarly, but for a while.
3481 (c_parser_do_statement): Similarly, but for a do-while.
3482 (c_parser_for_statement): Similarly, but for a for-loop.
3483 (c_parser_unary_expression): Check if array notation is used in a
3484 pre-increment or pre-decrement expression. If true, then expand
3485 them.
3486 (c_parser_array_notation): New function.
3487 * c-array-notation.c: New file.
3488 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
3489
3490 2013-05-23 Mike Stump <mikestump@comcast.net>
3491
3492 * c-typeck.c (convert_for_assignment): Handle references to memory
3493 spaces better.
3494
3495 2013-05-16 Jason Merrill <jason@redhat.com>
3496
3497 * Make-lang.in (cc1$(exeext)): Use link mutex.
3498
3499 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3500
3501 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
3502 to simply use OPT_Wpointer_arith.
3503 (build_unary_op): Likewise.
3504
3505 2013-04-03 Jakub Jelinek <jakub@redhat.com>
3506
3507 PR c/19449
3508 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
3509 argument. If set, or it temporarily for parsing of the first
3510 argument into force_folding_builtin_constant_p.
3511 (c_parser_postfix_expression): Adjust callers.
3512
3513 2013-03-21 Richard Biener <rguenther@suse.de>
3514
3515 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3516 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3517
3518 2013-02-12 Marek Polacek <polacek@redhat.com>
3519
3520 PR c/44938
3521 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
3522 origtypes to NULL.
3523
3524 2013-01-24 Jakub Jelinek <jakub@redhat.com>
3525
3526 PR c/56078
3527 * c-typeck.c (set_nonincremental_init_from_string): If
3528 constructor_max_index is NULL, treat it as if tree_int_cst_lt
3529 returned false.
3530 (process_init_element): Likewise.
3531
3532 2012-12-20 Jakub Jelinek <jakub@redhat.com>
3533
3534 PR c++/55619
3535 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
3536 argument, don't call default_function_array_conversion
3537 nor c_fully_fold here.
3538 (c_parser_asm_statement): Adjust callers.
3539 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
3540 and outputs here, and call default_function_array_conversion
3541 on inputs that don't need to be addressable.
3542
3543 2012-12-18 Jakub Jelinek <jakub@redhat.com>
3544
3545 PR c/39464
3546 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
3547 warning require that both c_common_unsigned_type as well as
3548 c_common_signed_type is the same for both mvl and mvr types.
3549
3550 2012-11-16 Diego Novillo <dnovillo@google.com>
3551
3552 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3553
3554 * c-common.c: Use new vec API in vec.h.
3555 * c-common.h: Likewise.
3556 * c-gimplify.c: Likewise.
3557 * c-pragma.c: Likewise.
3558 * c-pretty-print.c: Likewise.
3559 * c-pretty-print.h: Likewise.
3560 * c-semantics.c: Likewise.
3561 * c-decl.c: Likewise.
3562 * c-parser.c: Likewise.
3563 * c-tree.h: Likewise.
3564 * c-typeck.c: Likewise.
3565
3566 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3567
3568 PR c++/54930
3569 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
3570
3571 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3572
3573 PR c/53066
3574 * c-decl.c (warn_if_shadowing): Do not warn if a variable
3575 shadows a function, unless the variable is a function or a
3576 pointer-to-function.
3577
3578 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3579
3580 PR c/54381
3581 * c-parser.c (struct c_tree_loc_pair): Removed.
3582 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
3583 add location_t * and tree * arguments, fill in array of 3
3584 sizeof_arg trees and corresponding locs.
3585 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
3586 c_parser_expr_list callers.
3587 (c_parser_postfix_expression_after_primary): Likewise. Pass
3588 array of 3 sizeof_arg trees and locs (corresponding to first
3589 3 arguments) to sizeof_pointer_memaccess_warning.
3590
3591 2012-10-09 Lawrence Crowl <crowl@google.com>
3592
3593 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
3594 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
3595 hash table.
3596
3597 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3598
3599 PR c++/54194
3600 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
3601 call.
3602
3603 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3604
3605 PR c++/54427
3606 * c-typeck.c: Include c-common.h.
3607 (enum stv_conv): Moved to c-common.h.
3608 (scalar_to_vector): Moved to c-common.c.
3609 (build_binary_op): Adapt to scalar_to_vector's new prototype.
3610 * Make-lang.in: c-typeck.c depends on c-common.h.
3611
3612 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3613
3614 * c-decl.c (c_write_global_declarations): Fix handling of
3615 -fdump-ada-spec*.
3616
3617 2012-09-30 Sharad Singhai <singhai@google.com>
3618
3619 * c-decl.c (c_write_global_declarations): Use a different method
3620 to determine if the dump has ben initialized.
3621
3622 2012-09-14 Joseph Myers <joseph@codesourcery.com>
3623
3624 PR c/54552
3625 * c-typeck.c (c_cast_expr): When casting to a type requiring
3626 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
3627 c_fully_fold first.
3628
3629 2012-09-14 Joseph Myers <joseph@codesourcery.com>
3630
3631 PR c/54103
3632 * c-typeck.c (build_unary_op): Pass original argument of
3633 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
3634 any C_MAYBE_CONST_EXPR, if it has integer operands.
3635 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
3636 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
3637 to c_objc_common_truthvalue_conversion, then remove any
3638 C_MAYBE_CONST_EXPR, if they have integer operands. Use
3639 c_objc_common_truthvalue_conversion not
3640 c_common_truthvalue_conversion.
3641 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
3642 call note_integer_operands for arguments with integer operands
3643 that are not integer constants.
3644
3645 2012-09-13 Jakub Jelinek <jakub@redhat.com>
3646
3647 PR c/54559
3648 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
3649 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
3650
3651 2012-08-31 Jakub Jelinek <jakub@redhat.com>
3652
3653 PR c/54428
3654 * c-convert.c (convert): Don't call fold_convert_loc if
3655 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
3656 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
3657 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
3658
3659 2012-08-24 Jakub Jelinek <jakub@redhat.com>
3660
3661 PR c/54355
3662 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
3663 for nested and empty_ok arguments in the call to
3664 c_parser_declaration_or_fndef.
3665
3666 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3667
3668 * c-tree.h (c_last_sizeof_arg): Declare.
3669 * c-parser.c (struct c_tree_loc_pair): New type.
3670 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
3671 non-NULL.
3672 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
3673 (c_parser_postfix_expression_after_primary): Likewise. Call
3674 sizeof_pointer_memaccess_warning if needed.
3675 (sizeof_ptr_memacc_comptypes): New function.
3676 * c-typeck.c (c_last_sizeof_arg): New global variable.
3677 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
3678
3679 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
3680
3681 * c-lang.h (lang_decl): Add variable_size GTY option.
3682
3683 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3684
3685 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
3686 * Make-lang.in: Fix dependencies.
3687
3688 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3689
3690 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
3691 and add language Makefile hooks.
3692 * config-lang.in: New file.
3693 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
3694 add the required "normal" config-lang.in rules.
3695 * c-lang.h: Moved from gcc/ to here.
3696 * c-tree.h: Likewise.
3697 * c-objc-common.c: Likewise.
3698 * c-objc-common.h: Likewise.
3699 * c-typeck.c: Likewise.
3700 * c-convert.c: Likewise.
3701 * c-lang.c: Likewise.
3702 * c-aux-info.c: Likewise.
3703 * c-errors.c: Likewise.
3704 * gccspec.c: Likewise.
3705 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
3706 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
3707 \f
3708 Copyright (C) 2012-2016 Free Software Foundation, Inc.
3709
3710 Copying and distribution of this file, with or without modification,
3711 are permitted in any medium without royalty provided the copyright
3712 notice and this notice are preserved.