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