]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
* c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2018-06-01 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
4 declaration for a typedef independently of whether the declaration of
5 the subtype is generated.
6
7 2018-05-31 Martin Sebor <msebor@redhat.com>
8
9 PR c/82063
10 * c.opt (-Wno-alloc-size-larger-than): New option.
11
12 2018-04-22 David Pagan <dave.pagan@oracle.com>
13
14 PR c/55976
15 * c-opts.c (c_common_post_options): Set default for warn_return_type
16 for C++/C++ with ObjC extensions only. For C, makes it possible to
17 differentiate between default (no option), -Wreturn-type, and
18 -Wno-return-type.
19
20 2018-05-29 Jason Merrill <jason@redhat.com>
21
22 * c.opt (Winit-list-lifetime): New flag.
23
24 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
25
26 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
27 splay_tree_delete_pointers.
28
29 2018-05-26 Jakub Jelinek <jakub@redhat.com>
30
31 PR bootstrap/85921
32 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
33 noinline variable to workaround broken kernel headers.
34
35 2018-05-18 Jason Merrill <jason@redhat.com>
36
37 * c.opt (Wdeprecated-copy): New flag.
38
39 2018-05-17 Martin Liska <mliska@suse.cz>
40
41 * c-warn.c (overflow_warning): Do not use
42 space in between 'G_' and '('.
43
44 2018-05-09 Jason Merrill <jason@redhat.com>
45
46 * c-common.c (valid_array_size_p): Add complain parameter.
47 * c-common.h: ...which defaults to true.
48
49 2018-05-11 Jakub Jelinek <jakub@redhat.com>
50
51 PR c/85696
52 * c-omp.c (c_omp_predetermined_sharing): Return
53 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
54
55 2018-05-11 Martin Liska <mliska@suse.cz>
56
57 PR sanitizer/85556
58 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
59 TREE_LIST values.
60
61 2018-05-10 Jakub Jelinek <jakub@redhat.com>
62
63 PR c++/85662
64 * c-common.h (fold_offsetof_1): Removed.
65 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
66 CTX argument defaulted to ERROR_MARK.
67 * c-common.c (fold_offsetof_1): Renamed to ...
68 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
69 argument, convert the pointer constant to TYPE and use size_binop
70 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
71 a pointer type. Adjust recursive calls.
72
73 2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
74
75 PR c++/85400
76 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
77
78 2018-05-07 Nathan Sidwell <nathan@acm.org>
79
80 * c.opt (ffor-scope): Remove functionality, issue warning.
81
82 2018-05-03 Nathan Sidwell <nathan@acm.org>
83
84 * c.opt (ffriend-injection): Remove functionality, issue warning.
85
86 2018-05-01 David Malcolm <dmalcolm@redhat.com>
87
88 PR c/84258
89 * c-format.c (struct format_check_results): Add field
90 "number_non_char".
91 (check_format_info): Initialize it, and warn if encountered.
92 (check_format_arg): Distinguish between wide char and
93 everything else when detecting arrays of non-char.
94
95 2018-04-30 David Malcolm <dmalcolm@redhat.com>
96
97 * c-format.c (get_corrected_substring): Update for
98 location_get_source_line returning a char_span. Use a char_span
99 when handling the prefix of the correction.
100 * c-indentation.c (get_visual_column): Update for
101 location_get_source_line returning a char_span.
102 (get_first_nws_vis_column): Likewise.
103
104 2018-03-29 David Malcolm <dmalcolm@redhat.com>
105
106 PR c++/84269
107 * known-headers.cc (get_stdlib_header_for_name): Add various names
108 from <assert.h>, <string.h>, and <memory.h>; add more names from
109 <stdio.h>.
110
111 2018-03-27 Jakub Jelinek <jakub@redhat.com>
112
113 PR c++/85061
114 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
115 get_base_address of the second operand is a VAR_P, rather than the
116 operand itself, and use gcc_checking_assert instead of gcc_assert.
117
118 2018-03-23 Marek Polacek <polacek@redhat.com>
119
120 PR c++/85045
121 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
122 <case RDIV_EXPR>: Tweak condition.
123
124 2018-03-20 Eric Botcazou <ebotcazou@adacore.com>
125
126 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
127
128 2018-03-16 Jakub Jelinek <jakub@redhat.com>
129
130 PR c/84909
131 * c-warn.c (conversion_warning): Replace "to to" with "to" in
132 diagnostics.
133
134 PR c/84910
135 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
136 diagnostics.
137
138 2018-03-16 Richard Biener <rguenther@suse.de>
139
140 PR c/84873
141 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
142 unshare the possibly folded expression.
143
144 2018-03-15 Richard Biener <rguenther@suse.de>
145
146 PR c/84873
147 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
148
149 2018-03-13 Martin Sebor <msebor@redhat.com>
150
151 PR tree-optimization/84725
152 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
153 with all three narrow character types, including their qualified forms.
154
155 2018-03-12 Martin Sebor <msebor@redhat.com>
156
157 PR tree-optimization/83456
158 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
159 Restore checking of bounded built-in functions.
160 (check_function_arguments): Also return the result
161 of warn_for_restrict.
162 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
163 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
164
165 2018-03-02 Marek Polacek <polacek@redhat.com>
166
167 PR c++/84171
168 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
169 is erroneous.
170
171 2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
172
173 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
174 function".
175
176 2018-03-01 Marek Polacek <polacek@redhat.com>
177
178 PR c++/84639
179 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
180 alignment in computation.
181
182 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
183
184 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
185 <REAL_TYPE>: Deal specifically with _Float128/__float128.
186
187 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
188
189 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
190 (is_char_array): Take a type instead of a declaration.
191 (dump_ada_array_type): Likewise.
192 (is_simple_enum): Minor tweak.
193 (dump_ada_enum_type): New function extracted from...
194 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
195 <INTEGER_TYPE>: Remove unreachable code.
196 <RECORD_TYPE>: Likewise. Minor tweaks.
197 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
198 <ENUMERAL_TYPE>: New case.
199 <RECORD_TYPE>: Factor out common code.
200 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
201 Minor tweaks. Deal with enumeral types.
202 (dump_ada_structure): Minor tweaks.
203
204 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
205
206 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
207 address for incomplete structures.
208 (dump_forward_type): Do not bail out for incomplete structures.
209 (dump_ada_declaration): Do not special-case incomplete structures
210 for subtypes. Dump them as null records for types.
211
212 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
213
214 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
215 (is_char_array): Fix formatting.
216 (dump_template_types): Likewise.
217 (dump_generic_ada_node): Rename into...
218 (dump_ada_node): ...this.
219 <POINTER_TYPE>: Remove superfluous space. Use generic address for
220 incomplete structures and not for empty structures. Do not use it
221 when forward declarations are needed.
222 (dump_forward_type): New function.
223 (dump_nested_types): Remove FORWARD parameter. Do not consider
224 TREE_VISITED and do not generate a forward declaration. Only dump
225 original nested types for nested declaration.
226 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
227 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
228 <RECORD_TYPE>: Do not consider TREE_VISITED.
229 (dump_ada_declaration): Use booleans and fix formatting throughout.
230 <TYPE_DECL>: Skip incomplete structures and not empty structures.
231 Call dump_forward_type instead of dump_nested_types for a typedef.
232 Remove superfluous check and adjust call to dump_nested_types.
233 <POINTER_TYPE>: Call dump_forward_type and fall through.
234 (dump_ada_struct_decl): Rename into...
235 (dump_ada_structure): ...this. Do not special-case empty structures.
236
237 2018-02-27 Martin Sebor <msebor@redhat.com>
238
239 PR c++/83871
240 * c.opt (-Wmissing-attributes): New option.
241
242 2018-02-21 Martin Liska <mliska@suse.cz>
243
244 * c.opt (Wcatch-value=): Add IntegerRange.
245
246 2018-02-15 Jason Merrill <jason@redhat.com>
247
248 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
249
250 2018-02-09 Nathan Sidwell <nathan@acm.org>
251
252 PR c/84293
253 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
254 arg.
255 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
256 arg. Adjust.
257
258 2018-02-09 Martin Sebor <msebor@redhat.com>
259
260 PR lto/84212
261 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
262 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
263 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
264 (-Wstrict-overflow, -Wsuggest-attribute): Same.
265 (-Wuninitialized): Same.
266
267 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
268
269 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
270 keyword for components.
271
272 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
273
274 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
275
276 2018-02-02 Julia Koval <julia.koval@intel.com>
277
278 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
279
280 2018-01-29 Marek Polacek <polacek@redhat.com>
281
282 PR c/83966
283 * c-format.c (check_function_format): Check current_function_decl.
284
285 2018-01-27 Jakub Jelinek <jakub@redhat.com>
286
287 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
288 argument.
289 (LAZY_HEX_FP_VALUES_CNT): Define.
290 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
291 values rather than just 12.
292 (builtin_define_with_hex_fp_value): Likewise.
293
294 2018-01-18 Boris Kolpackov <boris@codesynthesis.com>
295
296 PR other/70268
297 * c.opt (-fmacro-prefix-map): New option.
298 * c-opts.c (c_common_handle_option): Handle it.
299 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
300 * c-ppoutput.c (init_pp_output): Likewise.
301
302 2018-01-17 David Malcolm <dmalcolm@redhat.com>
303
304 PR c++/83814
305 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
306
307 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
308
309 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
310 Skip 'f' and 'F' characters if it is true.
311 (store_ada_macro): Minor tweak.
312 (dump_ada_macros) <CPP_COMMENT>: Likewise.
313 <CPP_WSTRING>: Likewise.
314 <CPP_STRING>: Output '&' in the buffer if not the first string.
315 <CPP_NUMBER>: Adjust calls to dump_number.
316
317 2018-01-10 David Malcolm <dmalcolm@redhat.com>
318
319 PR c++/43486
320 * c-common.c: Include "selftest.h".
321 (get_atomic_generic_size): Perform the test for integral type
322 before the range test for any integer constant, fixing indentation
323 of braces. Call fold_for_warn before testing for an INTEGER_CST.
324 (reject_gcc_builtin): Strip any location wrapper from EXPR.
325 (selftest::test_fold_for_warn): New function.
326 (selftest::c_common_c_tests): New function.
327 (selftest::c_family_tests): Call it, and
328 selftest::c_pretty_print_c_tests.
329 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
330 * c-format.c (check_format_arg): Convert VAR_P check to a
331 fold_for_warn.
332 * c-pretty-print.c: Include "selftest.h".
333 (pp_c_cast_expression): Don't print casts for location wrappers.
334 (selftest::assert_c_pretty_printer_output): New function.
335 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
336 (selftest::test_location_wrappers): New function.
337 (selftest::c_pretty_print_c_tests): New function.
338 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
339
340 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
341 Alan Hayward <alan.hayward@arm.com>
342 David Sherwood <david.sherwood@arm.com>
343
344 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
345
346 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
347 Alan Hayward <alan.hayward@arm.com>
348 David Sherwood <david.sherwood@arm.com>
349
350 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
351 as polynomial.
352
353 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
354 Alan Hayward <alan.hayward@arm.com>
355 David Sherwood <david.sherwood@arm.com>
356
357 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
358 (convert_vector_to_array_for_subscript): Handle polynomial
359 TYPE_VECTOR_SUBPARTS.
360 (c_common_type_for_mode): Check valid_vector_subparts_p.
361 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
362 VECTOR_CST_NELTS.
363
364 2018-01-03 Jakub Jelinek <jakub@redhat.com>
365
366 Update copyright years.
367
368 2017-12-22 Mike Stump <mikestump@comcast.net>
369 Eric Botcazou <ebotcazou@adacore.com>
370
371 * c-pragma.c (init_pragma): Register pragma GCC unroll.
372 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
373
374 2017-12-22 Alexandre Oliva <aoliva@redhat.com>
375
376 PR debug/83527
377 PR debug/83419
378 * c-semantics.c (only_debug_stmts_after_p): New.
379 (pop_stmt_list): Clear side effects in debug-only stmt list.
380 Check for single nondebug stmt followed by debug stmts only.
381
382 2017-12-21 Alexandre Oliva <aoliva@redhat.com>
383
384 PR debug/83419
385 * c-semantics.c (pop_stmt_list): Propagate side effects from
386 single nondebug stmt to container list.
387
388 2017-12-19 Jakub Jelinek <jakub@redhat.com>
389
390 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
391 conditions with typical order conditions.
392
393 2017-12-18 Marek Polacek <polacek@redhat.com>
394
395 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
396 not in effect.
397
398 2017-12-17 Martin Sebor <msebor@redhat.com>
399
400 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
401 an error for attribute warn_if_not_aligned.
402
403 2017-12-16 Martin Sebor <msebor@redhat.com>
404
405 PR tree-optimization/78918
406 * c-common.c (check_function_restrict): Avoid checking built-ins.
407 * c.opt (-Wrestrict): Include in -Wall.
408
409 2017-12-15 Jakub Jelinek <jakub@redhat.com>
410
411 * c-attribs.c (c_common_attribute_table,
412 c_common_format_attribute_table): Swap affects_type_identity
413 and handler fields, adjust comments.
414
415 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
416
417 * c.opt (Wcast-function-type): New warning option.
418 * c-lex.c (get_fileinfo): Avoid warning.
419 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
420
421 2017-12-14 Qing Zhao <qing.zhao@oracle.com>
422
423 PR middle_end/79538
424 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
425 Adjust the size of buf1 and buf2, add a new buf to avoid
426 format-overflow warning.
427
428 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
429
430 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
431 subsequent statement list.
432
433 2017-12-07 Martin Sebor <msebor@redhat.com>
434
435 PR c/81544
436 PR c/81566
437 * c-attribs.c (attr_aligned_exclusions): New array.
438 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
439 (attr_common_exclusions, attr_const_pure_exclusions): Same.
440 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
441 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
442 (attr_warn_unused_result_exclusions): Same.
443 (handle_hot_attribute, handle_cold_attribute): Simplify.
444 (handle_const_attribute): Warn on function returning void.
445 (handle_pure_attribute): Same.
446 (handle_aligned_attribute): Diagnose conflicting attribute
447 specifications.
448 * c-warn.c (diagnose_mismatched_attributes): Simplify.
449
450 2017-12-06 David Malcolm <dmalcolm@redhat.com>
451
452 PR c/83236
453 * c-common.c (selftest::c_family_tests): Call
454 selftest::c_spellcheck_cc_tests.
455 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
456 * c-spellcheck.cc: Include "selftest.h".
457 (name_reserved_for_implementation_p): New function.
458 (should_suggest_as_macro_p): New function.
459 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
460 should_suggest_as_macro_p and call it.
461 (selftest::test_name_reserved_for_implementation_p): New function.
462 (selftest::c_spellcheck_cc_tests): New function.
463 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
464
465 2017-12-06 David Malcolm <dmalcolm@redhat.com>
466
467 * c-spellcheck.cc: New file, taken from macro-handling code in
468 spellcheck-tree.c.
469 * c-spellcheck.h: New file, taken from macro-handling code in
470 spellcheck-tree.h.
471
472 2017-12-01 Jakub Jelinek <jakub@redhat.com>
473
474 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
475 attribute.
476 (handle_simd_attribute): Don't check for "cilk simd function"
477 attribute. Reindent, formatting changes.
478
479 2017-11-30 Julia Koval <julia.koval@intel.com>
480
481 * c-common.h (inv_list): Remove.
482
483 2017-11-28 Jakub Jelinek <jakub@redhat.com>
484
485 PR sanitizer/81275
486 * c-common.c (c_switch_covers_all_cases_p_1,
487 c_switch_covers_all_cases_p): New functions.
488 * c-common.h (c_switch_covers_all_cases_p): Declare.
489
490 2017-11-28 Julia Koval <julia.koval@intel.com>
491 Sebastian Peryt <sebastian.peryt@intel.com>
492
493 * array-notation-common.c: Delete.
494 * c-cilkplus.c: Ditto.
495 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
496 * c-common.def (ARRAY_NOTATION_REF): Remove.
497 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
498 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
499 c_validate_cilk_plus_loop, cilkplus_an_parts,
500 cilk_ignorable_spawn_rhs_op,
501 cilk_recognize_spawn): Remove.
502 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
503 * c-omp.c: Remove CILK_SIMD check.
504 * c-pragma.c: Ditto.
505 * c-pragma.h: Remove CILK related pragmas.
506 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
507 ARRAY_NOTATION_REF condition.
508 (c_pretty_printer::expression): Ditto.
509 * c.opt (fcilkplus): Remove.
510 * cilk.c: Delete.
511
512 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
513
514 * c-pretty-print.c (pp_c_additive_expression,
515 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
516
517 2017-11-21 Jakub Jelinek <jakub@redhat.com>
518
519 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
520
521 PR c++/83059
522 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
523 instead of tree_to_uhwi, formatting fix.
524
525 2017-11-20 David Malcolm <dmalcolm@redhat.com>
526
527 PR c/81404
528 * known-headers.cc: New file, based on material from c/c-decl.c.
529 (suggest_missing_header): Copied as-is.
530 (get_stdlib_header_for_name): New, based on get_c_name_hint but
531 heavily edited to add C++ support. Add some knowledge about
532 <limits.h>, <stdint.h>, and <wchar.h>.
533 * known-headers.h: Likewise.
534
535 2017-11-20 David Malcolm <dmalcolm@redhat.com>
536
537 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
538 (lookup_name_fuzzy): Likewise. Convert return type from
539 const char * to name_hint. Add location_t param.
540 * name-hint.h: New header.
541
542 2017-11-19 Jakub Jelinek <jakub@redhat.com>
543
544 PR c/66618
545 PR c/69960
546 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
547
548 2017-11-16 Joseph Myers <joseph@codesourcery.com>
549
550 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
551 expected publication date of C17.
552 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
553
554 2017-11-15 Joseph Myers <joseph@codesourcery.com>
555
556 PR c/81156
557 * c-common.c (c_common_reswords): Add __builtin_tgmath.
558 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
559
560 2017-11-10 Martin Sebor <msebor@redhat.com>
561
562 PR c/81117
563 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
564 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
565 * c.opt (-Wstringop-truncation): New option.
566
567 2017-11-06 Martin Liska <mliska@suse.cz>
568
569 PR middle-end/82404
570 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
571 FE.
572 * c.opt: Set default value of warn_return_type.
573
574 2017-10-31 David Malcolm <dmalcolm@redhat.com>
575
576 * c-common.c (binary_op_error): Update for renaming of
577 error_at_rich_loc.
578 (c_parse_error): Likewise.
579 * c-warn.c (warn_logical_not_parentheses): Likewise for
580 renaming of inform_at_rich_loc.
581 (warn_for_restrict): Likewise for renaming of
582 warning_at_rich_loc_n.
583
584 2017-10-30 Joseph Myers <joseph@codesourcery.com>
585
586 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
587 * c-opts.c (set_std_c17): New function.
588 (c_common_init_options): Use gnu17 as default C version.
589 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
590
591 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
592
593 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
594 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
595 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
596 __FP_FAST_FMA<N>X.
597
598 2017-10-23 Marek Polacek <polacek@redhat.com>
599
600 PR c/82681
601 * c-warn.c (warnings_for_convert_and_check): Fix typos.
602
603 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
604
605 * c-common.c (check_builtin_function_arguments): Also check arguments
606 of __builtin_alloca_with_align_and_max.
607
608 2017-10-17 David Malcolm <dmalcolm@redhat.com>
609
610 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
611 rather than NULL to format_warning_va.
612 (check_format_types): Likewise when calling format_type_warning.
613 Remove code to extract source_ranges and source_range * in favor
614 of just a location_t.
615 (format_type_warning): Convert source_range * param to a
616 location_t.
617
618 2017-10-13 Jakub Jelinek <jakub@redhat.com>
619
620 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
621 [LR]SHIFT_EXPR.
622
623 2017-10-12 David Malcolm <dmalcolm@redhat.com>
624
625 * c-common.c (enum missing_token_insertion_kind): New enum.
626 (get_missing_token_insertion_kind): New function.
627 (maybe_suggest_missing_token_insertion): New function.
628 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
629
630 2017-10-11 Nathan Sidwell <nathan@acm.org>
631
632 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
633 (c_common_handle_option): Update incpath_kind names.
634
635 2017-10-11 Martin Liska <mliska@suse.cz>
636
637 PR sanitizer/82490
638 * c-attribs.c (handle_no_sanitize_attribute): Report directly
639 Wattributes warning.
640
641 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
642
643 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
644 operating on trees as wide_ints.
645 * c-common.c (pointer_int_sum): Likewise.
646 * c-pretty-print.c (pp_c_integer_constant): Likewise.
647 * c-warn.c (match_case_to_enum_1): Likewise.
648 (c_do_switch_warnings): Likewise.
649 (maybe_warn_shift_overflow): Likewise.
650
651 2017-10-10 Jakub Jelinek <jakub@redhat.com>
652
653 PR c/82437
654 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
655 instead of wide_int::from.
656
657 2017-10-06 Jakub Jelinek <jakub@redhat.com>
658
659 PR c/82437
660 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
661 using to_widest use wide_int with the larger of the two precisions.
662
663 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
664
665 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
666 functions.
667
668 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
669
670 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
671 when combining the original unconverted comparison operands.
672
673 2017-09-29 Jakub Jelinek <jakub@redhat.com>
674
675 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
676 attribute.
677
678 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
679
680 * c-ada-spec.c (to_ada_name): Add index parameter.
681 (pp_ada_tree_identifier): Likewise.
682 (dump_ada_macros): Adjust call to to_ada_name.
683 (struct overloaded_name_hash): New type.
684 (struct overloaded_name_hasher): Likewise.
685 (overloaded_names): New hash table.
686 (compute_overloading_index): New function.
687 (dump_ada_decl_name): Call it and pass the result to
688 pp_ada_tree_identifier.
689 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
690 (dump_ada_function_declaration): Likewise.
691 (dump_generic_ada_node): Likewise.
692 (print_constructor): Likewise.
693 (print_destructor): Likewise.
694 (dump_ada_specs): Delete overloaded_names table.
695
696 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
697
698 * c-ada-spec.c (max_ada_macros): Move around.
699 (store_ada_macro_index): Likewise.
700 (source_file): Rename into...
701 (macro_source_file): ...this.
702 (count_ada_macro): Move around.
703 (store_ada_macro): Likewise.
704 (compare_macro): Likewise.
705 (print_ada_macros): Merge in...
706 (dump_ada_macros): ...this.
707 (source_file_base): Rename into...
708 (current_source_file): ...this.
709 (print_comment): Move around.
710 (dump_ada_nodes): Call dump_ada_declaration directly.
711 (struct with): Change type of limited field to bool.
712 (append_withs): Change type of limited_access parameter to bool.
713 (pp_ada_tree_identifie): Likewise.
714 (dump_ada_decl_nam): Likewise.
715 (dump_generic_ada_node): Likewise. Do not print the return type.
716 (to_ada_name): Change type of space_found parameter to bool.
717 (dump_ada_function_declaration): Return void and change type of
718 parameters to bool. Also print the return type for a function.
719 (print_ada_methods): Rename into...
720 (dump_ada_methods): ...this.
721 (print_ada_declaration): Rename into ...
722 (dump_ada_declaration): ...this. Do not print the return type.
723 (print_ada_struct_decl): Rename into...
724 (dump_ada_struct_decl): ...this.
725
726 2017-09-29 Jakub Jelinek <jakub@redhat.com>
727
728 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
729 rather than DECL_INITIAL.
730 (common_handle_aligned_attribute): Likewise.
731
732 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
733
734 * c.opt (gen-decls): Add RejectNegative.
735
736 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
737 Jakub Jelinek <jakub@redhat.com>
738
739 Add support for -std=c++2a.
740 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
741 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
742 * c-opts.c (set_std_cxx2a): New.
743 (c_common_handle_option): Set options when -std=c++2a is enabled.
744 (c_common_post_options): Adjust comments.
745 (set_std_cxx14, set_std_cxx17): Likewise.
746
747 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
748
749 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
750 message for non-uniform endianness and issue a warning in C++.
751
752 2017-09-15 Jakub Jelinek <jakub@redhat.com>
753
754 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
755 (Wc++17-compat): Change from undocumented alias to option.
756 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
757 change C++1z to C++17 in description.
758 (std=c++1z, std=gnu++1z): Change from option to undocumented
759 deprecated alias.
760 (std=c++17, std=gnu++17): Change from undocumented alias to option.
761 Adjust description.
762 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
763 * c-opts.c (set_std_cxx1z): Rename to ...
764 (set_std_cxx17): ... this.
765 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
766 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
767 caller.
768 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
769 comments.
770
771 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
772
773 * c-attribs.c (common_handle_aligned_attribute): Don't warn
774 function alignment if warn_if_not_aligned_p is true.
775
776 2017-09-12 Nathan Sidwell <nathan@acm.org>
777
778 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
779 resort_sorted_fields): Move to c/c-decl.c.
780 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
781 (struct sorted_fields_type): Move to c/c-lang.h.
782
783 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
784
785 PR c++/81852
786 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
787
788 2017-09-04 Marek Polacek <polacek@redhat.com>
789
790 PR c/81783
791 * c-warn.c (warn_tautological_bitwise_comparison): New function.
792 (warn_tautological_cmp): Call it.
793
794 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
795
796 * c-opts.c (c_common_finish): Write dependency information even if
797 there are errors.
798
799 2017-09-01 Jakub Jelinek <jakub@redhat.com>
800
801 PR c/81887
802 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
803 (omp_pragmas_simd): ... here.
804 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
805 create new clauses list containing just simd clause.
806
807 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
808 Alan Hayward <alan.hayward@arm.com>
809 David Sherwood <david.sherwood@arm.com>
810
811 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
812 into scalar_mode_supported_p call.
813 (handle_mode_attribute): Update call to scalar_mode_supported_p.
814
815 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
816 Alan Hayward <alan.hayward@arm.com>
817 David Sherwood <david.sherwood@arm.com>
818
819 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
820 for the mode iterator.
821
822 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
823 Alan Hayward <alan.hayward@arm.com>
824 David Sherwood <david.sherwood@arm.com>
825
826 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
827 * c-common.c (c_build_vec_perm_expr): Likewise.
828
829 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
830 Alan Hayward <alan.hayward@arm.com>
831 David Sherwood <david.sherwood@arm.com>
832
833 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
834
835 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
836 Alan Hayward <alan.hayward@arm.com>
837 David Sherwood <david.sherwood@arm.com>
838
839 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
840 before calling targetm.addr_space.valid_pointer_mode.
841
842 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
843 Alan Hayward <alan.hayward@arm.com>
844 David Sherwood <david.sherwood@arm.com>
845
846 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
847
848 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
849 Alan Hayward <alan.hayward@arm.com>
850 David Sherwood <david.sherwood@arm.com>
851
852 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
853 iterators.
854 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
855
856 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
857 Alan Hayward <alan.hayward@arm.com>
858 David Sherwood <david.sherwood@arm.com>
859
860 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
861 case statements.
862
863 2017-08-29 Martin Liska <mliska@suse.cz>
864
865 PR other/39851
866 * c-common.c (parse_optimize_options): Add argument to function
867 call.
868 * c-pragma.c (handle_pragma_diagnostic): Likewise.
869
870 2017-08-24 David Malcolm <dmalcolm@redhat.com>
871
872 * c-lex.c (interpret_float): Use token location
873 when building an EXCESS_PRECISION_EXPR.
874
875 2017-08-21 David Malcolm <dmalcolm@redhat.com>
876
877 * c-common.c (check_function_arguments): Add "arglogs" param; pass
878 it to check_function_format.
879 * c-common.h (check_function_arguments): Add vec<location_t> *
880 param.
881 (check_function_format): Likewise.
882 * c-format.c (struct format_check_context): Add field "arglocs".
883 (check_function_format): Add param "arglocs"; pass it to
884 check_format_info.
885 (check_format_info): Add param "arglocs"; use it to initialize
886 new field of format_ctx.
887 (check_format_arg): Pass format_ctx->arglocs to new param of
888 check_format_info_main.
889 (class argument_parser): New field "arglocs".
890 (argument_parser::argument_parser): Add "arglocs_" param and use
891 it to initialize new field.
892 (argument_parser::check_argument_type): Pass new arglocs field to
893 check_format_types.
894 (check_format_info_main): Add param "arglocs", and use it when
895 constructing arg_parser.
896 (check_format_types): Add param "arglocs"; use it if non-NULL when
897 !EXPR_HAS_LOCATION (cur_param) to get at location information.
898
899 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
900
901 PR c/53037
902 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
903 (c_common_attribute_table): Add warn_if_not_aligned.
904 (handle_aligned_attribute): Renamed to ...
905 (common_handle_aligned_attribute): Remove argument, name, and add
906 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
907 (handle_aligned_attribute): New.
908 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
909
910 2017-08-14 Martin Sebor <msebor@redhat.com>
911
912 PR c/81117
913 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
914 (handle_nonstring_attribute): New function.
915
916 2017-08-14 Martin Sebor <msebor@redhat.com>
917
918 PR c/81117
919 * c-format.h (T89_G): New macro.
920 * c-format.c (local_gcall_ptr_node): New variable.
921 (init_dynamic_diag_info): Initialize it.
922
923 2017-08-11 Martin Liska <mliska@suse.cz>
924
925 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
926 TARGET_SUPPORTS_ALIASES.
927
928 2017-08-10 David Malcolm <dmalcolm@redhat.com>
929
930 * c-common.c (c_parse_error): Add rich_location * param, using it
931 rather implicitly using input_location.
932 * c-common.h (c_parse_error): Add rich_location * param.
933
934 2017-08-09 Marek Polacek <polacek@redhat.com>
935
936 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
937 (c_common_truthvalue_conversion): Likewise.
938 * c-omp.c (c_finish_omp_atomic): Likewise.
939 * c-common.h (build_binary_op): Update declaration.
940
941 2017-08-08 Martin Liska <mliska@suse.cz>
942
943 * c-ada-spec.c: Include header files.
944 * c-ubsan.c: Likewise.
945 * c-warn.c: Likewise.
946
947 2017-08-07 Jakub Jelinek <jakub@redhat.com>
948
949 PR c/69389
950 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
951
952 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
953
954 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
955 (print_ada_methods): Likewise.
956 (print_ada_declaration): Likewise.
957
958 2017-08-07 Martin Liska <mliska@suse.cz>
959
960 * array-notation-common.c: Add new includes.
961 * c-format.c( handle_format_attribute): Canonicalize a format
962 function name.
963 * c-lex.c (c_common_has_attribute): Canonicalize name of an
964 attribute.
965 * c-pretty-print.c: Add new include.
966
967 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
968
969 * c-ada-spec.c (has_static_fields): Look only into variables.
970 (print_constructor): Add TYPE parameter and use it for the name.
971 (print_destructor): Likewise.
972 (print_ada_declaration): Adjust to new constructor/destructor names.
973 Adjust calls to print_constructor and print_destructor.
974 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
975 Look only into variables in the final loop.
976
977 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
978
979 * c-ada-spec.c (has_static_fields): Look only into fields.
980 (dump_generic_ada_node): Small tweak.
981 (dump_nested_types): Look only into fields.
982 (print_ada_declaration): Look only into methods. Small tweak.
983 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
984
985 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
986
987 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
988 (dump_ada_function_declaration): Likewise.
989 (dump_generic_ada_node): Likewise.
990 (print_ada_declaration): Add support for const-qualified variables.
991
992 2017-07-31 Martin Liska <mliska@suse.cz>
993
994 PR sanitize/81530
995 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
996 Guard condition with flag_sanitize_p also with current_function_decl
997 non-null equality.
998 (ubsan_maybe_instrument_reference_or_call): Likewise.
999
1000 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
1001
1002 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1003
1004 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1005
1006 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1007 for enumeral types.
1008 (print_ada_declaration): Add missing guard for record types.
1009
1010 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR c/45784
1013 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1014 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1015 new COMPOUND_EXPRs around the rhs of the comparison.
1016
1017 2017-07-27 Marek Polacek <polacek@redhat.com>
1018
1019 PR c/81417
1020 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1021 the types.
1022
1023 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1024
1025 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1026 (handle_noipa_attribute): New function.
1027
1028 2017-07-07 Torsten Duwe <duwe@suse.de>
1029
1030 * c-attribs.c (c_common_attribute_table): Add entry for
1031 "patchable_function_entry".
1032
1033 2017-07-20 Nathan Sidwell <nathan@acm.org>
1034
1035 Remove TYPE_METHODS.
1036 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1037 dump_ada_template, print_ada_methods,
1038 print_ada_declaration): Member fns are on TYPE_FIELDS.
1039
1040 2017-07-18 Nathan Sidwell <nathan@acm.org>
1041
1042 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1043
1044 2017-07-14 David Malcolm <dmalcolm@redhat.com>
1045
1046 * c-common.c (try_to_locate_new_include_insertion_point): New
1047 function.
1048 (per_file_includes_t): New typedef.
1049 (added_includes_t): New typedef.
1050 (added_includes): New variable.
1051 (maybe_add_include_fixit): New function.
1052 * c-common.h (maybe_add_include_fixit): New decl.
1053
1054 2017-07-10 Martin Sebor <msebor@redhat.com>
1055
1056 PR other/81345
1057 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1058
1059 2017-07-06 David Malcolm <dmalcolm@redhat.com>
1060
1061 * c-common.c (selftest::c_family_tests): New.
1062 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1063 (selftest::c_family_tests): New decl.
1064
1065 2017-07-04 Marek Polacek <polacek@redhat.com>
1066
1067 PR c/81231
1068 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1069 types.
1070
1071 2017-07-04 Marek Polacek <polacek@redhat.com>
1072
1073 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1074
1075 2017-06-28 Martin Liska <mliska@suse.cz>
1076
1077 PR ipa/81128
1078 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1079 to a function declaration.
1080
1081 2017-06-28 Martin Liska <mliska@suse.cz>
1082
1083 PR driver/79659
1084 * c.opt: Add IntegerRange to various options.
1085
1086 2017-06-26 Marek Polacek <polacek@redhat.com>
1087
1088 PR c/80116
1089 * c-common.h (warn_for_multistatement_macros): Declare.
1090 * c-warn.c: Include "c-family/c-indentation.h".
1091 (warn_for_multistatement_macros): New function.
1092 * c.opt (Wmultistatement-macros): New option.
1093 * c-indentation.c (guard_tinfo_to_string): No longer static.
1094 Change the parameter type to "enum rid". Handle RID_SWITCH.
1095 * c-indentation.h (guard_tinfo_to_string): Declare.
1096
1097 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1098
1099 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1100
1101 2017-06-15 Martin Sebor <msebor@redhat.com>
1102
1103 PR c++/80560
1104 * c.opt (-Wclass-memaccess): New option.
1105
1106 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1107
1108 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1109
1110 2017-06-13 Marek Polacek <polacek@redhat.com>
1111
1112 PR objc/80949
1113 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1114 branches is null.
1115
1116 2017-06-13 Martin Liska <mliska@suse.cz>
1117
1118 PR sanitize/78204
1119 * c-attribs.c (add_no_sanitize_value): New function.
1120 (handle_no_sanitize_attribute): Likewise.
1121 (handle_no_sanitize_address_attribute): Use the function.
1122 (handle_no_sanitize_thread_attribute): New function.
1123 (handle_no_address_safety_analysis_attribute): Use
1124 add_no_sanitize_value.
1125 (handle_no_sanitize_undefined_attribute): Likewise.
1126 * c-common.h: Declare new functions.
1127 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1128 (ubsan_instrument_shift): Likewise.
1129 (ubsan_instrument_bounds): Likewise.
1130 (ubsan_maybe_instrument_array_ref): Likewise.
1131 (ubsan_maybe_instrument_reference_or_call): Likewise.
1132
1133 2017-06-11 Jason Merrill <jason@redhat.com>
1134
1135 * c-ada-spec.c, c-pragma.c: Use id_equal.
1136
1137 2017-06-04 Marek Polacek <polacek@redhat.com>
1138
1139 PR c/80919
1140 * c-format.c (matching_type_p): Return false if any of the types
1141 requires structural equality.
1142
1143 2017-06-02 Martin Sebor <msebor@redhat.com>
1144
1145 PR c/80892
1146 * c-warn.c (conversion_warning): Use -Wconversion for integer
1147 conversion and -Wfloat-conversion for floating one.
1148
1149 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1150
1151 * c.opt (Wsizeof-pointer-div): New warning option.
1152
1153 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1154
1155 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1156 (Wcatch-value=1): Enable by -Wall.
1157
1158 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1159
1160 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1161 format_chars.
1162 * c.opt (fdiagnostics-show-template-tree): New option.
1163 (felide-type): New option.
1164
1165 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1166
1167 * c.opt (Wcatch-value=): New C++ warning flag.
1168
1169 2017-05-24 Nathan Sidwell <nathan@acm.org>
1170
1171 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1172 const casts to avoid warning.
1173
1174 2017-05-24 Martin Sebor <msebor@redhat.com>
1175
1176 PR c/80731
1177 * c-common.h (unsafe_conversion_p): Add a function argument.
1178 * c-common.c (unsafe_conversion_p): Same.
1179 Add type names and values to diagnostics.
1180 (scalar_to_vector): Adjust.
1181 * c-warn.c (constant_expression_error): Add a function argument.
1182 Add type names and values to diagnostics.
1183 (conversion_warning): Add a function argument.
1184 Add type names and values to diagnostics.
1185 (warnings_for_convert_and_check): Same.
1186
1187 2017-05-19 Jason Merrill <jason@redhat.com>
1188
1189 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1190 enumerators.
1191
1192 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1193
1194 * c-format.c (locus): Move out of function scope,
1195 add GTY attribute.
1196
1197 2017-05-19 Nathan Sidwell <nathan@acm.org>
1198
1199 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1200 (c_common_parse_file): Remove class dump handling.
1201 (get_dump_info): Likewise.
1202
1203 2017-05-19 Richard Biener <rguenther@suse.de>
1204
1205 PR c++/80593
1206 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1207 to alias-set zero memory.
1208
1209 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1210
1211 * c-format.c (local_tree_type_node): Add GTY attribute.
1212
1213 2017-05-18 Marek Polacek <polacek@redhat.com>
1214
1215 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1216 (c_common_fixed_point_type_for_size): Likewise.
1217 (c_common_type_for_mode): Likewise.
1218 (shorten_compare): Likewise.
1219 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1220 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1221
1222 2017-05-18 Marek Polacek <polacek@redhat.com>
1223
1224 * c-common.c (self_promoting_args_p): Change the return type to bool.
1225 Use false/true instead of 0/1.
1226 * c-common.h (self_promoting_args_p): Update.
1227
1228 2017-05-17 Marek Polacek <polacek@redhat.com>
1229
1230 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1231 * c-warn.c: Likewise.
1232
1233 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1234
1235 Implement new C++ intrinsics __is_assignable and __is_constructible.
1236 * c-common.c (__is_assignable, __is_constructible): New.
1237 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1238
1239 2017-05-17 Martin Liska <mliska@suse.cz>
1240
1241 * c-common.h: Introduce dump_flags_t type and
1242 use it instead of int type.
1243 * c-gimplify.c (c_genericize): Likewise.
1244 * c-opts.c: Likewise.
1245
1246 2017-05-17 Marek Polacek <polacek@redhat.com>
1247
1248 * c-common.c (c_save_expr): Remove.
1249 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1250 * c-common.h (c_save_expr): Remove declaration.
1251
1252 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1253
1254 PR c/35441
1255 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1256 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1257 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1258 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1259 RDIV_EXPR.
1260 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1261
1262 2017-05-09 Marek Polacek <polacek@redhat.com>
1263
1264 PR c/80525
1265 * c-warn.c (unwrap_c_maybe_const): New.
1266 (warn_logical_operator): Call it.
1267
1268 2017-05-09 Nathan Sidwell <nathan@acm.org>
1269
1270 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1271 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1272
1273 2017-05-08 Martin Sebor <msebor@redhat.com>
1274
1275 PR translation/80280
1276 * c-format.h (struct format_flag_spec): Add new member.
1277 (T89_T): New macro.
1278 * c-format.c (local_tree_type_node): New global.
1279 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1280 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1281 (strfmon_flag_specs): Likewise.
1282 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1283 with distinct quoting properties.
1284 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1285 (flag_chars_t::validate): Add argument and handle bad quoting.
1286 (check_format_info_main): Handle quoting problems.
1287 (init_dynamic_diag_info): Simplify.
1288
1289 2017-05-08 Jason Merrill <jason@redhat.com>
1290
1291 * c-opts.c (c_common_post_options): Update defaults for
1292 flag_abi_version and flag_abi_compat_version.
1293
1294 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1295
1296 * c-common.c (c_cpp_error): Replace report_diagnostic
1297 with diagnostic_report_diagnostic.
1298
1299 2017-05-04 Martin Sebor <msebor@redhat.com>
1300
1301 PR translation/80280
1302 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1303 (handle_weakref_attribute): Same.
1304
1305 2017-05-03 Nathan Sidwell <nathan@acm.org>
1306
1307 Canonicalize canonical type hashing
1308 * c-common.c (complete_array_type): Use type_hash_canon.
1309
1310 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1311
1312 PR c++/80038
1313 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1314 prototype.
1315 (cilk_install_body_pedigree_operations): Likewise.
1316 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1317 detatched.
1318 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1319 (cilk_install_body_pedigree_operations): Likewise.
1320 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1321 unwrapping.
1322
1323 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR c++/80534
1326 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1327 flag on non-aggregate element types.
1328
1329 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1330
1331 * c-common.c (c_type_hasher, type_hash_table): Remove.
1332 (c_common_get_alias_set): Remove unreachable code.
1333 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1334
1335 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1336
1337 * c.opt (Wextra-semi): New C++ warning flag.
1338
1339 2017-04-20 Jakub Jelinek <jakub@redhat.com>
1340
1341 PR middle-end/80423
1342 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1343
1344 2017-04-18 Jakub Jelinek <jakub@redhat.com>
1345
1346 PR middle-end/79788
1347 PR middle-end/80375
1348 * c-common.c (c_common_type_for_mode): Don't handle
1349 widest_*_literal_type_node here.
1350 c_common_signed_or_unsigned_type): Likewise.
1351 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1352 to *intTI_type_node or *intDI_type_node depending on whether
1353 TImode is supported by the target or not.
1354
1355 2017-04-10 Martin Liska <mliska@suse.cz>
1356
1357 PR sanitizer/80350
1358 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1359 doing an UBSAN check.
1360
1361 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1362
1363 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1364
1365 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1366
1367 PR c++/79572
1368 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1369 tree *.
1370 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1371 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1372 REFERENCE_TYPE.
1373
1374 2017-03-31 David Malcolm <dmalcolm@redhat.com>
1375
1376 PR documentation/78732
1377 * c.opt (Wendif-labels): Fix description to refer to
1378 #else rather than #elif.
1379
1380 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR libstdc++/80251
1383 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1384 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1385
1386 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1387
1388 PR middle-end/80162
1389 * c-common.c (c_common_mark_addressable_vec): Don't set
1390 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1391
1392 2017-03-21 Martin Sebor <msebor@redhat.com>
1393
1394 PR c++/79548
1395 * c-common.c (set_underlying_type): Mark type used only when
1396 original del is declared unused.
1397
1398 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1399
1400 PR translation/79848
1401 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1402 "%qs".
1403
1404 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1405
1406 PR c/79921
1407 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1408 from inform's message, so that xgettext can locate it.
1409
1410 2017-03-09 Marek Polacek <polacek@redhat.com>
1411
1412 PR c++/79962
1413 PR c++/79984
1414 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1415 conversion to the attribute list.
1416
1417 2017-03-09 Martin Liska <mliska@suse.cz>
1418
1419 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1420
1421 2017-03-03 Jason Merrill <jason@redhat.com>
1422
1423 * c.opt (Wnoexcept-type): New.
1424
1425 2017-03-02 Richard Biener <rguenther@suse.de>
1426
1427 PR c/79756
1428 * c-common.c (c_common_mark_addressable_vec): Look through
1429 C_MAYBE_CONST_EXPR.
1430
1431 2017-02-28 Martin Liska <mliska@suse.cz>
1432
1433 * c.opt: Replace space with tabular for options of <number>
1434 type.
1435
1436 2017-02-28 Martin Liska <mliska@suse.cz>
1437
1438 * c.opt: Fix --help=option -Q for options which are of
1439 an enum type.
1440
1441 2017-02-24 Jakub Jelinek <jakub@redhat.com>
1442
1443 PR c++/79588
1444 * c-common.c (check_function_restrict): New function.
1445 (check_function_arguments): Add FNDECL argument. Call
1446 check_function_restrict if -Wrestrict.
1447 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1448 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1449 * c-common.h (check_function_arguments): Add FNDECL argument.
1450 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1451
1452 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1453
1454 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1455 treatment of parameters with pointer-to-tagged type and tidy up.
1456 (print_ada_methods): Remove the special treatment of C++ static member
1457 functions.
1458
1459 2017-02-22 Martin Liska <mliska@suse.cz>
1460
1461 * c.opt: Replace inequality signs with square brackets
1462 for -Wnornalized.
1463
1464 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR c++/79641
1467 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1468 preserve quals.
1469
1470 2017-02-17 Joseph Myers <joseph@codesourcery.com>
1471
1472 * c-cppbuiltin.c (builtin_define_float_constants): Define
1473 __DECIMAL_DIG__ to the value for long double.
1474
1475 2017-02-15 Marek Polacek <polacek@redhat.com>
1476
1477 PR c/79515
1478 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1479 conversion has occured.
1480
1481 2017-01-24 David Malcolm <dmalcolm@redhat.com>
1482
1483 * c-common.c (c_common_reswords): Add "__RTL".
1484 * c-common.h (enum rid): Add RID_RTL.
1485
1486 2017-01-20 Marek Polacek <polacek@redhat.com>
1487
1488 PR c/64279
1489 * c-common.h (do_warn_duplicated_branches_r): Declare.
1490 * c-gimplify.c (c_genericize): Walk the function tree calling
1491 do_warn_duplicated_branches_r.
1492 * c-warn.c (expr_from_macro_expansion_r): New.
1493 (do_warn_duplicated_branches): New.
1494 (do_warn_duplicated_branches_r): New.
1495 * c.opt (Wduplicated-branches): New option.
1496
1497 2017-01-17 David Malcolm <dmalcolm@redhat.com>
1498
1499 PR c++/71497
1500 * c-indentation.c (warn_for_misleading_indentation): Use the past
1501 subjunctive in the note.
1502
1503 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
1504
1505 PR c/79116
1506 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1507 start type to integer_type.
1508
1509 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1510
1511 PR driver/49726
1512 * c.opt (gen-decls): Add Driver flag.
1513
1514 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1515
1516 Revert:
1517 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1518
1519 PR c++/71737
1520 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1521
1522 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1523
1524 PR c++/71737
1525 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1526
1527 2017-01-12 Martin Sebor <msebor@redhat.com>
1528
1529 (-Wformat-overflow): ...to this.
1530
1531 2017-01-11 Martin Sebor <msebor@redhat.com>
1532
1533 PR c/78768
1534 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1535 Also enable for LTO.
1536
1537 2017-01-10 Jason Merrill <jason@redhat.com>
1538
1539 Implement P0195R2, C++17 variadic using.
1540 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1541
1542 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1543
1544 PR translation/79019
1545 PR translation/79020
1546 * c.opt (Wnormalized=): Fix typo in description.
1547
1548 2017-01-08 Martin Sebor <msebor@redhat.com>
1549
1550 PR middle-end/77708
1551 * c.opt (-Wformat-truncation): New option.
1552
1553 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
1554
1555 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1556 value to unsigned short to fit in 4 hex digits without
1557 warnings.
1558
1559 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * c.opt (fsso-struct): Add 'native' value.
1562
1563 2017-01-05 Martin Liska <mliska@suse.cz>
1564
1565 PR pch/78970
1566 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1567 header.
1568
1569 2017-01-04 Marek Polacek <polacek@redhat.com>
1570
1571 PR c++/64767
1572 * c.opt (Wpointer-compare): New option.
1573
1574 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR driver/78957
1577 * c.opt (fsso-struct=): Add RejectNegative.
1578
1579 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1580
1581 Update copyright years.
1582
1583 2016-12-29 Martin Liska <mliska@suse.cz>
1584
1585 PR c/78933
1586 * c.opt (strong-eval-order): Add RejectNegative keyword.
1587
1588 2016-12-22 Jason Merrill <jason@redhat.com>
1589
1590 Implement P0522R0, matching of template template arguments.
1591 * c-cppbuiltin.c (c_cpp_builtins): Define
1592 __cpp_template_template_args.
1593
1594 2016-12-21 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR bootstrap/78817
1597 * c-common.c (struct nonnull_arg_ctx): New type.
1598 (check_function_nonnull): Return bool instead of void. Use
1599 nonnull_arg_ctx as context rather than just location_t.
1600 (check_nonnull_arg): Adjust for the new context type, set
1601 warned_p to true if a warning has been diagnosed.
1602 (check_function_arguments): Return bool instead of void.
1603 * c-common.h (check_function_arguments): Adjust prototype.
1604
1605 2016-12-21 Jason Merrill <jason@redhat.com>
1606
1607 * c.opt (-fnew-ttp-matching): New flag.
1608 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1609
1610 2016-12-14 Martin Jambor <mjambor@suse.cz>
1611
1612 * c-omp.c: Include omp-general.h instead of omp-low.h.
1613 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1614 name.
1615
1616 2016-12-14 Martin Sebor <msebor@redhat.com>
1617
1618 PR c/17308
1619 * c-common.c (check_nonnull_arg): Disable when optimization
1620 is enabled.
1621
1622 2016-12-12 Marek Polacek <polacek@redhat.com>
1623
1624 PR c++/78647
1625 * c-common.c (attribute_fallthrough_p): Return false for
1626 error_mark_node.
1627
1628 2016-12-08 Martin Sebor <msebor@redhat.com>
1629
1630 PR c/78284
1631 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1632
1633 2016-12-08 Martin Sebor <msebor@redhat.com>
1634
1635 PR c/78165
1636 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1637 suffix.
1638
1639 2016-12-07 Martin Sebor <msebor@redhat.com>
1640
1641 PR c/53562
1642 PR middle-end/77784
1643 PR middle-end/78149
1644 PR middle-end/78138
1645 * c.opt (-Wstringop-overflow): New option.
1646
1647 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1648
1649 * c-attribs.c (asan odr indicator): New attribute.
1650 (handle_asan_odr_indicator_attribute): New function.
1651
1652 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1653
1654 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1655 ptrdiff_type_node;
1656
1657 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1658
1659 * c-common.c (excess_precision_mode_join): New.
1660 (c_ts18661_flt_eval_method): New.
1661 (c_c11_flt_eval_method): Likewise.
1662 (c_flt_eval_method): Likewise.
1663 * c-common.h (excess_precision_mode_join): New.
1664 (c_flt_eval_method): Likewise.
1665 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1666 (cpp_iec_559_value): Call it.
1667 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1668 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1669 __FLT_EVAL_METHOD_TS_18661_3__.
1670
1671 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1672
1673 * c-opts.c (c_common_post_options): Add logic to handle the default
1674 case for -fpermitted-flt-eval-methods.
1675
1676 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1677
1678 * c.opt (Wexpansion-to-defined): New.
1679
1680 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR target/78451
1683 * c-pragma.c (handle_pragma_target): Don't replace
1684 current_target_pragma, but chainon the new args to the current one.
1685
1686 2016-11-22 Nathan Sidwell <nathan@acm.org>
1687
1688 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1689 indentation and formatting.
1690
1691 2016-11-21 Martin Sebor <msebor@redhat.com>
1692
1693 * c.opt (-fprintf-return-value): Enable by default.
1694
1695 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1696
1697 PR c++/71973
1698 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1699 * c-common.c (c_common_nodes_and_builtins): Initialize
1700 const_tm_ptr_type_node.
1701
1702 2016-11-16 Marek Polacek <polacek@redhat.com>
1703
1704 PR c/78285
1705 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1706
1707 2016-11-14 Jakub Jelinek <jakub@redhat.com>
1708
1709 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1710
1711 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1712 Richard Biener <rguenther@suse.de>
1713
1714 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1715 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1716 * c.opt (fgimple): New option.
1717
1718 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1719
1720 PR c/35503
1721 * c-common.h (warn_for_restrict): Declare.
1722 * c-warn.c: Include gcc-rich-location.h.
1723 (warn_for_restrict): New function.
1724 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1725 (gcc_cdiag_char_table): Likewise.
1726 (gcc_cxxdiag_char_table): Likewise.
1727 * c.opt (Wrestrict): New option.
1728
1729 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1730
1731 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1732 for nested types only if the type is a record or union and dump SLOC.
1733
1734 2016-11-09 Jason Merrill <jason@redhat.com>
1735
1736 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1737
1738 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1739
1740 * c-ubsan.c (ubsan_instrument_shift): Handle split
1741 -fsanitize=shift-base and -fsanitize=shift-exponent.
1742
1743 2016-11-07 Jason Merrill <jason@redhat.com>
1744
1745 * c.opt (Wc++1z-compat): New.
1746 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1747
1748 2016-11-07 Martin Liska <mliska@suse.cz>
1749
1750 * c-warn.c (warn_for_unused_label): Save all labels used
1751 in goto or in &label.
1752
1753 2016-11-03 Jason Merrill <jason@redhat.com>
1754
1755 * c-cppbuiltin.c (c_cpp_builtins): Correct
1756 __cpp_inheriting_constructors.
1757
1758 2016-11-01 Jason Merrill <jason@redhat.com>
1759
1760 * c-cppbuiltin.c (c_cpp_builtins): Update
1761 __cpp_inheriting_constructors.
1762
1763 * c.opt (-fnew-inheriting-ctors): New.
1764 * c-opts.c: Default to on for ABI 11+.
1765
1766 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1767
1768 PR c++/77948
1769 * c.opt (fext-numeric-literals): Add Var and Init.
1770 * c-opts.c (c_common_handle_option): Don't clear
1771 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1772 (c_common_post_options): Clear it here if not set
1773 explicitly.
1774
1775 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
1776
1777 PR debug/77773
1778 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1779 if NULL.
1780
1781 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1782
1783 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1784 * c-common.c (c_common_reswords): Add __builtin_launder.
1785
1786 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1787
1788 * c-common.c (c_common_truthvalue_conversion): Warn for
1789 multiplications in boolean context. Fix the quoting of '<<' and '<'
1790 in the shift warning.
1791
1792 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1793
1794 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1795
1796 2016-10-20 Jason Merrill <jason@redhat.com>
1797
1798 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1799
1800 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1801
1802 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1803 integer shift ops in boolean context.
1804
1805 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1806
1807 * c.opt (Walloca): New.
1808 (Walloca-larger-than=): New.
1809 (Wvla-larger-than=): New.
1810
1811 2016-10-17 Marek Polacek <polacek@redhat.com>
1812
1813 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1814 Return immediately when finding a match.
1815 (warn_tautological_cmp): Remove a boolean variable that is no longer
1816 needed.
1817
1818 2016-10-17 Marek Polacek <polacek@redhat.com>
1819
1820 * c-attribs.c: New file.
1821 * c-common.c: Move attributes handling to c-attribs.c.
1822 (get_nonnull_operand): No longer static.
1823 * c-common.h: Move the declarations from c-attribs.c to its own section.
1824
1825 2016-10-14 Jason Merrill <jason@redhat.com>
1826
1827 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1828 and __cpp_deduction_guides.
1829
1830 2016-10-13 Jason Merrill <jason@redhat.com>
1831
1832 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1833
1834 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1835
1836 * c-cppbuiltin.c: Include memmodel.h.
1837 * c-opts.c: Likewise.
1838 * c-pragma.c: Likewise.
1839 * c-warn.c: Likewise.
1840
1841 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1842
1843 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1844 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1845 * c-opts.c (sanitize_cpp_opts): Initialize
1846 cpp_opts->cpp_warn_implicit_fallthrough.
1847
1848 2016-10-11 Marek Polacek <polacek@redhat.com>
1849
1850 * c-common.c (warning_candidate_p): Change the return type to bool
1851 and return true/false instead of 1/0.
1852 (vector_mode_valid_p): Likewise.
1853
1854 2016-10-11 Marek Polacek <polacek@redhat.com>
1855
1856 * c-common.c (fold_for_warn): No longer static.
1857 (bool_promoted_to_int_p): Likewise.
1858 (c_common_get_narrower): Likewise.
1859 (constant_expression_warning): Move to c-warn.c.
1860 (constant_expression_error): Likewise.
1861 (overflow_warning): Likewise.
1862 (warn_logical_operator): Likewise.
1863 (find_array_ref_with_const_idx_r): Likewise.
1864 (warn_tautological_cmp): Likewise.
1865 (expr_has_boolean_operands_p): Likewise.
1866 (warn_logical_not_parentheses): Likewise.
1867 (warn_if_unused_value): Likewise.
1868 (strict_aliasing_warning): Likewise.
1869 (sizeof_pointer_memaccess_warning): Likewise.
1870 (check_main_parameter_types): Likewise.
1871 (conversion_warning): Likewise.
1872 (warnings_for_convert_and_check): Likewise.
1873 (match_case_to_enum_1): Likewise.
1874 (match_case_to_enum): Likewise.
1875 (c_do_switch_warnings): Likewise.
1876 (warn_for_omitted_condop): Likewise.
1877 (readonly_error): Likewise.
1878 (lvalue_error): Likewise.
1879 (invalid_indirection_error): Likewise.
1880 (warn_array_subscript_with_type_char): Likewise.
1881 (warn_about_parentheses): Likewise.
1882 (warn_for_unused_label): Likewise.
1883 (warn_for_div_by_zero): Likewise.
1884 (warn_for_memset): Likewise.
1885 (warn_for_sign_compare): Likewise.
1886 (do_warn_double_promotion): Likewise.
1887 (do_warn_unused_parameter): Likewise.
1888 (record_locally_defined_typedef): Likewise.
1889 (maybe_record_typedef_use): Likewise.
1890 (maybe_warn_unused_local_typedefs): Likewise.
1891 (maybe_warn_bool_compare): Likewise.
1892 (maybe_warn_shift_overflow): Likewise.
1893 (warn_duplicated_cond_add_or_warn): Likewise.
1894 (diagnose_mismatched_attributes): Likewise.
1895 * c-common.h: Move the declarations from c-warn.c to its own section.
1896 * c-warn.c: New file.
1897
1898 2016-10-08 Jason Merrill <jason@redhat.com>
1899
1900 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1901 into COND_EXPR in C++.
1902
1903 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1904
1905 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1906 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1907 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1908
1909 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1910
1911 Implement LWG2296 helper intrinsic
1912 * c-common.h (enum rid): Add RID_ADDRESSOF.
1913 * c-common.c (c_common_reswords): Add __builtin_addressof.
1914
1915 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1916
1917 PR c++/77700
1918 * c-common.c (c_common_truthvalue_conversion): Warn also for
1919 suspicious enum values in boolean context.
1920
1921 2016-10-06 Jakub Jelinek <jakub@redhat.com>
1922
1923 Implement P0258R2 - helper for C++17
1924 std::has_unique_object_representations trait
1925 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1926 * c-common.c (c_common_reswords): Add
1927 __has_unique_object_representations.
1928
1929 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1930
1931 PR sanitizer/66343
1932 * c-ubsan.c (ubsan_instrument_return): Don't call
1933 initialize_sanitizer_builtins here.
1934
1935 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1936
1937 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1938 conditional expression in boolean context when only one arm is
1939 non-boolean.
1940
1941 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1942
1943 PR sanitizer/77823
1944 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1945 is not integral.
1946
1947 * c-common.c (c_common_reswords): Update comment for C++11.
1948
1949 2016-10-04 Jason Merrill <jason@redhat.com>
1950
1951 * c-common.c (make_tree_vector_from_ctor): New.
1952 * c-common.h: Declare it.
1953
1954 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1955
1956 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1957 __LIBGCC_JCR_SECTION_NAME__.
1958
1959 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1960
1961 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1962 left shift in boolean context.
1963
1964 2016-09-29 Jakub Jelinek <jakub@redhat.com>
1965
1966 Implement P0001R1 - C++17 removal of register storage class specifier
1967 * c.opt (Wregister): New warning.
1968 * c-opts.c (c_common_post_options): Enable -Wregister by
1969 default for C++17.
1970
1971 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1972
1973 * c-opts.c (c_common_post_options): Remove special case for
1974 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1975 in C++.
1976
1977 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1978
1979 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1980 -std=c++1z.
1981
1982 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1983
1984 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1985
1986 * c-common.c: Include memmodel.h.
1987
1988 2016-09-26 Marek Polacek <polacek@redhat.com>
1989
1990 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1991
1992 2016-09-26 Marek Polacek <polacek@redhat.com>
1993
1994 PR c/7652
1995 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1996 (handle_fallthrough_attribute): New function.
1997 (attribute_fallthrough_p): New function.
1998 * c-common.h (attribute_fallthrough_p): Declare.
1999
2000 2016-09-24 Marek Polacek <polacek@redhat.com>
2001
2002 PR c/77490
2003 * c.opt (Wbool-operation): New.
2004
2005 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2006
2007 * c-common.c (c_common_truthvalue_conversion): Inhibit
2008 Wint-in-bool-context warning with from_macro_definition_at.
2009 Mention the expression will always evaluate to true.
2010
2011 2016-09-21 Martin Sebor <msebor@redhat.com>
2012
2013 PR bootstrap/77676
2014 * c.opt (fprintf-return-value): Temporarily initialize to zero
2015 to unblock bootstrap failures.
2016
2017 2016-09-21 Jakub Jelinek <jakub@redhat.com>
2018
2019 PR c++/77651
2020 * c.opt (Waligned-new=): Add RejectNegative.
2021 (faligned-new=): Likewise. Spelling fix - change
2022 aligned_new_threshhold to aligned_new_threshold.
2023 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2024 to aligned_new_threshold.
2025
2026 2016-09-20 Martin Sebor <msebor@redhat.com>
2027
2028 PR middle-end/49905
2029 * c.opt: Add -Wformat-length and -fprintf-return-value.
2030
2031 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2032
2033 PR c++/77434
2034 * c.opt (Wint-in-bool-context): New warning.
2035 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2036 constants in boolean context.
2037
2038 2016-09-19 Joseph Myers <joseph@codesourcery.com>
2039
2040 * c-common.c (max_align_t_align): Also consider alignment of
2041 float128_type_node.
2042
2043 2016-09-15 Jason Merrill <jason@redhat.com>
2044
2045 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2046 DECL_EXTERNAL.
2047
2048 2016-09-14 Jason Merrill <jason@redhat.com>
2049
2050 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2051 limit FIELD_DECL, either.
2052
2053 2016-09-14 Marek Polacek <polacek@redhat.com>
2054
2055 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2056 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2057 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2058
2059 2016-09-13 David Malcolm <dmalcolm@redhat.com>
2060
2061 * c-common.c (warn_logical_not_parentheses): Replace
2062 rich_location::add_fixit_insert calls with add_fixit_insert_before
2063 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2064
2065 2016-09-13 Jason Merrill <jason@redhat.com>
2066 Tom de Vries <tom@codesourcery.com>
2067
2068 PR c++/77427
2069 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2070
2071 2016-09-13 Jason Merrill <jason@redhat.com>
2072
2073 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2074 limit types at all.
2075
2076 2016-09-12 Jason Merrill <jason@redhat.com>
2077
2078 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2079 bit/byte confusion, allow large alignment for types.
2080
2081 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2082
2083 PR c++/77496
2084 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2085
2086 2016-09-12 David Malcolm <dmalcolm@redhat.com>
2087
2088 PR c/72858
2089 * c-format.c (argument_parser::check_argument_type): Add params
2090 "type_start" and "conversion_char". Use the former to generate
2091 offset_to_type_start and pass it and conversion_char to
2092 check_format_types.
2093 (check_format_info_main): Capture the start of the type
2094 information as "type_start", and pass it an format_char
2095 to arg_parser.check_argument_type.
2096 (check_format_types): Provide an example in the leading comment.
2097 Add params "offset_to_type_start" and "conversion_char"; pass
2098 them to format_type_warning calls.
2099 (test_get_modifier_for_format_len): Likewise.
2100 (matching_type_p): New function.
2101 (get_format_for_type): Add param "conversion_char" and move
2102 implementation into...
2103 (get_format_for_type_1): ...new function, called twice.
2104 Use new function matching_type_p rather than checking for
2105 TYPE_CANONICAL equality.
2106 (get_corrected_substring): New function.
2107 (format_type_warning): Provide an example in the leading comment.
2108 Add params "offset_to_type_start" and "conversion_char". Replace
2109 call to get_format_for_type with call to get_corrected_substring
2110 and move rejection of hints for widths/precisions there.
2111 (assert_format_for_type_streq): Add param "conversion_char".
2112 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2113 (test_get_format_for_type_printf): Add conversion chars to the
2114 tests, adding coverage for various combinations of integer
2115 vs double conversions, and for preserving octal and hexadecimal
2116 conversions.
2117 (test_get_format_for_type_scanf): Add conversion chars to the
2118 tests.
2119
2120 2016-09-10 Tom de Vries <tom@codesourcery.com>
2121
2122 PR C/71602
2123 * c-common.c (build_va_arg): Handle more strict
2124 targetm.canonical_va_list_type. Replace first argument type error with
2125 assert.
2126
2127 2016-09-09 Martin Sebor <msebor@redhat.com>
2128
2129 PR c/77520
2130 PR c/77521
2131 * c-format.c (argument_parser::find_format_char_info): Use %qc
2132 format directive unconditionally.
2133
2134 2016-09-09 Jason Merrill <jason@redhat.com>
2135
2136 Implement C++17 new of over-aligned types.
2137 * c.opt: Add -faligned-new and -Waligned-new.
2138 * c-common.c (max_align_t_align): Split out from...
2139 (cxx_fundamental_alignment_p): ...here.
2140 * c-common.h: Declare it.
2141 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2142
2143 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2144
2145 * c-cppbuiltin.c (builtin_define_type_width): New function.
2146 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2147 macros.
2148
2149 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2150
2151 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2152 a POINTER_TYPE.
2153 (substring_loc::get_location): Move to substring-locations.c,
2154 keeping implementation as...
2155 (c_get_substring_location): New function, from the above, reworked
2156 to use accessors rather than member lookup.
2157 * c-common.h (class substring_loc): Move to substring-locations.h,
2158 replacing with a forward decl.
2159 (c_get_substring_location): New decl.
2160 * c-format.c: Include "substring-locations.h".
2161 (format_warning_va): Move to substring-locations.c.
2162 (format_warning_at_substring): Likewise.
2163
2164 2016-09-06 Martin Sebor <msebor@redhat.com>
2165
2166 PR c/77336
2167 * c-format.c (check_function_format): Avoid issuing warnings for
2168 functions unless they call format functions with non-constant
2169 format strings.
2170
2171 2016-09-06 Richard Biener <rguenther@suse.de>
2172
2173 PR c/77450
2174 * c-common.c (c_common_mark_addressable_vec): Handle
2175 COMPOUND_LITERAL_EXPR.
2176
2177 2016-09-05 Marek Polacek <polacek@redhat.com>
2178
2179 PR c/77423
2180 * c-common.c (bool_promoted_to_int_p): New function.
2181 (expr_has_boolean_operands_p): New function.
2182 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2183 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2184
2185 2016-09-04 Tom de Vries <tom@codesourcery.com>
2186
2187 revert:
2188 2016-08-29 Tom de Vries <tom@codesourcery.com>
2189
2190 * c-common.c (build_va_arg): Replace first argument type error
2191 with assert.
2192
2193 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2194
2195 PR c/65467
2196 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2197 (c_finish_omp_for): Reject _Atomic qualified iterators.
2198
2199 2016-09-01 Martin Sebor <msebor@redhat.com>
2200
2201 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2202 size to guarantee it fits the output of the formatted function
2203 regardless of its arguments.
2204
2205 2016-09-01 Marek Polacek <polacek@redhat.com>
2206
2207 PR c/7652
2208 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2209 FALLTHRU comments.
2210
2211 2016-08-29 Marek Polacek <polacek@redhat.com>
2212
2213 PR c/77292
2214 * c-common.c (warn_logical_not_parentheses): Don't warn for
2215 a comparison or a logical operator.
2216
2217 2016-08-29 Tom de Vries <tom@codesourcery.com>
2218
2219 * c-common.c (build_va_arg): Fix type comparison assert.
2220
2221 2016-08-29 Tom de Vries <tom@codesourcery.com>
2222
2223 * c-common.c (build_va_arg): Replace first argument type error
2224 with assert.
2225
2226 2016-08-29 Tom de Vries <tom@codesourcery.com>
2227
2228 PR c/77398
2229 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2230 with error_mark_node as va_list instead of with illegal va_list.
2231
2232 2016-08-25 Marek Polacek <polacek@redhat.com>
2233 David Malcolm <dmalcolm@redhat.com>
2234
2235 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2236 * c-common.h (warn_logical_not_parentheses): Update declaration.
2237
2238 2016-08-22 Marek Polacek <polacek@redhat.com>
2239
2240 PR c++/77321
2241 * c-common.c (warn_for_memset): Check type for null.
2242
2243 2016-08-22 Joseph Myers <joseph@codesourcery.com>
2244
2245 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2246 _FloatNx types for suffixes for built-in functions.
2247
2248 2016-08-19 Joseph Myers <joseph@codesourcery.com>
2249
2250 PR c/32187
2251 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2252 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2253 (RID_FLOAT128X): New enum rid values.
2254 (CASE_RID_FLOATN_NX): New macro.
2255 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2256 keywords.
2257 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2258 corresponding complex types.
2259 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2260 _FloatNx and corresponding complex types.
2261 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2262 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2263 and _FloatNx types for the widest type for determining
2264 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2265 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2266 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2267 and _FloatNx types.
2268 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2269 constants.
2270 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2271 _FloatNx types.
2272
2273 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2274
2275 * c-opts.c (c_diagnostic_finalizer): Update for change to
2276 diagnostic_show_locus.
2277
2278 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2279
2280 * c-common.c: Include "spellcheck.h".
2281 (cb_get_suggestion): New function.
2282 * c-common.h (cb_get_suggestion): New decl.
2283 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2284 cb_get_suggestion.
2285
2286 2016-08-18 Marek Polacek <polacek@redhat.com>
2287
2288 PR c/71514
2289 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2290 and pointer-to-VLA.
2291
2292 2016-08-16 David Malcolm <dmalcolm@redhat.com>
2293
2294 PR c/72857
2295 * c-common.c (substring_loc::get_range): Rename to...
2296 (substring_loc::get_location): ...this, converting param from a
2297 source_range * to a location_t *. Call
2298 get_source_location_for_substring rather than
2299 get_source_range_for_substring, and pass in m_caret_idx.
2300 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2301 (substring_loc::get_range): Replace with...
2302 (substring_loc::get_location): ...this.
2303 (substring_loc::set_caret_index): New method.
2304 (substring_loc): Add field m_caret_idx.
2305 * c-format.c (format_warning_va): Update for above changes.
2306 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2307 clashing with type name.
2308 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2309 (check_argument_type): Likewise.
2310 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2311 Use a copy when emitting warnings, setting the caret index from TYPE.
2312
2313 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
2314 Arnaud Charlet <charlet@adacore.com>
2315
2316 * c-ada-spec.c (dump_number): New function.
2317 (handle_escape_character): Likewise.
2318 (print_ada_macros): Add handling of constant integers and strings.
2319
2320 2016-08-12 Marek Polacek <polacek@redhat.com>
2321
2322 PR c/7652
2323 * c-common.c (scalar_to_vector): Adjust fall through comment.
2324 * c-opts.c (c_common_handle_option): Likewise.
2325 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2326 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2327 fall through comment.
2328 * cilk.c (extract_free_variables): Add FALLTHRU.
2329
2330 2016-08-10 Jason Merrill <jason@redhat.com>
2331
2332 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2333
2334 2016-08-09 Jason Merrill <jason@redhat.com>
2335
2336 * c-common.c (c_common_attribute_table): vector_size affects type
2337 identity.
2338
2339 2016-08-09 Marek Polacek <polacek@redhat.com>
2340
2341 PR c/7652
2342 * c-ada-spec.c (dump_generic_ada_node): Add return.
2343
2344 2016-08-09 Jason Merrill <jason@redhat.com>
2345
2346 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2347 C++17 constexpr lambdas.
2348
2349 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2350
2351 PR c/64955
2352 * c-common.h (selftest::c_format_c_tests): New declaration.
2353 (selftest::run_c_tests): New declaration.
2354 * c-format.c: Include "selftest.h.
2355 (format_warning_va): Add param "corrected_substring" and use
2356 it to add a replacement fix-it hint.
2357 (format_warning_at_substring): Likewise.
2358 (format_warning_at_char): Update for new param of
2359 format_warning_va.
2360 (argument_parser::check_argument_type): Pass "fki" to
2361 check_format_types.
2362 (check_format_types): Add param "fki" and pass it to
2363 format_type_warning.
2364 (deref_n_times): New function.
2365 (get_modifier_for_format_len): New function.
2366 (selftest::test_get_modifier_for_format_len): New function.
2367 (get_format_for_type): New function.
2368 (format_type_warning): Add param "fki" and use it to attempt
2369 to provide hints for argument types when calling
2370 format_warning_at_substring.
2371 (selftest::get_info): New function.
2372 (selftest::assert_format_for_type_streq): New function.
2373 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2374 (selftest::test_get_format_for_type_printf): New function.
2375 (selftest::test_get_format_for_type_scanf): New function.
2376 (selftest::c_format_c_tests): New function.
2377
2378 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2379
2380 PR c/52952
2381 * c-format.c: Include "diagnostic.h".
2382 (location_column_from_byte_offset): Delete.
2383 (location_from_offset): Delete.
2384 (format_warning_va): New function.
2385 (format_warning_at_substring): New function.
2386 (format_warning_at_char): New function.
2387 (check_format_arg): Capture location of format_tree and pass to
2388 check_format_info_main.
2389 (argument_parser): Add fields "start_of_this_format" and
2390 "format_string_cst".
2391 (flag_chars_t::validate): Add param "format_string_cst". Convert
2392 warning_at call using location_from_offset to call to
2393 format_warning_at_char.
2394 (argument_parser::argument_parser): Add param "format_string_cst_"
2395 and use use it to initialize field "format_string_cst".
2396 Initialize new field "start_of_this_format".
2397 (argument_parser::read_format_flags): Convert warning_at call
2398 using location_from_offset to a call to format_warning_at_char.
2399 (argument_parser::read_any_format_left_precision): Likewise.
2400 (argument_parser::read_any_format_precision): Likewise.
2401 (argument_parser::read_any_other_modifier): Likewise.
2402 (argument_parser::find_format_char_info): Likewise, in three places.
2403 (argument_parser::parse_any_scan_set): Likewise, in one place.
2404 (argument_parser::handle_conversions): Likewise, in two places.
2405 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2406 and use it to make a substring_loc. Pass the latter to
2407 check_format_types.
2408 (check_format_info_main): Add params "fmt_param_loc" and
2409 "format_string_cst". Convert warning_at calls using
2410 location_from_offset to calls to format_warning_at_char. Pass the
2411 new params to the arg_parser ctor. Pass "format_string_cst" to
2412 flag_chars.validate. Pass "fmt_param_loc" to
2413 arg_parser.check_argument_type.
2414 (check_format_types): Convert first param from a location_t
2415 to a const substring_loc & and rename to "fmt_loc". Attempt
2416 to extract the range of the relevant parameter and pass it
2417 to format_type_warning.
2418 (format_type_warning): Convert first param from a location_t
2419 to a const substring_loc & and rename to "fmt_loc". Add
2420 params "param_range" and "type". Replace calls to warning_at
2421 with calls to format_warning_at_substring.
2422
2423 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2424
2425 * c-format.c (class flag_chars_t): New class.
2426 (struct length_modifier): New struct.
2427 (class argument_parser): New class.
2428 (flag_chars_t::flag_chars_t): New ctor.
2429 (flag_chars_t::has_char_p): New method.
2430 (flag_chars_t::add_char): New method.
2431 (flag_chars_t::validate): New method.
2432 (flag_chars_t::get_alloc_flag): New method.
2433 (flag_chars_t::assignment_suppression_p): New method.
2434 (argument_parser::argument_parser): New ctor.
2435 (argument_parser::read_any_dollar): New method.
2436 (argument_parser::read_format_flags): New method.
2437 (argument_parser::read_any_format_width): New method.
2438 (argument_parser::read_any_format_left_precision): New method.
2439 (argument_parser::read_any_format_precision): New method.
2440 (argument_parser::handle_alloc_chars): New method.
2441 (argument_parser::read_any_length_modifier): New method.
2442 (argument_parser::read_any_other_modifier): New method.
2443 (argument_parser::find_format_char_info): New method.
2444 (argument_parser::validate_flag_pairs): New method.
2445 (argument_parser::give_y2k_warnings): New method.
2446 (argument_parser::parse_any_scan_set): New method.
2447 (argument_parser::handle_conversions): New method.
2448 (argument_parser::check_argument_type): New method.
2449 (check_format_info_main): Introduce classes argument_parser
2450 and flag_chars_t, moving the code within the loop into methods
2451 of these classes. Make various locals "const".
2452
2453 2016-08-05 David Malcolm <dmalcolm@redhat.com>
2454
2455 * c-common.c: Include "substring-locations.h".
2456 (get_cpp_ttype_from_string_type): New function.
2457 (g_string_concat_db): New global.
2458 (substring_loc::get_range): New method.
2459 * c-common.h (g_string_concat_db): New declaration.
2460 (class substring_loc): New class.
2461 * c-lex.c (lex_string): When concatenating strings, capture the
2462 locations of all tokens using a new obstack, and record the
2463 concatenation locations within g_string_concat_db.
2464 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2465 on the ggc-heap.
2466
2467 2016-07-29 Marek Polacek <polacek@redhat.com>
2468
2469 PR c/71926
2470 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2471 parentheses warning.
2472
2473 PR c/71574
2474 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2475
2476 2016-07-28 Martin Liska <mliska@suse.cz>
2477
2478 PR gcov-profile/68025
2479 * c-common.c (handle_no_profile_instrument_function_attribute):
2480
2481 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2482
2483 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2484 BITS_PER_UNIT_LOG.
2485
2486 2016-07-25 Jason Merrill <jason@redhat.com>
2487
2488 PR c++/65970
2489 * c.opt (fconstexpr-loop-limit): New.
2490
2491 2016-07-22 Martin Sebor <msebor@redhat.com>
2492
2493 PR c++/71675
2494 * c-common.c (resolve_overloaded_builtin): Avoid converting
2495 __atomic_compare_exchange_n return type to that of what its
2496 first argument points to.
2497
2498 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
2499
2500 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2501 ~(unsigned HOST_WIDE_INT) 0.
2502
2503 2016-07-22 Martin Liska <mliska@suse.cz>
2504
2505 PR gcov-profile/69028
2506 PR gcov-profile/62047
2507 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2508 to the current_function_decl.
2509
2510 2016-07-21 Jason Merrill <jason@redhat.com>
2511
2512 PR c++/65168
2513 * c-common.c (c_common_truthvalue_conversion): Check
2514 c_inhibit_evaluation_warnings for warning about address of
2515 reference.
2516
2517 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2518
2519 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2520 const char *.
2521
2522 2016-07-15 Jason Merrill <jason@redhat.com>
2523
2524 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2525
2526 2016-07-15 Jakub Jelinek <jakub@redhat.com>
2527
2528 PR c/71858
2529 * c-common.h (enum lookup_name_fuzzy_kind): Add
2530 FUZZY_LOOKUP_FUNCTION_NAME.
2531
2532 2016-07-08 Jason Merrill <jason@redhat.com>
2533
2534 P0145: Refining Expression Order for C++.
2535 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2536 * c-opts.c: Adjust.
2537
2538 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2539
2540 PR c++/71214
2541 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2542
2543 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2544
2545 * c-pragma.h (enum pragma_kind): Rename
2546 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2547 users.
2548
2549 2016-06-29 Richard Biener <rguenther@suse.de>
2550
2551 PR middle-end/71002
2552 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2553
2554 2016-06-24 Jason Merrill <jason@redhat.com>
2555
2556 P0145R2: Refining Expression Order for C++.
2557 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2558 MODIFY_EXPR.
2559
2560 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2561
2562 * c-common.c (check_builtin_function_arguments): Require last
2563 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2564 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2565 if the last argument is pointer to enumerated or boolean type.
2566
2567 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2568
2569 PR c/70339
2570 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2571 (lookup_name_fuzzy): New prototype.
2572
2573 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
2574
2575 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2576
2577 2016-06-14 Jason Merrill <jason@redhat.com>
2578
2579 P0145R2: Refining Expression Order for C++.
2580 * c.opt (fargs-in-order): New.
2581 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2582
2583 2016-06-13 Jakub Jelinek <jakub@redhat.com>
2584
2585 PR sanitizer/71498
2586 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2587 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2588
2589 PR preprocessor/71183
2590 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2591 to cb_get_source_date_epoch.
2592
2593 2016-06-10 Jakub Jelinek <jakub@redhat.com>
2594
2595 PR c/68657
2596 * c.opt (Wpsabi): Add Warning flag.
2597
2598 2016-06-10 Martin Sebor <msebor@redhat.com>
2599
2600 PR c/71392
2601 * c-common.c (handle_nonnull_attribute): Accept
2602 the nonnull attribute in type-generic builtins.
2603
2604 2016-06-09 Martin Sebor <msebor@redhat.com>
2605
2606 PR c/70883
2607 * c-common.c (builtin_function_validate_nargs): Make text of error
2608 message consistent with others like it.
2609
2610 2016-06-08 Martin Sebor <msebor@redhat.com>
2611 Jakub Jelinek <jakub@redhat.com>
2612
2613 PR c++/70507
2614 PR c/68120
2615 * c-common.c (check_builtin_function_arguments): Handle
2616 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2617
2618 2016-06-08 Richard Biener <rguenther@suse.de>
2619
2620 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2621
2622 2016-06-07 Richard Biener <rguenther@suse.de>
2623
2624 PR c/61564
2625 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2626 options and warn about others.
2627
2628 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2629
2630 * c-common.c (get_source_date_epoch): Rename to
2631 cb_get_source_date_epoch.
2632 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2633 message when the parsing fails. Use error_at instead of fatal_error.
2634 * c-common.h (get_source_date_epoch): Rename to
2635 cb_get_source_date_epoch.
2636 * c-common.h (cb_get_source_date_epoch): Prototype.
2637 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2638 * c-common.h (c_omp_region_type): Remove trailing comma.
2639 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2640 * c-lex.c (c_lex_with_flags): Remove initialization of
2641 pfile->source_date_epoch.
2642
2643 2016-05-30 Jakub Jelinek <jakub@redhat.com>
2644
2645 PR c++/71349
2646 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2647 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2648 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2649 instead of C_OMP_CLAUSE_SPLIT_FOR.
2650
2651 2016-05-24 Richard Biener <rguenther@suse.de>
2652
2653 PR middle-end/70434
2654 PR c/69504
2655 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2656 (convert_vector_to_array_for_subscript): ... this.
2657 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2658 VIEW_CONVERT_EXPR to an array type. Rename to ...
2659 (convert_vector_to_array_for_subscript): ... this.
2660
2661 2016-05-12 Marek Polacek <polacek@redhat.com>
2662
2663 PR c/70756
2664 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2665 size_in_bytes and pass LOC to it.
2666
2667 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2668
2669 PR c/43651
2670 * c.opt (Wduplicate-decl-specifier): New option.
2671
2672 2016-05-11 Marek Polacek <polacek@redhat.com>
2673
2674 PR c++/71024
2675 * c-common.c (diagnose_mismatched_attributes): New function.
2676 * c-common.h (diagnose_mismatched_attributes): Declare.
2677
2678 2016-05-04 Marek Polacek <polacek@redhat.com>
2679
2680 * c.opt (Wdangling-else): New option.
2681
2682 2016-05-03 Marek Polacek <polacek@redhat.com>
2683
2684 PR c/70859
2685 * c-common.c (builtin_function_validate_nargs): Add location
2686 parameter. Use it.
2687 (check_builtin_function_arguments): Add location and arguments
2688 parameters. Use them.
2689 * c-common.h (check_builtin_function_arguments): Update declaration.
2690
2691 2016-05-03 Richard Biener <rguenther@suse.de>
2692
2693 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2694 allow call args to gimplify to SSA names.
2695
2696 2016-05-03 Marek Polacek <polacek@redhat.com>
2697
2698 * c-common.h (enum c_omp_region_type): Remove stray comma.
2699
2700 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2701
2702 * c-common.h (enum c_omp_region_type): Define.
2703
2704 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2705
2706 * c-common.c (shorten_compare): Use wi::to_wide.
2707
2708 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2709
2710 PR middle-end/70626
2711 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2712 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2713 reduction clauses in acc parallel loops.
2714
2715 2016-04-29 Marek Polacek <polacek@redhat.com>
2716
2717 PR c/70852
2718 * c-common.c (warn_for_memset): Check domain before accessing it.
2719
2720 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2721
2722 PR/69089
2723 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2724 "aligned" attribute.
2725
2726 2016-04-28 Jason Merrill <jason@redhat.com>
2727
2728 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2729
2730 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2731 Matthias Klose <doko@debian.org>
2732
2733 * c-common.c (get_source_date_epoch): New function, gets the environment
2734 variable SOURCE_DATE_EPOCH and parses it as long long with error
2735 handling.
2736 * c-common.h (get_source_date_epoch): Prototype.
2737 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2738
2739 2015-04-27 Ryan Burn <contact@rnburn.com>
2740
2741 PR c++/69024
2742 PR c++/68997
2743 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2744 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2745 external linkage.
2746 (cilk_detect_and_unwrap): Corresponding changes.
2747 (extract_free_variables): Don't extract free variables from
2748 AGGR_INIT_EXPR slot.
2749 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2750 (cilk_recognize_spawn): Likewise.
2751
2752 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2753
2754 * c.opt (Wmemset-elt-size): New option.
2755 * c-common.c (warn_for_memset): New function.
2756 * c-common.h (warn_for_memset): Declare.
2757
2758 2016-04-25 Jason Merrill <jason@redhat.com>
2759
2760 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2761 No longer static.
2762 * c-common.h: Declare it.
2763 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2764
2765 2016-04-22 Jason Merrill <jason@redhat.com>
2766
2767 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2768
2769 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2770
2771 PR c++/69363
2772 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2773 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2774
2775 2016-04-18 Michael Matz <matz@suse.de>
2776
2777 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2778 and SET_DECL_ALIGN.
2779
2780 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2781
2782 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2783 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2784 to incomplete types.
2785 (dump_nested_type): Remove redundant tests and tidy up.
2786 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2787 a type which is the typedef of an original type.
2788
2789 2016-04-15 Marek Polacek <polacek@redhat.com>
2790
2791 PR c/70651
2792 * c-common.c (build_va_arg): Change two asserts into errors and return
2793 error_mark_node.
2794
2795 2016-04-13 Marek Polacek <polacek@redhat.com>
2796
2797 PR c++/70639
2798 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2799 for switch statements, too.
2800
2801 2016-03-28 Jason Merrill <jason@redhat.com>
2802
2803 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2804
2805 2016-03-23 Marek Polacek <polacek@redhat.com>
2806
2807 PR c++/69884
2808 * c.opt (Wignored-attributes): New option.
2809
2810 2016-03-22 David Malcolm <dmalcolm@redhat.com>
2811
2812 PR c/69993
2813 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2814 diagnostic text, reversing the order of the warning and note so
2815 that they appear in source order.
2816
2817 2016-03-17 Marek Polacek <polacek@redhat.com>
2818
2819 PR c/69407
2820 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2821 operations.
2822
2823 2016-03-14 Jason Merrill <jason@redhat.com>
2824
2825 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2826
2827 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2828
2829 2016-03-09 Richard Biener <rguenther@suse.de>
2830
2831 PR c/70143
2832 * c-common.c (strict_aliasing_warning): Add back
2833 alias_sets_conflict_p check.
2834
2835 2016-03-08 Jason Merrill <jason@redhat.com>
2836
2837 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2838
2839 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2840
2841 PR c/68187
2842 * c-indentation.c (get_visual_column): Move code to determine next
2843 tab stop to...
2844 (next_tab_stop): ...this new function.
2845 (line_contains_hash_if): Delete function.
2846 (detect_preprocessor_logic): Delete function.
2847 (get_first_nws_vis_column): New function.
2848 (detect_intervening_unindent): New function.
2849 (should_warn_for_misleading_indentation): Replace call to
2850 detect_preprocessor_logic with a call to
2851 detect_intervening_unindent.
2852
2853 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2854
2855 PR c/68187
2856 * c-indentation.c (should_warn_for_misleading_indentation): When
2857 suppressing warnings about cases where the guard and body are on
2858 the same column, only use the first non-whitespace column in place
2859 of the guard token column when dealing with "else" clauses.
2860 When rejecting aligned BODY and NEXT, loosen the requirement
2861 from equality with the first non-whitespace of guard to simply
2862 that they not be indented relative to it.
2863
2864 2016-03-04 Richard Biener <rguenther@suse.de>
2865
2866 PR c++/70054
2867 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2868 instead of alias_sets_conflict_p.
2869
2870 2016-03-01 Marek Polacek <polacek@redhat.com>
2871
2872 PR c++/69795
2873 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2874 any DECL.
2875
2876 2016-02-22 Martin Sebor <msebor@redhat.com>
2877
2878 PR middle-end/69780
2879 * c-common.c (check_builtin_function_arguments): Validate and
2880 reject invalid arguments to __builtin_alloca_with_align.
2881
2882 2016-02-20 Mark Wielaard <mjw@redhat.com>
2883
2884 PR c/28901
2885 * c.opt (Wunused-const-variable): Turn into Alias for...
2886 (Wunused-const-variable=): New option.
2887
2888 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2889
2890 PR c++/69865
2891 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2892 here...
2893 (c_common_init_options): ...to here.
2894 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2895
2896 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR c++/69826
2899 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2900 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2901 flag_preprocess_only.
2902
2903 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2904
2905 PR c/69835
2906 * c.opt (Wnonnull-compare): Enable for -Wall.
2907
2908 2016-02-15 Jakub Jelinek <jakub@redhat.com>
2909
2910 PR c++/69797
2911 * c-common.c (sync_resolve_size): Diagnose too few arguments
2912 even when params is non-NULL empty vector.
2913
2914 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2915
2916 PR target/60410
2917 * c.opt (fshort-double): Remove.
2918
2919 2016-02-05 Martin Sebor <msebor@redhat.com>
2920
2921 PR c++/69662
2922 * c.opt (Warning options): Update -Wplacement-new to take
2923 an optional argument.
2924
2925 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR preprocessor/69543
2928 PR c/69558
2929 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2930 instead of loc to control_warning_option.
2931
2932 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2933
2934 * c.opt (fopenacc-dim=): New option.
2935
2936 2016-01-27 Ryan Burn <contact@rnburn.com>
2937
2938 PR cilkplus/69267
2939 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2940 gimplify_arg. Removed superfluous post_p argument.
2941 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2942 superfluous post_p argument.
2943 * c-gimplify.c (c_gimplify_expr): Likewise.
2944
2945 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2946
2947 PR other/69006
2948 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2949 pp_newline_and_flush with pp_flush.
2950
2951 2016-01-20 Martin Sebor <msebor@redhat.com>
2952
2953 PR c/69405
2954 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2955 an incompatible argument when the argument isn't a valid tree node.
2956
2957 2016-01-18 Jason Merrill <jason@redhat.com>
2958
2959 PR c++/68767
2960 * c-common.c (check_function_arguments_recurse): Fold the whole
2961 COND_EXPR, not just the condition.
2962
2963 2016-01-18 Tom de Vries <tom@codesourcery.com>
2964
2965 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2966 classify as loop clause.
2967
2968 2016-01-15 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR bootstrap/68271
2971 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2972 C++ FE no longer has limit on number of pragmas.
2973
2974 2015-01-14 Ryan Burn <contact@rnburn.com>
2975
2976 PR c++/69048
2977 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2978 to add missing cleanup point.
2979
2980 2016-01-14 David Malcolm <dmalcolm@redhat.com>
2981
2982 PR c++/68819
2983 * c-indentation.c (get_visual_column): Add location_t param.
2984 Handle the column number being zero by effectively disabling the
2985 warning, with an "inform".
2986 (should_warn_for_misleading_indentation): Add location_t argument
2987 for all uses of get_visual_column.
2988
2989 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2990
2991 PR c++/69029
2992 * c-indentation.c (should_warn_for_misleading_indentation):
2993 Don't warn about do-while statements.
2994
2995 2016-01-07 Martin Sebor <msebor@redhat.com>
2996
2997 PR c/68966
2998 * c-common.c (sync_resolve_size): Reject first argument when it's
2999 a pointer to _Bool.
3000
3001 2016-01-05 David Malcolm <dmalcolm@redhat.com>
3002
3003 PR c/69122
3004 * c-indentation.c (get_visual_column): Remove default argument.
3005 (should_warn_for_misleading_indentation): For the multiline case,
3006 update call to get_visual_column for next_stmt_exploc so that it
3007 captures the location of the first non-whitespace character in the
3008 relevant line. Don't issue warnings if there is non-whitespace
3009 before the next statement.
3010
3011 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3012
3013 Update copyright years.
3014
3015 2015-12-21 David Malcolm <dmalcolm@redhat.com>
3016
3017 * c-common.c (binary_op_error): Convert first param from
3018 location_t to rich_location * and use it when emitting an error.
3019 * c-common.h (binary_op_error): Convert first param from
3020 location_t to rich_location *.
3021
3022 2015-12-16 David Malcolm <dmalcolm@redhat.com>
3023
3024 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3025 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3026
3027 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3028
3029 * c-common.c (c_common_attribute_table): Handle "omp declare target
3030 link" attribute.
3031
3032 2015-12-14 Jakub Jelinek <jakub@redhat.com>
3033
3034 PR c/68833
3035 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3036
3037 2014-12-12 Tobias Burnus <burnus@net-b.de>
3038
3039 PR fortran/68815
3040 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3041 specifiers (%d, %i,%u and %c).
3042
3043 2015-12-10 David Malcolm <dmalcolm@redhat.com>
3044
3045 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3046
3047 2015-12-08 Jakub Jelinek <jakub@redhat.com>
3048
3049 PR c/48088
3050 PR c/68657
3051 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3052 * c-pragma.c (handle_pragma_diagnostic): Adjust
3053 control_warning_option caller.
3054
3055 2015-12-07 David Malcolm <dmalcolm@redhat.com>
3056
3057 * c-common.c (c_cpp_error): Update for change to
3058 rich_location::set_range.
3059
3060 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
3061
3062 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3063 shifting 1 out of the sign bit.
3064
3065 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3066
3067 * c-common.c (c_common_attribute_table[]): Update max arguments
3068 count for "simd" attribute.
3069 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3070
3071 2015-12-03 Jakub Jelinek <jakub@redhat.com>
3072
3073 PR preprocessor/57580
3074 * c-ppoutput.c (print): Change printed field to bool.
3075 Move src_file last for smaller padding.
3076 (init_pp_output): Set print.printed to false instead of 0.
3077 (scan_translation_unit): Fix up formatting. Set print.printed
3078 to true after printing something other than newline.
3079 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3080 (maybe_print_line_1): Set print.printed to false instead of 0.
3081 (print_line_1): Likewise.
3082 (do_line_change): Set print.printed to true instead of 1.
3083 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3084 dump_macro): Set print.printed to false after printing newline.
3085
3086 2015-12-02 Jason Merrill <jason@redhat.com>
3087
3088 * c-common.c (fold_for_warn): New.
3089 (warn_logical_operator, warn_tautological_cmp)
3090 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3091
3092 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3093 (c_fully_fold_internal, decl_constant_value_for_optimization):
3094 Move to c/c-fold.c.
3095 * c-common.h: Don't declare decl_constant_value_for_optimization.
3096
3097 2015-12-02 Joseph Myers <joseph@codesourcery.com>
3098
3099 PR c/68162
3100 * c-common.h (c_build_qualified_type): Add extra default
3101 arguments.
3102
3103 2015-12-01 Julian Brown <julian@codesourcery.com>
3104 Cesar Philippidis <cesar@codesourcery.com>
3105 James Norris <James_Norris@mentor.com>
3106
3107 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3108 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3109 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3110
3111 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3112
3113 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3114 (decl_sloc_common): Delete and move bulk of processing to...
3115 (decl_sloc): ...here.
3116 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3117 (dump_ada_double_name): Remove S parameter and compute the suffix.
3118 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3119 element type and deal with an anonymous one.
3120 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3121 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3122 and remove reference to QUAL_UNION_TYPE.
3123 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3124 (dump_nested_type): ...here. New function extracted from above.
3125 Generate a full declaration for anonymous element type of arrays.
3126 (print_ada_declaration): Really skip anonymous declarations. Remove
3127 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3128 Clean up processing of declarations of array types and objects.
3129 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3130 Remove obsolete code and tidy up.
3131
3132 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3133
3134 PR c/67581
3135 * c-common.c (handle_transparent_union_attribute): Update
3136 also type variants.
3137
3138 2015-11-27 Martin Liska <mliska@suse.cz>
3139
3140 PR c++/68312
3141 * array-notation-common.c (cilkplus_extract_an_triplets):
3142 Release vector of vectors.
3143 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3144
3145 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3146
3147 PR c++/68527
3148 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3149 (print_ada_struct_decl): Likewise.
3150
3151 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3152
3153 PR c++/68001
3154 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3155 * cilk.c (recognize_spawn): Determine location in a more precise
3156 way.
3157
3158 2015-11-19 Jason Merrill <jason@redhat.com>
3159
3160 * c-common.c (shorten_compare): But look through macros from
3161 system headers.
3162
3163 2015-11-18 Jason Merrill <jason@redhat.com>
3164
3165 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3166 non-constant operand comes from a macro.
3167
3168 2015-11-17 Jason Merrill <jason@redhat.com>
3169
3170 PR bootstrap/68346
3171 * c-common.c (warn_tautological_cmp): Fold before checking for
3172 constants.
3173
3174 2015-11-16 Marek Polacek <polacek@redhat.com>
3175
3176 PR c++/68362
3177 * c-common.c (check_case_bounds): Fold low and high cases.
3178
3179 2015-11-16 Marek Polacek <polacek@redhat.com>
3180
3181 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3182 * c-common.c (c_common_get_alias_set): Likewise.
3183 (handle_visibility_attribute): Likewise.
3184
3185 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3186
3187 * c-common.c (handle_simd_attribute): New.
3188 (struct attribute_spec): Add entry for "simd".
3189 (handle_simd_attribute): New.
3190
3191 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3192
3193 * c-lex.c (interpret_float): Use fold_convert.
3194
3195 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3196
3197 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3198 and store it on the result.
3199 * c-opts.c (c_common_init_options): Set
3200 global_dc->colorize_source_p.
3201
3202 2015-11-12 James Norris <jnorris@codesourcery.com>
3203 Joseph Myers <joseph@codesourcery.com>
3204
3205 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
3206 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3207 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3208 PRAGMA_OACC_CLAUSE_LINK.
3209
3210 2015-11-11 Marek Polacek <polacek@redhat.com>
3211
3212 PR c/68107
3213 PR c++/68266
3214 * c-common.c (valid_array_size_p): New function.
3215 * c-common.h (valid_array_size_p): Declare.
3216
3217 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
3218
3219 PR bootstrap/68271
3220 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3221
3222 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
3223
3224 * array-notation-common.c: Remove unused header files.
3225 * c-ada-spec.c: Likewise.
3226 * c-cilkplus.c: Likewise.
3227 * c-common.c: Likewise.
3228 * c-cppbuiltin.c: Likewise.
3229 * c-dump.c: Likewise.
3230 * c-format.c: Likewise.
3231 * c-gimplify.c: Likewise.
3232 * c-indentation.c: Likewise.
3233 * c-lex.c: Likewise.
3234 * c-omp.c: Likewise.
3235 * c-opts.c: Likewise.
3236 * c-pch.c: Likewise.
3237 * c-ppoutput.c: Likewise.
3238 * c-pragma.c: Likewise.
3239 * c-pretty-print.c: Likewise.
3240 * c-semantics.c: Likewise.
3241 * c-ubsan.c: Likewise.
3242 * cilk.c: Likewise.
3243 * stub-objc.c: Likewise.
3244
3245 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3246 Cesar Philippidis <cesar@codesourcery.com>
3247 James Norris <jnorris@codesourcery.com>
3248 Julian Brown <julian@codesourcery.com>
3249 Nathan Sidwell <nathan@codesourcery.com>
3250
3251 * c-pragma.c (oacc_pragmas): Add "routine".
3252 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3253
3254 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3255
3256 * c-common.c (c_common_attributes): Add scalar_storage_order.
3257 (handle_scalar_storage_order_attribute): New function.
3258 * c-pragma.c (global_sso): New variable.
3259 (maybe_apply_pragma_scalar_storage_order): New function.
3260 (handle_pragma_scalar_storage_order): Likewise.
3261 (init_pragma): Register scalar_storage_order.
3262 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3263 * c.opt (Wscalar-storage-order): New warning.
3264 (fsso-struct=): New option.
3265
3266 2015-11-08 Martin Sebor <msebor@redhat.com>
3267
3268 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3269
3270 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3271
3272 * c-common.c: Don't undef DEF_BUILTIN.
3273
3274 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3275
3276 * c-common.c (c_cpp_error): Convert parameter from location_t to
3277 rich_location *. Eliminate the "column_override" parameter and
3278 the call to diagnostic_override_column.
3279 Update the "done_lexing" clause to set range 0
3280 on the rich_location, rather than overwriting a location_t.
3281 * c-common.h (c_cpp_error): Convert parameter from location_t to
3282 rich_location *. Eliminate the "column_override" parameter.
3283
3284 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3285 Thomas Schwinge <thomas@codesourcery.com>
3286 James Norris <jnorris@codesourcery.com>
3287
3288 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3289 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3290 clauses with parallel and kernels and loops.
3291 * c-pragma.h (enum pragma_omp_clause): Add entries for
3292 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3293 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3294 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3295 INDEPENDENT,SEQ}.
3296 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3297
3298 2015-11-05 Martin Sebor <msebor@redhat.com>
3299
3300 PR c++/67942
3301 * c.opt (-Wplacement-new): New option.
3302
3303 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3304
3305 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3306 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3307 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3308 save_expr or create_tmp_var* if TEST is true.
3309 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3310 Don't call add_stmt here.
3311 (struct c_omp_check_loop_iv_data): New type.
3312 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3313 c_omp_check_loop_iv_exprs): New functions.
3314 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3315 distribute.
3316 (c_omp_declare_simd_clauses_to_numbers): Change
3317 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3318 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3319 from numbers to PARM_DECLs.
3320
3321 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3322
3323 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3324 flag_checking.
3325
3326 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
3327
3328 PR c++-common/67882
3329 * c-common.h (fold_offsetof_1): Add argument.
3330 * c-common.c (fold_offsetof_1): Diagnose more invalid
3331 offsetof expressions that reference elements past the end of
3332 an array.
3333
3334 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3335 Chung-Lin Tang <cltang@codesourcery.com>
3336
3337 * c-pragma.c (oacc_pragmas): Add "atomic".
3338 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3339
3340 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3341
3342 * c-common.c (handle_target_clones_attribute): New.
3343 (c_common_attribute_table): Add handle_target_clones_attribute.
3344 (handle_always_inline_attribute): Add check on target_clones attribute.
3345 (handle_target_attribute): Ditto.
3346
3347 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3348
3349 * array-notation-common.c: Reorder #include's and remove duplicates.
3350 * c-ada-spec.c: Likewise.
3351 * c-cilkplus.c: Likewise.
3352 * c-common.c: Likewise.
3353 * c-cppbuiltin.c: Likewise.
3354 * c-dump.c: Likewise.
3355 * c-format.c: Likewise.
3356 * c-gimplify.c: Likewise.
3357 * c-indentation.c: Likewise.
3358 * c-lex.c: Likewise.
3359 * c-omp.c: Likewise.
3360 * c-opts.c: Likewise.
3361 * c-pch.c: Likewise.
3362 * c-ppoutput.c: Likewise.
3363 * c-pragma.c: Likewise.
3364 * c-pretty-print.c: Likewise.
3365 * c-semantics.c: Likewise.
3366 * c-ubsan.c: Likewise.
3367 * cilk.c: Likewise.
3368 * stub-objc.c: Likewise.
3369
3370 2015-10-28 Jason Merrill <jason@redhat.com>
3371
3372 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3373
3374 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3375 James Norris <jnorris@codesourcery.com>
3376 Cesar Philippidis <cesar@codesourcery.com>
3377
3378 PR c/64765
3379 PR c/64880
3380 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3381 * c-omp.c (c_oacc_split_loop_clauses): New function.
3382
3383 2015-10-21 Martin Sebor <msebor@redhat.com>
3384
3385 PR driver/68043
3386 * c.opt: End each sentence that describes an option with a period.
3387
3388 2015-10-20 Marek Polacek <polacek@redhat.com>
3389
3390 * array-notation-common.c (is_cilkplus_vector_p): Define.
3391 * c-common.h (is_cilkplus_vector_p): Declare.
3392
3393 2015-10-20 Marek Polacek <polacek@redhat.com>
3394
3395 * c.opt (std=gnu++11): Do not describe as experimental.
3396 (std=gnu++14): Likewise.
3397
3398 2015-10-19 Jason Merrill <jason@redhat.com>
3399
3400 * c-cppbuiltin.c (c_cpp_builtins): Define
3401 __cpp_nontype_template_args.
3402
3403 2015-10-19 Jason Merrill <jason@redhat.com>
3404
3405 * c-cppbuiltin.c (c_cpp_builtins): Define
3406 __cpp_enumerator_attributes, __cpp_fold_expressions,
3407 __cpp_unicode_characters.
3408
3409 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3410 Aldy Hernandez <aldyh@redhat.com>
3411
3412 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3413 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3414 (c_define_builtins): Likewise.
3415 * c-common.h (enum c_omp_clause_split): Add
3416 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3417 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3418 (c_finish_omp_for): Add ORIG_DECLV argument.
3419 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3420 201511 instead of 201307.
3421 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3422 OMP_CRITICAL_CLAUSES to it.
3423 (c_finish_omp_ordered): Add CLAUSES argument, set
3424 OMP_ORDERED_CLAUSES to it.
3425 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3426 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3427 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3428 constructs and new OpenMP 4.5 clauses. Clear
3429 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3430 verification code.
3431 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3432 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3433 (enum pragma_omp_clause): Add
3434 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3435 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3436
3437 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3438
3439 * c-lex.c (interpret_float): Use real_equal instead of
3440 REAL_VALUES_EQUAL.
3441
3442 2015-10-04 Jason Merrill <jason@redhat.com>
3443
3444 Implement N4514, C++ Extensions for Transactional Memory.
3445 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3446 (c_common_attribute_table): Add transaction_safe_dynamic.
3447 transaction_safe now affects type identity.
3448 (handle_tm_attribute): Handle transaction_safe_dynamic.
3449 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3450 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3451 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3452 (D_TRANSMEM): New.
3453 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3454 * c-pretty-print.c (pp_c_attributes_display): Don't print
3455 transaction_safe in C++.
3456
3457 2015-10-02 Marek Polacek <polacek@redhat.com>
3458
3459 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3460
3461 2015-10-02 Marek Polacek <polacek@redhat.com>
3462
3463 PR c/64249
3464 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3465 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3466 * c.opt (Wduplicated-cond): New option.
3467
3468 2015-10-01 Joseph Myers <joseph@codesourcery.com>
3469
3470 * c.opt (std=c11): Do not describe as experimental.
3471 (std=gnu11): Likewise.
3472 (std=iso9899:2011): Likewise.
3473
3474 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3475
3476 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3477 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3478
3479 2015-09-25 Marek Polacek <polacek@redhat.com>
3480
3481 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3482 (ubsan_instrument_shift): Likewise.
3483
3484 2015-09-25 Marek Polacek <polacek@redhat.com>
3485
3486 PR sanitizer/64906
3487 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3488
3489 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3490
3491 * c-indentation.c (should_warn_for_misleading_indentation):
3492 Compare next_stmt_vis_column with guard_line_first_nws instead
3493 of with guard_line_vis_column.
3494
3495 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3496
3497 PR c/49654
3498 PR c/49655
3499 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3500 options and options not valid for the current language.
3501
3502 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3503
3504 * c-indentation.c (should_warn_for_misleading_indentation):
3505 Float out and consolidate the calls to get_visual_column that
3506 are passed guard_exploc as an argument. Compare
3507 next_stmt_vis_column with guard_line_first_nws instead of with
3508 body_line_first_nws.
3509
3510 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3511
3512 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3513 Wnamespaces): New C++ warnings.
3514
3515 2015-09-22 Jason Merrill <jason@redhat.com>
3516
3517 * c-common.h (abi_compat_version_crosses): New.
3518 (warn_abi_version): Declare.
3519 * c-common.c: Define it.
3520 * c-opts.c (c_common_post_options): Handle it.
3521 flag_abi_compat_version defaults to 8.
3522
3523 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3524
3525 Complete the implementation of N4230, Nested namespace definition.
3526 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3527 __cpp_nested_namespace_definitions.
3528
3529 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3530
3531 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3532
3533 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3534
3535 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3536 when warning.
3537 * c-pragma.h (pragma_lex): Add optional loc argument.
3538
3539 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3540
3541 * c-format.c (check_format_arg): Adjust to use common block size in all
3542 object pools.
3543
3544 2015-09-15 David Malcolm <dmalcolm@redhat.com>
3545
3546 * c-format.c (location_from_offset): Update for change in
3547 signature of location_get_source_line.
3548 * c-indentation.c (get_visual_column): Likewise.
3549 (line_contains_hash_if): Likewise.
3550
3551 2015-09-14 Marek Polacek <polacek@redhat.com>
3552
3553 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3554 setting various warnings.
3555
3556 2015-09-14 Marek Polacek <polacek@redhat.com>
3557
3558 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3559 a negative value.
3560
3561 2015-09-11 Mark Wielaard <mjw@redhat.com>
3562
3563 PR c/28901
3564 * c.opt (Wunused-variable): Option from common.opt.
3565 (Wunused-const-variable): New option.
3566
3567 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3568
3569 PR c++/53184
3570 * c.opt ([Wsubobject-linkage]): Add.
3571
3572 2015-09-03 Martin Sebor <msebor@redhat.com>
3573
3574 PR c/66516
3575 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3576 functions.
3577 * c-common.c (reject_gcc_builtin): Define.
3578
3579 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3580
3581 PR middle-end/60586
3582 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3583 prototype.
3584 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3585 cilk_gimplify_call_params_in_spawned_fn.
3586 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3587 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3588 unwrapping.
3589
3590 2015-08-25 Marek Polacek <polacek@redhat.com>
3591
3592 PR middle-end/67330
3593 * c-common.c (handle_weak_attribute): Don't check whether the
3594 visibility can be changed here.
3595
3596 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3597
3598 * c-lex.c (c_lex_with_flags): Use explicit locations.
3599
3600 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3601
3602 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3603 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3604
3605 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3606
3607 PR middle-end/36757
3608 * c-common.c (check_builtin_function_arguments): Add check
3609 for BUILT_IN_SIGNBIT argument.
3610
3611 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3612
3613 PR c++/67160
3614 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3615 in c++1z mode.
3616
3617 2015-08-17 Marek Polacek <polacek@redhat.com>
3618
3619 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3620 with whitespaces before qualifier names.
3621
3622 2015-08-12 Marek Polacek <polacek@redhat.com>
3623
3624 PR c++/55095
3625 * c-common.c (maybe_warn_shift_overflow): Properly handle
3626 left-shifting 1 into the sign bit.
3627
3628 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3629
3630 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3631
3632 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3633 Braden Obrzut <admin@maniacsvault.net>
3634 Jason Merrill <jason@redhat.com>
3635
3636 Add C++ Concepts TS support.
3637 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3638 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3639 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3640 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3641 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3642 * c.opt (fconcepts): New.
3643
3644 2015-08-02 Martin Sebor <msebor@redhat.com>
3645
3646 * c.opt (-Wframe-address): New warning option.
3647
3648 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3649
3650 * c-indentation.c (should_warn_for_misleading_indentation):
3651 Improve heuristics.
3652
3653 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3654
3655 * c-indentation.c (get_visual_column): Add parameter first_nws,
3656 use it. Update comment documenting the function.
3657 (is_first_nonwhitespace_on_line): Remove.
3658 (should_warn_for_misleading_indentation): Replace usage of
3659 of is_first_nonwhitespace_on_line with get_visual_column.
3660
3661 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3662
3663 * c-indentation.h (struct token_indent_info): Define.
3664 (get_token_indent_info): Define.
3665 (warn_for_misleading_information): Declare.
3666 * c-common.h (warn_for_misleading_information): Remove.
3667 * c-identation.c (warn_for_misleading_indentation):
3668 Change declaration to take three token_indent_infos. Adjust
3669 accordingly.
3670 * c-identation.c (should_warn_for_misleading_indentation):
3671 Likewise. Bail out early if the body is a compound statement.
3672 (guard_tinfo_to_string): Define.
3673
3674 2015-07-30 Jason Merrill <jason@redhat.com>
3675
3676 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3677 '*' for reference decay.
3678
3679 2015-07-30 Marek Polacek <polacek@redhat.com>
3680
3681 * c-common.c (warn_tautological_cmp): Bail for float types.
3682
3683 2015-07-27 Marek Polacek <polacek@redhat.com>
3684
3685 PR bootstrap/67030
3686 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3687
3688 2015-07-27 Marek Polacek <polacek@redhat.com>
3689
3690 PR c++/66555
3691 PR c/54979
3692 * c-common.c (find_array_ref_with_const_idx_r): New function.
3693 (warn_tautological_cmp): New function.
3694 * c-common.h (warn_tautological_cmp): Declare.
3695 * c.opt (Wtautological-compare): New option.
3696
3697 2015-07-23 Marek Polacek <polacek@redhat.com>
3698
3699 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3700 (ubsan_instrument_shift): Likewise.
3701
3702 2015-07-23 Marek Polacek <polacek@redhat.com>
3703
3704 PR sanitizer/66908
3705 * c-ubsan.c: Include gimplify.h.
3706 (ubsan_instrument_division): Unshare OP0 and OP1.
3707 (ubsan_instrument_shift): Likewise.
3708
3709 2015-07-20 Marek Polacek <polacek@redhat.com>
3710 Richard Sandiford <richard.sandiford@arm.com>
3711
3712 PR c++/55095
3713 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3714 Use EXPR_LOC_OR_LOC.
3715 (maybe_warn_shift_overflow): New function.
3716 * c-common.h (maybe_warn_shift_overflow): Declare.
3717 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3718 * c.opt (Wshift-overflow): New option.
3719
3720 2015-07-16 Martin Liska <mliska@suse.cz>
3721
3722 * c-format.c (static void check_format_info_main): Use
3723 object_allocator instead of pool_allocator.
3724 (check_format_arg): Likewise.
3725 (check_format_info_main): Likewise.
3726
3727 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3728
3729 * c-opts.c: Remove multiline #include comment.
3730
3731 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3732
3733 * c-common.c: Fix double word typos.
3734
3735 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3736
3737 * c-ada-spec.h (cpp_operation): Revert latest change.
3738 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3739 constructors and destructors.
3740
3741 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3742
3743 * c-common.h: Adjust includes for flags.h changes.
3744 * stub-objc.c: Likewise.
3745
3746 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3747
3748 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3749 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3750
3751 2015-07-08 Jakub Jelinek <jakub@redhat.com>
3752
3753 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3754 are to be removed, return NULL rather than original clauses list.
3755
3756 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
3757
3758 * array-notation-common.c: Adjust includes.
3759 * c-ada-spec.c: Likewise.
3760 * c-cilkplus.c: Likewise.
3761 * c-common.h: Likewise.
3762 * c-cppbuiltin.c: Likewise.
3763 * c-dump.c: Likewise.
3764 * c-format.c: Likewise.
3765 * c-gimplify.c: Likewise.
3766 * c-indentation.c: Likewise.
3767 * c-lex.c: Likewise.
3768 * c-omp.c: Likewise.
3769 * c-opts.c: Likewise.
3770 * c-pch.c: Likewise.
3771 * c-ppoutput.c: Likewise.
3772 * c-pragma.c: Likewise.
3773 * c-pretty-print.c: Likewise.
3774 * c-semantics.c: Likewise.
3775 * c-ubsan.c: Likewise.
3776 * cilk.c: Likewise.
3777 * stub-objc.c: Likewise.
3778
3779 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3780
3781 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3782 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3783
3784 2015-07-01 Jason Merrill <jason@redhat.com>
3785
3786 * c-common.h (D_CXX11): Rename from D_CXX0X.
3787 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3788 * c-common.c: Adjust.
3789
3790 * c-opts.c (c_common_post_options): Default to C++14.
3791
3792 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3793
3794 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3795
3796 Implement N4197 - Adding u8 character literals
3797 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3798 CPP_CHAR.
3799 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3800 CPP_UTF8CHAR_USERDEF tokens.
3801 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3802 and CPP_UTF8CHAR tokens.
3803 (lex_charconst): Treat CPP_UTF8CHAR token.
3804
3805 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3806
3807 PR fortran/66605
3808 * c-common.c (do_warn_unused_parameter): Move here.
3809 * c-common.h (do_warn_unused_parameter): Declare.
3810
3811 2015-06-29 Marek Polacek <polacek@redhat.com>
3812
3813 PR c/66322
3814 * c-common.c (check_case_bounds): Add bool * parameter. Set
3815 OUTSIDE_RANGE_P.
3816 (c_add_case_label): Add bool * parameter. Pass it down to
3817 check_case_bounds.
3818 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3819 warning here.
3820 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3821 declarations.
3822
3823 2015-06-27 Marek Polacek <polacek@redhat.com>
3824
3825 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3826 or VECTOR_INTEGER_TYPE_P throughout.
3827 * c-gimplify.c: Likewise.
3828
3829 2015-06-26 Marek Polacek <polacek@redhat.com>
3830
3831 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3832 * c-common.c (c_fully_fold_internal): Likewise.
3833 (c_alignof_expr): Likewise.
3834 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3835 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3836 * cilk.c (create_parm_list): Likewise.
3837
3838 2015-06-26 Marek Polacek <polacek@redhat.com>
3839
3840 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3841
3842 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3843
3844 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3845 * c-gimplify.c: Likewise.
3846 * c-pragma.c: Likewise.
3847 * c-ubsan.c: Likewise.
3848 * cilk.c: Likewise.
3849
3850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3851
3852 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3853 ggc_hasher.
3854
3855 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3856
3857 * cilk.c: Move calls.h after tm.h in the include chain.
3858
3859 2015-06-25 Marek Polacek <polacek@redhat.com>
3860
3861 * array-notation-common.c: Use VAR_P throughout.
3862 * c-ada-spec.c: Likewise.
3863 * c-common.c: Likewise.
3864 * c-format.c: Likewise.
3865 * c-gimplify.c: Likewise.
3866 * c-omp.c: Likewise.
3867 * c-pragma.c: Likewise.
3868 * c-pretty-print.c: Likewise.
3869 * cilk.c: Likewise.
3870
3871 2015-06-25 Marek Polacek <polacek@redhat.com>
3872
3873 * cilk.c (extract_free_variables): Use is_global_var.
3874
3875 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3876
3877 * c-common.c: Don't include target-def.h.
3878
3879 2015-06-23 Marek Polacek <polacek@redhat.com>
3880
3881 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3882 when comparing INTEGER_CSTs.
3883
3884 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3885
3886 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3887 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3888 (dump_ada_template): Skip partially specialized types.
3889
3890 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3891
3892 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3893 swapping.
3894
3895 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3896
3897 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3898 * c-ada-spec.c: Likewise.
3899 * c-cilkplus.c: Likewise.
3900 * c-common.c: Likewise.
3901 * c-common.h: Likewise.
3902 * c-cppbuiltin.c: Likewise.
3903 * c-dump.c: Likewise.
3904 * c-format.c: Likewise.
3905 * c-gimplify.c: Likewise.
3906 * c-indentation.c: Likewise.
3907 * c-lex.c: Likewise.
3908 * c-omp.c: Likewise.
3909 * c-opts.c: Likewise.
3910 * c-pch.c: Likewise.
3911 * c-ppoutput.c: Likewise.
3912 * c-pragma.c: Likewise.
3913 * c-pretty-print.c: Likewise.
3914 * c-semantics.c: Likewise.
3915 * c-ubsan.c: Likewise.
3916 * cilk.c: Likewise.
3917 * stub-objc.c: Likewise.
3918
3919 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3920
3921 PR c++/65168
3922 * c-common.c (c_common_truthvalue_conversion): Warn when
3923 converting an address of a reference to a truth value.
3924
3925 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
3926
3927 * array-notation-common.c : Adjust include files.
3928 * c-ada-spec.c : Likewise.
3929 * c-cilkplus.c : Likewise.
3930 * c-common.c : Likewise.
3931 * c-common.h : Likewise.
3932 * c-cppbuiltin.c : Likewise.
3933 * c-dump.c : Likewise.
3934 * c-format.c : Likewise.
3935 * c-gimplify.c : Likewise.
3936 * c-indentation.c : Likewise.
3937 * c-lex.c : Likewise.
3938 * c-omp.c : Likewise.
3939 * c-opts.c : Likewise.
3940 * c-pch.c : Likewise.
3941 * c-ppoutput.c : Likewise.
3942 * c-pragma.c : Likewise.
3943 * c-pretty-print.c : Likewise.
3944 * c-semantics.c : Likewise.
3945 * c-ubsan.c : Likewise.
3946 * cilk.c : Likewise.
3947 * stub-objc.c : Likewise.
3948
3949 2015-06-08 Marek Polacek <polacek@redhat.com>
3950
3951 PR c/66415
3952 * c-format.c (location_from_offset): Return LOC if LINE is null.
3953
3954 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3955
3956 * c-common.h (c_parse_final_cleanups): New prototype.
3957 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3958
3959 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3960
3961 * c-common.c (noplt): New attribute.
3962 (handle_noplt_attribute): New handler.
3963
3964 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3965
3966 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3967 * c-ada-spec.c: Likewise.
3968 * c-cilkplus.c: Likewise.
3969 * c-common.c: Likewise.
3970 * c-common.h: Likewise.
3971 * c-cppbuiltin.c: Likewise.
3972 * c-dump.c: Likewise.
3973 * c-format.c: Likewise.
3974 * c-gimplify.c: Likewise.
3975 * c-indentation.c: Likewise.
3976 * c-lex.c: Likewise.
3977 * c-omp.c: Likewise.
3978 * c-opts.c: Likewise.
3979 * c-pch.c: Likewise.
3980 * c-ppoutput.c: Likewise.
3981 * c-pragma.c: Likewise.
3982 * c-pretty-print.c: Likewise.
3983 * c-semantics.c: Likewise.
3984 * c-ubsan.c: Likewise.
3985 * cilk.c: Likewise.
3986 * stub-objc.c: Likewise.
3987
3988 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3989
3990 PR c/66220:
3991 * c-indentation.c (should_warn_for_misleading_indentation): Use
3992 expand_location rather than expand_location_to_spelling_point.
3993 Don't warn if the guarding statement is more indented than the
3994 next/body stmts.
3995
3996 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3997
3998 * c-indentation.c (warn_for_misleading_indentation): Bail out
3999 immediately if -Wmisleading-indentation isn't enabled.
4000
4001 2015-06-01 Martin Liska <mliska@suse.cz>
4002
4003 * c-format.c (check_format_arg):Use new type-based pool allocator.
4004 (check_format_info_main) Likewise.
4005
4006 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4007
4008 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4009 (has_nontrivial_methods): Likewise.
4010
4011 2015-05-25 Marek Polacek <polacek@redhat.com>
4012
4013 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4014
4015 2015-05-22 Marek Polacek <polacek@redhat.com>
4016
4017 PR c/47043
4018 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4019
4020 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4021
4022 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4023 STACK_GROWS_DOWNWARD.
4024
4025 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4026
4027 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4028 STACK_GROWS_DOWNWARD rather than if it is defined.
4029
4030 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4031
4032 PR c/52952
4033 * c-format.c (location_column_from_byte_offset): New.
4034 (location_from_offset): New.
4035 (struct format_wanted_type): Add offset_loc field.
4036 (check_format_info): Move handling of location for extra arguments
4037 closer to the point of warning.
4038 (check_format_info_main): Pass the result of location_from_offset
4039 to warning_at.
4040 (format_type_warning): Pass the result of location_from_offset
4041 to warning_at.
4042
4043 2015-05-20 Marek Polacek <polacek@redhat.com>
4044
4045 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4046
4047 2015-05-20 Marek Polacek <polacek@redhat.com>
4048
4049 * c-ada-spec.c (dump_sloc): Use DECL_P.
4050
4051 2015-05-20 Marek Polacek <polacek@redhat.com>
4052
4053 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4054 * c-common.c: Likewise.
4055
4056 2015-05-19 David Malcolm <dmalcolm@redhat.com>
4057
4058 * c-common.h (fe_file_change): Strengthen param from
4059 const line_map * to const line_map_ordinary *.
4060 (pp_file_change): Likewise.
4061 * c-lex.c (fe_file_change): Likewise.
4062 (cb_define): Use linemap_check_ordinary when invoking
4063 SOURCE_LINE.
4064 (cb_undef): Likewise.
4065 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4066 invoking cb_file_change.
4067 (c_finish_options): Likewise.
4068 (push_command_line_include): Likewise.
4069 (cb_file_change): Strengthen param "new_map" from
4070 const line_map * to const line_map_ordinary *.
4071 * c-ppoutput.c (cb_define): Likewise for local "map".
4072 (pp_file_change): Likewise for param "map" and local "from".
4073
4074 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4075
4076 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4077
4078 2015-05-18 Tom de Vries <tom@codesourcery.com>
4079
4080 * c-common.c (build_va_arg_1): New function.
4081 (build_va_arg): Add address operator to va_list operand if necessary.
4082
4083 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4084
4085 PR c/48956
4086 * c-common.c (int_safely_convertible_to_real_p): Define.
4087 (unsafe_conversion_p): Check conversions involving complex types.
4088 (conversion_warning): Add new warning message for conversions which
4089 discard imaginary component.
4090 * c-common.h: (enum conversion_safety): Add new enumerator for such
4091 conversions.
4092
4093 2015-05-14 Marek Polacek <polacek@redhat.com>
4094
4095 PR c/66066
4096 PR c/66127
4097 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4098 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4099 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4100 use it. If FOR_INT_CONST, require that all evaluated operands be
4101 INTEGER_CSTs.
4102
4103 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4104
4105 * c-common.h (warn_for_misleading_indentation): New prototype.
4106 * c-indentation.c: New file.
4107 * c.opt (Wmisleading-indentation): New option.
4108
4109 2015-05-12 Tom de Vries <tom@codesourcery.com>
4110
4111 PR tree-optimization/66010
4112 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4113
4114 2015-05-09 Jason Merrill <jason@redhat.com>
4115
4116 * c-opts.c (c_common_post_options): Also clear
4117 cpp_opts->cpp_warn_cxx11_compat.
4118
4119 * c-common.h (enum cxx_dialect): Add cxx_unset.
4120 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4121 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4122
4123 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4124 (std=gnu++0x): Mark as Undocumented.
4125 (std=gnu++1y): Add deprecated message.
4126
4127 2015-05-08 Jason Merrill <jason@redhat.com>
4128
4129 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4130 * c-opts.c: Adjust.
4131
4132 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4133
4134 2015-05-08 Marek Polacek <polacek@redhat.com>
4135
4136 PR c/64918
4137 * c.opt (Woverride-init-side-effects): New option.
4138
4139 2015-05-07 Marek Polacek <polacek@redhat.com>
4140
4141 PR c/65179
4142 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4143 negative value.
4144 * c.opt (Wshift-negative-value): New option.
4145 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4146 when -Wextra and C99/C++11 mode.
4147
4148 2015-05-07 Marek Polacek <polacek@redhat.com>
4149 Martin Uecker <uecker@eecs.berkeley.edu>
4150
4151 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4152 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4153
4154 2015-05-05 Jason Merrill <jason@redhat.com>
4155
4156 * c.opt (Wterminate): New.
4157
4158 2015-04-30 Marek Polacek <polacek@redhat.com>
4159
4160 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4161 require that the non-constant be of a boolean type.
4162
4163 2015-04-29 Josh Triplett <josh@joshtriplett.org>
4164
4165 * c-common.c (handle_section_attribute): Refactor to reduce
4166 nesting and distinguish between error cases.
4167
4168 2015-04-29 Marek Polacek <polacek@redhat.com>
4169
4170 PR c/64610
4171 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4172 with 0/1.
4173
4174 2015-04-29 Jakub Jelinek <jakub@redhat.com>
4175
4176 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4177 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4178 HOST_BITS_PER_WIDE_INT.
4179
4180 2015-04-28 Tom de Vries <tom@codesourcery.com>
4181
4182 PR tree-optimization/65887
4183 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4184
4185 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
4186 Pierre-Marie de Rodat <derodat@adacore.com>
4187
4188 * c-ada-spec.c (in_function): Delete.
4189 (dump_generic_ada_node): Do not change in_function and remove the
4190 redundant code dealing with it.
4191 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4192 (print_ada_methods): Output the static member functions in a nested
4193 package after the regular methods as well as associated renamings.
4194
4195 2015-04-24 Marek Polacek <polacek@redhat.com>
4196
4197 PR c/65830
4198 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4199 and OPT_Wshift_count_overflow.
4200
4201 PR c/63357
4202 * c-common.c (warn_logical_operator): Warn if the operands have the
4203 same expressions.
4204
4205 2015-04-24 Marek Polacek <polacek@redhat.com>
4206
4207 PR c/61534
4208 * c-common.c (warn_logical_operator): Bail if either operand comes
4209 from a macro expansion.
4210
4211 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4212
4213 PR target/55143
4214 * c-common.c (c_default_pointer_mode): Add definition.
4215 * c-common.h (c_default_pointer_mode): Add declaration.
4216
4217 2015-03-11 Jakub Jelinek <jakub@redhat.com>
4218
4219 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4220 on record_builtin_type argument.
4221
4222 2015-03-10 Jakub Jelinek <jakub@redhat.com>
4223
4224 PR c/65120
4225 * c-common.c (warn_logical_not_parentheses): Don't warn for
4226 !x == 0 or !x != 0.
4227
4228 2015-03-07 Marek Polacek <polacek@redhat.com>
4229
4230 PR sanitizer/65280
4231 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4232 before trying to figure out whether we have a flexible array member.
4233
4234 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
4235 Jonathan Wakely <jwakely.gcc@gmail.com>
4236
4237 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4238
4239 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4240
4241 PR ada/65319
4242 * c-ada-spec.c (print_destructor): Remove obsolete code.
4243
4244 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4245
4246 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4247 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4248 DECL_TEMPLATE_RESULT emulations.
4249 (dump_ada_template)): Add guard for TYPE_METHODS.
4250
4251 2015-02-27 Marek Polacek <polacek@redhat.com>
4252
4253 PR c/65040
4254 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4255
4256 2015-02-27 Kai Tietz <ktietz@redhat.com>
4257
4258 PR c/35330
4259 * c-pragma.c (handle_pragma_weak): Do not try to create
4260 weak/alias of declarations not being function, or variable
4261 declarations.
4262
4263 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4264
4265 PR libgomp/64625
4266 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4267 Remove macros.
4268 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4269
4270 2015-02-16 Marek Polacek <polacek@redhat.com>
4271
4272 PR c/65066
4273 * c-format.c (check_format_types): Handle null param.
4274
4275 2015-02-13 Marek Polacek <polacek@redhat.com>
4276
4277 PR c/65040
4278 * c-format.c (check_format_types): Don't warn about different
4279 signedness if the original value is in the range of WANTED_TYPE.
4280
4281 2015-02-12 Jason Merrill <jason@redhat.com>
4282
4283 PR c++/64956
4284 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4285 to the current highest version.
4286 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4287
4288 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4289
4290 PR c/64824
4291 PR c/64868
4292 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4293 instead of RDIV_EXPR. Use build_binary_op instead of
4294 build2_loc.
4295
4296 2015-01-30 Joseph Myers <joseph@codesourcery.com>
4297
4298 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4299 to pass input_location as first argument.
4300
4301 2015-01-23 Tom de Vries <tom@codesourcery.com>
4302
4303 PR libgomp/64672
4304 * c.opt (fopenacc): Mark as LTO option.
4305
4306 2015-01-23 Tom de Vries <tom@codesourcery.com>
4307
4308 PR libgomp/64707
4309 * c.opt (fopenmp): Mark as LTO option.
4310
4311 2015-01-21 Jakub Jelinek <jakub@redhat.com>
4312
4313 PR c/63307
4314 * cilk.c (fill_decls_vec): Only put decls into vector v.
4315 (compare_decls): Fix up formatting.
4316
4317 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4318
4319 PR c/63307
4320 * cilk.c: Include vec.h.
4321 (struct cilk_decls): New structure.
4322 (wrapper_parm_cb): Split this function to...
4323 (fill_decls_vec): ...this...
4324 (create_parm_list): ...and this.
4325 (compare_decls): New function.
4326 (for_local_cb): Remove.
4327 (wrapper_local_cb): Ditto.
4328 (build_wrapper_type): For now first traverse and fill vector of
4329 declarations then sort it and then deal with sorted vector.
4330 (cilk_outline): Ditto.
4331 (declare_one_free_variable): Ditto.
4332
4333 2015-01-21 Jason Merrill <jason@redhat.com>
4334
4335 PR c++/64629
4336 * c-format.c (check_format_arg): Call decl_constant_value.
4337
4338 2015-01-19 Martin Liska <mliska@suse.cz>
4339
4340 * c-common.c (handle_noicf_attribute): New function.
4341
4342 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4343 Bernd Schmidt <bernds@codesourcery.com>
4344 James Norris <jnorris@codesourcery.com>
4345 Cesar Philippidis <cesar@codesourcery.com>
4346 Ilmir Usmanov <i.usmanov@samsung.com>
4347 Jakub Jelinek <jakub@redhat.com>
4348
4349 * c.opt (fopenacc): New option.
4350 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4351 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4352 New macros.
4353 * c-common.h (c_finish_oacc_wait): New prototype.
4354 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4355 (c_finish_oacc_wait): New function.
4356 * c-pragma.c (oacc_pragmas): New variable.
4357 (c_pp_lookup_pragma, init_pragma): Handle it.
4358 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4359 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4360 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4361 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4362 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4363 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4364 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4365 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4366 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4367 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4368 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4369 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4370 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4371 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4372 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4373 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4374 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4375 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4376 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4377 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4378 PRAGMA_OACC_CLAUSE_WORKER.
4379
4380 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4381
4382 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4383 for the new option fstack-protector_explicit.
4384 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4385 (handle_stack_protect_attribute): New function.
4386
4387 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
4388
4389 * c.opt: New option -Warray-bounds=.
4390
4391 2015-01-09 Michael Collison <michael.collison@linaro.org>
4392
4393 * array-notation-common.c: Include hash-set.h, machmode.h,
4394 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4395 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4396 * c-ada-spec.c: Ditto.
4397 * c-cilkplus.c: Ditto.
4398 * c-common.c: Include input.h due to flattening of tree.h.
4399 Define macro GCC_C_COMMON_C.
4400 * c-common.h: Flatten tree.h header files into c-common.h.
4401 Remove include of tree-core.h.
4402 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4403 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4404 fold-const.h, wide-int.h, and inchash.h due to
4405 flattening of tree.h.
4406 * c-dump.c: Ditto.
4407 * c-format.c: Flatten tree.h header files into c-common.h.
4408 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4409 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4410 fold-const.h, wide-int.h, and inchash.h due to
4411 flattening of tree.h.
4412 * c-dump.c: Include hash-set.h, machmode.h,
4413 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4414 fold-const.h, wide-int.h, and inchash.h due to
4415 flattening of tree.h.
4416 * c-format.c: Include hash-set.h, machmode.h,
4417 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4418 fold-const.h, wide-int.h, inchash.h and real.h due to
4419 flattening of tree.h.
4420 * c-gimplify.c: Include hash-set.h, machmode.h,
4421 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4422 fold-const.h, wide-int.h, and inchash.h due to
4423 flattening of tree.h.
4424 * cilk.c: Ditto.
4425 * c-lex.c: Ditto.
4426 * c-omp.c: Ditto.
4427 * c-opts.c: Ditto.
4428 * c-pch.c: Ditto.
4429 * c-ppoutput.c: Ditto.
4430 * c-pragma.c: Ditto.
4431 * c-pretty-print.c: Ditto.
4432 * c-semantics.c: Ditto.
4433 * c-ubsan.c: Ditto.
4434 * stub-objc.c: Ditto.
4435
4436 2015-01-08 Jason Merrill <jason@redhat.com>
4437
4438 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4439 do_ubsan_in_current_function.
4440 (ubsan_maybe_instrument_reference_or_call): Likewise.
4441 * c-ubsan.h: Declare it.
4442
4443 2015-01-08 Mike Stump <mikestump@comcast.net>
4444
4445 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4446
4447 2015-01-07 Marek Polacek <polacek@redhat.com>
4448
4449 PR c/64440
4450 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4451 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4452
4453 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4454
4455 PR c++/31397
4456 * c.opt (Wsuggest-override): New option.
4457
4458 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4459
4460 Update copyright years.
4461
4462 2015-01-05 Marek Polacek <polacek@redhat.com>
4463
4464 PR c/64423
4465 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4466 parameter. Use it.
4467 * c-common.h (warn_array_subscript_with_type_char): Update
4468 declaration.
4469
4470 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4471
4472 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4473 Control macro with flag_sized_deallocation.
4474
4475 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
4476
4477 * c.opt (Wdiscarded-array-qualifiers): New option.
4478
4479 2014-12-19 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR preprocessor/63831
4482 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4483 and __has_cpp_attribute here.
4484 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4485 c_common_has_attribute.
4486 * c-common.h (c_common_has_attribute): New prototype.
4487 * c-lex.c (init_c_lex): Set cb->has_attribute to
4488 c_common_has_attribute instead of cb_has_attribute.
4489 (get_token_no_padding): New function.
4490 (cb_has_attribute): Renamed to ...
4491 (c_common_has_attribute): ... this. No longer static. Use
4492 get_token_no_padding, require ()s, don't build TREE_LIST
4493 unnecessarily, fix up formatting, adjust diagnostics, call
4494 init_attributes.
4495
4496 2014-12-15 Jason Merrill <jason@redhat.com>
4497
4498 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4499 (-Wsized-deallocation): New.
4500 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4501 to on in C++14 and up.
4502
4503 2014-12-11 Jason Merrill <jason@redhat.com>
4504
4505 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4506
4507 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4508 we aren't complaining about VLAs.
4509
4510 2014-12-06 Marek Polacek <polacek@redhat.com>
4511
4512 PR tree-optimization/64183
4513 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4514 shift-expression if it is integer_type_node. Use types_compatible_p.
4515
4516 2014-11-29 Jakub Jelinek <jakub@redhat.com>
4517
4518 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4519 last argument from create_tmp_var_raw and create_tmp_var calls.
4520 * cilk.c (gimplify_cilk_spawn): Likewise.
4521 * c-omp.c (c_finish_omp_atomic): Likewise.
4522
4523 2014-11-28 Marek Polacek <polacek@redhat.com>
4524
4525 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4526 instead of unsigned_type_node.
4527
4528 2014-11-28 Marek Polacek <polacek@redhat.com>
4529
4530 PR c/63862
4531 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4532 to op1_utype.
4533 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4534 expression to unsigned_type_node.
4535
4536 2014-11-20 Mark Wielaard <mjw@redhat.com>
4537
4538 PR debug/38757
4539 * c-opts.c (set_std_c89): Set lang_hooks.name.
4540 (set_std_c99): Likewise.
4541 (set_std_c11): Likewise.
4542 (set_std_cxx98): Likewise.
4543 (set_std_cxx11): Likewise.
4544 (set_std_cxx14): Likewise.
4545 (set_std_cxx1z): Likewise.
4546
4547 2014-11-21 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR target/63764
4550 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4551 return type to bool.
4552 * c-common.c: Include gimple-expr.h.
4553 (convert_vector_to_pointer_for_subscript): Change return type to
4554 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4555 and copy it into a TARGET_EXPR and use that instead of *vecp
4556 directly.
4557
4558 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4559
4560 Merger of git branch "gimple-classes-v2-option-3".
4561 * ChangeLog.gimple-classes: New.
4562 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4563 from being just a vec<gimple> to a vec<gbind *>.
4564
4565 2014-11-18 Jakub Jelinek <jakub@redhat.com>
4566
4567 PR sanitizer/63813
4568 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4569 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4570 get_pointer_alignment for non-pointers. Use ptype, or if it is
4571 reference type, corresponding pointer type, as type of kind
4572 argument.
4573 (ubsan_maybe_instrument_reference,
4574 ubsan_maybe_instrument_member_call): Adjust callers.
4575
4576 2014-11-15 Marek Polacek <polacek@redhat.com>
4577
4578 PR middle-end/63884
4579 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4580 for NULL fndecl.
4581 (extract_array_notation_exprs): Return for NULL node.
4582
4583 2014-11-12 Joseph Myers <joseph@codesourcery.com>
4584
4585 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4586 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4587
4588 2014-11-12 Jakub Jelinek <jakub@redhat.com>
4589
4590 PR c/59708
4591 * c-common.c (check_builtin_function_arguments): Handle
4592 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4593
4594 2014-11-10 Andi Kleen <ak@linux.intel.com>
4595
4596 PR c/60804
4597 * c-common.h (check_no_cilk): Declare.
4598 * cilk.c (get_error_location): New function.
4599 (check_no_cilk): Dito.
4600
4601 2014-11-10 Andi Kleen <ak@linux.intel.com>
4602
4603 * cilk.c (recognize_spawn): Use expression location
4604 for error message.
4605
4606 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4607
4608 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4609
4610 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4611
4612 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4613 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4614 (__cpp_range_based_for, __cpp_initializer_lists,
4615 __cpp_delegating_constructors, __cpp_nsdmi,
4616 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4617 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4618 __has_cpp_attribute.
4619 * c-lex.c (cb_has_attribute): New callback CPP function;
4620 (init_c_lex): Set has_attribute callback.
4621
4622 2014-11-04 Richard Biener <rguenther@suse.de>
4623
4624 * c-common.c (shorten_compare): Do not shorten mixed
4625 DFP and non-DFP compares.
4626
4627 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4628
4629 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4630 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4631 Commentary and rearrangement of tests.
4632 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4633 Commentary and rearrangement of tests.
4634 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4635 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4636
4637 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4638
4639 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4640 enum from machine_mode.
4641
4642 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
4643
4644 * c-common.c: Adjust include files.
4645 * c-gimplify.c: Ditto.
4646 * cilk.c: Ditto.
4647 * c-pragma.c: Ditto.
4648 * c-ubsan.c: Ditto.
4649
4650 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
4651
4652 * c-gimplify.c: Adjust include files.
4653
4654 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4655
4656 PR c++/53061
4657 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4658 c_common_initialize_diagnostics.
4659 * c-common.h: Likewise.
4660
4661 2014-10-24 Marek Polacek <polacek@redhat.com>
4662
4663 PR c/56980
4664 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4665 print "struct"/"union"/"enum" for typedefed names.
4666
4667 2014-10-23 Marek Polacek <polacek@redhat.com>
4668
4669 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4670 in unsigned type.
4671
4672 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4673 Yury Gribov <y.gribov@samsung.com>
4674
4675 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4676 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4677 instead of flag_sanitize_recover as bool flag.
4678
4679 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4680
4681 * cilk.c: Revert previous change.
4682
4683 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4684
4685 PR c/63307
4686 * cilk.c: Include vec.h.
4687 (struct cilk_decls): New structure.
4688 (wrapper_parm_cb): Split this function to...
4689 (fill_decls_vec): ...this...
4690 (create_parm_list): ...and this.
4691 (compare_decls): New function.
4692 (for_local_cb): Remove.
4693 (wrapper_local_cb): Ditto.
4694 (build_wrapper_type): For now first traverse and fill vector of
4695 declarations then sort it and then deal with sorted vector.
4696 (cilk_outline): Ditto.
4697 (declare_one_free_variable): Ditto.
4698
4699 2014-10-17 Marek Polacek <polacek@redhat.com>
4700
4701 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4702 * c.opt (Wimplicit-int): Initialize to -1.
4703
4704 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
4705
4706 * c-pragma.c: Adjust include files.
4707 * c-semantics.c: Likewise.
4708
4709 2014-10-16 DJ Delorie <dj@redhat.com>
4710
4711 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4712 multiples of bytes.
4713
4714 2014-10-14 Jason Merrill <jason@redhat.com>
4715
4716 PR c++/63455
4717 * c-common.h (CPP_PREPARSED_EXPR): New.
4718 (N_CP_TTYPES): Adjust.
4719
4720 2014-10-15 Marek Polacek <polacek@redhat.com>
4721
4722 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4723
4724 2014-10-14 DJ Delorie <dj@redhat.com>
4725
4726 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4727 types, not just __int128.
4728 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4729 types, not just __int128.
4730 (cpp_atomic_builtins): Round pointer sizes up.
4731 (type_suffix): Use type precision, not specific types.
4732 * c-common.c (c_common_reswords): Remove __int128 special case.
4733 (c_common_type_for_size): Check for all __intN types, not just
4734 __int128.
4735 (c_common_type_for_mode): Likewise.
4736 (c_common_signed_or_unsigned_type): Likewise.
4737 (c_build_bitfield_integer_type): Likewise.
4738 (c_common_nodes_and_builtins): Likewise.
4739 (keyword_begins_type_specifier): Likewise.
4740 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4741 __intN variants.
4742
4743 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4744
4745 * c-common.c: Use hash_table instead of hashtab.
4746
4747 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4748
4749 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4750 C++11 section.
4751
4752 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
4753
4754 PR c++/54427
4755 PR c++/57198
4756 PR c++/58845
4757 * c-common.c (warn_logical_operator): Punt for vectors.
4758
4759 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4760
4761 Implement SD-6: SG10 Feature Test Recommendations
4762 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4763 macros and the __has_header macro.
4764
4765 2014-09-30 Jason Merrill <jason@redhat.com>
4766
4767 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4768 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4769 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4770
4771 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4772 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4773
4774 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4775 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4776
4777 2014-09-24 Marek Polacek <polacek@redhat.com>
4778
4779 PR c/61405
4780 PR c/53874
4781 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4782
4783 2014-09-23 Andi Kleen <ak@linux.intel.com>
4784
4785 * c-common.c (handle_no_reorder_attribute): New function.
4786 (c_common_attribute_table): Add no_reorder attribute.
4787
4788 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4789
4790 * c-cppbuiltin.c (c_cpp_builtins): Define
4791 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4792 modes.
4793
4794 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4795
4796 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4797 for supported floating-point modes.
4798
4799 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4800
4801 * c.opt (Wpsabi): Use LangEnabledBy.
4802 * c-opts.c (c_common_handle_option): Do not handle here.
4803
4804 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4805
4806 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4807 macros for floating-point modes.
4808
4809 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4810
4811 PR target/58757
4812 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4813 __*_DENORM_MIN__ without denormals.
4814
4815 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4816
4817 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4818 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4819 ubsan_create_data callers.
4820 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4821 index is constant or BIT_AND_EXPR with constant mask and is
4822 small enough for the bound.
4823 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4824 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4825
4826 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4827
4828 * c.opt: Add CppReason to various flags.
4829 (Wdate-time): Re-sort.
4830 * c-common.c: Include c-common.h earlier.
4831 (struct reason_option_codes_t): Delete.
4832 (c_option_controlling_cpp_error): Prefix global type and struct
4833 with cpp_.
4834
4835 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4836
4837 * c.opt (Wnormalized): New.
4838 (Wnormalized=): Use Enum and Reject Negative.
4839 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4840
4841 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4842
4843 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4844 digits of floating-point modes if -fbuilding-libgcc.
4845
4846 2014-09-05 Joseph Myers <joseph@codesourcery.com>
4847
4848 * c-cppbuiltin.c (c_cpp_builtins): Also define
4849 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4850 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4851 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4852 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4853 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4854 __LIBGCC_STACK_GROWS_DOWNWARD__,
4855 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4856 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4857 __LIBGCC_DWARF_FRAME_REGISTERS__,
4858 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4859 __LIBGCC_STACK_POINTER_REGNUM__ and
4860 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4861 (builtin_define_with_value): Handle backslash-escaping in string
4862 macro values.
4863
4864 2014-09-05 Richard Biener <rguenther@suse.de>
4865
4866 PR middle-end/63148
4867 * c-format.c (check_format_arg): Properly handle
4868 effectively signed POINTER_PLUS_EXPR offset.
4869
4870 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4871
4872 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4873 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4874 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4875 and Init.
4876 * c-opts.c (c_common_handle_option): Do not handle here.
4877 (sanitize_cpp_opts): Likewise.
4878 * c-common.c (struct reason_option_codes_t): Handle
4879 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4880
4881 2014-09-03 Marek Polacek <polacek@redhat.com>
4882
4883 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4884
4885 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4886 Balaji V. Iyer <balaji.v.iyer@intel.com>
4887 Igor Zamyatin <igor.zamyatin@intel.com>
4888
4889 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4890 * c-common.c (c_common_reswords): Added _Cilk_for.
4891 * c-common.h (enum rid): Added RID_CILK_FOR.
4892 (cilk_for_number_of_iterations): Add declaration.
4893 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4894 CILK_FOR.
4895 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4896 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4897
4898 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4899
4900 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4901 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4902 Wundef): Use CPP, Var and Init.
4903 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4904
4905 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4906
4907 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4908 * c-opts.c (c_common_handle_option): Do not handle here.
4909
4910 2014-08-25 Jason Merrill <jason@redhat.com>
4911
4912 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4913 -std=c++14 and -std=gnu++14, rather than the reverse.
4914 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4915 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4916 * c-common.h (cxx_dialect): Remove cxx1y.
4917
4918 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4919
4920 * c-common.h (enum cxx_dialect): Add cxx14.
4921 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4922 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4923 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4924
4925 2014-08-22 Jason Merrill <jason@redhat.com>
4926
4927 * c.opt (std=gnu++17): Fix alias.
4928
4929 2014-08-22 Marek Polacek <polacek@redhat.com>
4930
4931 PR c++/62199
4932 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4933 check for vector types. Drop LHS argument.
4934 * c-common.h (warn_logical_not_parentheses): Adjust.
4935
4936 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4937
4938 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4939 (Wmultichar): Likewise.
4940 (Wdate-time): Use C-family languages instead of Common. Use CPP
4941 and Var.
4942 * c-opts.c (c_common_handle_option): Do not handle the above
4943 options here.
4944 (sanitize_cpp_opts): Likewise.
4945
4946 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4947
4948 PR fortran/44054
4949 * c-opts.c: Include tree-diagnostics.h.
4950 (c_diagnostic_finalizer): New.
4951 (c_common_initialize_diagnostics): Use it.
4952
4953 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4954
4955 PR preprocessor/51303
4956 * c-common.c (struct reason_option_codes_t option_codes):
4957 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4958
4959 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4960
4961 PR c/60975
4962 PR c/53063
4963 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4964 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4965 (c_common_post_options): Call init_global_opts_from_cpp.
4966 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4967
4968 2014-08-19 Marek Polacek <polacek@redhat.com>
4969
4970 PR c++/62153
4971 * c-common.c (maybe_warn_bool_compare): New function.
4972 * c-common.h (maybe_warn_bool_compare): Declare.
4973 * c.opt (Wbool-compare): New option.
4974
4975 2014-08-19 Marek Polacek <polacek@redhat.com>
4976
4977 * c.opt (Wc99-c11-compat): New option.
4978
4979 2014-08-19 Marek Polacek <polacek@redhat.com>
4980
4981 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4982 to warn_c90_c99_compat.
4983 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4984 to -1.
4985
4986 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4987 Steven Bosscher <steven@gcc.gnu.org>
4988
4989 PR c/52952
4990 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4991 format_check_results.
4992 (check_function_format): Use true and add comment for boolean
4993 argument.
4994 (finish_dollar_format_checking): Use explicit location when warning.
4995 (check_format_info): Likewise.
4996 (check_format_arg): Set extra_arg_loc and format_string_loc.
4997 (check_format_info_main): Use explicit location when warning.
4998 (check_format_types): Pass explicit location.
4999 (format_type_warning): Likewise.
5000
5001 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5002
5003 PR fortran/44054
5004 * c-format.c: Handle Fortran flags.
5005
5006 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5007
5008 PR other/61962
5009 * array-notation-common.c (find_rank): Added handling for other
5010 types of references.
5011
5012 2014-08-10 Marek Polacek <polacek@redhat.com>
5013
5014 PR c/51849
5015 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5016 * c.opt (Wc90-c99-compat): Add option.
5017
5018 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5019
5020 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5021
5022 2014-08-03 Marek Polacek <polacek@redhat.com>
5023
5024 * c-common.c (check_case_value): Add location_t parameter. Use it.
5025 (c_add_case_label): Pass loc to check_case_value.
5026
5027 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5028
5029 * cilk.c: Use hash_map instead of pointer_map.
5030
5031 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5032
5033 * c-gimplify.c: Use hash_set instead of pointer_set.
5034
5035 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5036
5037 PR middle-end/61455
5038 * array-notation-common.c (extract_array_notation_exprs): Handling
5039 of DECL_EXPR added.
5040
5041 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5042
5043 * c-common.h (min_align_of_type): Removed prototype.
5044 * c-common.c (min_align_of_type): Removed.
5045 * c-ubsan.h (ubsan_maybe_instrument_reference,
5046 ubsan_maybe_instrument_member_call): New prototypes.
5047 * c-ubsan.c: Include stor-layout.h and builtins.h.
5048 (ubsan_maybe_instrument_reference_or_call,
5049 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5050 functions.
5051
5052 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
5053
5054 PR c++/60517
5055 * c.opt (-Wreturn-local-addr): Move to common.opt.
5056
5057 2014-07-30 Jason Merrill <jason@redhat.com>
5058
5059 PR c++/61659
5060 PR c++/61687
5061 Revert:
5062 * c.opt (-fuse-all-virtuals): New.
5063
5064 2014-07-30 Tom Tromey <tromey@redhat.com>
5065
5066 PR c/59855
5067 * c.opt (Wdesignated-init): New option.
5068 * c-common.c (c_common_attribute_table): Add "designated_init".
5069 (handle_designated_init): New function.
5070
5071 2014-07-24 Marek Polacek <polacek@redhat.com>
5072
5073 PR c/57653
5074 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5075
5076 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5077
5078 PR preprocessor/60723 - missing system-ness marks for macro tokens
5079 * c-ppoutput.c (struct print::prev_was_system_token): New data
5080 member.
5081 (init_pp_output): Initialize it.
5082 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5083 (do_line_change): Return a flag saying if a line marker was
5084 emitted or not.
5085 (scan_translation_unit): Detect if the system-ness of the token we
5086 are about to emit is different from the one of the previously
5087 emitted token. If so, emit a line marker. Avoid emitting useless
5088 adjacent line markers. Avoid emitting line markers for tokens
5089 originating from the expansion of built-in macros.
5090 (scan_translation_unit_directives_only): Adjust.
5091
5092 2014-07-15 Marek Polacek <polacek@redhat.com>
5093
5094 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5095 TYPE_MAX_VALUE is NULL.
5096
5097 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5098
5099 PR middle-end/61294
5100 * c.opt (Wmemset-transposed-args): New warning.
5101
5102 2014-07-10 Jason Merrill <jason@redhat.com>
5103
5104 PR c++/61659
5105 PR c++/61687
5106 * c.opt (-fuse-all-virtuals): New.
5107
5108 2014-07-09 Richard Biener <rguenther@suse.de>
5109
5110 PR c-family/61741
5111 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5112 using unsigned arithmetic if overflow does not wrap instead of
5113 if overflow is undefined.
5114
5115 2014-07-06 Marek Polacek <polacek@redhat.com>
5116
5117 PR c/6940
5118 * c.opt (Wsizeof-array-argument): New option.
5119
5120 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5121
5122 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
5123 comments->count <= 1, as comments->entries might be NULL.
5124
5125 2014-07-01 Marek Polacek <polacek@redhat.com>
5126
5127 * c.opt (Wint-conversion): New option.
5128
5129 2014-07-01 Marek Polacek <polacek@redhat.com>
5130
5131 PR c/58286
5132 * c.opt (Wincompatible-pointer-types): New option.
5133
5134 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5135
5136 PR c++/51400
5137 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5138 Do not discard TYPE_QUALS of type.
5139
5140 2014-06-26 Jason Merrill <jason@redhat.com>
5141
5142 * c-common.h (enum cxx_dialect): Add cxx1z.
5143 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5144 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5145
5146 2014-06-26 Teresa Johnson <tejohnson@google.com>
5147
5148 * c-common.h (get_dump_info): Declare.
5149 * c-gimplify.c (c_genericize): Use saved dump files.
5150 * c-opts.c (c_common_parse_file): Begin and end dumps
5151 once around parsing invocation.
5152 (get_dump_info): New function.
5153
5154 2014-06-23 Marek Polacek <polacek@redhat.com>
5155 Andrew MacLeod <amacleod@redhat.com>
5156
5157 PR c/61553
5158 * c-common.c (get_atomic_generic_size): Don't segfault if the
5159 type doesn't have a size.
5160
5161 2014-06-20 Marek Polacek <polacek@redhat.com>
5162
5163 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5164 (ubsan_walk_array_refs_r): New function.
5165 (c_genericize): Instrument array bounds.
5166 * c-ubsan.c: Include "internal-fn.h".
5167 (ubsan_instrument_division): Mark instrumented arrays as having
5168 side effects. Adjust ubsan_type_descriptor call.
5169 (ubsan_instrument_shift): Likewise.
5170 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5171 (ubsan_instrument_bounds): New function.
5172 (ubsan_array_ref_instrumented_p): New function.
5173 (ubsan_maybe_instrument_array_ref): New function.
5174 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5175 (ubsan_array_ref_instrumented_p): Declare.
5176 (ubsan_maybe_instrument_array_ref): Declare.
5177
5178 2014-06-20 Hale Wang <hale.wang@arm.com>
5179
5180 PR lto/61123
5181 * c.opt (fshort-enums): Add to LTO.
5182 * c.opt (fshort-wchar): Likewise.
5183
5184 2014-06-16 Marek Polacek <polacek@redhat.com>
5185
5186 PR c/60439
5187 * c.opt (Wswitch-bool): Add Var.
5188
5189 2014-06-12 Jakub Jelinek <jakub@redhat.com>
5190
5191 PR middle-end/61486
5192 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5193 #pragma omp target teams or
5194 #pragma omp {,target }teams distribute simd.
5195
5196 2014-06-12 Jason Merrill <jason@redhat.com>
5197
5198 * c.opt (Wabi=, fabi-compat-version): New.
5199 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5200 (c_common_post_options): Handle flag_abi_compat_version default.
5201 Disallow -fabi-compat-version=1.
5202 * c-common.h (abi_version_crosses): New.
5203
5204 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
5205
5206 * c-common.c (handle_section_attribute): Update handling for
5207 section names that are no longer trees.
5208
5209 2014-06-10 Jakub Jelinek <jakub@redhat.com>
5210
5211 PR fortran/60928
5212 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5213 (omp_pragmas): ... back here.
5214
5215 2014-06-05 Marek Polacek <polacek@redhat.com>
5216
5217 PR c/49706
5218 * c-common.c (warn_logical_not_parentheses): New function.
5219 * c-common.h (warn_logical_not_parentheses): Declare.
5220 * c.opt (Wlogical-not-parentheses): New option.
5221
5222 2014-06-04 Marek Polacek <polacek@redhat.com>
5223
5224 PR c/30020
5225 * c-common.c (check_case_bounds): Add location parameter.
5226 Use it.
5227 (c_add_case_label): Pass loc to check_case_bounds.
5228
5229 2014-06-03 Marek Polacek <polacek@redhat.com>
5230
5231 PR c/60439
5232 * c.opt (Wswitch-bool): New option.
5233
5234 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5235
5236 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5237 Remove prototypes.
5238 (record_types_used_by_current_var_decl): Move prototype to where
5239 it belongs.
5240
5241 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5242 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5243 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5244
5245 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5246
5247 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5248 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5249 void_zero_node.
5250 * c-pretty-print.c (pp_c_void_constant): New function.
5251 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5252 (c_pretty_printer::expression): Handle VOID_CST.
5253 * cilk.c (extract_free_variables): Likewise.
5254 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5255 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5256
5257 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5258
5259 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5260 * c-pragma.c (push_alignment): Adjust.
5261 (handle_pragma_push_options): Likewise.
5262
5263 2014-05-09 Marek Polacek <polacek@redhat.com>
5264
5265 PR c/50459
5266 * c-common.c (check_user_alignment): Return -1 if alignment is error
5267 node.
5268 (handle_aligned_attribute): Don't call default_conversion on
5269 FUNCTION_DECLs.
5270 (handle_vector_size_attribute): Likewise.
5271 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5272 (handle_sentinel_attribute): Call default_conversion and allow even
5273 integral types as an argument.
5274
5275 2014-05-08 Marek Polacek <polacek@redhat.com>
5276
5277 PR c/61053
5278 * c-common.c (min_align_of_type): New function factored out from...
5279 (c_sizeof_or_alignof_type): ...here.
5280 * c-common.h (min_align_of_type): Declare.
5281
5282 2014-05-08 Marek Polacek <polacek@redhat.com>
5283
5284 PR c/61077
5285 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5286 parameter type of main.
5287
5288 2014-05-07 DJ Delorie <dj@redhat.com>
5289
5290 * c-cppbuiltin.c (print_bits_of_hex): New.
5291 (builtin_define_type_minmax): Print values using hex so as not to
5292 require a pre-computed list of string values.
5293
5294 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5295 Mike Stump <mikestump@comcast.net>
5296 Richard Sandiford <rdsandiford@googlemail.com>
5297
5298 * c-ada-spec.c: Include wide-int.h.
5299 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5300 (dump_generic_ada_node): Use wide-int interfaces.
5301 * c-common.c: Include wide-int-print.h.
5302 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5303 (pointer_int_sum): Use wide-int interfaces.
5304 (c_common_nodes_and_builtins): Use make_int_cst.
5305 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5306 (handle_alloc_size_attribute): Use wide-int interfaces.
5307 (get_nonnull_operand): Likewise.
5308 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5309 * c-lex.c: Include wide-int.h.
5310 (narrowest_unsigned_type): Take a widest_int rather than two
5311 HOST_WIDE_INTs.
5312 (narrowest_signed_type): Likewise.
5313 (interpret_integer): Update accordingly. Use wide-int interfaces.
5314 (lex_charconst): Use wide-int interfaces.
5315 * c-pretty-print.c: Include wide-int.h.
5316 (pp_c_integer_constant): Use wide-int interfaces.
5317 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5318 INT_CST_LT_UNSIGNED.
5319
5320 2014-05-06 Richard Biener <rguenther@suse.de>
5321
5322 * c-opts.c (c_common_post_options): For -freestanding,
5323 -fno-hosted and -fno-builtin disable pattern recognition
5324 if not enabled explicitely.
5325
5326 2014-05-02 Marek Polacek <polacek@redhat.com>
5327
5328 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5329
5330 2014-05-01 Marek Polacek <polacek@redhat.com>
5331
5332 PR c/43245
5333 * c.opt (Wdiscarded-qualifiers): Add.
5334
5335 2014-04-30 Marek Polacek <polacek@redhat.com>
5336
5337 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5338 INT_MIN / -1 sanitization only for integer types.
5339
5340 2014-04-25 Marek Polacek <polacek@redhat.com>
5341
5342 PR c/18079
5343 * c-common.c (handle_noinline_attribute): Warn if the attribute
5344 conflicts with always_inline attribute.
5345 (handle_always_inline_attribute): Warn if the attribute conflicts
5346 with noinline attribute.
5347
5348 2014-04-25 Marek Polacek <polacek@redhat.com>
5349
5350 PR c/60156
5351 * c-common.c (check_main_parameter_types): Warn about variadic main.
5352
5353 2014-04-24 Mike Stump <mikestump@comcast.net>
5354
5355 * c.opt (Wshadow-ivar): Default to on.
5356
5357 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5358
5359 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5360
5361 2014-04-23 Marek Polacek <polacek@redhat.com>
5362
5363 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5364
5365 2014-04-22 Jakub Jelinek <jakub@redhat.com>
5366
5367 PR sanitizer/60275
5368 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5369 if flag_sanitize_undefined_trap_on_error.
5370 (ubsan_instrument_division, ubsan_instrument_shift,
5371 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5372 if !flag_sanitize_recover.
5373
5374 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
5375
5376 PR libstdc++/43622
5377 * c-common.c (registered_builtin_types): Make non-static.
5378 * c-common.h (registered_builtin_types): Declare.
5379
5380 2014-04-14 Richard Biener <rguenther@suse.de>
5381 Marc Glisse <marc.glisse@inria.fr>
5382
5383 PR c/60819
5384 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5385 apply may-alias the scalar pointer type when applicable.
5386
5387 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5388
5389 PR middle-end/60467
5390 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5391 as possible argument for Cilk_spawn.
5392
5393 2014-04-11 Tobias Burnus <burnus@net-b.de>
5394
5395 PR c/60194
5396 * c.opt (Wformat-signedness): Add
5397 * c-format.c(check_format_types): Use it.
5398
5399 2014-04-11 Jason Merrill <jason@redhat.com>
5400
5401 PR c++/57926
5402 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5403 default_conversion for an array argument.
5404
5405 2014-04-08 Marek Polacek <polacek@redhat.com>
5406
5407 PR sanitizer/60745
5408 * c-ubsan.c: Include asan.h.
5409 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5410
5411 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5412
5413 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5414
5415 2014-04-02 Marek Polacek <polacek@redhat.com>
5416
5417 * c-common.h (c_expand_expr): Remove declaration.
5418
5419 2014-03-28 Jakub Jelinek <jakub@redhat.com>
5420
5421 PR c++/60689
5422 * c-common.c (add_atomic_size_parameter): When creating new
5423 params vector, push the size argument first.
5424
5425 2014-03-26 Jakub Jelinek <jakub@redhat.com>
5426
5427 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5428 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5429 ubsan_create_data callers.
5430
5431 2014-03-22 Jakub Jelinek <jakub@redhat.com>
5432
5433 PR debug/60603
5434 * c-opts.c (c_finish_options): Restore cb_file_change call to
5435 <built-in>.
5436
5437 2014-03-13 Jakub Jelinek <jakub@redhat.com>
5438
5439 PR middle-end/36282
5440 * c-pragma.c (apply_pragma_weak): Only look at
5441 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5442 DECL_ASSEMBLER_NAME_SET_P (decl).
5443 (maybe_apply_pending_pragma_weaks): Exit early if
5444 vec_safe_is_empty (pending_weaks) rather than only when
5445 !pending_weaks.
5446 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5447 set assembler name back to NULL afterwards.
5448
5449 2014-03-11 Jason Merrill <jason@redhat.com>
5450
5451 * c.opt: Add -std=gnu++14.
5452
5453 2014-03-11 Ian Bolton <ian.bolton@arm.com>
5454
5455 * c-opts.c (c_common_post_options): Don't override
5456 -ffp-contract=fast if unsafe-math-optimizations is on.
5457
5458 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
5459
5460 * c.opt: Enable LTO FE for fshort-double.
5461
5462 2014-03-07 Jason Merrill <jason@redhat.com>
5463
5464 * c.opt: Add -std=c++14.
5465
5466 2014-03-06 Marek Polacek <polacek@redhat.com>
5467
5468 PR c/60197
5469 * cilk.c (contains_cilk_spawn_stmt): New function.
5470 (contains_cilk_spawn_stmt_walker): Likewise.
5471 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5472 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5473
5474 2014-03-03 Jakub Jelinek <jakub@redhat.com>
5475
5476 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5477 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5478 even when flag_preprocess_only.
5479
5480 2014-02-26 Jason Merrill <jason@redhat.com>
5481
5482 PR c++/59231
5483 PR c++/11586
5484 * c-common.c (shorten_compare): Don't check
5485 c_inhibit_evaluation_warnings.
5486
5487 2014-02-19 Jakub Jelinek <jakub@redhat.com>
5488
5489 PR c/37743
5490 * c-common.c (c_common_nodes_and_builtins): When initializing
5491 c_uint{16,32,64}_type_node, also set corresponding
5492 uint{16,32,64}_type_node to the same value.
5493
5494 PR c++/60267
5495 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5496 for PRAGMA_IVDEP if flag_preprocess_only.
5497
5498 2014-02-12 Jakub Jelinek <jakub@redhat.com>
5499
5500 PR c/60101
5501 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5502 if false, add ADD itself, rather than vice versa.
5503 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5504 copy. For SAVE_EXPR, only call merge_tlist once.
5505
5506 2014-02-08 Jakub Jelinek <jakub@redhat.com>
5507
5508 PR middle-end/60092
5509 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5510 and tree_to_uhwi.
5511 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5512 functions.
5513 (c_common_attribute_table): Add alloc_align and assume_aligned
5514 attributes.
5515
5516 2014-02-06 Marek Polacek <polacek@redhat.com>
5517
5518 PR c/60087
5519 * c-common.c (warn_for_sign_compare): Call warning_at with location
5520 instead of warning.
5521
5522 2014-02-05 Marek Polacek <polacek@redhat.com>
5523
5524 PR c/53123
5525 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5526 statement.
5527
5528 2014-02-04 Marek Polacek <polacek@redhat.com>
5529
5530 PR c/60036
5531 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5532 SAVE_EXPR.
5533
5534 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
5535
5536 PR c++/53017
5537 PR c++/59211
5538 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5539 handle_vector_size_attribute, handle_nonnull_attribute): Call
5540 default_conversion on the attribute argument.
5541 (handle_nonnull_attribute): Increment the argument number.
5542
5543 2014-01-31 Marek Polacek <polacek@redhat.com>
5544
5545 PR c/59963
5546 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5547 build_function_call_vec.
5548 (resolve_overloaded_builtin): Likewise.
5549 * c-common.h (build_function_call_vec): Adjust declaration.
5550
5551 2014-01-30 Marek Polacek <polacek@redhat.com>
5552
5553 PR c/59940
5554 * c-common.h (unsafe_conversion_p): Adjust declaration.
5555 (warnings_for_convert_and_check): Likewise.
5556 (convert_and_check): Likewise.
5557 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5558 expansion_point_location_if_in_system_header on it.
5559 (warnings_for_convert_and_check): Add location parameter. Call
5560 expansion_point_location_if_in_system_header on it. Use it.
5561 (convert_and_check): Add location parameter. Use it.
5562 (conversion_warning): Likewise.
5563 (c_add_case_label): Adjust convert_and_check calls.
5564 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5565
5566 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5567
5568 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5569 flag_cilkplus.
5570 * c-pragma.c (init_pragma): Likewise.
5571 * c.opt: Likewise.
5572
5573 2014-01-23 Marek Polacek <polacek@redhat.com>
5574
5575 PR c/59846
5576 * c-common.c (shorten_compare): Add location_t parameter.
5577 * c-common.h (shorten_binary_op): Adjust declaration.
5578
5579 2014-01-23 Marek Polacek <polacek@redhat.com>
5580
5581 PR c/58346
5582 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5583 * c-common.h: Declare it.
5584
5585 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5586
5587 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5588 * c-ada-spec.c (dump_ads): Likewise.
5589 (cpp_check): Likewise.
5590 (dump_ada_specs): Likewise.
5591
5592 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
5593
5594 PR c++/49718
5595 * c-common.c (handle_no_instrument_function_attribute): Allow
5596 no_instrument_function attribute in class member
5597 definition/declaration.
5598
5599 2014-01-15 Jakub Jelinek <jakub@redhat.com>
5600
5601 PR c/58943
5602 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5603 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5604 being COMPOUND_EXPR.
5605 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5606 operand a SAVE_EXPR and second MODIFY_EXPR.
5607
5608 2014-01-09 Jakub Jelinek <jakub@redhat.com>
5609
5610 PR target/58115
5611 * c-pch.c (c_common_write_pch): Call
5612 prepare_target_option_nodes_for_pch.
5613
5614 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5615
5616 Update copyright years
5617
5618 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5619
5620 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5621 the copyright notice.
5622
5623 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5624
5625 * c-ada-spec.c (print_constructor): New function.
5626 (print_destructor): Retrieve the origin of the destructor.
5627 (print_ada_declaration): Revamp handling of constructors/destructors.
5628
5629 2013-12-23 Stuart Hastings <stuart@apple.com>
5630 Bill Maddox <maddox@google.com>
5631 Jason Merrill <jason@redhat.com>
5632
5633 * c.opt: Add -fdeclone-ctor-dtor.
5634 * c-opts.c (c_common_post_options): Default to on iff -Os.
5635
5636 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5637
5638 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5639 attribute.
5640 * c-pragma.h (enum pragma_cilk_clause): Remove.
5641 (enum pragma_omp_clause): Added the following fields:
5642 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5643 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5644 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5645 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5646 PRAGMA_CILK_CLAUSE_UNIFORM.
5647
5648
5649 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5650
5651 * cilk.c (cilk_outline): Made this function non-static.
5652 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5653 (create_cilk_wrapper): Added a new parameter: a function pointer.
5654 (c_install_body_w_frame_cleanup): Remove
5655 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5656 * c-common.h (cilk_outline): New prototype.
5657 (gimplify_cilk_spawn): Removed two parameters.
5658 (cilk_install_body_with_frame_cleanup): New prototype.
5659 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5660 CILK_SPAWN_STMT case.
5661
5662 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5663
5664 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5665
5666 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5667 (int_array_type_node): Remove.
5668 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5669
5670 2013-12-05 Marek Polacek <polacek@redhat.com>
5671
5672 PR c/52023
5673 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5674 [ADJUST_FIELD_ALIGN].
5675
5676 2013-12-04 Joseph Myers <joseph@codesourcery.com>
5677
5678 PR c/52023
5679 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5680 and check field alignment if set.
5681 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5682 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5683
5684 2013-12-04 Jakub Jelinek <jakub@redhat.com>
5685 Marek Polacek <polacek@redhat.com>
5686
5687 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5688 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5689
5690 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5691
5692 PR c/59309
5693 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5694 arguments.
5695
5696 2013-11-29 Jakub Jelinek <jakub@redhat.com>
5697
5698 PR c/59280
5699 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5700 goto invalid. If it is error_mark_node, don't issue further
5701 diagnostics.
5702
5703 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5704
5705 * c.opt (Wopenmp-simd): New.
5706
5707 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5708
5709 * c-ubsan.h (ubsan_instrument_return): New prototype.
5710 * c-ubsan.c (ubsan_instrument_return): New function.
5711
5712 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5713
5714 * c-common.c: Add required include files from gimple.h.
5715 * c-gimplify.c: Likewise
5716 * cilk.c: Likewise
5717
5718 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5719
5720 * c-common.c (unsafe_conversion_p): Remove use of
5721 EXPR_LOC_OR_HERE macro.
5722 (conversion_warning): Likewise.
5723 (warnings_for_convert_and_check): Likewise.
5724 (warn_for_collisions_1): Likewise.
5725 (shorten_compare): Likewise, and remove use of in_system_header
5726 macro, using the location from the former.
5727 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5728 (cb_def_pragma): Remove use of in_system_header macro.
5729 (lex_string): Likewise.
5730 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5731
5732 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5733 Mike Stump <mikestump@comcast.net>
5734 Richard Sandiford <rdsandiford@googlemail.com>
5735
5736 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5737 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5738 tree_fits_shwi_p or tree_fits_uhwi_p.
5739 (dump_generic_ada_node): Likewise.
5740 * c-format.c (check_format_arg): Likewise.
5741 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5742
5743 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5744
5745 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5746
5747 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5748
5749 PR c/53001
5750 * c-common.c (unsafe_conversion_p): Make this function
5751 return an enumeration with more detail.
5752 (conversion_warning): Use the new return type of
5753 unsafe_conversion_p to separately warn either about conversions
5754 that lower floating point number precision or about the other
5755 kinds of conversions.
5756 * c-common.h (enum conversion_safety): New enumeration.
5757 (unsafe_conversion_p): switching return type to
5758 conversion_safety enumeration.
5759 * c.opt: Adding new warning -Wfloat-conversion and
5760 enabling it with -Wconversion.
5761
5762 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5763
5764 * c-opts.c: Include plugin.h.
5765 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5766
5767 2013-11-19 Marek Polacek <polacek@redhat.com>
5768
5769 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5770 call.
5771 (ubsan_instrument_shift): Likewise.
5772 (ubsan_instrument_vla): Likewise.
5773
5774 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5775
5776 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5777 cast to unsigned type.
5778
5779 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5780
5781 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5782 tree_low_cst.
5783 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5784 rather than tree_low_cst.
5785
5786 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5787
5788 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5789 tree_to_uhwi throughout.
5790
5791 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5792
5793 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5794 tree_low_cst (..., 0) with tree_to_shwi throughout.
5795
5796 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5797
5798 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5799 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5800
5801 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5802
5803 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5804 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5805
5806 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5807
5808 * c-cilkplus.c: New file.
5809 * c-common.c (readonly_error): Add location argument.
5810 * c-common.h (readonly_error): Same.
5811 (c_finish_cilk_clauses): Protoize.
5812 (c_check_cilk_loop): Same.
5813 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5814 Do not fail on error_mark_node.
5815 Abstract increment canonicalization to here...
5816 (c_omp_for_incr_canonicalize_ptr): New.
5817 c-pragma.c (init_pragma): Register "simd" pragma.
5818 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5819 (enum pragma_cilk_clause): New.
5820
5821 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5822
5823 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5824 wchar_type and host_integerp checks.
5825
5826 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5827
5828 * c-common.c: Likewise.
5829 * c-gimplify.c: Likewise.
5830 * cilk.c: Likewise.
5831
5832 2013-11-14 Diego Novillo <dnovillo@google.com>
5833
5834 * c-common.c: Include fold-const.h.
5835 Include stor-layout.h.
5836 Include calls.h.
5837 Include stringpool.h.
5838 Include attribs.h.
5839 Include varasm.h.
5840 Include trans-mem.h.
5841 * c-cppbuiltin.c: Include stor-layout.h.
5842 Include stringpool.h.
5843 * c-format.c: Include stringpool.h.
5844 * c-lex.c: Include stringpool.h.
5845 Include stor-layout.h.
5846 * c-pragma.c: Include stringpool.h.
5847 Include attribs.h.
5848 Include varasm.h.
5849 Include gcc-symtab.h.
5850 * c-pretty-print.c: Include stor-layout.h.
5851 Include attribs.h.
5852 * cilk.c: Include stringpool.h.
5853 Include calls.h.
5854
5855 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5856
5857 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5858 * c-common.c (c_common_reswords): Add __auto_type.
5859 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5860
5861 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5862
5863 * c-common.c: Include gimplify.h.
5864 * c-gimplify.c: Likewise.
5865 * cilk.c: Likewise.
5866 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5867 * c-ubsan.c: Don't include gimple.h.
5868
5869 2013-11-12 Joseph Myers <joseph@codesourcery.com>
5870
5871 * c-common.c (c_common_reswords): Add _Thread_local.
5872
5873 2013-11-09 Joseph Myers <joseph@codesourcery.com>
5874
5875 * c-common.c (atomic_size_supported_p): New function.
5876 (resolve_overloaded_atomic_exchange)
5877 (resolve_overloaded_atomic_compare_exchange)
5878 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5879 Use it instead of comparing size with a local list of sizes.
5880
5881 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5882 Joseph Myers <joseph@codesourcery.com>
5883
5884 * c-common.h (enum rid): Add RID_ATOMIC.
5885 * c-common.c (c_common_reswords): Add _Atomic.
5886 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5887 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5888 * c-format.c (check_format_types): Check for extra _Atomic
5889 qualifiers in format argument.
5890 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5891 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5892
5893 2013-11-06 Tobias Burnus <burnus@net-b.de>
5894
5895 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5896
5897 2013-11-06 Joseph Myers <joseph@codesourcery.com>
5898
5899 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5900 standards modes.
5901 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5902 to mean lack of IEEE 754 support.
5903
5904 2013-11-05 Tobias Burnus <burnus@net-b.de>
5905
5906 * c.opt (-Wdate-time): New option
5907 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5908
5909 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5910
5911 * c-cppbuiltin.c (cpp_iec_559_value): Test
5912 flag_excess_precision_cmdline not flag_excess_precision.
5913
5914 2013-11-05 Tobias Burnus <burnus@net-b.de>
5915
5916 * c.opt (fopenmp-simd): New option.
5917 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5918 (omp_pragmas): ... this new struct.
5919 (c_pp_lookup_pragma): Also walk omp_pragmas.
5920 (init_pragma): Init pragmas for -fopenmp-simd.
5921
5922 2013-11-04 Marek Polacek <polacek@redhat.com>
5923
5924 PR c++/58979
5925 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5926
5927 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5928
5929 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5930 New functions.
5931 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5932
5933 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5934
5935 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5936 (dump_ada_specs): Adjust prototype of second callback.
5937 * c-ada-spec.c (cpp_check): New global variable.
5938 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5939 (print_generic_ada_decl): Likewise.
5940 (has_static_fields): Change return type to bool and add guard.
5941 (has_nontrivial_methods): New predicate.
5942 (is_tagged_type): Change return type to bool.
5943 (separate_class_package): Call has_nontrivial_methods.
5944 (pp_ada_tree_identifier): Minor tweaks.
5945 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5946 (dump_ada_array_domains): Likewise.
5947 (dump_ada_array_type): Likewise.
5948 (dump_template_types): Remove cpp_check parameter and do not pass it to
5949 dump_generic_ada_node.
5950 (dump_ada_template): Likewise.
5951 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5952 recursively.
5953 (print_ada_methods): Change return type to integer. Remove cpp_check
5954 parameter and do not pass it down.
5955 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5956 dump_generic_ada_node.
5957 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5958 accessing methods.
5959 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5960 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5961 value of print_ada_methods.
5962 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5963 Set cpp_check to it before invoking dump_ada_nodes.
5964 (dump_ada_specs): Likewise.
5965
5966 2013-11-03 Marek Polacek <polacek@redhat.com>
5967
5968 * c-ubsan.c: Don't include hash-table.h.
5969 (ubsan_instrument_vla): New function.
5970 * c-ubsan.h: Declare it.
5971
5972 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5973
5974 Automated part of renaming of symtab_node_base to symtab_node.
5975
5976 Patch autogenerated by rename_symtab.py from
5977 https://github.com/davidmalcolm/gcc-refactoring-scripts
5978 revision 58bb219cc090b2f4516a9297d868c245495ee622
5979
5980 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5981 symtab_node_base to symtab_node.
5982
5983 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5984
5985 Implement C++14 digit separators.
5986 * c-lex.c (interpret_float): Remove digit separators from scratch string
5987 before building real literal.
5988
5989 2013-10-30 Jakub Jelinek <jakub@redhat.com>
5990
5991 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5992
5993 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5994
5995 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5996 fields.
5997 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5998 enabled.
5999 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6000 (insert_cilk_frame): New prototype.
6001 (cilk_init_builtins): Likewise.
6002 (gimplify_cilk_spawn): Likewise.
6003 (c_cilk_install_body_w_frame_cleanup): Likewise.
6004 (cilk_detect_spawn_and_unwrap): Likewise.
6005 (cilk_set_spawn_marker): Likewise.
6006 (build_cilk_sync): Likewise.
6007 (build_cilk_spawn): Likewise.
6008 * cilk.c: New file.
6009
6010 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6011
6012 Patch autogenerated by refactor_symtab.py from
6013 https://github.com/davidmalcolm/gcc-refactoring-scripts
6014 revision 58bb219cc090b2f4516a9297d868c245495ee622
6015
6016 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6017 to a true class hierarchy.
6018 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6019
6020 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6021
6022 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6023
6024 2013-10-26 Jeff Law <law@redhat.com>
6025
6026 * c-common.c (c_define_builtins): Remove mudflap support.
6027 * c.opt: Ignore and warn for mudflap options.
6028
6029 2013-10-24 Tobias Burnus <burnus@net-b.de>
6030
6031 PR other/33426
6032 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6033 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6034
6035 2013-10-23 Jason Merrill <jason@redhat.com>
6036
6037 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6038
6039 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6040
6041 * c-common.h (omp_clause_mask::operator !=): New method.
6042 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6043 instead of if (mask & something) tests everywhere.
6044
6045 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6046 201307 instead of 201107.
6047 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6048 (c_common_attribute_table): Add "omp declare target" and
6049 "omp declare simd" attributes.
6050 (handle_omp_declare_target_attribute,
6051 handle_omp_declare_simd_attribute): New functions.
6052 * c-omp.c: Include c-pragma.h.
6053 (c_finish_omp_taskgroup): New function.
6054 (c_finish_omp_atomic): Add swapped argument, if true,
6055 build the operation first with rhs, lhs arguments and use NOP_EXPR
6056 build_modify_expr.
6057 (c_finish_omp_for): Add code argument, pass it down to make_code.
6058 (c_omp_split_clauses): New function.
6059 (c_split_parallel_clauses): Removed.
6060 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6061 c_omp_declare_simd_clauses_to_decls): New functions.
6062 * c-common.h (omp_clause_mask): New type.
6063 (OMP_CLAUSE_MASK_1): Define.
6064 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6065 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6066 omp_clause_mask::operator |, omp_clause_mask::operator &,
6067 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6068 omp_clause_mask::operator ==): New methods.
6069 (enum c_omp_clause_split): New.
6070 (c_finish_omp_taskgroup): New prototype.
6071 (c_finish_omp_atomic): Add swapped argument.
6072 (c_finish_omp_for): Add code argument.
6073 (c_omp_split_clauses): New prototype.
6074 (c_split_parallel_clauses): Removed.
6075 (c_omp_declare_simd_clauses_to_numbers,
6076 c_omp_declare_simd_clauses_to_decls): New prototypes.
6077 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6078 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6079 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6080 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6081 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6082 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6083 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6084 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6085 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6086 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6087 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6088 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6089 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6090 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6091 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6092 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6093 PRAGMA_OMP_CLAUSE_UNIFORM.
6094
6095 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
6096
6097 PR tree-optimization/20318
6098 * c-common.c (handle_returns_nonnull_attribute): New function.
6099 (c_common_attribute_table): Add returns_nonnull.
6100
6101 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
6102
6103 PR c++/19476
6104 * c.opt (fcheck-new): Move to common.opt.
6105
6106 2013-09-25 Marek Polacek <polacek@redhat.com>
6107 Jakub Jelinek <jakub@redhat.com>
6108
6109 PR sanitizer/58413
6110 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6111 an expression if we can prove it is correct.
6112 (ubsan_instrument_division): Likewise. Remove unnecessary
6113 check.
6114
6115 2013-09-18 Marek Polacek <polacek@redhat.com>
6116
6117 PR sanitizer/58411
6118 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6119 Declare it.
6120 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6121
6122 2013-09-14 Iain Sandoe <iain@codesourcery.com>
6123
6124 PR target/48094
6125 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6126 fobjc-gc, freplace-objc-classes): Accept for LTO.
6127
6128 2013-09-13 Jacek Caban <jacek@codeweavers.com>
6129
6130 * c-target.def: New hook
6131
6132 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6133
6134 PR c++/43452
6135 * c.opt (Wdelete-incomplete): Add.
6136
6137 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6138
6139 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6140 (vector_types_compatible_elements_p): New function.
6141 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6142 declaration.
6143 (vector_types_compatible_elements_p): Declare.
6144
6145 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6146
6147 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6148 a virtual member function.
6149 (pp_simple_type_specifier): Remove.
6150 (pp_c_type_specifier): Likewise.
6151 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6152 Rename from pp_c_type_specifier. Adjust.
6153 (c_pretty_printer::c_pretty_printer): Do not assign to
6154 simple_type_specifier.
6155
6156 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6157
6158 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6159 member function.
6160 (c_pretty_printer::storage_class_specifier): Likewise.
6161 (c_pretty_printer::initializer): Likewise.
6162 (pp_declaration): Remove.
6163 (pp_declaration_specifiers): Likewise.
6164 (pp_abstract_declarator): Likewise.
6165 (pp_declarator): Likewise.
6166 (pp_type_id): Likewise.
6167 (pp_statement): Likewise.
6168 (pp_constant): Likewise.
6169 (pp_id_expression): Likewise.
6170 (pp_primary_expression): Likewise.
6171 (pp_unary_expression): Likewise.
6172 (pp_multiplicative_expression): Likewise.
6173 (pp_conditional_expression): Likewise.
6174 (pp_assignment_expression): Likewise.
6175 (pp_expression): Likewise.
6176 (pp_c_type_id): Likewise.
6177 (pp_c_storage_class_specifier): Likewise.
6178 * c-pretty-print.c (pp_c_type_cast): Tidy.
6179 (pp_c_pointer): Likewise.
6180 (pp_c_type_specifier): Likewise.
6181 (pp_c_parameter_type_list): Likewise.
6182 (pp_c_function_definition): Likewise.
6183 (pp_c_init_declarator): Likewise.
6184 (pp_c_initializer_list): Likewise.
6185 (pp_c_constructor_elts): Likewise.
6186 (c_pretty_printer::direct_abstract_declarator): Likewise.
6187 (c_pretty_printer::declaration_specifiers): Likewise.
6188 (c_pretty_printer::primary_expression): Likewise.
6189 (c_pretty_printer::postfix_expression): Likewise.
6190 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6191 (c_pretty_printer::storage_class_specifier): Rename from
6192 pp_c_storage_class_specifier.
6193 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6194 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6195 storage_class_specifier, initializer, offset_list, flags.
6196
6197 2013-08-30 Marek Polacek <polacek@redhat.com>
6198
6199 * c-ubsan.c: New file.
6200 * c-ubsan.h: New file.
6201
6202 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6203
6204 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6205 member function.
6206 (c_pretty_printer::declaration_specifiers): Likewise.
6207 (c_pretty_printer::declarator): Likewise.
6208 (c_pretty_printer::abstract_declarator): Likewise.
6209 (c_pretty_printer::direct_abstract_declarator): Likewise.
6210 (c_pretty_printer::direct_declarator): Likewise.
6211 (c_pretty_printer::function_specifier): Likewise.
6212 (pp_declaration): Adjust.
6213 (pp_declaration_specifiers): Likewise.
6214 (pp_abstract_declarator): Likewise.
6215 (pp_direct_declarator): Likewise.
6216 (pp_function_specifier): Likewise.
6217 (pp_direct_abstract_declarator): Remove as unused.
6218 (pp_c_declaration): Remove.
6219 (pp_c_declaration_specifiers): Likewise.
6220 (pp_c_declarator): Likewise.
6221 (pp_c_direct_declarator): Likewise.
6222 (pp_c_function_specifier): Likewise.
6223 (pp_c_direct_abstract_declarator): Likewise.
6224 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6225 from pp_c_abstract_declarator. Adjust.
6226 (c_pretty_printer::direct_abstract_declarator): Rename from
6227 pp_c_direct_abstract_declarator. Adjust.
6228 (c_pretty_printer::function_specifier): Rename from
6229 pp_c_function_specifier. Adjust.
6230 (c_pretty_printer::declaration_specifiers): Rename from
6231 pp_c_declaration_specifiers. Adjust.
6232 (c_pretty_printer::direct_declarator): Rename from
6233 pp_c_direct_declarator. Adjust.
6234 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6235 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6236 (c_pretty_printer::c_pretty_printer): Do not assign to
6237 declaration, declaration_specifiers, declarator,
6238 direct_declarator, direct_abstract_declarator, function_specifier.
6239
6240 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6241
6242 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6243 virtual member function.
6244 (c_pretty_printer::multiplicative_expression): Likewise.
6245 (c_pretty_printer::conditional_expression): Likewise.
6246 (c_pretty_printer::assignment_expression): Likewise.
6247 (c_pretty_printer::expression): Likewise.
6248 (pp_unary_expression): Adjust.
6249 (pp_multiplicative_expression): Likewise.
6250 (pp_assignment_expression): Likewise.
6251 (pp_conditional_expression): Likewise.
6252 (pp_expression): Likewise.
6253 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6254 from pp_c_unary_expression. Adjust.
6255 (c_pretty_printer::multiplicative_expression): Rename from
6256 pp_c_multiplicative_expression. Adjust.
6257 (c_pretty_printer::conditional_expression): Rename from
6258 pp_c_conditional_expression. Adjust.
6259 (c_pretty_printer::assignment_expression): Rename from
6260 pp_c_assignment_expression. Adjust.
6261 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6262 (c_pretty_printer::c_pretty_printer): Do not assign to
6263 unary_expression, multiplicative_expression,
6264 conditional_expression, expression.
6265
6266 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6267
6268 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6269 virtual member function.
6270 (pp_postfix_expression): Adjust.
6271 (pp_c_postfix_expression): Remove.
6272 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6273 from pp_c_postfix_expression. Adjust.
6274 (c_pretty_printer::c_pretty_printer): Do not assign to
6275 postfix_expression.
6276
6277 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6278
6279 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6280 virtua member function.
6281 (pp_primary_expression): Adjust.
6282 (pp_c_primary_expression): Remove.
6283 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6284 from pp_c_primary_expression. Adjust.
6285 (pp_c_initializer_list): Use pp_primary_expression.
6286 (c_pretty_printer::c_pretty_printer): Do not assign to
6287 primary_expression.
6288
6289 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6290
6291 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6292 * c-pretty-print.c (M_): Remove.
6293 (c_pretty_printer::translate_string): Define.
6294 (pp_c_type_specifier): Use it.
6295 (pp_c_primary_expression): Likewise.
6296 (pp_c_expression): Likewise.
6297
6298 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6299
6300 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6301 virtual function.
6302 (pp_c_id_expression): Remove.
6303 (pp_id_expression): Adjust.
6304 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6305 pp_c_id_expression. Adjust.
6306 (pp_c_postfix_expression): Use pp_id_expression.
6307 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6308
6309 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6310
6311 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6312 member function.
6313 (pp_constant): Adjust.
6314 (pp_c_constant): Remove.
6315 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6316 pp_c_constant. Adjust.
6317 (pp_c_constant)
6318 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6319 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6320
6321 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6322
6323 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6324 (c_pretty_printer::c_pretty_printer): Declare.
6325 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6326 c_pretty_printer_init. Adjust.
6327 (print_c_tree): Do not call c_pretty_printer_init.
6328 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6329
6330 2013-08-09 Arnaud Charlet <charlet@adacore.com>
6331
6332 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6333
6334 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6335
6336 PR c++/58080
6337 * c-common.c (pointer_int_sum): Add bool parameter.
6338 * c-common.h (pointer_int_sum): Adjust declaration.
6339
6340 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6341
6342 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6343 c_pretty_printer variable.
6344
6345 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6346
6347 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6348 (pp_base): Remove.
6349 (pp_c_base): Likewise. Adjust users.
6350 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6351 (pp_c_whitespace): Do not call pp_base.
6352 (pp_c_left_paren): Likewise.
6353 (pp_c_right_paren): Likewise.
6354 (pp_c_left_brace): Likewise.
6355 (pp_c_right_brace): Likewise.
6356 (pp_c_left_bracket): Likewise.
6357 (pp_c_right_bracket): Likewise.
6358 (pp_c_dot): Likewise.
6359 (pp_c_ampersand): Likewise.
6360 (pp_c_star): Likewise.
6361 (pp_c_arrow): Likewise.
6362 (pp_c_semicolon): Likewise.
6363 (pp_c_complement): Likewise.
6364 (pp_c_exclamation): Likewise.
6365 (pp_c_direct_declarator): Likewise.
6366 (pp_c_ws_string): Likewise.
6367 (pp_c_identifier): Likewise.
6368 (pp_c_statement): Likewise.
6369 (print_c_tree): Likewise.
6370
6371 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6372
6373 PR c++/58072
6374 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6375 provide useful error strings.
6376
6377 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6378
6379 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6380 printer functions instead of pp_string or operators and punctuators.
6381 (dump_generic_ada_node): Likewise.
6382 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6383 (pp_c_relational_expression): Likewise.
6384 (pp_c_logical_or_expression): Likewise.
6385
6386 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6387
6388 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6389 functions instead of pp_character.
6390 (pp_ada_tree_identifier): Likewise.
6391 (dump_ada_double_name): Likewise.
6392 (dump_ada_function_declaration): Likewise.
6393 (dump_ada_array_domains): Likewise.
6394 (dump_template_types): Likewise.
6395 (dump_generic_ada_node): Likewise.
6396 (print_ada_declaration): Likewise.
6397 (print_ada_struct_decl): Likewise.
6398 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6399
6400 2013-07-23 Tom Tromey <tromey@redhat.com>
6401
6402 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6403 * c-common.c (c_common_reswords): Add _Generic.
6404
6405 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6406
6407 * c-common.c: Fix typos.
6408 * c-common.h: Likewise.
6409
6410 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
6411
6412 PR c++/55203
6413 * c-common.c (c_common_attribute_table): Add warn_unused.
6414 (handle_warn_unused_attribute): New.
6415
6416 2013-07-10 Jakub Jelinek <jakub@redhat.com>
6417
6418 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6419 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6420
6421 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6422
6423 PR c++/57869
6424 * c.opt: Add Wconditionally-supported.
6425
6426 2013-07-08 Graham Stott <graham.stott@btinternet.com>
6427
6428 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6429 unused variables l_length and l_node.
6430
6431 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
6432
6433 PR c/57821
6434 * c-common.c (complete_array_type): Delay folding first index
6435 like other indices. When folding, check for index overflow.
6436
6437 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
6438
6439 PR c++/57509
6440 * c-common.h (c_build_vec_perm_expr): New complain argument.
6441 * c-common.c (c_build_vec_perm_expr): Likewise.
6442 Use save_expr also in C++.
6443
6444 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6445
6446 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6447 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6448 * c-opts.c (c_common_post_options): Likewise.
6449
6450 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6451
6452 * array-notation-common.c (length_mismatch_in_expr): Changed the
6453 parameter type's from a dynamic array to a vec_tree. Also removed
6454 the size parameters.
6455 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6456 the change above.
6457
6458 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6459
6460 * c-common.h (struct cilkplus_an_parts): New structure.
6461 (struct cilkplus_an_loop_parts): Likewise.
6462 (cilkplus_extract_an_triplets): New prototype.
6463 (fix_sec_implicit_args): Likewise.
6464 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6465 (fix_sec_implicit_args): Likewise.
6466
6467 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6468
6469 * array-notation-common.c (find_inv_trees): Removed an unwanted
6470 typecasting.
6471 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6472 enum rid to enum tree_code.
6473
6474 2013-06-11 Jan Hubicka <jh@suse.cz>
6475
6476 * c-common.c (handle_alias_ifunc_attribute): Do not set
6477 DECL_EXTERNAL for weakref variables.
6478 * c-pragma.c (handle_pragma_weak): Make sure aliases
6479 are not declared as external.
6480
6481 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6482
6483 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6484 function from c/c-array-notation.c.
6485 (is_cilkplus_reduce_builtin): Likewise.
6486 (find_rank): Likewise.
6487 (extract_array_notation_exprs): Likewise.
6488 (replace_array_notations): Likewise.
6489 (find_inv_trees): Likewise.
6490 (replace_inv_trees): Likewise.
6491 (contains_array_notation_expr): Likewise.
6492 (find_correct_array_notation_type): Likewise.
6493 * c-common.h (struct inv_list): Moved this struct from the file
6494 c/c-array-notation.c and added a new field called additional tcodes.
6495 (length_mismatch_in_expr_p): New prototype.
6496 (is_cilkplus_reduce_builtin): Likewise.
6497 (find_rank): Likewise.
6498 (extract_array_notation_exprs): Likewise.
6499 (replace_array_notation): Likewise.
6500 (find_inv_trees): Likewise.
6501 (replace_inv_trees): Likewise.
6502 (find_correct_array_notation_type): Likewise.
6503
6504 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6505
6506 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6507 function array_notation_init_builtins is called.
6508 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6509 * c-common.def (ARRAY_NOTATION_REF): New tree.
6510 * c-common.h (build_array_notation_expr): New function declaration.
6511 (build_array_notation_ref): Likewise.
6512 (extract_sec_implicit_index_arg): New extern declaration.
6513 (is_sec_implicit_index_fn): Likewise.
6514 (ARRAY_NOTATION_CHECK): New define.
6515 (ARRAY_NOTATION_ARRAY): Likewise.
6516 (ARRAY_NOTATION_START): Likewise.
6517 (ARRAY_NOTATION_LENGTH): Likewise.
6518 (ARRAY_NOTATION_STRIDE): Likewise.
6519 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6520 ARRAY_NOTATION_REF.
6521 (pp_c_expression): Likewise.
6522 * c.opt (flag_enable_cilkplus): New flag.
6523 * array-notation-common.c: New file.
6524
6525 2013-05-14 Jakub Jelinek <jakub@redhat.com>
6526
6527 PR c++/57274
6528 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6529
6530 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
6531
6532 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6533 vectors.
6534
6535 2013-05-07 Han Shen <shenhan@google.com>
6536
6537 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6538
6539 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6540
6541 * c-common.c (check_user_alignment): Emit error for negative values.
6542
6543 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6544
6545 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6546
6547 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6548
6549 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6550 __GXX_EXPERIMENTAL_CXX1Y__.
6551
6552 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6553 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6554
6555 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6556 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6557 to simply use OPT_Wpointer_arith.
6558 (c_sizeof_or_alignof_type): Likewise.
6559
6560 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6561
6562 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6563
6564 2013-04-12 Jakub Jelinek <jakub@redhat.com>
6565
6566 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6567 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6568 specifiers.
6569
6570 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6571
6572 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6573
6574 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6575
6576 * c-common.c (pointer_int_sum): Remove dead code.
6577
6578 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6579
6580 PR middle-end/56524
6581 * c-common.c (handle_optimize_attribute): Don't call
6582 save_optabs_if_changed.
6583
6584 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6585
6586 PR middle-end/56461
6587 * c-pch.c (pch_init): Free target_validity at the end.
6588
6589 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6590
6591 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6592
6593 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6594 Jakub Jelinek <jakub@redhat.com>
6595
6596 PR sanitizer/56454
6597 * c-common.c (handle_no_sanitize_address_attribute): New function.
6598 (c_common_attribute_table): Add no_sanitize_address attribute.
6599 (handle_no_address_safety_analysis_attribute): Add
6600 no_sanitize_address attribute, not no_address_safety_analysis
6601 attribute.
6602
6603 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6604
6605 PR target/52555
6606 * c-common.c (handle_optimize_attribute): Call
6607 save_optabs_if_changed.
6608
6609 2013-02-18 Jakub Jelinek <jakub@redhat.com>
6610 Steven Bosscher <steven@gcc.gnu.org>
6611
6612 PR pch/54117
6613 * c-opts.c (c_common_post_options): If debug info is enabled
6614 and non-dwarf*, refuse to load PCH files and when writing PCH
6615 file warn.
6616
6617 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6618
6619 PR middle-end/56167
6620 * c-common.c (handle_error_attribute): Fix condition.
6621
6622 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6623
6624 PR c++/55742
6625 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6626
6627 2013-01-18 Jason Merrill <jason@redhat.com>
6628
6629 PR target/54908
6630 * c.opt (-fextern-tls-init): New.
6631 * c-opts.c (c_common_post_options): Handle it.
6632
6633 2013-01-09 Jakub Jelinek <jakub@redhat.com>
6634
6635 PR c/48418
6636 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6637 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6638 and is either negative or bigger or equal to type precision
6639 of the first operand.
6640
6641 2012-12-03 Marek Polacek <polacek@redhat.com>
6642
6643 PR c/55570
6644 * c-common.c (check_user_alignment): Swap order of tests,
6645 check TREE_CODE first.
6646
6647 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6648
6649 PR c++/52654
6650 * c-common.h (overflow_type): New enum.
6651 (build_userdef_literal): Add overflow_type argument.
6652 (tree_userdef_literal): Add overflow_type.
6653 (USERDEF_LITERAL_OVERFLOW): New access macro.
6654 * c-common.c (build_userdef_literal): Add overflow_type
6655 argument.
6656 * c-lex.c (c_lex_with_flags): Add overflow_type to
6657 build_userdef_literal calls.
6658 (interpret_integer, interpret_float): Add overflow_type argument.
6659
6660 2012-11-28 Richard Biener <rguenther@suse.de>
6661
6662 PR c/35634
6663 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6664 here and use a type with proper overflow behavior for types that would
6665 need to be promoted for the arithmetic.
6666
6667 2012-11-23 Jakub Jelinek <jakub@redhat.com>
6668
6669 PR sanitizer/55435
6670 * c-common.c (handle_no_address_safety_analysis_attribute): New
6671 function.
6672 (c_common_attribute_table): Add no_address_safety_analysis.
6673
6674 2012-11-16 Simon Baldwin <simonb@google.com>
6675
6676 * c.opt: Add f[no-]canonical-system-headers.
6677 * c-opts.c (c_common_handle_option): Handle
6678 OPT_fcanonical_system_headers.
6679
6680 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6681
6682 PR c++/54413
6683 * c-opts.c (c_common_handle_option): Set new flags.
6684 * c.opt: Describe new flags.
6685
6686 2012-11-09 Jason Merrill <jason@redhat.com>
6687
6688 * c.opt (Wabi-tag): New.
6689
6690 2012-11-09 Andi Kleen <ak@linux.intel.com>
6691
6692 PR 55139
6693 * c-common.c (get_atomic_generic_size): Mask with
6694 MEMMODEL_MASK
6695
6696 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6697
6698 PR c/53063
6699 * c.opt (Wformat): Make it Alias Wformat=1.
6700 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6701 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6702 LangEnabledBy.
6703 (Wformat=): RejectNegative. Use LangEnabledBy.
6704 (Wnonnull): Use LangEnabledBy.
6705 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6706 * c-format.c (set_Wformat): Delete.
6707 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6708 (maybe_read_dollar_number): Likewise.
6709 (avoid_dollar_number): Likewise.
6710 (finish_dollar_format_checking): Likewise.
6711 (check_format_info): Likewise.
6712 (check_format_info_main): Likewise.
6713 (check_format_types): Likewise.
6714 (format_type_warning): Likewise.
6715 * c-common.c (int): Likewise.
6716 (check_function_sentinel): Likewise.
6717 * c-common.h (warn_format,set_Wformat): Do not declare here.
6718
6719 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6720
6721 PR c/53063
6722 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6723 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6724 Use LangEnabledBy.
6725 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6726 common.opt.
6727 (Wvariadic-macros): Init(1).
6728 * c-opts.c (c_common_handle_option): Do not handle them
6729 explicitly.
6730 (c_common_post_options): Likewise.
6731 (sanitize_cpp_opts): warn_unused_macros is now
6732 cpp_warn_unused_macros.
6733 (push_command_line_include): Likewise.
6734 * c-common.c (warn_unknown_pragmas): Do not define.
6735 * c-common.h (warn_unknown_pragmas): Do not declare.
6736
6737 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6738
6739 PR c/51294
6740 * c-common.c (conversion_warning): Handle conditional expressions.
6741
6742 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6743
6744 PR c++/54930
6745 * c.opt (Wreturn_local_addr): Define new option.
6746
6747 2012-10-25 Jason Merrill <jason@redhat.com>
6748
6749 * c.opt (Wvirtual-move-assign): New.
6750
6751 * c.opt (Winherited-variadic-ctor): New.
6752
6753 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6754
6755 PR c++/54427
6756 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6757
6758 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6759
6760 * c-common.h (pch_cpp_save_state): Declare.
6761 * c-target.def (c_preinclude): New hook.
6762 * c-opts.c (done_preinclude): New.
6763 (push_command_line_include): Handle default preincluded header.
6764 (cb_file_change): Call pch_cpp_save_state when calling
6765 push_command_line_include.
6766 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6767 (pch_cpp_save_state): New.
6768 (pch_init): Call pch_cpp_save_state conditionally, instead of
6769 calling cpp_save_state.
6770
6771 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6772
6773 PR c/53063
6774 PR c/40989
6775 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6776 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6777 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6778 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6779 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6780 * c-opts.c (c_common_handle_option): Remove explicit handling from
6781 here.
6782 (c_common_post_options): Likewise.
6783
6784 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6785
6786 * c-ada-spec.c (LOCATION_COL): Delete.
6787 (compare_location): New function.
6788 (compare_node): Use it.
6789 (compare_comment): Likewise.
6790
6791 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6792
6793 PR c/53063
6794 PR c/40989
6795 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6796 * c-opts.c (c_common_handle_option): Do not set them here. Add
6797 comment.
6798 (c_common_post_options): Likewise.
6799
6800 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6801
6802 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6803 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6804 Remove POINTER_TYPE handling, add large unsigned handling and use
6805 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6806
6807 2012-10-12 Jakub Jelinek <jakub@redhat.com>
6808
6809 PR c/54381
6810 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6811 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6812 locs and array of 3 trees instead of just single loc and single
6813 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6814 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6815 For *cmp* builtins that take two sources strings report warnings
6816 about first and second source, not about destination and source.
6817
6818 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
6819
6820 PR c++/53055
6821 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6822
6823 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6824
6825 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6826 declaring something coming from another file.
6827
6828 2012-10-10 Arnaud Charlet <charlet@adacore.com>
6829
6830 PR ada/54845
6831 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6832
6833 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6834
6835 PR c++/54194
6836 * c-common.c (warn_about_parentheses): Add location_t parameter;
6837 use EXPR_LOC_OR_LOC.
6838 * c-common.h: Update declaration.
6839
6840 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
6841
6842 PR c++/54427
6843 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6844 more operations. Make error messages optional.
6845 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6846 (scalar_to_vector): Declare.
6847
6848 2012-10-08 Jason Merrill <jason@redhat.com>
6849
6850 * c-common.c (c_common_reswords): Add thread_local.
6851
6852 2012-10-08 Dodji Seketeli <dodji@redhat.com>
6853
6854 PR c++/53528 C++11 attribute support
6855 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6856 new functions.
6857 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6858 static function.
6859 (handle_aligned_attribute): In choose strictest alignment
6860 among many. Use new check_cxx_fundamental_alignment_constraints.
6861 (handle_transparent_union_attribute): In c++11 attribute syntax,
6862 don't look through typedefs.
6863
6864 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6865
6866 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6867 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6868 out of dumpfile.h.
6869
6870 2012-09-25 Dehao Chen <dehao@google.com>
6871
6872 PR middle-end/54645
6873 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6874 map when read in the pch.
6875
6876 2012-09-18 Arnaud Charlet <charlet@adacore.com>
6877
6878 * c-ada-spec.c: Style fixes.
6879
6880 2012-09-18 Thomas Quinot <quinot@adacore.com>
6881
6882 * c.opt (-fada-spec-parent): Define new command line switch.
6883 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6884 is specified, generate binding spec as a child of the specified unit.
6885
6886 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6887 Manuel López-Ibáñez <manu@gcc.gnu.org>
6888
6889 PR c++/53210
6890 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6891
6892 2012-08-23 Arnaud Charlet <charlet@adacore.com>
6893
6894 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6895 for pointers, and add missing Convention C pragma.
6896 (print_ada_struct_decl): Add missing aliased keyword.
6897 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6898
6899 2012-08-17 Jakub Jelinek <jakub@redhat.com>
6900
6901 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6902 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6903 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6904 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6905 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6906
6907 2012-08-10 Richard Guenther <rguenther@suse.de>
6908
6909 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6910
6911 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6912
6913 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6914 instead of separate pp_newline and pp_flush.
6915 (print_c_tree): Likewise.
6916
6917 2012-07-26 Richard Henderson <rth@redhat.com>
6918
6919 * c-common.c (handle_hot_attribute): Allow labels.
6920 (handle_cold_attribute): Likewise.
6921
6922 2012-07-20 Jakub Jelinek <jakub@redhat.com>
6923
6924 PR c++/28656
6925 * c-common.c (check_function_nonnull): Handle multiple nonnull
6926 attributes properly.
6927
6928 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6929
6930 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6931 * c-ada-spec.c: Likewise.
6932 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6933
6934 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6935
6936 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6937 Remove code conditional on it.
6938
6939 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6940
6941 * c-gimplify.c: Do not include basic-block.h.
6942 * c-common.c: Do not include linfuncs.h.
6943
6944 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6945
6946 * c-common.h: Include tree.h.
6947
6948 2012-07-02 Jason Merrill <jason@redhat.com>
6949
6950 PR c++/53524
6951 * c-common.c (get_priority): Call default_conversion.
6952
6953 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
6954
6955 * c-pch.c (c_common_write_pch): Remove unused variables.
6956
6957 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6958
6959 * cppspec.c: Moved from gcc/ to here.
6960
6961 2012-06-27 Kai Tietz <ktietz@redhat.com>
6962
6963 PR preprocessor/37215
6964 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6965
6966 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6967
6968 * c-common.h (c_common_print_pch_checksum): Remove.
6969 * c-pch.c: Do not include output.h.
6970 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6971 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6972 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6973 (struct c_pch_header): Remove.
6974 (get_ident): Update gpch version.
6975 (pch_init): Do not print executable_checksum to asm_out_file.
6976 Do not fail if there is no asm_out_file to read back from. Set
6977 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6978 (c_common_write_pch): Verify that nothing was written to asm_out_file
6979 since pch_init was called. Do not write a c_pch_header, and do not
6980 copy from asm_out_file to the PCH.
6981 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6982 the content of asm_out_file from the PCH.
6983 (c_common_print_pch_checksum): Remove.
6984 * c-opts.c (c_common_init): Print out executable_checksum directly.
6985
6986 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6987
6988 * c-target.def (objc_declare_unresolved_class_reference,
6989 objc_declare_class_definition): Add new hooks.
6990
6991 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6992
6993 * c-lex.c: Do not include output.h.
6994 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6995 Remove uses of ASM_OUTPUT_IDENT.
6996
6997 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
6998
6999 PR c++/51033
7000 * c-common.h (c_build_vec_perm_expr): Move decl here.
7001 * c-common.c (c_build_vec_perm_expr): Move definition
7002 here.
7003
7004 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7005
7006 * c.opt (fconserve-space): Turn into a no-op.
7007
7008 2012-06-04 Sterling Augustine <saugustine@google.com>
7009
7010 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7011 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7012 both the start and end of the function.
7013
7014 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7015
7016 * c-common.c: Do not include output.h.
7017 * c-pragma.c: Likewise.
7018
7019 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7020
7021 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7022 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7023 (lang_decl_name): Handle namespace decls.
7024
7025 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7026
7027 * c-ada-spec.c: Do not include output.h.
7028 * c-semantics.c: Likewise.
7029
7030 2012-05-29 Joseph Myers <joseph@codesourcery.com>
7031
7032 * c-common.c: Fix typo.
7033
7034 2012-05-29 Michael Matz <matz@suse.de>
7035
7036 * c-common.h (c_expand_decl): Remove prototype.
7037
7038 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7039
7040 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7041 * c-opts.c (c_common_handle_option): Remove code handling
7042 warn_missing_braces.
7043
7044 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7045
7046 PR c++/25137
7047 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7048 -Wmissing_braces.
7049
7050 2012-05-22 Dodji Seketeli <dodji@redhat.com>
7051
7052 PR c++/53322
7053 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7054
7055 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7056
7057 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7058 * c-opts.c (c_common_handle_option): Do not handle explicitly
7059 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7060
7061 2012-05-16 Dodji Seketeli <dodji@redhat.com>
7062
7063 PR preprocessor/7263
7064 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7065 to cpp_classify_number. For diagnostics, use the precise location
7066 instead of the global input_location.
7067
7068 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7069
7070 PR c++/11856
7071 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7072
7073 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7074
7075 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
7076
7077 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7078
7079 PR 53063
7080 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7081 Wreorder): Use LangEnabledBy.
7082 * c-opts.c (c_common_handle_option): Do not enable them
7083 explicitly. Call lang-specific generated functions.
7084 (c_common_post_options): Do not set them here.
7085
7086 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7087
7088 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7089 Wmissing-field-initializers,Wmissing-parameter-type,
7090 Wold-style-declaration,Woverride-init): Use EnabledBy.
7091 * c-opts.c (c_common_post_options): Do not set here explicitly.
7092
7093 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7094
7095 PR 53063
7096 * c-opts.c (c_common_handle_option): Use handle_generated_option
7097 to enable sub-options.
7098
7099 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7100
7101 PR c++/53158
7102 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7103
7104 2012-05-10 Richard Guenther <rguenther@suse.de>
7105
7106 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7107 adjust commentary about TYPE_IS_SIZETYPE types.
7108
7109 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7110
7111 PR c++/53261
7112 * c-common.c (warn_logical_operator): Check that argument of
7113 integer_zerop is not NULL.
7114
7115 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7116
7117 PR c/43772
7118 * c-common.c (warn_logical_operator): Do not warn if either side
7119 is already true or false.
7120
7121 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7122
7123 PR c/51712
7124 * c-common.c (expr_original_type): New.
7125 (shorten_compare): Do not warn for enumeration types.
7126
7127 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7128
7129 * c.opt (fpermissive): Add Var(flag_permissive).
7130
7131 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
7132
7133 PR c++/51033
7134 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7135 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7136
7137 2012-04-30 Dodji Seketeli <dodji@redhat.com>
7138
7139 Add -Wvarargs option
7140 * c.opt (Wvarargs): Define new option.
7141
7142 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7143
7144 * c-common.c (check_function_arguments): Replace
7145 Wmissing-format-attribute with Wsuggest-attribute=format.
7146
7147 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7148
7149 * c.opt (Wsuggest-attribute=format): New. Alias of
7150 Wmissing-format-attribute.
7151 * c-format.c (decode_format_type): Replace
7152 Wmissing-format-attribute with Wsuggest-attribute=format.
7153 (check_function_format): Likewise.
7154
7155 2012-04-27 Ollie Wild <aaw@google.com>
7156
7157 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7158 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7159 * c.opt: Add Wliteral-suffix.
7160
7161 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7162
7163 PR c/44774
7164 * c.opt (Wpedantic): New.
7165 (pedantic): Alias Wpedantic.
7166 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7167 (c_common_post_options): Likewise.
7168 (sanitize_cpp_opts): Likewise.
7169 * c-lex.c (interpret_float): Likewise.
7170 * c-format.c (check_format_types): Likewise.
7171 * c-common.c (pointer_int_sum): Likewise.
7172 (c_sizeof_or_alignof_type): Likewise.
7173 (c_add_case_label): Likewise.
7174 (c_do_switch_warnings): Likewise.
7175 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7176
7177 2012-04-15 Jason Merrill <jason@redhat.com>
7178
7179 PR c++/52818
7180 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7181 (C_STD_NAME): Distinguish between C++98 and C++11.
7182
7183 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7184
7185 PR target/52624
7186 * c-common.h (uint16_type_node): Rename into...
7187 (c_uint16_type_node): ...this.
7188 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7189 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7190
7191 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7192
7193 * c-common.c (warn_if_unused_value): Move definition to here.
7194 * c-common.h (warn_if_unused_value): Move declaration to here.
7195
7196 2012-03-23 William Bader <williambader@hotmail.com>
7197
7198 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7199
7200 2012-03-20 Jason Merrill <jason@redhat.com>
7201
7202 * c-common.h (enum cxx_dialect): Add cxx1y.
7203 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7204 test.
7205 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7206 * c-opts.c (c_common_post_options): Likewise.
7207 (set_std_cxx1y): New.
7208 (c_common_handle_option): Call it.
7209 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7210
7211 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7212
7213 PR c++/14710
7214 * c.opt ([Wuseless-cast]): Add.
7215
7216 2012-03-16 Richard Guenther <rguenther@suse.de>
7217
7218 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7219
7220 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7221
7222 PR c++/44783
7223 * c.opt (ftemplate-backtrace-limit) Add.
7224
7225 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7226
7227 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7228 handling.
7229 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7230 (init_pragma): Don't register extern_prefix.
7231
7232 2012-03-12 Richard Guenther <rguenther@suse.de>
7233
7234 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7235 (builtin_type_for_size): Likewise.
7236
7237 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7238
7239 PR c++/52215
7240 * c-common.c (sync_resolve_params): Don't decide whether to convert
7241 or not based on TYPE_SIZE comparison, convert whenever arg_type
7242 is unsigned INTEGER_TYPE.
7243
7244 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7245
7246 PR c/52118
7247 * c.opt ([Wunused-local-typedefs]): Fix description.
7248
7249 2012-01-24 Mike Stump <mikestump@comcast.net>
7250
7251 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7252 exactly.
7253
7254 2012-01-18 Richard Guenther <rguenther@suse.de>
7255
7256 * c-opts.c (c_common_post_options): Reset LTO flags if
7257 we are about to generate a PCH.
7258
7259 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7260
7261 PR c++/51777
7262 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7263 use pp_unsigned_wide_integer.
7264
7265 2012-01-10 Richard Guenther <rguenther@suse.de>
7266
7267 PR middle-end/51806
7268 * c-opts.c (c_common_handle_option): Move -Werror handling
7269 to language independent code.
7270
7271 2012-01-05 Richard Guenther <rguenther@suse.de>
7272
7273 PR middle-end/51764
7274 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7275 from common.opt.
7276
7277 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7278
7279 PR c++/51316
7280 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7281 of array types with an unknown bound.
7282
7283 2011-12-20 Joseph Myers <joseph@codesourcery.com>
7284
7285 * c-common.c (flag_isoc99): Update comment to refer to C11.
7286 (flag_isoc1x): Change to flag_isoc11.
7287 * c-common.h (flag_isoc99): Update comment to refer to C11.
7288 (flag_isoc1x): Change to flag_isoc11.
7289 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7290 C11.
7291 * c-opts.c (set_std_c1x): Change to set_std_c11.
7292 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7293 Call set_std_c11.
7294 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7295 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7296 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7297 standard.
7298 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7299 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7300 (std=gnu1x): Make alias of std=gnu11.
7301
7302 2011-12-19 Jason Merrill <jason@redhat.com>
7303
7304 PR c++/51228
7305 * c-common.c (handle_transparent_union_attribute): Check the first
7306 field if the type is complete.
7307
7308 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7309
7310 PR libstdc++/51365
7311 * c-common.c (RID_IS_FINAL): Add.
7312 * c-common.h (RID_IS_FINAL): Add.
7313
7314 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7315
7316 * c.opt (fgnu-runtime): Provide full description.
7317 (fnext-runtime): Likewise.
7318 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7319
7320 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
7321
7322 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7323 predefines in one place. Add LOCK_FREE predefines.
7324 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7325 new func.
7326
7327 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
7328
7329 PR c/51256
7330 * c-common.c (get_atomic_generic_size): Check for various error
7331 conditions
7332 (resolve_overloaded_atomic_exchange,
7333 resolve_overloaded_atomic_compare_exchange,
7334 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7335 error_mark_node for error conditions.
7336
7337 2011-11-08 Richard Guenther <rguenther@suse.de>
7338
7339 PR middle-end/51010
7340 c-family/
7341
7342 2011-11-07 Richard Henderson <rth@redhat.com>
7343 Aldy Hernandez <aldyh@redhat.com>
7344 Torvald Riegel <triegel@redhat.com>
7345
7346 Merged from transactional-memory.
7347
7348 * c-common.c (handle_tm_wrap_attribute,
7349 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7350 (struct c_common_reswords): Added __transaction* keywords.
7351 (struct c_common_attribute_table): Added transaction* and tm_regparm
7352 attributes.
7353 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7354 masks.
7355 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7356 find_tm_attribute): Declare.
7357
7358 2011-11-07 Jason Merrill <jason@redhat.com>
7359
7360 PR c++/35688
7361 * c-common.c, c-common.h: Revert yesterday's changes.
7362
7363 2011-11-06 Jason Merrill <jason@redhat.com>
7364
7365 PR c++/35688
7366 * c-common.c (decl_has_visibility_attr): Split out from...
7367 (c_determine_visibility): ...here.
7368 * c-common.h: Declare it.
7369
7370 2011-11-06 Joseph Myers <joseph@codesourcery.com>
7371
7372 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7373 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7374 type.
7375 (check_user_alignment): New. Split out of
7376 handle_aligned_attribute. Disallow integer constants with
7377 noninteger types. Conditionally allow zero.
7378 (handle_aligned_attribute): Use check_user_alignment.
7379 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7380
7381 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
7382 Richard Henderson <rth@redhat.com>
7383
7384 Merged from cxx-mem-model.
7385
7386 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7387 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7388 parameters that are the same type size.
7389 (get_atomic_generic_size): New. Find size of generic
7390 atomic function parameters and do typechecking.
7391 (add_atomic_size_parameter): New. Insert size into parameter list.
7392 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7393 either __atomic_exchange_n or external library call.
7394 (resolve_overloaded_atomic_compare_exchange): Restructure
7395 __atomic_compare_exchange to either _n variant or external library call.
7396 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7397 __atomic_load_n or an external library call.
7398 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7399 __atomic_store_n or an external library call.
7400 (resolve_overloaded_builtin): Handle new __atomic builtins.
7401
7402 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7403
7404 PR c++/50608
7405 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7406 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7407 <INDIRECT_REF>: Return the argument.
7408 <ARRAY_REF>: Remove special code for negative offset.
7409 Call fold_build_pointer_plus instead of size_binop.
7410 (fold_offsetof): Remove STOP_REF argument and adjust.
7411 * c-common.h (fold_offsetof_1): Declare.
7412 (fold_offsetof): Remove STOP_REF argument.
7413
7414 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7415
7416 PR c++/50810
7417 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7418 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7419 Wnarrowing for C++0x and C++98.
7420 * c.opt ([Wnarrowing]): Update.
7421
7422 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7423
7424 PR c++/44277
7425 * c.opt: Add Wzero-as-null-pointer-constant.
7426
7427 2011-10-31 Jason Merrill <jason@redhat.com>
7428
7429 * c.opt (-fdeduce-init-list): Off by default.
7430
7431 PR c++/50920
7432 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7433 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7434 and -Wc++11-compat.
7435 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7436
7437 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7438
7439 PR c++/30066
7440 * c.opt (fvisibility-inlines-hidden): Description change.
7441
7442 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7443
7444 Implement C++11 user-defined literals.
7445 * c-common.c (build_userdef_literal): New.
7446 * c-common.def: New tree code.
7447 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7448 * c-lex.c (interpret_float): Add suffix parm.
7449 (c_lex_with_flags): Build literal tokens.
7450
7451 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7452
7453 PR c++/50841
7454 Revert:
7455 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7456
7457 PR c++/50810
7458 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7459 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7460 Wnarrowing for C++0x and C++98.
7461 * c.opt ([Wnarrowing]): Update.
7462
7463 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7464
7465 PR c++/50810
7466 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7467 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7468 Wnarrowing for C++0x and C++98.
7469 * c.opt ([Wnarrowing]): Update.
7470
7471 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7472
7473 PR c++/45385
7474 * c-common.c (conversion_warning): Remove code looking for
7475 artificial operands.
7476
7477 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7478
7479 PR bootstrap/50760
7480 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7481 !NO_IMPLICIT_EXTERN_C.
7482
7483 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
7484
7485 * c-common.c (c_common_reswords): Add __bases,
7486 __direct_bases.
7487 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7488
7489 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7490
7491 PR c++/50757
7492 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7493
7494 2011-10-15 Tom Tromey <tromey@redhat.com>
7495 Dodji Seketeli <dodji@redhat.com>
7496
7497 * c.opt (fdebug-cpp): New option.
7498 * c-opts.c (c_common_handle_option): Handle the option.
7499 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7500 output stream in parameter. Factorized from ...
7501 (maybe_print_line): ... this. Dump location debug information when
7502 -fdebug-cpp is in effect.
7503 (print_line_1): New static function. Takes an output stream in
7504 parameter. Factorized from ...
7505 (print_line): ... here. Dump location information when -fdebug-cpp
7506 is in effect.
7507 (scan_translation_unit): Dump location information when
7508 -fdebug-cpp is in effect.
7509
7510 2011-10-15 Tom Tromey <tromey@redhat.com>
7511 Dodji Seketeli <dodji@redhat.com>
7512
7513 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7514 without argument.
7515 * c-opts.c (c_common_handle_option)<case
7516 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7517 cases. Handle -ftrack-macro-expansion with and without argument.
7518
7519 2011-10-15 Tom Tromey <tromey@redhat.com>
7520 Dodji Seketeli <dodji@redhat.com>
7521
7522 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7523 (print_line, cb_define, do_line_change): Adjust to avoid touching
7524 the internals of struct line_map. Use the public API instead.
7525 * c-pch.c (c_common_read_pch): Likewise.
7526 * c-lex.c (fe_file_change): Likewise.
7527
7528 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7529
7530 PR c++/17212
7531 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7532
7533 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7534
7535 PR c++/33067
7536 * c-pretty-print.c (pp_c_floating_constant): Output
7537 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7538
7539 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7540
7541 * c-common.c (def_builtin_1): Delete old interface with two
7542 parallel arrays to hold standard builtin declarations, and replace
7543 it with a function based interface that can support creating
7544 builtins on the fly in the future. Change all uses, and poison
7545 the old names. Make sure 0 is not a legitimate builtin index.
7546 * c-omp.c (c_finish_omp_barrier): Ditto.
7547 (c_finish_omp_taskwait): Ditto.
7548 (c_finish_omp_flush): Ditto.
7549
7550 2011-10-11 Tristan Gingold <gingold@adacore.com>
7551
7552 * c.opt: (fallow-parameterless-variadic-functions): New.
7553
7554 2011-09-08 Dodji Seketeli <dodji@redhat.com>
7555
7556 PR c++/33255 - Support -Wunused-local-typedefs warning
7557 * c-common.h (struct c_language_function::local_typedefs): New
7558 field.
7559 (record_locally_defined_typedef, maybe_record_typedef_use)
7560 (maybe_warn_unused_local_typedefs): Declare new functions.
7561 * c-common.c (record_locally_defined_typedef)
7562 (maybe_record_typedef_use)
7563 (maybe_warn_unused_local_typedefs): Define new functions.
7564 * c.opt: Declare new -Wunused-local-typedefs flag.
7565
7566 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7567
7568 PR middle-end/50266
7569 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7570 computations.
7571
7572 2011-09-05 Richard Guenther <rguenther@suse.de>
7573
7574 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7575 of integer_minus_one_node for empty array upper bounds.
7576
7577 2011-08-28 Dodji Seketeli <dodji@redhat.com>
7578
7579 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7580 it's the first time it's being called on this main TU.
7581
7582 2011-08-24 Richard Guenther <rguenther@suse.de>
7583
7584 PR c/49396
7585 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7586
7587 2011-08-22 Gabriel Charette <gchare@google.com>
7588
7589 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7590 defined in cpp_init_builtins and c_cpp_builtins.
7591
7592 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7593
7594 * c-common.c (c_common_reswords): Add __builtin_complex.
7595 * c-common.h (RID_BUILTIN_COMPLEX): New.
7596
7597 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7598
7599 * c-common.c (c_common_reswords): Add _Noreturn.
7600 (keyword_is_function_specifier): Handle RID_NORETURN.
7601 * c-common.h (RID_NORETURN): New.
7602
7603 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7604
7605 * c-common.c (unsafe_conversion_p): New function. Check if it is
7606 unsafe to convert an expression to the type.
7607 (conversion_warning): Adjust, use unsafe_conversion_p.
7608 * c-common.h (unsafe_conversion_p): New function declaration.
7609
7610 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7611
7612 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7613 (c_finish_omp_taskyield): New prototype.
7614 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7615 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7616 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7617 or RHS1 have side-effects, evaluate those too in the right spot,
7618 if it is a decl and LHS is also a decl, error out if they
7619 aren't the same.
7620 (c_finish_omp_taskyield): New function.
7621 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7622 * c-pragma.c (omp_pragmas): Add taskyield.
7623 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7624 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7625 PRAGMA_OMP_CLAUSE_MERGEABLE.
7626
7627 2011-07-25 Dodji Seketeli <dodji@redhat.com>
7628
7629 * c-common.h (set_underlying_type): Remove parm name from
7630 declaration.
7631
7632 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
7633
7634 * c-pretty-print.h: Search c-common.h in c-family.
7635
7636 2011-07-22 Jason Merrill <jason@redhat.com>
7637
7638 PR c++/49793
7639 * c.opt (Wnarrowing): New.
7640
7641 PR c++/30112
7642 * c-common.h: Declare c_linkage_bindings.
7643 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7644
7645 PR c++/49813
7646 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7647 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7648 as flag_isoc99 for 'restrict'.
7649 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7650
7651 2011-07-21 Ian Lance Taylor <iant@google.com>
7652
7653 PR middle-end/49705
7654 * c-common.c (c_disable_warnings): New static function.
7655 (c_enable_warnings): New static function.
7656 (c_fully_fold_internal): Change local unused_p to bool. Call
7657 c_disable_warnings and c_enable_warnings rather than change
7658 c_inhibit_evaluation_warnings.
7659
7660 2011-07-20 Jason Merrill <jason@redhat.com>
7661
7662 PR c++/6709 (DR 743)
7663 PR c++/42603 (DR 950)
7664 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7665 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7666 (CPP_DECLTYPE): New.
7667 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7668
7669 2011-07-19 Richard Guenther <rguenther@suse.de>
7670
7671 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7672 * c-omp.c (c_finish_omp_for): Likewise.
7673
7674 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7675
7676 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7677 body on the next line.
7678
7679 2011-07-08 Jason Merrill <jason@redhat.com>
7680
7681 PR c++/45437
7682 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7683
7684 PR c++/49673
7685 * c-common.c (c_apply_type_quals_to_decl): Don't check
7686 TYPE_NEEDS_CONSTRUCTING.
7687
7688 2011-07-06 Richard Guenther <rguenther@suse.de>
7689
7690 * c-common.c (c_common_nodes_and_builtins):
7691 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7692
7693 2011-07-05 Richard Guenther <rguenther@suse.de>
7694
7695 * c-common.c (c_common_nodes_and_builtins): Build all common
7696 tree nodes first.
7697
7698 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7699
7700 * c-common.h (c_tree_chain_next): New static inline function.
7701
7702 * c-common.c (check_builtin_function_arguments): Handle
7703 BUILT_IN_ASSUME_ALIGNED.
7704
7705 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7706
7707 * c-common.c: Add sync_ or SYNC__ to builtin names.
7708 * c-omp.c: Add sync_ or SYNC__ to builtin names.
7709
7710 2011-06-20 Pierre Vittet <piervit@pvittet.com>
7711
7712 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7713 handler.
7714 (gen_pragma_handler): New union.
7715 (internal_pragma_handler): New type.
7716 (c_register_pragma_with_data)
7717 (c_register_pragma_with_expansion_and_data): New functions.
7718
7719 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7720 (c_register_pragma, c_register_pragma_with_expansion)
7721 (c_invoke_pragma_handler): Changed to work with
7722 internal_pragma_handler.
7723 (c_register_pragma_with_data)
7724 (c_register_pragma_with_expansion_and_data): New functions.
7725
7726 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7727
7728 * c-common.c: Include common/common-target.h.
7729 (handle_section_attribute): Use
7730 targetm_common.have_named_sections.
7731 * c-cppbuiltin.c: Include common/common-target.h.
7732 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7733
7734 2011-06-10 Richard Guenther <rguenther@suse.de>
7735
7736 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7737 to print a IDENTIFIER_NODE.
7738
7739 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7740 Joseph Myers <joseph@codesourcery.com>
7741
7742 * c.opt (fbuilding-libgcc): New option.
7743 * c-cppbuiltin.c (c_cpp_builtins): Define
7744 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7745
7746 2011-06-07 Jason Merrill <jason@redhat.com>
7747
7748 * c-common.c (max_tinst_depth): Lower default to 900.
7749
7750 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7751
7752 2011-06-07 Richard Guenther <rguenther@suse.de>
7753
7754 * c-common.c (c_common_nodes_and_builtins): Do not set
7755 size_type_node or call set_sizetype.
7756
7757 2011-06-07 Dodji Seketeli <dodji@redhat.com>
7758
7759 PR debug/49130
7760 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7761 type when using pointer comparison to compare types.
7762
7763 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7764
7765 * c.opt: Add -Wdelete-non-virtual-dtor.
7766 * c-opts.c (c_common_handle_option): Include it in -Wall.
7767
7768 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7769
7770 PR bootstrap/49190
7771
7772 Revert:
7773 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7774
7775 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7776 not tree_common.
7777
7778 2011-05-27 Jakub Jelinek <jakub@redhat.com>
7779
7780 PR c++/49165
7781 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7782 C++ don't call c_common_truthvalue_conversion on void type arms.
7783
7784 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7785
7786 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7787 (stmt_list_stack): Define.
7788 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7789 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7790
7791 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7792
7793 * c-common.c (warning_candidate_p): Check for BLOCKs.
7794
7795 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7796
7797 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7798 not tree_common.
7799
7800 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7801
7802 * c-common.c (def_fn_type): Remove extra va_end.
7803
7804 2011-05-23 Jason Merrill <jason@redhat.com>
7805
7806 PR c++/48106
7807 * c-common.c (c_common_get_narrower): New.
7808 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7809
7810 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7811
7812 * c-common.h (check_function_arguments): Tweak prototype of
7813 check_function_arguments.
7814 * c-common.c (check_function_arguments): Likewise. Adjust
7815 calls to check_function_nonnull, check_function_format, and
7816 check_function_sentinel.
7817 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7818 separate attributes and typelist arguments. Use
7819 FOREACH_FUNCTION_ARGS to iterate over argument types.
7820
7821 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7822
7823 * c-common.c (c_common_reswords): Reorder.
7824 * c-common.h (rid): Likewise.
7825
7826 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7827
7828 * c-common.c (def_fn_type): Don't call build_function_type, call
7829 build_function_type_array or build_varargs_function_type_array
7830 instead.
7831 (c_common_nodes_and_builtins): Likewise.
7832
7833 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7834
7835 * c-common.c (c_add_case_label): Omit the loc argument to
7836 build_case_label.
7837 * c-common.h (build_case_label): Remove.
7838 * c-semantics.c (build_case_label): Remove.
7839
7840 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7841
7842 * c-objc.h (objc_start_method_definition): Update prototype.
7843 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7844
7845 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7846
7847 * c-common.c (check_main_parameter_types): Reindent. Don't use
7848 TYPE_ARG_TYPES directly.
7849 (handle_nonnull_attribute): Likewise.
7850 (sync_resolve_params): Likewise.
7851 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7852 to check_format_string.
7853 (handle_format_attribute): Likewise.
7854 (check_format_string): Take a function type to examine instead of
7855 a type list. Use a function_arg_iterator to step through argument
7856 types.
7857
7858 2011-05-04 Richard Guenther <rguenther@suse.de>
7859
7860 * c-common.c (fix_string_type): Use size_int for index type bounds.
7861 (start_fname_decls): Do not pass NULL to build_int_cst.
7862 (c_init_attributes): Likewise.
7863 * c-lex.c (c_lex_with_flags): Likewise.
7864
7865 2011-04-27 Jason Merrill <jason@redhat.com>
7866
7867 * c-common.c (make_tree_vector_from_list): New.
7868 * c-common.h: Declare it.
7869
7870 2011-04-26 Richard Guenther <rguenther@suse.de>
7871
7872 PR preprocessor/48248
7873 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7874 for output size with -P.
7875
7876 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7877
7878 * c-common.c (struct c_common_resword): Add __underlying_type.
7879 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7880
7881 2011-04-20 Jim Meyering <meyering@redhat.com>
7882
7883 * c-format.c (init_dollar_format_checking): Remove useless
7884 if-before-free.
7885
7886 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7887
7888 * c-objc.h (objc_get_interface_ivars): Removed.
7889 (objc_detect_field_duplicates): New.
7890 * stub-objc.c: Likewise.
7891
7892 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7893
7894 * stub-objc.c (objc_declare_protocols): Renamed to
7895 objc_declare_protocol.
7896 * c-objc.h: Likewise.
7897
7898 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7899
7900 * stub-objc.c (objc_declare_class): Updated argument name.
7901
7902 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7903
7904 * c-common.h (c_common_init_ts): Declare.
7905 * c-common.c (c_common_init_ts): Define.
7906
7907 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7908
7909 * c-objc.h (objc_build_message_expr): Updated prototype.
7910 * stub-objc.c (objc_build_message_expr): Likewise.
7911
7912 2011-04-12 Martin Jambor <mjambor@suse.cz>
7913
7914 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7915 of cgraph_node.
7916
7917 2011-04-11 Richard Guenther <rguenther@suse.de>
7918
7919 * c-common.c (complete_array_type): Build a range type of
7920 proper type.
7921
7922 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7923
7924 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7925 (handle_type_generic_attribute): Likewise.
7926
7927 2011-04-07 Jason Merrill <jason@redhat.com>
7928
7929 PR c++/48450
7930 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7931 conversion from C++0x scoped enum.
7932
7933 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7934
7935 * c-target-def.h: New file.
7936 * c-target.def: New file.
7937 * c-target.h: New file.
7938 * c-common.c (targetcm): Don't define here.
7939 * c-common.h (default_handle_c_option): Declare.
7940 * c-format.c: Include c-target.h instead of target.h.
7941 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7942 include tm.h.
7943 (default_handle_c_option): Move from targhooks.c.
7944
7945 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR preprocessor/48248
7948 * c-ppoutput.c (print): Add src_file field.
7949 (init_pp_output): Initialize it.
7950 (maybe_print_line): Don't optimize by adding up to 8 newlines
7951 if map->to_file and print.src_file are different file.
7952 (print_line): Update print.src_file.
7953
7954 2011-03-25 Kai Tietz <ktietz@redhat.com>
7955
7956 * c-ada-spec.c (compare_comment): Use filename_cmp
7957 instead of strcmp for filename.
7958
7959 2011-03-25 Jeff Law <law@redhat.com>
7960
7961 * c-common.c (def_fn_type): Add missing va_end.
7962
7963 2011-03-25 Jason Merrill <jason@redhat.com>
7964
7965 * c.opt: Add -std=c++03.
7966
7967 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7968
7969 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7970
7971 2011-03-17 Kai Tietz <ktietz@redhat.com>
7972
7973 PR target/12171
7974 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7975 Display allowed attributes for function pointer types.
7976 (pp_c_attributes_display): New function to display
7977 attributes having affects_type_identity flag set to true.
7978 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7979
7980 * c-common.c (c_common_attribute_table):
7981 Add new element.
7982 (c_common_format_attribute_table): Likewise.
7983
7984 2011-03-18 Jason Merrill <jason@redhat.com>
7985
7986 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7987 * c-common.h: Don't declare it here.
7988 * c-common.c: Or define it here.
7989 * c-opts.c (c_common_handle_option): Or set it here.
7990
7991 PR c++/35315
7992 * c-common.c (handle_transparent_union_attribute): Don't
7993 make a duplicate type in C++.
7994
7995 2011-03-15 Jason Merrill <jason@redhat.com>
7996
7997 * c-common.c (max_constexpr_depth): New.
7998 * c-common.h: Declare it.
7999 * c-opts.c (c_common_handle_option): Set it.
8000 * c.opt (fconstexpr-depth): New option.
8001
8002 2011-03-11 Jason Merrill <jason@redhat.com>
8003
8004 * c-common.c (attribute_takes_identifier_p): Add missing const.
8005
8006 PR c++/46803
8007 * c-common.c (attribute_takes_identifier_p): Assume that an
8008 unknown attribute takes an identifier.
8009
8010 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8011
8012 PR c/47786
8013 * c-common.c (c_type_hash): Call list_length instead of iterating
8014 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8015
8016 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR c/47809
8019 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8020
8021 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8022
8023 * c.opt (fobjc-abi-version=) New.
8024 (fobjc-nilcheck): New.
8025
8026 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8027
8028 PR c++/46890
8029 * c-common.h (keyword_is_decl_specifier): Declare.
8030 * c-common.c (keyword_is_decl_specifier): Define.
8031 (keyword_is_function_specifier): New function.
8032
8033 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8034
8035 PR c/47473
8036 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8037 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8038 REAL_TYPE.
8039
8040 2011-01-26 Arnaud Charlet <charlet@adacore.com>
8041
8042 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8043
8044 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8045
8046 PR pch/47430
8047 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8048 after init_c_lex if pch_file is set.
8049
8050 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8051
8052 PR c++/43601
8053 * c.opt (-fkeep-inline-dllexport): New switch.
8054
8055 2011-01-12 Richard Guenther <rguenther@suse.de>
8056
8057 PR middle-end/32511
8058 * c-common.c (handle_weak_attribute): Warn instead of error
8059 on declaring an inline function weak.
8060
8061 2011-01-05 Tom Tromey <tromey@redhat.com>
8062
8063 * c-common.h (lvalue_error): Update.
8064 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8065 not error.
8066
8067 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
8068
8069 PR objc/47075
8070 * c-objc.h (objc_finish_message_expr): Added argument to
8071 prototype.
8072
8073 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8074
8075 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8076 Use prototype_p.
8077
8078 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8079
8080 * c-objc.h (objc_maybe_warn_exceptions): New.
8081 * stub-objc.c (objc_maybe_warn_exceptions): New.
8082
8083 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8084
8085 * c-common.h (readonly_error): Declare.
8086 * c-common.c (readonly_error): Define.
8087
8088 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8089
8090 * c-common.h (invalid_indirection_error): Declare.
8091 * c-common.c (invalid_indirection_error): Define.
8092
8093 2010-12-03 Richard Guenther <rguenther@suse.de>
8094
8095 PR c/46745
8096 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8097 (pp_c_unary_expression): Likewise.
8098 (pp_c_expression): Likewise.
8099
8100 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8101
8102 * c-common.h (objc_finish_function): New.
8103 (objc_non_volatilized_type): Removed.
8104 (objc_type_quals_match): Removed.
8105 * stub-objc.c (objc_finish_function): New.
8106 (objc_non_volatilized_type): Removed.
8107 (objc_type_quals_match): Removed.
8108
8109 2010-11-30 Joseph Myers <joseph@codesourcery.com>
8110
8111 * c-common.h (parse_optimize_options): Declare.
8112 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8113 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8114
8115 2010-11-29 Joseph Myers <joseph@codesourcery.com>
8116
8117 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8118 GET_ENVIRONMENT.
8119 * c-pch.c (O_BINARY): Don't define here.
8120 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8121
8122 2010-11-25 Joseph Myers <joseph@codesourcery.com>
8123
8124 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8125 targetm.except_unwind_info.
8126
8127 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8128
8129 * c-opts.c (c_common_handle_option): Pass location to
8130 set_struct_debug_option.
8131
8132 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8133
8134 * c-common.c (visibility_options): Move from ../opts.c.
8135 * c-common.h (struct visibility_flags, visibility_options):
8136 Declare here.
8137 * c-opts.c (finish_options): Rename to c_finish_options.
8138 (c_common_init): Update call to finish_options.
8139
8140 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8141
8142 PR objc/34033
8143 * c-lex.c (lex_string): Check that each string in an Objective-C
8144 string concat sequence starts with either one or zero '@', and
8145 that there are no spurious '@' signs at the end.
8146
8147 2010-11-20 Joseph Myers <joseph@codesourcery.com>
8148
8149 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8150 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8151 HANDLE_PRAGMA_VISIBILITY.
8152 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8153 HANDLE_PRAGMA_VISIBILITY): Don't define.
8154 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8155
8156 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8157
8158 PR c++/16189
8159 PR c++/36888
8160 PR c++/45331
8161 * c-common.h (keyword_begins_type_specifier): Declare.
8162 (keyword_is_storage_class_specifier): Declare.
8163 (keyword_is_type_qualifier): Declare.
8164 * c-common.c (keyword_begins_type_specifier): New function.
8165 (keyword_is_storage_class_specifier): New function.
8166 (keyword_is_type_qualifier): Declare.
8167
8168 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8169
8170 PR c/46547
8171 * c-common.c (in_late_binary_op): Define.
8172 (c_common_truthvalue_conversion): Check in_late_binary_op before
8173 calling c_save_expr.
8174 * c-common.h (in_late_binary_op): Declare.
8175
8176 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8177
8178 * c-opts.c (c_common_handle_option): Update calls to
8179 set_struct_debug_option.
8180
8181 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8182
8183 * c-common.h (objc_declare_protocols): Added additional argument.
8184 * stub-objc.c (objc_declare_protocol): Same change.
8185
8186 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8187
8188 PR c/33193
8189 * c-common.h (build_real_imag_expr): Declare.
8190 * c-semantics.c (build_real_imag_expr): Define.
8191
8192 2010-11-17 Joseph Myers <joseph@codesourcery.com>
8193
8194 * c-opts.c (c_common_parse_file): Take no arguments.
8195 * c-common.h (c_common_parse_file): Update prototype.
8196
8197 2010-11-16 Jakub Jelinek <jakub@redhat.com>
8198
8199 PR c++/46401
8200 * c-common.c (warning_candidate_p): Don't track non-const calls
8201 or STRING_CSTs.
8202
8203 2010-11-15 Ian Lance Taylor <iant@google.com>
8204
8205 * c-lex.c (init_c_lex): Set macro debug callbacks if
8206 flag_dump_go_spec is set.
8207
8208 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8209
8210 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8211 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8212
8213 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8214
8215 PR preprocessor/45038
8216 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8217 dialects.
8218
8219 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8220
8221 * c-common.h (c_family_lang_mask): Declare.
8222 * c-opts.c (c_family_lang_mask): Make extern.
8223 * c-pragma.c (handle_pragma_diagnostic): Use
8224 control_warning_option.
8225
8226 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8227
8228 * c-common.c (parse_optimize_options): Update call to
8229 decode_options.
8230 * c-common.h (c_common_handle_option): Update prototype.
8231 * c-opts.c (c_common_handle_option): Take location_t parameter and
8232 pass it to other functions.
8233
8234 2010-11-11 Joseph Myers <joseph@codesourcery.com>
8235
8236 * c-opts.c (warning_as_error_callback): Remove.
8237 (c_common_initialize_diagnostics): Don't call
8238 register_warning_as_error_callback.
8239 (c_common_handle_option): Handle -Werror=normalized= here.
8240
8241 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8242
8243 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8244 in diagnostic.
8245 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8246 letter.
8247 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8248 Remove trailing '.' from diagnostics.
8249 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8250
8251 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8252
8253 * c-common.c (parse_optimize_options): Pass global_dc to
8254 decode_options.
8255 * c-opts.c (c_common_handle_option): Pass &global_options to
8256 set_Wstrict_aliasing.
8257 * c.opt (v): Don't mark Common or document here.
8258
8259 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8260
8261 PR target/44981
8262 * c-format.c (format_type): New type gcc_objc_string_format_type.
8263 (valid_stringptr_type_p): New.
8264 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8265 (check_format_string): Pass expected type, use
8266 valid_stringptr_type_p (), check that the format string types are
8267 consistent with the format specification.
8268 (decode_format_attr): Warn if NSString is used outside objective-c.
8269 (format_types_orig): Add NSString.
8270 (format_name): New.
8271 (format_flags): New.
8272 (check_format_arg): Handle format strings requiring an external parser.
8273 first_target_format_type: New variable.
8274 (handle_format_attribute): Set up first_target_format_type, pass the
8275 expected format arg string type to check_format_string().
8276 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8277 * stub-objc.c (objc_string_ref_type_p): New.
8278 (objc_check_format_arg): New.
8279
8280 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8281
8282 Fixed using the Objective-C 2.0 dot-syntax with class names.
8283 * c-common.h (objc_build_class_component_ref): New.
8284 * stub-objc.c (objc_build_class_component_ref): New.
8285
8286 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8287
8288 * c.opt (Wproperty-assign-default): New option.
8289
8290 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8291
8292 Implemented -fobjc-std=objc1 flag.
8293 * c.opt (fobjc-std=objc1): New option.
8294
8295 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8296
8297 Implemented format and noreturn attributes for Objective-C methods.
8298 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8299 attribute for Objective-C methods.
8300
8301 2010-10-31 Jason Merrill <jason@redhat.com>
8302
8303 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8304 EXPR_LOC_OR_HERE.
8305
8306 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8307
8308 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8309 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8310 (objc_add_property_declaration): Removed arguments for copies and
8311 ivar.
8312 (objc_build_getter_call): Renamed to
8313 objc_maybe_build_component_ref.
8314 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8315 (objc_is_property_ref): New.
8316 * c-common.c (c_common_reswords): Removed copies and ivar.
8317 * stub-objc.c (objc_add_property_declaration): Removed arguments
8318 for copies and ivar.
8319 (objc_build_getter_call): Renamed to
8320 objc_maybe_build_component_ref.
8321 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8322 (objc_is_property_ref): New.
8323
8324 2010-10-29 Arnaud Charlet <charlet@adacore.com>
8325 Matthew Gingell <gingell@adacore.com>
8326
8327 * c-ada-spec.c (separate_class_package): New function.
8328 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8329 name of their enclosing package.
8330 (print_ada_declaration): Use separate_class_package.
8331
8332 2010-10-27 Jason Merrill <jason@redhat.com>
8333
8334 * c-common.c (c_common_reswords): Add __is_literal_type.
8335 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8336
8337 * c-common.c (check_case_value): Remove special C++ code.
8338
8339 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8340
8341 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8342 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8343 and RID_LAST_PATTR.
8344 (objc_add_property_declaration): Added additional arguments.
8345 (objc_property_attribute_kind): Removed.
8346 (objc_set_property_attr): Removed.
8347 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8348 copy and nonatomic.
8349 * stub-objc.c (objc_add_property_declaration): Added additional
8350 arguments.
8351 (objc_set_property_attr): Removed.
8352
8353 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8354
8355 * c-common.h (objc_add_property_variable): Renamed to
8356 objc_add_property_declaration. Added location argument.
8357 * stub-objc.c (objc_add_property_variable): Same change.
8358
8359 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8360
8361 * c-common.h (objc_maybe_printable_name): New.
8362 * stub-objc.c (objc_maybe_printable_name): New.
8363
8364 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8365 Andrew Pinski <pinskia@gmail.com>
8366
8367 * c-common.h (c_common_mark_addressable_vec): Declare.
8368 * c-common.c (c_common_mark_addressable_vec): New function.
8369
8370 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8371
8372 * c-common.h (objc_set_method_type): Removed.
8373 (objc_add_method_declaration): Added boolean argument.
8374 (objc_start_method_definition): Same change.
8375 (objc_build_method_signature): Same change.
8376 * stub-objc.c (objc_set_method_type): Removed.
8377 (objc_add_method_declaration): Added boolean argument.
8378 (objc_start_method_definition): Same change.
8379 (objc_build_method_signature): Same change.
8380
8381 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8382
8383 * c-common.h (finish_file): Removed.
8384 (objc_write_global_declarations): New.
8385 * c-opts.c (c_common_parse_file): Do not call finish_file.
8386 * stub-objc.c (objc_write_global_declarations): New.
8387
8388 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8389
8390 Implemented parsing @synthesize and @dynamic for
8391 Objective-C/Objective-C++.
8392 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8393 (objc_add_synthesize_declaration): New.
8394 (objc_add_dynamic_declaration): New.
8395 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8396 * stub-objc.c (objc_add_synthesize_declaration): New.
8397 (objc_add_dynamic_declaration): New.
8398
8399 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8400
8401 PR target/46041
8402 * c-cppbuiltin.c (mode_has_fma): Move function here from
8403 builtins.c. Don't use the fma optab, instead just use the
8404 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8405 using -save-temps.
8406
8407 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8408
8409 Merge from 'apple/trunk' branch on FSF servers.
8410
8411 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
8412
8413 Radar 4330422
8414 * c-common.h (objc_non_volatilized_type): New declaration
8415 * stub-objc.c (objc_non_volatilized_type): New stub.
8416
8417 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8418
8419 Merge from 'apple/trunk' branch on FSF servers.
8420
8421 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8422
8423 Radar 4133425
8424 * c-common.h (objc_diagnose_private_ivar): New decl.
8425 * stub-objc.c (objc_diagnose_private_ivar): New stub.
8426
8427 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8428
8429 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8430 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8431 (objc_ivar_visibility_kind): New enum.
8432 (objc_set_visibility): Adjust prototype to use visibility enum.
8433 * stub-objc.c (objc_set_visibility): Adjust stub to use
8434 visibility enum.
8435
8436 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8437
8438 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8439 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8440 has the appropriate fma builtins.
8441 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8442
8443 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8444
8445 merge from FSF apple 'trunk' branch.
8446 2006 Fariborz Jahanian <fjahanian@apple.com>
8447
8448 Radars 4436866, 4505126, 4506903, 4517826
8449 * c-common.c (c_common_resword): Define @property and its attributes.
8450 * c-common.h: Define property attribute enum entries.
8451 (OBJC_IS_PATTR_KEYWORD): New.
8452 (objc_property_attribute_kind): New enum.
8453 Declare objc_set_property_attr (), objc_add_property_variable (),
8454 objc_build_getter_call () and objc_build_setter_call ().
8455 * stub-objc.c (objc_set_property_attr): New stub.
8456 (objc_add_property_variable): Likewise.
8457 (objc_build_getter_call): Likewise.
8458 (objc_build_setter_call) Likewise.
8459
8460 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8461
8462 merge from FSF apple 'trunk' branch.
8463 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
8464
8465 Radar 3803157 (method attributes)
8466 * c-common.c (handle_deprecated_attribute): Recognize
8467 objc methods as valid declarations.
8468 * c-common.h: Declare objc_method_decl ().
8469 * stub-objc.c (objc_method_decl): New stub.
8470
8471 2010-10-08 Joseph Myers <joseph@codesourcery.com>
8472
8473 * c-common.c (parse_optimize_options): Call
8474 decode_cmdline_options_to_array_default_mask before
8475 decode_options. Update arguments to decode_options.
8476 * c-common.h (c_common_init_options_struct): Declare.
8477 * c-opts.c (c_common_init_options_struct): New. Split out from
8478 c_common_init_options.
8479
8480 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8481
8482 Implemented fast enumeration for Objective-C.
8483 * c-common.h (objc_finish_foreach_loop): New.
8484 * stub-objc.c (objc_finish_foreach_loop): New.
8485
8486 2010-10-05 Joseph Myers <joseph@codesourcery.com>
8487
8488 * c-common.h (struct diagnostic_context): Don't declare here.
8489 (c_common_initialize_diagnostics): Declare using
8490 diagnostic_context typedef.
8491 * c-opts.c (c_common_handle_option): Pass global_dc to
8492 handle_generated_option.
8493
8494 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8495
8496 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8497 handle_generated_option.
8498
8499 2010-10-03 Ian Lance Taylor <iant@google.com>
8500
8501 * c.opt (-fplan9-extensions): New option.
8502
8503 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8504
8505 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8506 Remove.
8507 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8508 of duplicating code.
8509
8510 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8511
8512 * c-common.c: Add two new entries for @optional
8513 and @required keywords.
8514
8515 merge from FSF 'apple/trunk' branch.
8516 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
8517
8518 Radar 4386773
8519 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8520 objective-c keywords.
8521 (objc_set_method_opt): New declaration.
8522 * stub-objc.c (objc_set_method_opt): New stub.
8523
8524 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8525
8526 * c-common.c (handle_optimize_attribute): Pass &global_options to
8527 cl_optimization_save and cl_optimization_restore.
8528 * c-opts.c (c_common_handle_option): Pass &global_options to
8529 handle_generated_option.
8530 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8531 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8532 &global_options to cl_optimization_restore.
8533
8534 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8535
8536 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8537 Objective-C/Objective-C++ keywords.
8538
8539 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8540
8541 Merge from 'apple/trunk' branch on FSF servers.
8542
8543 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8544
8545 Radar 4281748
8546 * c-common.h (objc_check_global_decl): New declaration.
8547 * stub-objc.c (objc_check_global_decl): New stub.
8548
8549 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8550
8551 * c.opt: Don't use VarExists.
8552
8553 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8554
8555 * c-common.c (c_cpp_error): Update names of diagnostic_context
8556 members.
8557 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8558 cl_optimization members.
8559 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8560 sanitize_cpp_opts, finish_options): Update names of cpp_options
8561 members.
8562
8563 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8564
8565 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8566 (objc_is_reserved_word): Removed.
8567 * c-common.c: Updated comments.
8568 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8569 objc_is_reserved_word.
8570 * stub-objc.c (objc_is_reserved_word): Removed.
8571
8572 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8573
8574 * c-common.h (objc_add_method_declaration): Adjust prototype to
8575 include attributes.
8576 (objc_start_method_definition): Likewise.
8577 (objc_build_keyword_decl): Likewise.
8578 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8579 (objc_start_method_definition): Likewise.
8580 (objc_build_keyword_decl): Likewise.
8581
8582 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8583
8584 * c-common.h (objc_start_class_interface): Adjust prototype.
8585 (objc_start_category_interface): Likewise.
8586 (objc_start_protocol): Likewise.
8587 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8588 (objc_start_class_interface): Likewise.
8589 (objc_start_category_interface): Likewise.
8590
8591 2010-09-27 Ian Lance Taylor <iant@google.com>
8592
8593 * c-common.c (c_common_attribute_table): Add no_split_stack.
8594 (handle_no_split_stack_attribute): New static function.
8595
8596 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8597
8598 Merge from 'apple/trunk' branch on FSF servers.
8599
8600 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8601
8602 Radar 4229905
8603 * c-common.h (objc_have_common_type): New declaration.
8604 * stub-objc.c (objc_have_common_type): New stub.
8605
8606 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8607
8608 Radar 4154928
8609 * c-common.h (objc_common_type): New prototype.
8610 * stub-objc.c (objc_common_type): New stub.
8611
8612 2010-09-24 Jan Hubicka <jh@suse.cz>
8613
8614 * c-common.c (handle_leaf_attribute): New function.
8615 (struct attribute_spec c_common_att): Add leaf.
8616
8617 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8618
8619 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8620 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8621 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8622 -include-barrier, -include-directory, -include-directory=,
8623 -include-directory-after, -include-directory-after=,
8624 -include-prefix, -include-prefix=, -include-with-prefix,
8625 -include-with-prefix=, -include-with-prefix-after,
8626 -include-with-prefix-after=, -include-with-prefix-before,
8627 -include-with-prefix-before=, -no-integrated-cpp,
8628 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8629 -output=, -pedantic, -pedantic-errors, -preprocess,
8630 -print-missing-file-dependencies, -trace-includes, -traditional,
8631 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8632 -user-dependencies, -verbose, -write-dependencies,
8633 -write-user-dependencies, no-integrated-cpp, traditional): New.
8634
8635 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8636
8637 PR objc/23710
8638 * c-common.h (objc_start_method_definition): Return bool instead
8639 of void.
8640 * stub-objc.c (objc_start_method_definition): Return bool instead
8641 of void.
8642
8643 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8644
8645 PR objc/25965
8646 * c-common.h (objc_get_interface_ivars): New declaration.
8647 * stub-objc.c (objc_get_interface_ivars): New stub.
8648
8649 2010-09-15 Ian Lance Taylor <iant@google.com>
8650
8651 * c-common.c (parse_optimize_options): Do not capitalize warning
8652 messages. Remove period at end of warning message.
8653
8654 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8655
8656 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8657 (handle_alias_attribute): ... here.
8658 (handle_ifunc_attribute): New.
8659
8660 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8661
8662 * c-common.h (do_warn_double_promotion): Declare.
8663 * c-common.c (do_warn_double_promotion): Define.
8664
8665 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8666
8667 * c.opt (Wdouble-promotion): New.
8668
8669 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8670
8671 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8672 fvtable-thunks, fxref): Mark no longer supported in help text.
8673
8674 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8675
8676 * c.opt (Wimport, fall-virtual, falt-external-templates,
8677 fdefault-inline, fenum-int-equiv, fexternal-templates,
8678 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8679 fname-mangling-version-, fnew-abi, fnonnull-objects,
8680 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8681 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8682 applicable.
8683 (fhandle-exceptions): Mark with Alias and Warn.
8684 * c-opts.c (c_common_handle_option): Don't handle options marked
8685 as ignored.
8686
8687 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8688
8689 * c.opt (Wcomments, Werror-implicit-function-declaration,
8690 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8691 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8692 aliases.
8693 * c-common.c (option_codes): Use OPT_Wcomment instead of
8694 OPT_Wcomments.
8695 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8696 Don't handle options marked as aliases.
8697
8698 2010-08-25 Richard Guenther <rguenther@suse.de>
8699
8700 * c-common.c (c_common_get_alias_set): Remove special
8701 handling for pointers.
8702
8703 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8704
8705 * c-common.c: Use FOR_EACH_VEC_ELT.
8706 * c-gimplify.c: Likewise.
8707 * c-pragma.c: Likewise.
8708
8709 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8710
8711 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8712 RejectDriver.
8713 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8714 RejectDriver.
8715 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8716 instead of OPT_MDX and OPT_MMDX.
8717
8718 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8719
8720 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8721
8722 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8723
8724 * c.opt (MD, MMD): Change to MDX and MMDX.
8725 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8726
8727 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8728
8729 * c-opts.c (c_common_handle_option): Call handle_generated_option
8730 instead of handle_option.
8731
8732 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8733
8734 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8735 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8736
8737 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8738
8739 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8740 (pending_redefine_extname): Change type to a VEC.
8741 (add_to_renaming_pragma_list): Update for new type of
8742 pending_redefine_extname.
8743 (maybe_apply_renaming_pragma): Likewise.
8744
8745 2010-08-04 Arnaud Charlet <charlet@adacore.com>
8746
8747 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8748 visited.
8749 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8750 decide whether a type has already been declared/seen.
8751 Do not go to the original type.
8752 (dump_nested_types): New parameter forward.
8753 Generate forward declaration if needed and mark type as visited.
8754 (print_ada_declaration): Call dump_nested_types if not already done.
8755 Mark types as visited.
8756
8757 2010-08-03 Joseph Myers <joseph@codesourcery.com>
8758
8759 * c.opt (-print-pch-checksum): Remove option.
8760 * c-opts.c (c_common_handle_option): Don't handle
8761 OPT_print_pch_checksum.
8762
8763 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8764
8765 * c-common.h (c_common_handle_option): Update prototype and return
8766 value type.
8767 * c-opts.c (c_common_handle_option): Update prototype and return
8768 value type. Update calls to handle_option and
8769 enable_warning_as_error.
8770
8771 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8772
8773 PR c/45079
8774 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8775
8776 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8777
8778 * c-common.h (c_common_missing_argument): Remove.
8779 * c-opts.c (c_common_missing_argument): Remove.
8780 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8781 idirafter, imacros, include, isysroot, isystem, iquote): Add
8782 MissingArgError.
8783 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8784
8785 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8786
8787 * c-common.h (c_common_option_lang_mask,
8788 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8789 New.
8790 (c_common_init_options): Update prototype.
8791 * c-opts.c (c_common_option_lang_mask): New.
8792 (c_common_initialize_diagnostics): Split out of
8793 c_common_init_options.
8794 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8795 New.
8796 (c_common_init_options): Update prototype. Use decoded options in
8797 search for -lang-asm.
8798
8799 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8800
8801 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8802 * c-format.c: Likewise.
8803
8804 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8805
8806 * c-common.h: Include diagnostic-core.h. Error if already
8807 included.
8808 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8809
8810 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8811
8812 * c-common.c (IN_GCC_FRONTEND): Do not undef.
8813 Do not include expr.h
8814 (vector_mode_valid_p): Move here.
8815
8816 2010-06-21 DJ Delorie <dj@redhat.com>
8817
8818 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8819 allow these pragmas anywhere.
8820
8821 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8822
8823 PR bootstrap/44509
8824 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8825 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8826 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8827 ggc_strdup instead of xstrdup.
8828
8829 2010-06-10 Jakub Jelinek <jakub@redhat.com>
8830
8831 * c-cppbuiltin.c: Include cpp-id-data.h.
8832 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8833 (lazy_hex_fp_value): New function.
8834 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8835
8836 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8837
8838 * c-gimplify.c: Do not include tree-flow.h
8839
8840 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8841
8842 PR other/44034
8843 * c-common.c: Rename targetm member:
8844 targetm.enum_va_list -> targetm.enum_va_list_p
8845
8846 2010-06-28 Anatoly Sokolov <aesok@post.ru>
8847
8848 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8849
8850 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8851
8852 * c-cppbuiltin.c: Do not include except.h.
8853
8854 2010-06-24 Andi Kleen <ak@linux.intel.com>
8855
8856 * c-common.c (warn_for_omitted_condop): New.
8857 * c-common.h (warn_for_omitted_condop): Add prototype.
8858
8859 2010-06-21 Joseph Myers <joseph@codesourcery.com>
8860
8861 * c.opt (lang-objc): Remove.
8862 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8863
8864 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8865
8866 * c-opts.c: Include "tm_p.h".
8867
8868 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8869
8870 * c-common.c (parse_optimize_options): Update call to
8871 decode_options.
8872
8873 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8874
8875 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8876 new type of types_used_by_cur_var_decl.
8877
8878 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8879
8880 PR bootstrap/44512
8881 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8882 for C++ standard compliance.
8883
8884 2010-06-16 Jason Merrill <jason@redhat.com>
8885
8886 * c.opt: Add -Wnoexcept.
8887
8888 2010-06-16 Richard Guenther <rguenther@suse.de>
8889
8890 PR c/44555
8891 * c-common.c (c_common_truthvalue_conversion): Remove
8892 premature and wrong optimization concering ADDR_EXPRs.
8893
8894 2010-06-15 Arnaud Charlet <charlet@adacore.com>
8895
8896 * c-ada-spec.c (dump_sloc): Remove column info.
8897 (is_simple_enum): New function.
8898 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8899 enum types when relevant.
8900
8901 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8902
8903 * c-common.c (conversion_warning): Warn at expression
8904 location.
8905
8906 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8907
8908 * c-opts.c (c_common_handle_option): Don't handle
8909 OPT_fshow_column.
8910
8911 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8912
8913 * c-pragma.c (push_alignment): Use typed GC allocation.
8914 (handle_pragma_push_options): Likewise.
8915
8916 * c-common.c (parse_optimize_options): Likewise.
8917
8918 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8919 option.
8920
8921 2010-06-07 Joseph Myers <joseph@codesourcery.com>
8922
8923 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8924 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8925 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8926 flag_signed_bitfields, warn_strict_null_sentinel,
8927 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8928 flag_gen_declaration, flag_no_gnu_keywords,
8929 flag_implement_inlines, flag_implicit_templates,
8930 flag_implicit_inline_templates, flag_optional_diags,
8931 flag_elide_constructors, flag_default_inline, flag_rtti,
8932 flag_conserve_space, flag_access_control, flag_check_new,
8933 flag_new_for_scope, flag_weak, flag_working_directory,
8934 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8935 flag_enforce_eh_specs, flag_threadsafe_statics,
8936 flag_pretty_templates): Remove.
8937 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8938 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8939 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8940 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8941 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8942 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8943 flag_no_gnu_keywords, flag_implement_inlines,
8944 flag_implicit_templates, flag_implicit_inline_templates,
8945 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8946 flag_rtti, flag_conserve_space, flag_access_control,
8947 flag_check_new, flag_new_for_scope, flag_weak,
8948 flag_working_directory, flag_use_cxa_atexit,
8949 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8950 flag_threadsafe_statics, flag_pretty_templates,
8951 warn_strict_null_sentinel): Remove.
8952 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8953 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8954 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8955 fimplicit-inline-templates, fimplicit-templates,
8956 flax-vector-conversions, fms-extensions, fnil-receivers,
8957 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8958 frtti, fshort-double, fshort-enums, fshort-wchar,
8959 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8960 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8961 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8962 gen-decls, undef): Use Var.
8963 (fdefault-inline, foptional-diags): Document as doing nothing.
8964 * c-opts.c (c_common_handle_option): Remove cases for options now
8965 using Var. Mark ignored options as such.
8966
8967 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8968
8969 * c-common.c: Moved to here from parent directory.
8970 * c-common.def: Likewise.
8971 * c-common.h: Likewise.
8972 * c-cppbuiltin.c: Likewise.
8973 * c-dump.c: Likewise.
8974 * c-format.c: Likewise.
8975 * c-format.h : Likewise.
8976 * c-gimplify.c: Likewise.
8977 * c-lex.c: Likewise.
8978 * c-omp.c: Likewise.
8979 * c.opt: Likewise.
8980 * c-opts.c: Likewise.
8981 * c-pch.c: Likewise.
8982 * c-ppoutput.c: Likewise.
8983 * c-pragma.c: Likewise.
8984 * c-pragma.h: Likewise.
8985 * c-pretty-print.c: Likewise.
8986 * c-pretty-print.h: Likewise.
8987 * c-semantics.c: Likewise.
8988 * stub-objc.c: Likewise.
8989
8990 * c-common.c: Include gt-c-family-c-common.h.
8991 * c-pragma.c: Include gt-c-family-c-pragma.h.
8992 \f
8993 Copyright (C) 2010-2018 Free Software Foundation, Inc.
8994
8995 Copying and distribution of this file, with or without modification,
8996 are permitted in any medium without royalty provided the copyright
8997 notice and this notice are preserved.