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