1 2018-06-01 Jason Merrill <jason@redhat.com>
3 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
6 2018-06-01 Eric Botcazou <ebotcazou@adacore.com>
8 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
9 declaration for a typedef independently of whether the declaration of
10 the subtype is generated.
12 2018-05-31 Martin Sebor <msebor@redhat.com>
15 * c.opt (-Wno-alloc-size-larger-than): New option.
17 2018-04-22 David Pagan <dave.pagan@oracle.com>
20 * c-opts.c (c_common_post_options): Set default for warn_return_type
21 for C++/C++ with ObjC extensions only. For C, makes it possible to
22 differentiate between default (no option), -Wreturn-type, and
25 2018-05-29 Jason Merrill <jason@redhat.com>
27 * c.opt (Winit-list-lifetime): New flag.
29 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
32 splay_tree_delete_pointers.
34 2018-05-26 Jakub Jelinek <jakub@redhat.com>
37 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
38 noinline variable to workaround broken kernel headers.
40 2018-05-18 Jason Merrill <jason@redhat.com>
42 * c.opt (Wdeprecated-copy): New flag.
44 2018-05-17 Martin Liska <mliska@suse.cz>
46 * c-warn.c (overflow_warning): Do not use
47 space in between 'G_' and '('.
49 2018-05-09 Jason Merrill <jason@redhat.com>
51 * c-common.c (valid_array_size_p): Add complain parameter.
52 * c-common.h: ...which defaults to true.
54 2018-05-11 Jakub Jelinek <jakub@redhat.com>
57 * c-omp.c (c_omp_predetermined_sharing): Return
58 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
60 2018-05-11 Martin Liska <mliska@suse.cz>
63 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
66 2018-05-10 Jakub Jelinek <jakub@redhat.com>
69 * c-common.h (fold_offsetof_1): Removed.
70 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
71 CTX argument defaulted to ERROR_MARK.
72 * c-common.c (fold_offsetof_1): Renamed to ...
73 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
74 argument, convert the pointer constant to TYPE and use size_binop
75 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
76 a pointer type. Adjust recursive calls.
78 2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
81 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
83 2018-05-07 Nathan Sidwell <nathan@acm.org>
85 * c.opt (ffor-scope): Remove functionality, issue warning.
87 2018-05-03 Nathan Sidwell <nathan@acm.org>
89 * c.opt (ffriend-injection): Remove functionality, issue warning.
91 2018-05-01 David Malcolm <dmalcolm@redhat.com>
94 * c-format.c (struct format_check_results): Add field
96 (check_format_info): Initialize it, and warn if encountered.
97 (check_format_arg): Distinguish between wide char and
98 everything else when detecting arrays of non-char.
100 2018-04-30 David Malcolm <dmalcolm@redhat.com>
102 * c-format.c (get_corrected_substring): Update for
103 location_get_source_line returning a char_span. Use a char_span
104 when handling the prefix of the correction.
105 * c-indentation.c (get_visual_column): Update for
106 location_get_source_line returning a char_span.
107 (get_first_nws_vis_column): Likewise.
109 2018-03-29 David Malcolm <dmalcolm@redhat.com>
112 * known-headers.cc (get_stdlib_header_for_name): Add various names
113 from <assert.h>, <string.h>, and <memory.h>; add more names from
116 2018-03-27 Jakub Jelinek <jakub@redhat.com>
119 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
120 get_base_address of the second operand is a VAR_P, rather than the
121 operand itself, and use gcc_checking_assert instead of gcc_assert.
123 2018-03-23 Marek Polacek <polacek@redhat.com>
126 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
127 <case RDIV_EXPR>: Tweak condition.
129 2018-03-20 Eric Botcazou <ebotcazou@adacore.com>
131 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
133 2018-03-16 Jakub Jelinek <jakub@redhat.com>
136 * c-warn.c (conversion_warning): Replace "to to" with "to" in
140 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
143 2018-03-16 Richard Biener <rguenther@suse.de>
146 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
147 unshare the possibly folded expression.
149 2018-03-15 Richard Biener <rguenther@suse.de>
152 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
154 2018-03-13 Martin Sebor <msebor@redhat.com>
156 PR tree-optimization/84725
157 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
158 with all three narrow character types, including their qualified forms.
160 2018-03-12 Martin Sebor <msebor@redhat.com>
162 PR tree-optimization/83456
163 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
164 Restore checking of bounded built-in functions.
165 (check_function_arguments): Also return the result
166 of warn_for_restrict.
167 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
168 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
170 2018-03-02 Marek Polacek <polacek@redhat.com>
173 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
176 2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
178 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
181 2018-03-01 Marek Polacek <polacek@redhat.com>
184 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
185 alignment in computation.
187 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
189 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
190 <REAL_TYPE>: Deal specifically with _Float128/__float128.
192 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
194 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
195 (is_char_array): Take a type instead of a declaration.
196 (dump_ada_array_type): Likewise.
197 (is_simple_enum): Minor tweak.
198 (dump_ada_enum_type): New function extracted from...
199 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
200 <INTEGER_TYPE>: Remove unreachable code.
201 <RECORD_TYPE>: Likewise. Minor tweaks.
202 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
203 <ENUMERAL_TYPE>: New case.
204 <RECORD_TYPE>: Factor out common code.
205 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
206 Minor tweaks. Deal with enumeral types.
207 (dump_ada_structure): Minor tweaks.
209 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
211 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
212 address for incomplete structures.
213 (dump_forward_type): Do not bail out for incomplete structures.
214 (dump_ada_declaration): Do not special-case incomplete structures
215 for subtypes. Dump them as null records for types.
217 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
219 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
220 (is_char_array): Fix formatting.
221 (dump_template_types): Likewise.
222 (dump_generic_ada_node): Rename into...
223 (dump_ada_node): ...this.
224 <POINTER_TYPE>: Remove superfluous space. Use generic address for
225 incomplete structures and not for empty structures. Do not use it
226 when forward declarations are needed.
227 (dump_forward_type): New function.
228 (dump_nested_types): Remove FORWARD parameter. Do not consider
229 TREE_VISITED and do not generate a forward declaration. Only dump
230 original nested types for nested declaration.
231 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
232 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
233 <RECORD_TYPE>: Do not consider TREE_VISITED.
234 (dump_ada_declaration): Use booleans and fix formatting throughout.
235 <TYPE_DECL>: Skip incomplete structures and not empty structures.
236 Call dump_forward_type instead of dump_nested_types for a typedef.
237 Remove superfluous check and adjust call to dump_nested_types.
238 <POINTER_TYPE>: Call dump_forward_type and fall through.
239 (dump_ada_struct_decl): Rename into...
240 (dump_ada_structure): ...this. Do not special-case empty structures.
242 2018-02-27 Martin Sebor <msebor@redhat.com>
245 * c.opt (-Wmissing-attributes): New option.
247 2018-02-21 Martin Liska <mliska@suse.cz>
249 * c.opt (Wcatch-value=): Add IntegerRange.
251 2018-02-15 Jason Merrill <jason@redhat.com>
253 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
255 2018-02-09 Nathan Sidwell <nathan@acm.org>
258 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
260 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
263 2018-02-09 Martin Sebor <msebor@redhat.com>
266 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
267 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
268 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
269 (-Wstrict-overflow, -Wsuggest-attribute): Same.
270 (-Wuninitialized): Same.
272 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
274 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
275 keyword for components.
277 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
279 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
281 2018-02-02 Julia Koval <julia.koval@intel.com>
283 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
285 2018-01-29 Marek Polacek <polacek@redhat.com>
288 * c-format.c (check_function_format): Check current_function_decl.
290 2018-01-27 Jakub Jelinek <jakub@redhat.com>
292 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
294 (LAZY_HEX_FP_VALUES_CNT): Define.
295 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
296 values rather than just 12.
297 (builtin_define_with_hex_fp_value): Likewise.
299 2018-01-18 Boris Kolpackov <boris@codesynthesis.com>
302 * c.opt (-fmacro-prefix-map): New option.
303 * c-opts.c (c_common_handle_option): Handle it.
304 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
305 * c-ppoutput.c (init_pp_output): Likewise.
307 2018-01-17 David Malcolm <dmalcolm@redhat.com>
310 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
312 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
314 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
315 Skip 'f' and 'F' characters if it is true.
316 (store_ada_macro): Minor tweak.
317 (dump_ada_macros) <CPP_COMMENT>: Likewise.
318 <CPP_WSTRING>: Likewise.
319 <CPP_STRING>: Output '&' in the buffer if not the first string.
320 <CPP_NUMBER>: Adjust calls to dump_number.
322 2018-01-10 David Malcolm <dmalcolm@redhat.com>
325 * c-common.c: Include "selftest.h".
326 (get_atomic_generic_size): Perform the test for integral type
327 before the range test for any integer constant, fixing indentation
328 of braces. Call fold_for_warn before testing for an INTEGER_CST.
329 (reject_gcc_builtin): Strip any location wrapper from EXPR.
330 (selftest::test_fold_for_warn): New function.
331 (selftest::c_common_c_tests): New function.
332 (selftest::c_family_tests): Call it, and
333 selftest::c_pretty_print_c_tests.
334 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
335 * c-format.c (check_format_arg): Convert VAR_P check to a
337 * c-pretty-print.c: Include "selftest.h".
338 (pp_c_cast_expression): Don't print casts for location wrappers.
339 (selftest::assert_c_pretty_printer_output): New function.
340 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
341 (selftest::test_location_wrappers): New function.
342 (selftest::c_pretty_print_c_tests): New function.
343 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
345 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
346 Alan Hayward <alan.hayward@arm.com>
347 David Sherwood <david.sherwood@arm.com>
349 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
351 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
352 Alan Hayward <alan.hayward@arm.com>
353 David Sherwood <david.sherwood@arm.com>
355 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
358 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
359 Alan Hayward <alan.hayward@arm.com>
360 David Sherwood <david.sherwood@arm.com>
362 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
363 (convert_vector_to_array_for_subscript): Handle polynomial
364 TYPE_VECTOR_SUBPARTS.
365 (c_common_type_for_mode): Check valid_vector_subparts_p.
366 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
369 2018-01-03 Jakub Jelinek <jakub@redhat.com>
371 Update copyright years.
373 2017-12-22 Mike Stump <mikestump@comcast.net>
374 Eric Botcazou <ebotcazou@adacore.com>
376 * c-pragma.c (init_pragma): Register pragma GCC unroll.
377 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
379 2017-12-22 Alexandre Oliva <aoliva@redhat.com>
383 * c-semantics.c (only_debug_stmts_after_p): New.
384 (pop_stmt_list): Clear side effects in debug-only stmt list.
385 Check for single nondebug stmt followed by debug stmts only.
387 2017-12-21 Alexandre Oliva <aoliva@redhat.com>
390 * c-semantics.c (pop_stmt_list): Propagate side effects from
391 single nondebug stmt to container list.
393 2017-12-19 Jakub Jelinek <jakub@redhat.com>
395 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
396 conditions with typical order conditions.
398 2017-12-18 Marek Polacek <polacek@redhat.com>
400 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
403 2017-12-17 Martin Sebor <msebor@redhat.com>
405 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
406 an error for attribute warn_if_not_aligned.
408 2017-12-16 Martin Sebor <msebor@redhat.com>
410 PR tree-optimization/78918
411 * c-common.c (check_function_restrict): Avoid checking built-ins.
412 * c.opt (-Wrestrict): Include in -Wall.
414 2017-12-15 Jakub Jelinek <jakub@redhat.com>
416 * c-attribs.c (c_common_attribute_table,
417 c_common_format_attribute_table): Swap affects_type_identity
418 and handler fields, adjust comments.
420 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
422 * c.opt (Wcast-function-type): New warning option.
423 * c-lex.c (get_fileinfo): Avoid warning.
424 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
426 2017-12-14 Qing Zhao <qing.zhao@oracle.com>
429 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
430 Adjust the size of buf1 and buf2, add a new buf to avoid
431 format-overflow warning.
433 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
435 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
436 subsequent statement list.
438 2017-12-07 Martin Sebor <msebor@redhat.com>
442 * c-attribs.c (attr_aligned_exclusions): New array.
443 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
444 (attr_common_exclusions, attr_const_pure_exclusions): Same.
445 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
446 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
447 (attr_warn_unused_result_exclusions): Same.
448 (handle_hot_attribute, handle_cold_attribute): Simplify.
449 (handle_const_attribute): Warn on function returning void.
450 (handle_pure_attribute): Same.
451 (handle_aligned_attribute): Diagnose conflicting attribute
453 * c-warn.c (diagnose_mismatched_attributes): Simplify.
455 2017-12-06 David Malcolm <dmalcolm@redhat.com>
458 * c-common.c (selftest::c_family_tests): Call
459 selftest::c_spellcheck_cc_tests.
460 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
461 * c-spellcheck.cc: Include "selftest.h".
462 (name_reserved_for_implementation_p): New function.
463 (should_suggest_as_macro_p): New function.
464 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
465 should_suggest_as_macro_p and call it.
466 (selftest::test_name_reserved_for_implementation_p): New function.
467 (selftest::c_spellcheck_cc_tests): New function.
468 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
470 2017-12-06 David Malcolm <dmalcolm@redhat.com>
472 * c-spellcheck.cc: New file, taken from macro-handling code in
474 * c-spellcheck.h: New file, taken from macro-handling code in
477 2017-12-01 Jakub Jelinek <jakub@redhat.com>
479 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
481 (handle_simd_attribute): Don't check for "cilk simd function"
482 attribute. Reindent, formatting changes.
484 2017-11-30 Julia Koval <julia.koval@intel.com>
486 * c-common.h (inv_list): Remove.
488 2017-11-28 Jakub Jelinek <jakub@redhat.com>
491 * c-common.c (c_switch_covers_all_cases_p_1,
492 c_switch_covers_all_cases_p): New functions.
493 * c-common.h (c_switch_covers_all_cases_p): Declare.
495 2017-11-28 Julia Koval <julia.koval@intel.com>
496 Sebastian Peryt <sebastian.peryt@intel.com>
498 * array-notation-common.c: Delete.
499 * c-cilkplus.c: Ditto.
500 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
501 * c-common.def (ARRAY_NOTATION_REF): Remove.
502 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
503 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
504 c_validate_cilk_plus_loop, cilkplus_an_parts,
505 cilk_ignorable_spawn_rhs_op,
506 cilk_recognize_spawn): Remove.
507 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
508 * c-omp.c: Remove CILK_SIMD check.
510 * c-pragma.h: Remove CILK related pragmas.
511 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
512 ARRAY_NOTATION_REF condition.
513 (c_pretty_printer::expression): Ditto.
514 * c.opt (fcilkplus): Remove.
517 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
519 * c-pretty-print.c (pp_c_additive_expression,
520 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
522 2017-11-21 Jakub Jelinek <jakub@redhat.com>
524 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
527 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
528 instead of tree_to_uhwi, formatting fix.
530 2017-11-20 David Malcolm <dmalcolm@redhat.com>
533 * known-headers.cc: New file, based on material from c/c-decl.c.
534 (suggest_missing_header): Copied as-is.
535 (get_stdlib_header_for_name): New, based on get_c_name_hint but
536 heavily edited to add C++ support. Add some knowledge about
537 <limits.h>, <stdint.h>, and <wchar.h>.
538 * known-headers.h: Likewise.
540 2017-11-20 David Malcolm <dmalcolm@redhat.com>
542 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
543 (lookup_name_fuzzy): Likewise. Convert return type from
544 const char * to name_hint. Add location_t param.
545 * name-hint.h: New header.
547 2017-11-19 Jakub Jelinek <jakub@redhat.com>
551 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
553 2017-11-16 Joseph Myers <joseph@codesourcery.com>
555 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
556 expected publication date of C17.
557 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
559 2017-11-15 Joseph Myers <joseph@codesourcery.com>
562 * c-common.c (c_common_reswords): Add __builtin_tgmath.
563 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
565 2017-11-10 Martin Sebor <msebor@redhat.com>
568 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
569 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
570 * c.opt (-Wstringop-truncation): New option.
572 2017-11-06 Martin Liska <mliska@suse.cz>
575 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
577 * c.opt: Set default value of warn_return_type.
579 2017-10-31 David Malcolm <dmalcolm@redhat.com>
581 * c-common.c (binary_op_error): Update for renaming of
583 (c_parse_error): Likewise.
584 * c-warn.c (warn_logical_not_parentheses): Likewise for
585 renaming of inform_at_rich_loc.
586 (warn_for_restrict): Likewise for renaming of
587 warning_at_rich_loc_n.
589 2017-10-30 Joseph Myers <joseph@codesourcery.com>
591 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
592 * c-opts.c (set_std_c17): New function.
593 (c_common_init_options): Use gnu17 as default C version.
594 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
596 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
598 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
599 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
600 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
603 2017-10-23 Marek Polacek <polacek@redhat.com>
606 * c-warn.c (warnings_for_convert_and_check): Fix typos.
608 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
610 * c-common.c (check_builtin_function_arguments): Also check arguments
611 of __builtin_alloca_with_align_and_max.
613 2017-10-17 David Malcolm <dmalcolm@redhat.com>
615 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
616 rather than NULL to format_warning_va.
617 (check_format_types): Likewise when calling format_type_warning.
618 Remove code to extract source_ranges and source_range * in favor
619 of just a location_t.
620 (format_type_warning): Convert source_range * param to a
623 2017-10-13 Jakub Jelinek <jakub@redhat.com>
625 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
628 2017-10-12 David Malcolm <dmalcolm@redhat.com>
630 * c-common.c (enum missing_token_insertion_kind): New enum.
631 (get_missing_token_insertion_kind): New function.
632 (maybe_suggest_missing_token_insertion): New function.
633 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
635 2017-10-11 Nathan Sidwell <nathan@acm.org>
637 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
638 (c_common_handle_option): Update incpath_kind names.
640 2017-10-11 Martin Liska <mliska@suse.cz>
643 * c-attribs.c (handle_no_sanitize_attribute): Report directly
646 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
648 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
649 operating on trees as wide_ints.
650 * c-common.c (pointer_int_sum): Likewise.
651 * c-pretty-print.c (pp_c_integer_constant): Likewise.
652 * c-warn.c (match_case_to_enum_1): Likewise.
653 (c_do_switch_warnings): Likewise.
654 (maybe_warn_shift_overflow): Likewise.
656 2017-10-10 Jakub Jelinek <jakub@redhat.com>
659 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
660 instead of wide_int::from.
662 2017-10-06 Jakub Jelinek <jakub@redhat.com>
665 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
666 using to_widest use wide_int with the larger of the two precisions.
668 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
670 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
673 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
675 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
676 when combining the original unconverted comparison operands.
678 2017-09-29 Jakub Jelinek <jakub@redhat.com>
680 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
683 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
685 * c-ada-spec.c (to_ada_name): Add index parameter.
686 (pp_ada_tree_identifier): Likewise.
687 (dump_ada_macros): Adjust call to to_ada_name.
688 (struct overloaded_name_hash): New type.
689 (struct overloaded_name_hasher): Likewise.
690 (overloaded_names): New hash table.
691 (compute_overloading_index): New function.
692 (dump_ada_decl_name): Call it and pass the result to
693 pp_ada_tree_identifier.
694 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
695 (dump_ada_function_declaration): Likewise.
696 (dump_generic_ada_node): Likewise.
697 (print_constructor): Likewise.
698 (print_destructor): Likewise.
699 (dump_ada_specs): Delete overloaded_names table.
701 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
703 * c-ada-spec.c (max_ada_macros): Move around.
704 (store_ada_macro_index): Likewise.
705 (source_file): Rename into...
706 (macro_source_file): ...this.
707 (count_ada_macro): Move around.
708 (store_ada_macro): Likewise.
709 (compare_macro): Likewise.
710 (print_ada_macros): Merge in...
711 (dump_ada_macros): ...this.
712 (source_file_base): Rename into...
713 (current_source_file): ...this.
714 (print_comment): Move around.
715 (dump_ada_nodes): Call dump_ada_declaration directly.
716 (struct with): Change type of limited field to bool.
717 (append_withs): Change type of limited_access parameter to bool.
718 (pp_ada_tree_identifie): Likewise.
719 (dump_ada_decl_nam): Likewise.
720 (dump_generic_ada_node): Likewise. Do not print the return type.
721 (to_ada_name): Change type of space_found parameter to bool.
722 (dump_ada_function_declaration): Return void and change type of
723 parameters to bool. Also print the return type for a function.
724 (print_ada_methods): Rename into...
725 (dump_ada_methods): ...this.
726 (print_ada_declaration): Rename into ...
727 (dump_ada_declaration): ...this. Do not print the return type.
728 (print_ada_struct_decl): Rename into...
729 (dump_ada_struct_decl): ...this.
731 2017-09-29 Jakub Jelinek <jakub@redhat.com>
733 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
734 rather than DECL_INITIAL.
735 (common_handle_aligned_attribute): Likewise.
737 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
739 * c.opt (gen-decls): Add RejectNegative.
741 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
742 Jakub Jelinek <jakub@redhat.com>
744 Add support for -std=c++2a.
745 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
746 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
747 * c-opts.c (set_std_cxx2a): New.
748 (c_common_handle_option): Set options when -std=c++2a is enabled.
749 (c_common_post_options): Adjust comments.
750 (set_std_cxx14, set_std_cxx17): Likewise.
752 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
754 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
755 message for non-uniform endianness and issue a warning in C++.
757 2017-09-15 Jakub Jelinek <jakub@redhat.com>
759 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
760 (Wc++17-compat): Change from undocumented alias to option.
761 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
762 change C++1z to C++17 in description.
763 (std=c++1z, std=gnu++1z): Change from option to undocumented
765 (std=c++17, std=gnu++17): Change from undocumented alias to option.
767 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
768 * c-opts.c (set_std_cxx1z): Rename to ...
769 (set_std_cxx17): ... this.
770 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
771 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
773 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
776 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
778 * c-attribs.c (common_handle_aligned_attribute): Don't warn
779 function alignment if warn_if_not_aligned_p is true.
781 2017-09-12 Nathan Sidwell <nathan@acm.org>
783 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
784 resort_sorted_fields): Move to c/c-decl.c.
785 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
786 (struct sorted_fields_type): Move to c/c-lang.h.
788 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
791 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
793 2017-09-04 Marek Polacek <polacek@redhat.com>
796 * c-warn.c (warn_tautological_bitwise_comparison): New function.
797 (warn_tautological_cmp): Call it.
799 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
801 * c-opts.c (c_common_finish): Write dependency information even if
804 2017-09-01 Jakub Jelinek <jakub@redhat.com>
807 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
808 (omp_pragmas_simd): ... here.
809 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
810 create new clauses list containing just simd clause.
812 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
813 Alan Hayward <alan.hayward@arm.com>
814 David Sherwood <david.sherwood@arm.com>
816 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
817 into scalar_mode_supported_p call.
818 (handle_mode_attribute): Update call to scalar_mode_supported_p.
820 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
821 Alan Hayward <alan.hayward@arm.com>
822 David Sherwood <david.sherwood@arm.com>
824 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
825 for the mode iterator.
827 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
828 Alan Hayward <alan.hayward@arm.com>
829 David Sherwood <david.sherwood@arm.com>
831 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
832 * c-common.c (c_build_vec_perm_expr): Likewise.
834 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
835 Alan Hayward <alan.hayward@arm.com>
836 David Sherwood <david.sherwood@arm.com>
838 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
840 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
841 Alan Hayward <alan.hayward@arm.com>
842 David Sherwood <david.sherwood@arm.com>
844 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
845 before calling targetm.addr_space.valid_pointer_mode.
847 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
848 Alan Hayward <alan.hayward@arm.com>
849 David Sherwood <david.sherwood@arm.com>
851 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
853 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
854 Alan Hayward <alan.hayward@arm.com>
855 David Sherwood <david.sherwood@arm.com>
857 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
859 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
861 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
862 Alan Hayward <alan.hayward@arm.com>
863 David Sherwood <david.sherwood@arm.com>
865 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
868 2017-08-29 Martin Liska <mliska@suse.cz>
871 * c-common.c (parse_optimize_options): Add argument to function
873 * c-pragma.c (handle_pragma_diagnostic): Likewise.
875 2017-08-24 David Malcolm <dmalcolm@redhat.com>
877 * c-lex.c (interpret_float): Use token location
878 when building an EXCESS_PRECISION_EXPR.
880 2017-08-21 David Malcolm <dmalcolm@redhat.com>
882 * c-common.c (check_function_arguments): Add "arglogs" param; pass
883 it to check_function_format.
884 * c-common.h (check_function_arguments): Add vec<location_t> *
886 (check_function_format): Likewise.
887 * c-format.c (struct format_check_context): Add field "arglocs".
888 (check_function_format): Add param "arglocs"; pass it to
890 (check_format_info): Add param "arglocs"; use it to initialize
891 new field of format_ctx.
892 (check_format_arg): Pass format_ctx->arglocs to new param of
893 check_format_info_main.
894 (class argument_parser): New field "arglocs".
895 (argument_parser::argument_parser): Add "arglocs_" param and use
896 it to initialize new field.
897 (argument_parser::check_argument_type): Pass new arglocs field to
899 (check_format_info_main): Add param "arglocs", and use it when
900 constructing arg_parser.
901 (check_format_types): Add param "arglocs"; use it if non-NULL when
902 !EXPR_HAS_LOCATION (cur_param) to get at location information.
904 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
907 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
908 (c_common_attribute_table): Add warn_if_not_aligned.
909 (handle_aligned_attribute): Renamed to ...
910 (common_handle_aligned_attribute): Remove argument, name, and add
911 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
912 (handle_aligned_attribute): New.
913 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
915 2017-08-14 Martin Sebor <msebor@redhat.com>
918 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
919 (handle_nonstring_attribute): New function.
921 2017-08-14 Martin Sebor <msebor@redhat.com>
924 * c-format.h (T89_G): New macro.
925 * c-format.c (local_gcall_ptr_node): New variable.
926 (init_dynamic_diag_info): Initialize it.
928 2017-08-11 Martin Liska <mliska@suse.cz>
930 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
931 TARGET_SUPPORTS_ALIASES.
933 2017-08-10 David Malcolm <dmalcolm@redhat.com>
935 * c-common.c (c_parse_error): Add rich_location * param, using it
936 rather implicitly using input_location.
937 * c-common.h (c_parse_error): Add rich_location * param.
939 2017-08-09 Marek Polacek <polacek@redhat.com>
941 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
942 (c_common_truthvalue_conversion): Likewise.
943 * c-omp.c (c_finish_omp_atomic): Likewise.
944 * c-common.h (build_binary_op): Update declaration.
946 2017-08-08 Martin Liska <mliska@suse.cz>
948 * c-ada-spec.c: Include header files.
949 * c-ubsan.c: Likewise.
950 * c-warn.c: Likewise.
952 2017-08-07 Jakub Jelinek <jakub@redhat.com>
955 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
957 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
959 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
960 (print_ada_methods): Likewise.
961 (print_ada_declaration): Likewise.
963 2017-08-07 Martin Liska <mliska@suse.cz>
965 * array-notation-common.c: Add new includes.
966 * c-format.c( handle_format_attribute): Canonicalize a format
968 * c-lex.c (c_common_has_attribute): Canonicalize name of an
970 * c-pretty-print.c: Add new include.
972 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
974 * c-ada-spec.c (has_static_fields): Look only into variables.
975 (print_constructor): Add TYPE parameter and use it for the name.
976 (print_destructor): Likewise.
977 (print_ada_declaration): Adjust to new constructor/destructor names.
978 Adjust calls to print_constructor and print_destructor.
979 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
980 Look only into variables in the final loop.
982 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
984 * c-ada-spec.c (has_static_fields): Look only into fields.
985 (dump_generic_ada_node): Small tweak.
986 (dump_nested_types): Look only into fields.
987 (print_ada_declaration): Look only into methods. Small tweak.
988 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
990 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
992 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
993 (dump_ada_function_declaration): Likewise.
994 (dump_generic_ada_node): Likewise.
995 (print_ada_declaration): Add support for const-qualified variables.
997 2017-07-31 Martin Liska <mliska@suse.cz>
1000 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1001 Guard condition with flag_sanitize_p also with current_function_decl
1003 (ubsan_maybe_instrument_reference_or_call): Likewise.
1005 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
1007 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1009 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1011 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1013 (print_ada_declaration): Add missing guard for record types.
1015 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1018 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1019 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1020 new COMPOUND_EXPRs around the rhs of the comparison.
1022 2017-07-27 Marek Polacek <polacek@redhat.com>
1025 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1028 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1030 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1031 (handle_noipa_attribute): New function.
1033 2017-07-07 Torsten Duwe <duwe@suse.de>
1035 * c-attribs.c (c_common_attribute_table): Add entry for
1036 "patchable_function_entry".
1038 2017-07-20 Nathan Sidwell <nathan@acm.org>
1040 Remove TYPE_METHODS.
1041 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1042 dump_ada_template, print_ada_methods,
1043 print_ada_declaration): Member fns are on TYPE_FIELDS.
1045 2017-07-18 Nathan Sidwell <nathan@acm.org>
1047 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1049 2017-07-14 David Malcolm <dmalcolm@redhat.com>
1051 * c-common.c (try_to_locate_new_include_insertion_point): New
1053 (per_file_includes_t): New typedef.
1054 (added_includes_t): New typedef.
1055 (added_includes): New variable.
1056 (maybe_add_include_fixit): New function.
1057 * c-common.h (maybe_add_include_fixit): New decl.
1059 2017-07-10 Martin Sebor <msebor@redhat.com>
1062 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1064 2017-07-06 David Malcolm <dmalcolm@redhat.com>
1066 * c-common.c (selftest::c_family_tests): New.
1067 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1068 (selftest::c_family_tests): New decl.
1070 2017-07-04 Marek Polacek <polacek@redhat.com>
1073 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1076 2017-07-04 Marek Polacek <polacek@redhat.com>
1078 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1080 2017-06-28 Martin Liska <mliska@suse.cz>
1083 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1084 to a function declaration.
1086 2017-06-28 Martin Liska <mliska@suse.cz>
1089 * c.opt: Add IntegerRange to various options.
1091 2017-06-26 Marek Polacek <polacek@redhat.com>
1094 * c-common.h (warn_for_multistatement_macros): Declare.
1095 * c-warn.c: Include "c-family/c-indentation.h".
1096 (warn_for_multistatement_macros): New function.
1097 * c.opt (Wmultistatement-macros): New option.
1098 * c-indentation.c (guard_tinfo_to_string): No longer static.
1099 Change the parameter type to "enum rid". Handle RID_SWITCH.
1100 * c-indentation.h (guard_tinfo_to_string): Declare.
1102 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1104 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1106 2017-06-15 Martin Sebor <msebor@redhat.com>
1109 * c.opt (-Wclass-memaccess): New option.
1111 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1113 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1115 2017-06-13 Marek Polacek <polacek@redhat.com>
1118 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1121 2017-06-13 Martin Liska <mliska@suse.cz>
1124 * c-attribs.c (add_no_sanitize_value): New function.
1125 (handle_no_sanitize_attribute): Likewise.
1126 (handle_no_sanitize_address_attribute): Use the function.
1127 (handle_no_sanitize_thread_attribute): New function.
1128 (handle_no_address_safety_analysis_attribute): Use
1129 add_no_sanitize_value.
1130 (handle_no_sanitize_undefined_attribute): Likewise.
1131 * c-common.h: Declare new functions.
1132 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1133 (ubsan_instrument_shift): Likewise.
1134 (ubsan_instrument_bounds): Likewise.
1135 (ubsan_maybe_instrument_array_ref): Likewise.
1136 (ubsan_maybe_instrument_reference_or_call): Likewise.
1138 2017-06-11 Jason Merrill <jason@redhat.com>
1140 * c-ada-spec.c, c-pragma.c: Use id_equal.
1142 2017-06-04 Marek Polacek <polacek@redhat.com>
1145 * c-format.c (matching_type_p): Return false if any of the types
1146 requires structural equality.
1148 2017-06-02 Martin Sebor <msebor@redhat.com>
1151 * c-warn.c (conversion_warning): Use -Wconversion for integer
1152 conversion and -Wfloat-conversion for floating one.
1154 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1156 * c.opt (Wsizeof-pointer-div): New warning option.
1158 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1160 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1161 (Wcatch-value=1): Enable by -Wall.
1163 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1165 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1167 * c.opt (fdiagnostics-show-template-tree): New option.
1168 (felide-type): New option.
1170 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1172 * c.opt (Wcatch-value=): New C++ warning flag.
1174 2017-05-24 Nathan Sidwell <nathan@acm.org>
1176 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1177 const casts to avoid warning.
1179 2017-05-24 Martin Sebor <msebor@redhat.com>
1182 * c-common.h (unsafe_conversion_p): Add a function argument.
1183 * c-common.c (unsafe_conversion_p): Same.
1184 Add type names and values to diagnostics.
1185 (scalar_to_vector): Adjust.
1186 * c-warn.c (constant_expression_error): Add a function argument.
1187 Add type names and values to diagnostics.
1188 (conversion_warning): Add a function argument.
1189 Add type names and values to diagnostics.
1190 (warnings_for_convert_and_check): Same.
1192 2017-05-19 Jason Merrill <jason@redhat.com>
1194 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1197 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1199 * c-format.c (locus): Move out of function scope,
1202 2017-05-19 Nathan Sidwell <nathan@acm.org>
1204 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1205 (c_common_parse_file): Remove class dump handling.
1206 (get_dump_info): Likewise.
1208 2017-05-19 Richard Biener <rguenther@suse.de>
1211 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1212 to alias-set zero memory.
1214 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1216 * c-format.c (local_tree_type_node): Add GTY attribute.
1218 2017-05-18 Marek Polacek <polacek@redhat.com>
1220 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1221 (c_common_fixed_point_type_for_size): Likewise.
1222 (c_common_type_for_mode): Likewise.
1223 (shorten_compare): Likewise.
1224 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1225 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1227 2017-05-18 Marek Polacek <polacek@redhat.com>
1229 * c-common.c (self_promoting_args_p): Change the return type to bool.
1230 Use false/true instead of 0/1.
1231 * c-common.h (self_promoting_args_p): Update.
1233 2017-05-17 Marek Polacek <polacek@redhat.com>
1235 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1236 * c-warn.c: Likewise.
1238 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1240 Implement new C++ intrinsics __is_assignable and __is_constructible.
1241 * c-common.c (__is_assignable, __is_constructible): New.
1242 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1244 2017-05-17 Martin Liska <mliska@suse.cz>
1246 * c-common.h: Introduce dump_flags_t type and
1247 use it instead of int type.
1248 * c-gimplify.c (c_genericize): Likewise.
1249 * c-opts.c: Likewise.
1251 2017-05-17 Marek Polacek <polacek@redhat.com>
1253 * c-common.c (c_save_expr): Remove.
1254 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1255 * c-common.h (c_save_expr): Remove declaration.
1257 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1260 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1261 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1262 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1263 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1265 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1267 2017-05-09 Marek Polacek <polacek@redhat.com>
1270 * c-warn.c (unwrap_c_maybe_const): New.
1271 (warn_logical_operator): Call it.
1273 2017-05-09 Nathan Sidwell <nathan@acm.org>
1275 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1276 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1278 2017-05-08 Martin Sebor <msebor@redhat.com>
1280 PR translation/80280
1281 * c-format.h (struct format_flag_spec): Add new member.
1283 * c-format.c (local_tree_type_node): New global.
1284 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1285 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1286 (strfmon_flag_specs): Likewise.
1287 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1288 with distinct quoting properties.
1289 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1290 (flag_chars_t::validate): Add argument and handle bad quoting.
1291 (check_format_info_main): Handle quoting problems.
1292 (init_dynamic_diag_info): Simplify.
1294 2017-05-08 Jason Merrill <jason@redhat.com>
1296 * c-opts.c (c_common_post_options): Update defaults for
1297 flag_abi_version and flag_abi_compat_version.
1299 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1301 * c-common.c (c_cpp_error): Replace report_diagnostic
1302 with diagnostic_report_diagnostic.
1304 2017-05-04 Martin Sebor <msebor@redhat.com>
1306 PR translation/80280
1307 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1308 (handle_weakref_attribute): Same.
1310 2017-05-03 Nathan Sidwell <nathan@acm.org>
1312 Canonicalize canonical type hashing
1313 * c-common.c (complete_array_type): Use type_hash_canon.
1315 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1318 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1320 (cilk_install_body_pedigree_operations): Likewise.
1321 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1323 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1324 (cilk_install_body_pedigree_operations): Likewise.
1325 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1328 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1331 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1332 flag on non-aggregate element types.
1334 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1336 * c-common.c (c_type_hasher, type_hash_table): Remove.
1337 (c_common_get_alias_set): Remove unreachable code.
1338 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1340 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1342 * c.opt (Wextra-semi): New C++ warning flag.
1344 2017-04-20 Jakub Jelinek <jakub@redhat.com>
1347 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1349 2017-04-18 Jakub Jelinek <jakub@redhat.com>
1353 * c-common.c (c_common_type_for_mode): Don't handle
1354 widest_*_literal_type_node here.
1355 c_common_signed_or_unsigned_type): Likewise.
1356 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1357 to *intTI_type_node or *intDI_type_node depending on whether
1358 TImode is supported by the target or not.
1360 2017-04-10 Martin Liska <mliska@suse.cz>
1363 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1364 doing an UBSAN check.
1366 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1368 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1370 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1373 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1375 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1376 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1379 2017-03-31 David Malcolm <dmalcolm@redhat.com>
1381 PR documentation/78732
1382 * c.opt (Wendif-labels): Fix description to refer to
1383 #else rather than #elif.
1385 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1388 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1389 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1391 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1394 * c-common.c (c_common_mark_addressable_vec): Don't set
1395 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1397 2017-03-21 Martin Sebor <msebor@redhat.com>
1400 * c-common.c (set_underlying_type): Mark type used only when
1401 original del is declared unused.
1403 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1405 PR translation/79848
1406 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1409 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1412 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1413 from inform's message, so that xgettext can locate it.
1415 2017-03-09 Marek Polacek <polacek@redhat.com>
1419 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1420 conversion to the attribute list.
1422 2017-03-09 Martin Liska <mliska@suse.cz>
1424 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1426 2017-03-03 Jason Merrill <jason@redhat.com>
1428 * c.opt (Wnoexcept-type): New.
1430 2017-03-02 Richard Biener <rguenther@suse.de>
1433 * c-common.c (c_common_mark_addressable_vec): Look through
1436 2017-02-28 Martin Liska <mliska@suse.cz>
1438 * c.opt: Replace space with tabular for options of <number>
1441 2017-02-28 Martin Liska <mliska@suse.cz>
1443 * c.opt: Fix --help=option -Q for options which are of
1446 2017-02-24 Jakub Jelinek <jakub@redhat.com>
1449 * c-common.c (check_function_restrict): New function.
1450 (check_function_arguments): Add FNDECL argument. Call
1451 check_function_restrict if -Wrestrict.
1452 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1453 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1454 * c-common.h (check_function_arguments): Add FNDECL argument.
1455 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1457 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1459 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1460 treatment of parameters with pointer-to-tagged type and tidy up.
1461 (print_ada_methods): Remove the special treatment of C++ static member
1464 2017-02-22 Martin Liska <mliska@suse.cz>
1466 * c.opt: Replace inequality signs with square brackets
1469 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1472 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1475 2017-02-17 Joseph Myers <joseph@codesourcery.com>
1477 * c-cppbuiltin.c (builtin_define_float_constants): Define
1478 __DECIMAL_DIG__ to the value for long double.
1480 2017-02-15 Marek Polacek <polacek@redhat.com>
1483 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1484 conversion has occured.
1486 2017-01-24 David Malcolm <dmalcolm@redhat.com>
1488 * c-common.c (c_common_reswords): Add "__RTL".
1489 * c-common.h (enum rid): Add RID_RTL.
1491 2017-01-20 Marek Polacek <polacek@redhat.com>
1494 * c-common.h (do_warn_duplicated_branches_r): Declare.
1495 * c-gimplify.c (c_genericize): Walk the function tree calling
1496 do_warn_duplicated_branches_r.
1497 * c-warn.c (expr_from_macro_expansion_r): New.
1498 (do_warn_duplicated_branches): New.
1499 (do_warn_duplicated_branches_r): New.
1500 * c.opt (Wduplicated-branches): New option.
1502 2017-01-17 David Malcolm <dmalcolm@redhat.com>
1505 * c-indentation.c (warn_for_misleading_indentation): Use the past
1506 subjunctive in the note.
1508 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
1511 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1512 start type to integer_type.
1514 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1517 * c.opt (gen-decls): Add Driver flag.
1519 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1522 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1525 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1527 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1530 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1532 2017-01-12 Martin Sebor <msebor@redhat.com>
1534 (-Wformat-overflow): ...to this.
1536 2017-01-11 Martin Sebor <msebor@redhat.com>
1539 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1540 Also enable for LTO.
1542 2017-01-10 Jason Merrill <jason@redhat.com>
1544 Implement P0195R2, C++17 variadic using.
1545 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1547 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1549 PR translation/79019
1550 PR translation/79020
1551 * c.opt (Wnormalized=): Fix typo in description.
1553 2017-01-08 Martin Sebor <msebor@redhat.com>
1556 * c.opt (-Wformat-truncation): New option.
1558 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
1560 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1561 value to unsigned short to fit in 4 hex digits without
1564 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1566 * c.opt (fsso-struct): Add 'native' value.
1568 2017-01-05 Martin Liska <mliska@suse.cz>
1571 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1574 2017-01-04 Marek Polacek <polacek@redhat.com>
1577 * c.opt (Wpointer-compare): New option.
1579 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1582 * c.opt (fsso-struct=): Add RejectNegative.
1584 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1586 Update copyright years.
1588 2016-12-29 Martin Liska <mliska@suse.cz>
1591 * c.opt (strong-eval-order): Add RejectNegative keyword.
1593 2016-12-22 Jason Merrill <jason@redhat.com>
1595 Implement P0522R0, matching of template template arguments.
1596 * c-cppbuiltin.c (c_cpp_builtins): Define
1597 __cpp_template_template_args.
1599 2016-12-21 Jakub Jelinek <jakub@redhat.com>
1602 * c-common.c (struct nonnull_arg_ctx): New type.
1603 (check_function_nonnull): Return bool instead of void. Use
1604 nonnull_arg_ctx as context rather than just location_t.
1605 (check_nonnull_arg): Adjust for the new context type, set
1606 warned_p to true if a warning has been diagnosed.
1607 (check_function_arguments): Return bool instead of void.
1608 * c-common.h (check_function_arguments): Adjust prototype.
1610 2016-12-21 Jason Merrill <jason@redhat.com>
1612 * c.opt (-fnew-ttp-matching): New flag.
1613 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1615 2016-12-14 Martin Jambor <mjambor@suse.cz>
1617 * c-omp.c: Include omp-general.h instead of omp-low.h.
1618 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1621 2016-12-14 Martin Sebor <msebor@redhat.com>
1624 * c-common.c (check_nonnull_arg): Disable when optimization
1627 2016-12-12 Marek Polacek <polacek@redhat.com>
1630 * c-common.c (attribute_fallthrough_p): Return false for
1633 2016-12-08 Martin Sebor <msebor@redhat.com>
1636 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1638 2016-12-08 Martin Sebor <msebor@redhat.com>
1641 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1644 2016-12-07 Martin Sebor <msebor@redhat.com>
1650 * c.opt (-Wstringop-overflow): New option.
1652 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1654 * c-attribs.c (asan odr indicator): New attribute.
1655 (handle_asan_odr_indicator_attribute): New function.
1657 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1659 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1662 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1664 * c-common.c (excess_precision_mode_join): New.
1665 (c_ts18661_flt_eval_method): New.
1666 (c_c11_flt_eval_method): Likewise.
1667 (c_flt_eval_method): Likewise.
1668 * c-common.h (excess_precision_mode_join): New.
1669 (c_flt_eval_method): Likewise.
1670 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1671 (cpp_iec_559_value): Call it.
1672 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1673 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1674 __FLT_EVAL_METHOD_TS_18661_3__.
1676 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1678 * c-opts.c (c_common_post_options): Add logic to handle the default
1679 case for -fpermitted-flt-eval-methods.
1681 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1683 * c.opt (Wexpansion-to-defined): New.
1685 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1688 * c-pragma.c (handle_pragma_target): Don't replace
1689 current_target_pragma, but chainon the new args to the current one.
1691 2016-11-22 Nathan Sidwell <nathan@acm.org>
1693 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1694 indentation and formatting.
1696 2016-11-21 Martin Sebor <msebor@redhat.com>
1698 * c.opt (-fprintf-return-value): Enable by default.
1700 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1703 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1704 * c-common.c (c_common_nodes_and_builtins): Initialize
1705 const_tm_ptr_type_node.
1707 2016-11-16 Marek Polacek <polacek@redhat.com>
1710 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1712 2016-11-14 Jakub Jelinek <jakub@redhat.com>
1714 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1716 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1717 Richard Biener <rguenther@suse.de>
1719 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1720 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1721 * c.opt (fgimple): New option.
1723 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1726 * c-common.h (warn_for_restrict): Declare.
1727 * c-warn.c: Include gcc-rich-location.h.
1728 (warn_for_restrict): New function.
1729 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1730 (gcc_cdiag_char_table): Likewise.
1731 (gcc_cxxdiag_char_table): Likewise.
1732 * c.opt (Wrestrict): New option.
1734 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1736 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1737 for nested types only if the type is a record or union and dump SLOC.
1739 2016-11-09 Jason Merrill <jason@redhat.com>
1741 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1743 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1745 * c-ubsan.c (ubsan_instrument_shift): Handle split
1746 -fsanitize=shift-base and -fsanitize=shift-exponent.
1748 2016-11-07 Jason Merrill <jason@redhat.com>
1750 * c.opt (Wc++1z-compat): New.
1751 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1753 2016-11-07 Martin Liska <mliska@suse.cz>
1755 * c-warn.c (warn_for_unused_label): Save all labels used
1756 in goto or in &label.
1758 2016-11-03 Jason Merrill <jason@redhat.com>
1760 * c-cppbuiltin.c (c_cpp_builtins): Correct
1761 __cpp_inheriting_constructors.
1763 2016-11-01 Jason Merrill <jason@redhat.com>
1765 * c-cppbuiltin.c (c_cpp_builtins): Update
1766 __cpp_inheriting_constructors.
1768 * c.opt (-fnew-inheriting-ctors): New.
1769 * c-opts.c: Default to on for ABI 11+.
1771 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1774 * c.opt (fext-numeric-literals): Add Var and Init.
1775 * c-opts.c (c_common_handle_option): Don't clear
1776 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1777 (c_common_post_options): Clear it here if not set
1780 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
1783 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1786 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1788 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1789 * c-common.c (c_common_reswords): Add __builtin_launder.
1791 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1793 * c-common.c (c_common_truthvalue_conversion): Warn for
1794 multiplications in boolean context. Fix the quoting of '<<' and '<'
1795 in the shift warning.
1797 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1799 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1801 2016-10-20 Jason Merrill <jason@redhat.com>
1803 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1805 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1807 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1808 integer shift ops in boolean context.
1810 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1812 * c.opt (Walloca): New.
1813 (Walloca-larger-than=): New.
1814 (Wvla-larger-than=): New.
1816 2016-10-17 Marek Polacek <polacek@redhat.com>
1818 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1819 Return immediately when finding a match.
1820 (warn_tautological_cmp): Remove a boolean variable that is no longer
1823 2016-10-17 Marek Polacek <polacek@redhat.com>
1825 * c-attribs.c: New file.
1826 * c-common.c: Move attributes handling to c-attribs.c.
1827 (get_nonnull_operand): No longer static.
1828 * c-common.h: Move the declarations from c-attribs.c to its own section.
1830 2016-10-14 Jason Merrill <jason@redhat.com>
1832 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1833 and __cpp_deduction_guides.
1835 2016-10-13 Jason Merrill <jason@redhat.com>
1837 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1839 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1841 * c-cppbuiltin.c: Include memmodel.h.
1842 * c-opts.c: Likewise.
1843 * c-pragma.c: Likewise.
1844 * c-warn.c: Likewise.
1846 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1848 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1849 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1850 * c-opts.c (sanitize_cpp_opts): Initialize
1851 cpp_opts->cpp_warn_implicit_fallthrough.
1853 2016-10-11 Marek Polacek <polacek@redhat.com>
1855 * c-common.c (warning_candidate_p): Change the return type to bool
1856 and return true/false instead of 1/0.
1857 (vector_mode_valid_p): Likewise.
1859 2016-10-11 Marek Polacek <polacek@redhat.com>
1861 * c-common.c (fold_for_warn): No longer static.
1862 (bool_promoted_to_int_p): Likewise.
1863 (c_common_get_narrower): Likewise.
1864 (constant_expression_warning): Move to c-warn.c.
1865 (constant_expression_error): Likewise.
1866 (overflow_warning): Likewise.
1867 (warn_logical_operator): Likewise.
1868 (find_array_ref_with_const_idx_r): Likewise.
1869 (warn_tautological_cmp): Likewise.
1870 (expr_has_boolean_operands_p): Likewise.
1871 (warn_logical_not_parentheses): Likewise.
1872 (warn_if_unused_value): Likewise.
1873 (strict_aliasing_warning): Likewise.
1874 (sizeof_pointer_memaccess_warning): Likewise.
1875 (check_main_parameter_types): Likewise.
1876 (conversion_warning): Likewise.
1877 (warnings_for_convert_and_check): Likewise.
1878 (match_case_to_enum_1): Likewise.
1879 (match_case_to_enum): Likewise.
1880 (c_do_switch_warnings): Likewise.
1881 (warn_for_omitted_condop): Likewise.
1882 (readonly_error): Likewise.
1883 (lvalue_error): Likewise.
1884 (invalid_indirection_error): Likewise.
1885 (warn_array_subscript_with_type_char): Likewise.
1886 (warn_about_parentheses): Likewise.
1887 (warn_for_unused_label): Likewise.
1888 (warn_for_div_by_zero): Likewise.
1889 (warn_for_memset): Likewise.
1890 (warn_for_sign_compare): Likewise.
1891 (do_warn_double_promotion): Likewise.
1892 (do_warn_unused_parameter): Likewise.
1893 (record_locally_defined_typedef): Likewise.
1894 (maybe_record_typedef_use): Likewise.
1895 (maybe_warn_unused_local_typedefs): Likewise.
1896 (maybe_warn_bool_compare): Likewise.
1897 (maybe_warn_shift_overflow): Likewise.
1898 (warn_duplicated_cond_add_or_warn): Likewise.
1899 (diagnose_mismatched_attributes): Likewise.
1900 * c-common.h: Move the declarations from c-warn.c to its own section.
1901 * c-warn.c: New file.
1903 2016-10-08 Jason Merrill <jason@redhat.com>
1905 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1906 into COND_EXPR in C++.
1908 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1910 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1911 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1912 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1914 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1916 Implement LWG2296 helper intrinsic
1917 * c-common.h (enum rid): Add RID_ADDRESSOF.
1918 * c-common.c (c_common_reswords): Add __builtin_addressof.
1920 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1923 * c-common.c (c_common_truthvalue_conversion): Warn also for
1924 suspicious enum values in boolean context.
1926 2016-10-06 Jakub Jelinek <jakub@redhat.com>
1928 Implement P0258R2 - helper for C++17
1929 std::has_unique_object_representations trait
1930 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1931 * c-common.c (c_common_reswords): Add
1932 __has_unique_object_representations.
1934 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1937 * c-ubsan.c (ubsan_instrument_return): Don't call
1938 initialize_sanitizer_builtins here.
1940 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1942 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1943 conditional expression in boolean context when only one arm is
1946 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1949 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1952 * c-common.c (c_common_reswords): Update comment for C++11.
1954 2016-10-04 Jason Merrill <jason@redhat.com>
1956 * c-common.c (make_tree_vector_from_ctor): New.
1957 * c-common.h: Declare it.
1959 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1961 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1962 __LIBGCC_JCR_SECTION_NAME__.
1964 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1966 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1967 left shift in boolean context.
1969 2016-09-29 Jakub Jelinek <jakub@redhat.com>
1971 Implement P0001R1 - C++17 removal of register storage class specifier
1972 * c.opt (Wregister): New warning.
1973 * c-opts.c (c_common_post_options): Enable -Wregister by
1976 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1978 * c-opts.c (c_common_post_options): Remove special case for
1979 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1982 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1984 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1987 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1989 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1991 * c-common.c: Include memmodel.h.
1993 2016-09-26 Marek Polacek <polacek@redhat.com>
1995 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1997 2016-09-26 Marek Polacek <polacek@redhat.com>
2000 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2001 (handle_fallthrough_attribute): New function.
2002 (attribute_fallthrough_p): New function.
2003 * c-common.h (attribute_fallthrough_p): Declare.
2005 2016-09-24 Marek Polacek <polacek@redhat.com>
2008 * c.opt (Wbool-operation): New.
2010 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2012 * c-common.c (c_common_truthvalue_conversion): Inhibit
2013 Wint-in-bool-context warning with from_macro_definition_at.
2014 Mention the expression will always evaluate to true.
2016 2016-09-21 Martin Sebor <msebor@redhat.com>
2019 * c.opt (fprintf-return-value): Temporarily initialize to zero
2020 to unblock bootstrap failures.
2022 2016-09-21 Jakub Jelinek <jakub@redhat.com>
2025 * c.opt (Waligned-new=): Add RejectNegative.
2026 (faligned-new=): Likewise. Spelling fix - change
2027 aligned_new_threshhold to aligned_new_threshold.
2028 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2029 to aligned_new_threshold.
2031 2016-09-20 Martin Sebor <msebor@redhat.com>
2034 * c.opt: Add -Wformat-length and -fprintf-return-value.
2036 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2039 * c.opt (Wint-in-bool-context): New warning.
2040 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2041 constants in boolean context.
2043 2016-09-19 Joseph Myers <joseph@codesourcery.com>
2045 * c-common.c (max_align_t_align): Also consider alignment of
2048 2016-09-15 Jason Merrill <jason@redhat.com>
2050 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2053 2016-09-14 Jason Merrill <jason@redhat.com>
2055 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2056 limit FIELD_DECL, either.
2058 2016-09-14 Marek Polacek <polacek@redhat.com>
2060 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2061 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2062 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2064 2016-09-13 David Malcolm <dmalcolm@redhat.com>
2066 * c-common.c (warn_logical_not_parentheses): Replace
2067 rich_location::add_fixit_insert calls with add_fixit_insert_before
2068 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2070 2016-09-13 Jason Merrill <jason@redhat.com>
2071 Tom de Vries <tom@codesourcery.com>
2074 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2076 2016-09-13 Jason Merrill <jason@redhat.com>
2078 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2081 2016-09-12 Jason Merrill <jason@redhat.com>
2083 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2084 bit/byte confusion, allow large alignment for types.
2086 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2089 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2091 2016-09-12 David Malcolm <dmalcolm@redhat.com>
2094 * c-format.c (argument_parser::check_argument_type): Add params
2095 "type_start" and "conversion_char". Use the former to generate
2096 offset_to_type_start and pass it and conversion_char to
2098 (check_format_info_main): Capture the start of the type
2099 information as "type_start", and pass it an format_char
2100 to arg_parser.check_argument_type.
2101 (check_format_types): Provide an example in the leading comment.
2102 Add params "offset_to_type_start" and "conversion_char"; pass
2103 them to format_type_warning calls.
2104 (test_get_modifier_for_format_len): Likewise.
2105 (matching_type_p): New function.
2106 (get_format_for_type): Add param "conversion_char" and move
2107 implementation into...
2108 (get_format_for_type_1): ...new function, called twice.
2109 Use new function matching_type_p rather than checking for
2110 TYPE_CANONICAL equality.
2111 (get_corrected_substring): New function.
2112 (format_type_warning): Provide an example in the leading comment.
2113 Add params "offset_to_type_start" and "conversion_char". Replace
2114 call to get_format_for_type with call to get_corrected_substring
2115 and move rejection of hints for widths/precisions there.
2116 (assert_format_for_type_streq): Add param "conversion_char".
2117 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2118 (test_get_format_for_type_printf): Add conversion chars to the
2119 tests, adding coverage for various combinations of integer
2120 vs double conversions, and for preserving octal and hexadecimal
2122 (test_get_format_for_type_scanf): Add conversion chars to the
2125 2016-09-10 Tom de Vries <tom@codesourcery.com>
2128 * c-common.c (build_va_arg): Handle more strict
2129 targetm.canonical_va_list_type. Replace first argument type error with
2132 2016-09-09 Martin Sebor <msebor@redhat.com>
2136 * c-format.c (argument_parser::find_format_char_info): Use %qc
2137 format directive unconditionally.
2139 2016-09-09 Jason Merrill <jason@redhat.com>
2141 Implement C++17 new of over-aligned types.
2142 * c.opt: Add -faligned-new and -Waligned-new.
2143 * c-common.c (max_align_t_align): Split out from...
2144 (cxx_fundamental_alignment_p): ...here.
2145 * c-common.h: Declare it.
2146 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2148 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2150 * c-cppbuiltin.c (builtin_define_type_width): New function.
2151 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2154 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2156 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2158 (substring_loc::get_location): Move to substring-locations.c,
2159 keeping implementation as...
2160 (c_get_substring_location): New function, from the above, reworked
2161 to use accessors rather than member lookup.
2162 * c-common.h (class substring_loc): Move to substring-locations.h,
2163 replacing with a forward decl.
2164 (c_get_substring_location): New decl.
2165 * c-format.c: Include "substring-locations.h".
2166 (format_warning_va): Move to substring-locations.c.
2167 (format_warning_at_substring): Likewise.
2169 2016-09-06 Martin Sebor <msebor@redhat.com>
2172 * c-format.c (check_function_format): Avoid issuing warnings for
2173 functions unless they call format functions with non-constant
2176 2016-09-06 Richard Biener <rguenther@suse.de>
2179 * c-common.c (c_common_mark_addressable_vec): Handle
2180 COMPOUND_LITERAL_EXPR.
2182 2016-09-05 Marek Polacek <polacek@redhat.com>
2185 * c-common.c (bool_promoted_to_int_p): New function.
2186 (expr_has_boolean_operands_p): New function.
2187 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2188 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2190 2016-09-04 Tom de Vries <tom@codesourcery.com>
2193 2016-08-29 Tom de Vries <tom@codesourcery.com>
2195 * c-common.c (build_va_arg): Replace first argument type error
2198 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2201 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2202 (c_finish_omp_for): Reject _Atomic qualified iterators.
2204 2016-09-01 Martin Sebor <msebor@redhat.com>
2206 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2207 size to guarantee it fits the output of the formatted function
2208 regardless of its arguments.
2210 2016-09-01 Marek Polacek <polacek@redhat.com>
2213 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2216 2016-08-29 Marek Polacek <polacek@redhat.com>
2219 * c-common.c (warn_logical_not_parentheses): Don't warn for
2220 a comparison or a logical operator.
2222 2016-08-29 Tom de Vries <tom@codesourcery.com>
2224 * c-common.c (build_va_arg): Fix type comparison assert.
2226 2016-08-29 Tom de Vries <tom@codesourcery.com>
2228 * c-common.c (build_va_arg): Replace first argument type error
2231 2016-08-29 Tom de Vries <tom@codesourcery.com>
2234 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2235 with error_mark_node as va_list instead of with illegal va_list.
2237 2016-08-25 Marek Polacek <polacek@redhat.com>
2238 David Malcolm <dmalcolm@redhat.com>
2240 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2241 * c-common.h (warn_logical_not_parentheses): Update declaration.
2243 2016-08-22 Marek Polacek <polacek@redhat.com>
2246 * c-common.c (warn_for_memset): Check type for null.
2248 2016-08-22 Joseph Myers <joseph@codesourcery.com>
2250 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2251 _FloatNx types for suffixes for built-in functions.
2253 2016-08-19 Joseph Myers <joseph@codesourcery.com>
2256 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2257 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2258 (RID_FLOAT128X): New enum rid values.
2259 (CASE_RID_FLOATN_NX): New macro.
2260 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2262 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2263 corresponding complex types.
2264 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2265 _FloatNx and corresponding complex types.
2266 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2267 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2268 and _FloatNx types for the widest type for determining
2269 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2270 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2271 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2273 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2275 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2278 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2280 * c-opts.c (c_diagnostic_finalizer): Update for change to
2281 diagnostic_show_locus.
2283 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2285 * c-common.c: Include "spellcheck.h".
2286 (cb_get_suggestion): New function.
2287 * c-common.h (cb_get_suggestion): New decl.
2288 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2291 2016-08-18 Marek Polacek <polacek@redhat.com>
2294 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2297 2016-08-16 David Malcolm <dmalcolm@redhat.com>
2300 * c-common.c (substring_loc::get_range): Rename to...
2301 (substring_loc::get_location): ...this, converting param from a
2302 source_range * to a location_t *. Call
2303 get_source_location_for_substring rather than
2304 get_source_range_for_substring, and pass in m_caret_idx.
2305 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2306 (substring_loc::get_range): Replace with...
2307 (substring_loc::get_location): ...this.
2308 (substring_loc::set_caret_index): New method.
2309 (substring_loc): Add field m_caret_idx.
2310 * c-format.c (format_warning_va): Update for above changes.
2311 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2312 clashing with type name.
2313 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2314 (check_argument_type): Likewise.
2315 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2316 Use a copy when emitting warnings, setting the caret index from TYPE.
2318 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
2319 Arnaud Charlet <charlet@adacore.com>
2321 * c-ada-spec.c (dump_number): New function.
2322 (handle_escape_character): Likewise.
2323 (print_ada_macros): Add handling of constant integers and strings.
2325 2016-08-12 Marek Polacek <polacek@redhat.com>
2328 * c-common.c (scalar_to_vector): Adjust fall through comment.
2329 * c-opts.c (c_common_handle_option): Likewise.
2330 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2331 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2332 fall through comment.
2333 * cilk.c (extract_free_variables): Add FALLTHRU.
2335 2016-08-10 Jason Merrill <jason@redhat.com>
2337 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2339 2016-08-09 Jason Merrill <jason@redhat.com>
2341 * c-common.c (c_common_attribute_table): vector_size affects type
2344 2016-08-09 Marek Polacek <polacek@redhat.com>
2347 * c-ada-spec.c (dump_generic_ada_node): Add return.
2349 2016-08-09 Jason Merrill <jason@redhat.com>
2351 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2352 C++17 constexpr lambdas.
2354 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2357 * c-common.h (selftest::c_format_c_tests): New declaration.
2358 (selftest::run_c_tests): New declaration.
2359 * c-format.c: Include "selftest.h.
2360 (format_warning_va): Add param "corrected_substring" and use
2361 it to add a replacement fix-it hint.
2362 (format_warning_at_substring): Likewise.
2363 (format_warning_at_char): Update for new param of
2365 (argument_parser::check_argument_type): Pass "fki" to
2367 (check_format_types): Add param "fki" and pass it to
2368 format_type_warning.
2369 (deref_n_times): New function.
2370 (get_modifier_for_format_len): New function.
2371 (selftest::test_get_modifier_for_format_len): New function.
2372 (get_format_for_type): New function.
2373 (format_type_warning): Add param "fki" and use it to attempt
2374 to provide hints for argument types when calling
2375 format_warning_at_substring.
2376 (selftest::get_info): New function.
2377 (selftest::assert_format_for_type_streq): New function.
2378 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2379 (selftest::test_get_format_for_type_printf): New function.
2380 (selftest::test_get_format_for_type_scanf): New function.
2381 (selftest::c_format_c_tests): New function.
2383 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2386 * c-format.c: Include "diagnostic.h".
2387 (location_column_from_byte_offset): Delete.
2388 (location_from_offset): Delete.
2389 (format_warning_va): New function.
2390 (format_warning_at_substring): New function.
2391 (format_warning_at_char): New function.
2392 (check_format_arg): Capture location of format_tree and pass to
2393 check_format_info_main.
2394 (argument_parser): Add fields "start_of_this_format" and
2395 "format_string_cst".
2396 (flag_chars_t::validate): Add param "format_string_cst". Convert
2397 warning_at call using location_from_offset to call to
2398 format_warning_at_char.
2399 (argument_parser::argument_parser): Add param "format_string_cst_"
2400 and use use it to initialize field "format_string_cst".
2401 Initialize new field "start_of_this_format".
2402 (argument_parser::read_format_flags): Convert warning_at call
2403 using location_from_offset to a call to format_warning_at_char.
2404 (argument_parser::read_any_format_left_precision): Likewise.
2405 (argument_parser::read_any_format_precision): Likewise.
2406 (argument_parser::read_any_other_modifier): Likewise.
2407 (argument_parser::find_format_char_info): Likewise, in three places.
2408 (argument_parser::parse_any_scan_set): Likewise, in one place.
2409 (argument_parser::handle_conversions): Likewise, in two places.
2410 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2411 and use it to make a substring_loc. Pass the latter to
2413 (check_format_info_main): Add params "fmt_param_loc" and
2414 "format_string_cst". Convert warning_at calls using
2415 location_from_offset to calls to format_warning_at_char. Pass the
2416 new params to the arg_parser ctor. Pass "format_string_cst" to
2417 flag_chars.validate. Pass "fmt_param_loc" to
2418 arg_parser.check_argument_type.
2419 (check_format_types): Convert first param from a location_t
2420 to a const substring_loc & and rename to "fmt_loc". Attempt
2421 to extract the range of the relevant parameter and pass it
2422 to format_type_warning.
2423 (format_type_warning): Convert first param from a location_t
2424 to a const substring_loc & and rename to "fmt_loc". Add
2425 params "param_range" and "type". Replace calls to warning_at
2426 with calls to format_warning_at_substring.
2428 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2430 * c-format.c (class flag_chars_t): New class.
2431 (struct length_modifier): New struct.
2432 (class argument_parser): New class.
2433 (flag_chars_t::flag_chars_t): New ctor.
2434 (flag_chars_t::has_char_p): New method.
2435 (flag_chars_t::add_char): New method.
2436 (flag_chars_t::validate): New method.
2437 (flag_chars_t::get_alloc_flag): New method.
2438 (flag_chars_t::assignment_suppression_p): New method.
2439 (argument_parser::argument_parser): New ctor.
2440 (argument_parser::read_any_dollar): New method.
2441 (argument_parser::read_format_flags): New method.
2442 (argument_parser::read_any_format_width): New method.
2443 (argument_parser::read_any_format_left_precision): New method.
2444 (argument_parser::read_any_format_precision): New method.
2445 (argument_parser::handle_alloc_chars): New method.
2446 (argument_parser::read_any_length_modifier): New method.
2447 (argument_parser::read_any_other_modifier): New method.
2448 (argument_parser::find_format_char_info): New method.
2449 (argument_parser::validate_flag_pairs): New method.
2450 (argument_parser::give_y2k_warnings): New method.
2451 (argument_parser::parse_any_scan_set): New method.
2452 (argument_parser::handle_conversions): New method.
2453 (argument_parser::check_argument_type): New method.
2454 (check_format_info_main): Introduce classes argument_parser
2455 and flag_chars_t, moving the code within the loop into methods
2456 of these classes. Make various locals "const".
2458 2016-08-05 David Malcolm <dmalcolm@redhat.com>
2460 * c-common.c: Include "substring-locations.h".
2461 (get_cpp_ttype_from_string_type): New function.
2462 (g_string_concat_db): New global.
2463 (substring_loc::get_range): New method.
2464 * c-common.h (g_string_concat_db): New declaration.
2465 (class substring_loc): New class.
2466 * c-lex.c (lex_string): When concatenating strings, capture the
2467 locations of all tokens using a new obstack, and record the
2468 concatenation locations within g_string_concat_db.
2469 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2472 2016-07-29 Marek Polacek <polacek@redhat.com>
2475 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2476 parentheses warning.
2479 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2481 2016-07-28 Martin Liska <mliska@suse.cz>
2483 PR gcov-profile/68025
2484 * c-common.c (handle_no_profile_instrument_function_attribute):
2486 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2488 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2491 2016-07-25 Jason Merrill <jason@redhat.com>
2494 * c.opt (fconstexpr-loop-limit): New.
2496 2016-07-22 Martin Sebor <msebor@redhat.com>
2499 * c-common.c (resolve_overloaded_builtin): Avoid converting
2500 __atomic_compare_exchange_n return type to that of what its
2501 first argument points to.
2503 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
2505 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2506 ~(unsigned HOST_WIDE_INT) 0.
2508 2016-07-22 Martin Liska <mliska@suse.cz>
2510 PR gcov-profile/69028
2511 PR gcov-profile/62047
2512 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2513 to the current_function_decl.
2515 2016-07-21 Jason Merrill <jason@redhat.com>
2518 * c-common.c (c_common_truthvalue_conversion): Check
2519 c_inhibit_evaluation_warnings for warning about address of
2522 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2524 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2527 2016-07-15 Jason Merrill <jason@redhat.com>
2529 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2531 2016-07-15 Jakub Jelinek <jakub@redhat.com>
2534 * c-common.h (enum lookup_name_fuzzy_kind): Add
2535 FUZZY_LOOKUP_FUNCTION_NAME.
2537 2016-07-08 Jason Merrill <jason@redhat.com>
2539 P0145: Refining Expression Order for C++.
2540 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2543 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2546 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2548 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2550 * c-pragma.h (enum pragma_kind): Rename
2551 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2554 2016-06-29 Richard Biener <rguenther@suse.de>
2557 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2559 2016-06-24 Jason Merrill <jason@redhat.com>
2561 P0145R2: Refining Expression Order for C++.
2562 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2565 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2567 * c-common.c (check_builtin_function_arguments): Require last
2568 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2569 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2570 if the last argument is pointer to enumerated or boolean type.
2572 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2575 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2576 (lookup_name_fuzzy): New prototype.
2578 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
2580 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2582 2016-06-14 Jason Merrill <jason@redhat.com>
2584 P0145R2: Refining Expression Order for C++.
2585 * c.opt (fargs-in-order): New.
2586 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2588 2016-06-13 Jakub Jelinek <jakub@redhat.com>
2591 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2592 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2594 PR preprocessor/71183
2595 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2596 to cb_get_source_date_epoch.
2598 2016-06-10 Jakub Jelinek <jakub@redhat.com>
2601 * c.opt (Wpsabi): Add Warning flag.
2603 2016-06-10 Martin Sebor <msebor@redhat.com>
2606 * c-common.c (handle_nonnull_attribute): Accept
2607 the nonnull attribute in type-generic builtins.
2609 2016-06-09 Martin Sebor <msebor@redhat.com>
2612 * c-common.c (builtin_function_validate_nargs): Make text of error
2613 message consistent with others like it.
2615 2016-06-08 Martin Sebor <msebor@redhat.com>
2616 Jakub Jelinek <jakub@redhat.com>
2620 * c-common.c (check_builtin_function_arguments): Handle
2621 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2623 2016-06-08 Richard Biener <rguenther@suse.de>
2625 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2627 2016-06-07 Richard Biener <rguenther@suse.de>
2630 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2631 options and warn about others.
2633 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2635 * c-common.c (get_source_date_epoch): Rename to
2636 cb_get_source_date_epoch.
2637 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2638 message when the parsing fails. Use error_at instead of fatal_error.
2639 * c-common.h (get_source_date_epoch): Rename to
2640 cb_get_source_date_epoch.
2641 * c-common.h (cb_get_source_date_epoch): Prototype.
2642 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2643 * c-common.h (c_omp_region_type): Remove trailing comma.
2644 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2645 * c-lex.c (c_lex_with_flags): Remove initialization of
2646 pfile->source_date_epoch.
2648 2016-05-30 Jakub Jelinek <jakub@redhat.com>
2651 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2652 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2653 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2654 instead of C_OMP_CLAUSE_SPLIT_FOR.
2656 2016-05-24 Richard Biener <rguenther@suse.de>
2660 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2661 (convert_vector_to_array_for_subscript): ... this.
2662 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2663 VIEW_CONVERT_EXPR to an array type. Rename to ...
2664 (convert_vector_to_array_for_subscript): ... this.
2666 2016-05-12 Marek Polacek <polacek@redhat.com>
2669 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2670 size_in_bytes and pass LOC to it.
2672 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2675 * c.opt (Wduplicate-decl-specifier): New option.
2677 2016-05-11 Marek Polacek <polacek@redhat.com>
2680 * c-common.c (diagnose_mismatched_attributes): New function.
2681 * c-common.h (diagnose_mismatched_attributes): Declare.
2683 2016-05-04 Marek Polacek <polacek@redhat.com>
2685 * c.opt (Wdangling-else): New option.
2687 2016-05-03 Marek Polacek <polacek@redhat.com>
2690 * c-common.c (builtin_function_validate_nargs): Add location
2692 (check_builtin_function_arguments): Add location and arguments
2693 parameters. Use them.
2694 * c-common.h (check_builtin_function_arguments): Update declaration.
2696 2016-05-03 Richard Biener <rguenther@suse.de>
2698 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2699 allow call args to gimplify to SSA names.
2701 2016-05-03 Marek Polacek <polacek@redhat.com>
2703 * c-common.h (enum c_omp_region_type): Remove stray comma.
2705 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2707 * c-common.h (enum c_omp_region_type): Define.
2709 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2711 * c-common.c (shorten_compare): Use wi::to_wide.
2713 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2716 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2717 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2718 reduction clauses in acc parallel loops.
2720 2016-04-29 Marek Polacek <polacek@redhat.com>
2723 * c-common.c (warn_for_memset): Check domain before accessing it.
2725 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2728 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2729 "aligned" attribute.
2731 2016-04-28 Jason Merrill <jason@redhat.com>
2733 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2735 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2736 Matthias Klose <doko@debian.org>
2738 * c-common.c (get_source_date_epoch): New function, gets the environment
2739 variable SOURCE_DATE_EPOCH and parses it as long long with error
2741 * c-common.h (get_source_date_epoch): Prototype.
2742 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2744 2015-04-27 Ryan Burn <contact@rnburn.com>
2748 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2749 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2751 (cilk_detect_and_unwrap): Corresponding changes.
2752 (extract_free_variables): Don't extract free variables from
2753 AGGR_INIT_EXPR slot.
2754 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2755 (cilk_recognize_spawn): Likewise.
2757 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2759 * c.opt (Wmemset-elt-size): New option.
2760 * c-common.c (warn_for_memset): New function.
2761 * c-common.h (warn_for_memset): Declare.
2763 2016-04-25 Jason Merrill <jason@redhat.com>
2765 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2767 * c-common.h: Declare it.
2768 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2770 2016-04-22 Jason Merrill <jason@redhat.com>
2772 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2774 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2777 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2778 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2780 2016-04-18 Michael Matz <matz@suse.de>
2782 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2785 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2787 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2788 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2789 to incomplete types.
2790 (dump_nested_type): Remove redundant tests and tidy up.
2791 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2792 a type which is the typedef of an original type.
2794 2016-04-15 Marek Polacek <polacek@redhat.com>
2797 * c-common.c (build_va_arg): Change two asserts into errors and return
2800 2016-04-13 Marek Polacek <polacek@redhat.com>
2803 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2804 for switch statements, too.
2806 2016-03-28 Jason Merrill <jason@redhat.com>
2808 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2810 2016-03-23 Marek Polacek <polacek@redhat.com>
2813 * c.opt (Wignored-attributes): New option.
2815 2016-03-22 David Malcolm <dmalcolm@redhat.com>
2818 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2819 diagnostic text, reversing the order of the warning and note so
2820 that they appear in source order.
2822 2016-03-17 Marek Polacek <polacek@redhat.com>
2825 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2828 2016-03-14 Jason Merrill <jason@redhat.com>
2830 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2832 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2834 2016-03-09 Richard Biener <rguenther@suse.de>
2837 * c-common.c (strict_aliasing_warning): Add back
2838 alias_sets_conflict_p check.
2840 2016-03-08 Jason Merrill <jason@redhat.com>
2842 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2844 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2847 * c-indentation.c (get_visual_column): Move code to determine next
2849 (next_tab_stop): ...this new function.
2850 (line_contains_hash_if): Delete function.
2851 (detect_preprocessor_logic): Delete function.
2852 (get_first_nws_vis_column): New function.
2853 (detect_intervening_unindent): New function.
2854 (should_warn_for_misleading_indentation): Replace call to
2855 detect_preprocessor_logic with a call to
2856 detect_intervening_unindent.
2858 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2861 * c-indentation.c (should_warn_for_misleading_indentation): When
2862 suppressing warnings about cases where the guard and body are on
2863 the same column, only use the first non-whitespace column in place
2864 of the guard token column when dealing with "else" clauses.
2865 When rejecting aligned BODY and NEXT, loosen the requirement
2866 from equality with the first non-whitespace of guard to simply
2867 that they not be indented relative to it.
2869 2016-03-04 Richard Biener <rguenther@suse.de>
2872 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2873 instead of alias_sets_conflict_p.
2875 2016-03-01 Marek Polacek <polacek@redhat.com>
2878 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2881 2016-02-22 Martin Sebor <msebor@redhat.com>
2884 * c-common.c (check_builtin_function_arguments): Validate and
2885 reject invalid arguments to __builtin_alloca_with_align.
2887 2016-02-20 Mark Wielaard <mjw@redhat.com>
2890 * c.opt (Wunused-const-variable): Turn into Alias for...
2891 (Wunused-const-variable=): New option.
2893 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2896 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2898 (c_common_init_options): ...to here.
2899 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2901 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2904 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2905 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2906 flag_preprocess_only.
2908 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2911 * c.opt (Wnonnull-compare): Enable for -Wall.
2913 2016-02-15 Jakub Jelinek <jakub@redhat.com>
2916 * c-common.c (sync_resolve_size): Diagnose too few arguments
2917 even when params is non-NULL empty vector.
2919 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2922 * c.opt (fshort-double): Remove.
2924 2016-02-05 Martin Sebor <msebor@redhat.com>
2927 * c.opt (Warning options): Update -Wplacement-new to take
2928 an optional argument.
2930 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2932 PR preprocessor/69543
2934 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2935 instead of loc to control_warning_option.
2937 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2939 * c.opt (fopenacc-dim=): New option.
2941 2016-01-27 Ryan Burn <contact@rnburn.com>
2944 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2945 gimplify_arg. Removed superfluous post_p argument.
2946 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2947 superfluous post_p argument.
2948 * c-gimplify.c (c_gimplify_expr): Likewise.
2950 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2953 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2954 pp_newline_and_flush with pp_flush.
2956 2016-01-20 Martin Sebor <msebor@redhat.com>
2959 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2960 an incompatible argument when the argument isn't a valid tree node.
2962 2016-01-18 Jason Merrill <jason@redhat.com>
2965 * c-common.c (check_function_arguments_recurse): Fold the whole
2966 COND_EXPR, not just the condition.
2968 2016-01-18 Tom de Vries <tom@codesourcery.com>
2970 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2971 classify as loop clause.
2973 2016-01-15 Jakub Jelinek <jakub@redhat.com>
2976 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2977 C++ FE no longer has limit on number of pragmas.
2979 2015-01-14 Ryan Burn <contact@rnburn.com>
2982 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2983 to add missing cleanup point.
2985 2016-01-14 David Malcolm <dmalcolm@redhat.com>
2988 * c-indentation.c (get_visual_column): Add location_t param.
2989 Handle the column number being zero by effectively disabling the
2990 warning, with an "inform".
2991 (should_warn_for_misleading_indentation): Add location_t argument
2992 for all uses of get_visual_column.
2994 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2997 * c-indentation.c (should_warn_for_misleading_indentation):
2998 Don't warn about do-while statements.
3000 2016-01-07 Martin Sebor <msebor@redhat.com>
3003 * c-common.c (sync_resolve_size): Reject first argument when it's
3006 2016-01-05 David Malcolm <dmalcolm@redhat.com>
3009 * c-indentation.c (get_visual_column): Remove default argument.
3010 (should_warn_for_misleading_indentation): For the multiline case,
3011 update call to get_visual_column for next_stmt_exploc so that it
3012 captures the location of the first non-whitespace character in the
3013 relevant line. Don't issue warnings if there is non-whitespace
3014 before the next statement.
3016 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3018 Update copyright years.
3020 2015-12-21 David Malcolm <dmalcolm@redhat.com>
3022 * c-common.c (binary_op_error): Convert first param from
3023 location_t to rich_location * and use it when emitting an error.
3024 * c-common.h (binary_op_error): Convert first param from
3025 location_t to rich_location *.
3027 2015-12-16 David Malcolm <dmalcolm@redhat.com>
3029 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3030 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3032 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3034 * c-common.c (c_common_attribute_table): Handle "omp declare target
3037 2015-12-14 Jakub Jelinek <jakub@redhat.com>
3040 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3042 2014-12-12 Tobias Burnus <burnus@net-b.de>
3045 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3046 specifiers (%d, %i,%u and %c).
3048 2015-12-10 David Malcolm <dmalcolm@redhat.com>
3050 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3052 2015-12-08 Jakub Jelinek <jakub@redhat.com>
3056 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3057 * c-pragma.c (handle_pragma_diagnostic): Adjust
3058 control_warning_option caller.
3060 2015-12-07 David Malcolm <dmalcolm@redhat.com>
3062 * c-common.c (c_cpp_error): Update for change to
3063 rich_location::set_range.
3065 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
3067 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3068 shifting 1 out of the sign bit.
3070 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3072 * c-common.c (c_common_attribute_table[]): Update max arguments
3073 count for "simd" attribute.
3074 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3076 2015-12-03 Jakub Jelinek <jakub@redhat.com>
3078 PR preprocessor/57580
3079 * c-ppoutput.c (print): Change printed field to bool.
3080 Move src_file last for smaller padding.
3081 (init_pp_output): Set print.printed to false instead of 0.
3082 (scan_translation_unit): Fix up formatting. Set print.printed
3083 to true after printing something other than newline.
3084 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3085 (maybe_print_line_1): Set print.printed to false instead of 0.
3086 (print_line_1): Likewise.
3087 (do_line_change): Set print.printed to true instead of 1.
3088 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3089 dump_macro): Set print.printed to false after printing newline.
3091 2015-12-02 Jason Merrill <jason@redhat.com>
3093 * c-common.c (fold_for_warn): New.
3094 (warn_logical_operator, warn_tautological_cmp)
3095 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3097 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3098 (c_fully_fold_internal, decl_constant_value_for_optimization):
3100 * c-common.h: Don't declare decl_constant_value_for_optimization.
3102 2015-12-02 Joseph Myers <joseph@codesourcery.com>
3105 * c-common.h (c_build_qualified_type): Add extra default
3108 2015-12-01 Julian Brown <julian@codesourcery.com>
3109 Cesar Philippidis <cesar@codesourcery.com>
3110 James Norris <James_Norris@mentor.com>
3112 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3113 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3114 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3116 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3118 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3119 (decl_sloc_common): Delete and move bulk of processing to...
3120 (decl_sloc): ...here.
3121 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3122 (dump_ada_double_name): Remove S parameter and compute the suffix.
3123 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3124 element type and deal with an anonymous one.
3125 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3126 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3127 and remove reference to QUAL_UNION_TYPE.
3128 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3129 (dump_nested_type): ...here. New function extracted from above.
3130 Generate a full declaration for anonymous element type of arrays.
3131 (print_ada_declaration): Really skip anonymous declarations. Remove
3132 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3133 Clean up processing of declarations of array types and objects.
3134 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3135 Remove obsolete code and tidy up.
3137 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3140 * c-common.c (handle_transparent_union_attribute): Update
3143 2015-11-27 Martin Liska <mliska@suse.cz>
3146 * array-notation-common.c (cilkplus_extract_an_triplets):
3147 Release vector of vectors.
3148 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3150 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3153 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3154 (print_ada_struct_decl): Likewise.
3156 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3159 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3160 * cilk.c (recognize_spawn): Determine location in a more precise
3163 2015-11-19 Jason Merrill <jason@redhat.com>
3165 * c-common.c (shorten_compare): But look through macros from
3168 2015-11-18 Jason Merrill <jason@redhat.com>
3170 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3171 non-constant operand comes from a macro.
3173 2015-11-17 Jason Merrill <jason@redhat.com>
3176 * c-common.c (warn_tautological_cmp): Fold before checking for
3179 2015-11-16 Marek Polacek <polacek@redhat.com>
3182 * c-common.c (check_case_bounds): Fold low and high cases.
3184 2015-11-16 Marek Polacek <polacek@redhat.com>
3186 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3187 * c-common.c (c_common_get_alias_set): Likewise.
3188 (handle_visibility_attribute): Likewise.
3190 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3192 * c-common.c (handle_simd_attribute): New.
3193 (struct attribute_spec): Add entry for "simd".
3194 (handle_simd_attribute): New.
3196 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3198 * c-lex.c (interpret_float): Use fold_convert.
3200 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3202 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3203 and store it on the result.
3204 * c-opts.c (c_common_init_options): Set
3205 global_dc->colorize_source_p.
3207 2015-11-12 James Norris <jnorris@codesourcery.com>
3208 Joseph Myers <joseph@codesourcery.com>
3210 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
3211 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3212 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3213 PRAGMA_OACC_CLAUSE_LINK.
3215 2015-11-11 Marek Polacek <polacek@redhat.com>
3219 * c-common.c (valid_array_size_p): New function.
3220 * c-common.h (valid_array_size_p): Declare.
3222 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
3225 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3227 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
3229 * array-notation-common.c: Remove unused header files.
3230 * c-ada-spec.c: Likewise.
3231 * c-cilkplus.c: Likewise.
3232 * c-common.c: Likewise.
3233 * c-cppbuiltin.c: Likewise.
3234 * c-dump.c: Likewise.
3235 * c-format.c: Likewise.
3236 * c-gimplify.c: Likewise.
3237 * c-indentation.c: Likewise.
3238 * c-lex.c: Likewise.
3239 * c-omp.c: Likewise.
3240 * c-opts.c: Likewise.
3241 * c-pch.c: Likewise.
3242 * c-ppoutput.c: Likewise.
3243 * c-pragma.c: Likewise.
3244 * c-pretty-print.c: Likewise.
3245 * c-semantics.c: Likewise.
3246 * c-ubsan.c: Likewise.
3248 * stub-objc.c: Likewise.
3250 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3251 Cesar Philippidis <cesar@codesourcery.com>
3252 James Norris <jnorris@codesourcery.com>
3253 Julian Brown <julian@codesourcery.com>
3254 Nathan Sidwell <nathan@codesourcery.com>
3256 * c-pragma.c (oacc_pragmas): Add "routine".
3257 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3259 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3261 * c-common.c (c_common_attributes): Add scalar_storage_order.
3262 (handle_scalar_storage_order_attribute): New function.
3263 * c-pragma.c (global_sso): New variable.
3264 (maybe_apply_pragma_scalar_storage_order): New function.
3265 (handle_pragma_scalar_storage_order): Likewise.
3266 (init_pragma): Register scalar_storage_order.
3267 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3268 * c.opt (Wscalar-storage-order): New warning.
3269 (fsso-struct=): New option.
3271 2015-11-08 Martin Sebor <msebor@redhat.com>
3273 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3275 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3277 * c-common.c: Don't undef DEF_BUILTIN.
3279 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3281 * c-common.c (c_cpp_error): Convert parameter from location_t to
3282 rich_location *. Eliminate the "column_override" parameter and
3283 the call to diagnostic_override_column.
3284 Update the "done_lexing" clause to set range 0
3285 on the rich_location, rather than overwriting a location_t.
3286 * c-common.h (c_cpp_error): Convert parameter from location_t to
3287 rich_location *. Eliminate the "column_override" parameter.
3289 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3290 Thomas Schwinge <thomas@codesourcery.com>
3291 James Norris <jnorris@codesourcery.com>
3293 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3294 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3295 clauses with parallel and kernels and loops.
3296 * c-pragma.h (enum pragma_omp_clause): Add entries for
3297 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3298 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3299 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3301 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3303 2015-11-05 Martin Sebor <msebor@redhat.com>
3306 * c.opt (-Wplacement-new): New option.
3308 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3310 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3311 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3312 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3313 save_expr or create_tmp_var* if TEST is true.
3314 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3315 Don't call add_stmt here.
3316 (struct c_omp_check_loop_iv_data): New type.
3317 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3318 c_omp_check_loop_iv_exprs): New functions.
3319 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3321 (c_omp_declare_simd_clauses_to_numbers): Change
3322 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3323 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3324 from numbers to PARM_DECLs.
3326 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3328 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3331 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
3334 * c-common.h (fold_offsetof_1): Add argument.
3335 * c-common.c (fold_offsetof_1): Diagnose more invalid
3336 offsetof expressions that reference elements past the end of
3339 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3340 Chung-Lin Tang <cltang@codesourcery.com>
3342 * c-pragma.c (oacc_pragmas): Add "atomic".
3343 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3345 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3347 * c-common.c (handle_target_clones_attribute): New.
3348 (c_common_attribute_table): Add handle_target_clones_attribute.
3349 (handle_always_inline_attribute): Add check on target_clones attribute.
3350 (handle_target_attribute): Ditto.
3352 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3354 * array-notation-common.c: Reorder #include's and remove duplicates.
3355 * c-ada-spec.c: Likewise.
3356 * c-cilkplus.c: Likewise.
3357 * c-common.c: Likewise.
3358 * c-cppbuiltin.c: Likewise.
3359 * c-dump.c: Likewise.
3360 * c-format.c: Likewise.
3361 * c-gimplify.c: Likewise.
3362 * c-indentation.c: Likewise.
3363 * c-lex.c: Likewise.
3364 * c-omp.c: Likewise.
3365 * c-opts.c: Likewise.
3366 * c-pch.c: Likewise.
3367 * c-ppoutput.c: Likewise.
3368 * c-pragma.c: Likewise.
3369 * c-pretty-print.c: Likewise.
3370 * c-semantics.c: Likewise.
3371 * c-ubsan.c: Likewise.
3373 * stub-objc.c: Likewise.
3375 2015-10-28 Jason Merrill <jason@redhat.com>
3377 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3379 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3380 James Norris <jnorris@codesourcery.com>
3381 Cesar Philippidis <cesar@codesourcery.com>
3385 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3386 * c-omp.c (c_oacc_split_loop_clauses): New function.
3388 2015-10-21 Martin Sebor <msebor@redhat.com>
3391 * c.opt: End each sentence that describes an option with a period.
3393 2015-10-20 Marek Polacek <polacek@redhat.com>
3395 * array-notation-common.c (is_cilkplus_vector_p): Define.
3396 * c-common.h (is_cilkplus_vector_p): Declare.
3398 2015-10-20 Marek Polacek <polacek@redhat.com>
3400 * c.opt (std=gnu++11): Do not describe as experimental.
3401 (std=gnu++14): Likewise.
3403 2015-10-19 Jason Merrill <jason@redhat.com>
3405 * c-cppbuiltin.c (c_cpp_builtins): Define
3406 __cpp_nontype_template_args.
3408 2015-10-19 Jason Merrill <jason@redhat.com>
3410 * c-cppbuiltin.c (c_cpp_builtins): Define
3411 __cpp_enumerator_attributes, __cpp_fold_expressions,
3412 __cpp_unicode_characters.
3414 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3415 Aldy Hernandez <aldyh@redhat.com>
3417 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3418 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3419 (c_define_builtins): Likewise.
3420 * c-common.h (enum c_omp_clause_split): Add
3421 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3422 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3423 (c_finish_omp_for): Add ORIG_DECLV argument.
3424 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3425 201511 instead of 201307.
3426 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3427 OMP_CRITICAL_CLAUSES to it.
3428 (c_finish_omp_ordered): Add CLAUSES argument, set
3429 OMP_ORDERED_CLAUSES to it.
3430 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3431 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3432 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3433 constructs and new OpenMP 4.5 clauses. Clear
3434 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3436 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3437 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3438 (enum pragma_omp_clause): Add
3439 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3440 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3442 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3444 * c-lex.c (interpret_float): Use real_equal instead of
3447 2015-10-04 Jason Merrill <jason@redhat.com>
3449 Implement N4514, C++ Extensions for Transactional Memory.
3450 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3451 (c_common_attribute_table): Add transaction_safe_dynamic.
3452 transaction_safe now affects type identity.
3453 (handle_tm_attribute): Handle transaction_safe_dynamic.
3454 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3455 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3456 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3458 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3459 * c-pretty-print.c (pp_c_attributes_display): Don't print
3460 transaction_safe in C++.
3462 2015-10-02 Marek Polacek <polacek@redhat.com>
3464 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3466 2015-10-02 Marek Polacek <polacek@redhat.com>
3469 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3470 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3471 * c.opt (Wduplicated-cond): New option.
3473 2015-10-01 Joseph Myers <joseph@codesourcery.com>
3475 * c.opt (std=c11): Do not describe as experimental.
3476 (std=gnu11): Likewise.
3477 (std=iso9899:2011): Likewise.
3479 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3481 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3482 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3484 2015-09-25 Marek Polacek <polacek@redhat.com>
3486 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3487 (ubsan_instrument_shift): Likewise.
3489 2015-09-25 Marek Polacek <polacek@redhat.com>
3492 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3494 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3496 * c-indentation.c (should_warn_for_misleading_indentation):
3497 Compare next_stmt_vis_column with guard_line_first_nws instead
3498 of with guard_line_vis_column.
3500 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3504 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3505 options and options not valid for the current language.
3507 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3509 * c-indentation.c (should_warn_for_misleading_indentation):
3510 Float out and consolidate the calls to get_visual_column that
3511 are passed guard_exploc as an argument. Compare
3512 next_stmt_vis_column with guard_line_first_nws instead of with
3513 body_line_first_nws.
3515 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3517 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3518 Wnamespaces): New C++ warnings.
3520 2015-09-22 Jason Merrill <jason@redhat.com>
3522 * c-common.h (abi_compat_version_crosses): New.
3523 (warn_abi_version): Declare.
3524 * c-common.c: Define it.
3525 * c-opts.c (c_common_post_options): Handle it.
3526 flag_abi_compat_version defaults to 8.
3528 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3530 Complete the implementation of N4230, Nested namespace definition.
3531 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3532 __cpp_nested_namespace_definitions.
3534 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3536 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3538 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3540 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3542 * c-pragma.h (pragma_lex): Add optional loc argument.
3544 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3546 * c-format.c (check_format_arg): Adjust to use common block size in all
3549 2015-09-15 David Malcolm <dmalcolm@redhat.com>
3551 * c-format.c (location_from_offset): Update for change in
3552 signature of location_get_source_line.
3553 * c-indentation.c (get_visual_column): Likewise.
3554 (line_contains_hash_if): Likewise.
3556 2015-09-14 Marek Polacek <polacek@redhat.com>
3558 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3559 setting various warnings.
3561 2015-09-14 Marek Polacek <polacek@redhat.com>
3563 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3566 2015-09-11 Mark Wielaard <mjw@redhat.com>
3569 * c.opt (Wunused-variable): Option from common.opt.
3570 (Wunused-const-variable): New option.
3572 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3575 * c.opt ([Wsubobject-linkage]): Add.
3577 2015-09-03 Martin Sebor <msebor@redhat.com>
3580 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3582 * c-common.c (reject_gcc_builtin): Define.
3584 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3587 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3589 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3590 cilk_gimplify_call_params_in_spawned_fn.
3591 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3592 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3595 2015-08-25 Marek Polacek <polacek@redhat.com>
3598 * c-common.c (handle_weak_attribute): Don't check whether the
3599 visibility can be changed here.
3601 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3603 * c-lex.c (c_lex_with_flags): Use explicit locations.
3605 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3607 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3608 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3610 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3613 * c-common.c (check_builtin_function_arguments): Add check
3614 for BUILT_IN_SIGNBIT argument.
3616 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3619 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3622 2015-08-17 Marek Polacek <polacek@redhat.com>
3624 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3625 with whitespaces before qualifier names.
3627 2015-08-12 Marek Polacek <polacek@redhat.com>
3630 * c-common.c (maybe_warn_shift_overflow): Properly handle
3631 left-shifting 1 into the sign bit.
3633 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3635 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3637 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3638 Braden Obrzut <admin@maniacsvault.net>
3639 Jason Merrill <jason@redhat.com>
3641 Add C++ Concepts TS support.
3642 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3643 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3644 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3645 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3646 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3647 * c.opt (fconcepts): New.
3649 2015-08-02 Martin Sebor <msebor@redhat.com>
3651 * c.opt (-Wframe-address): New warning option.
3653 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3655 * c-indentation.c (should_warn_for_misleading_indentation):
3658 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3660 * c-indentation.c (get_visual_column): Add parameter first_nws,
3661 use it. Update comment documenting the function.
3662 (is_first_nonwhitespace_on_line): Remove.
3663 (should_warn_for_misleading_indentation): Replace usage of
3664 of is_first_nonwhitespace_on_line with get_visual_column.
3666 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3668 * c-indentation.h (struct token_indent_info): Define.
3669 (get_token_indent_info): Define.
3670 (warn_for_misleading_information): Declare.
3671 * c-common.h (warn_for_misleading_information): Remove.
3672 * c-identation.c (warn_for_misleading_indentation):
3673 Change declaration to take three token_indent_infos. Adjust
3675 * c-identation.c (should_warn_for_misleading_indentation):
3676 Likewise. Bail out early if the body is a compound statement.
3677 (guard_tinfo_to_string): Define.
3679 2015-07-30 Jason Merrill <jason@redhat.com>
3681 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3682 '*' for reference decay.
3684 2015-07-30 Marek Polacek <polacek@redhat.com>
3686 * c-common.c (warn_tautological_cmp): Bail for float types.
3688 2015-07-27 Marek Polacek <polacek@redhat.com>
3691 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3693 2015-07-27 Marek Polacek <polacek@redhat.com>
3697 * c-common.c (find_array_ref_with_const_idx_r): New function.
3698 (warn_tautological_cmp): New function.
3699 * c-common.h (warn_tautological_cmp): Declare.
3700 * c.opt (Wtautological-compare): New option.
3702 2015-07-23 Marek Polacek <polacek@redhat.com>
3704 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3705 (ubsan_instrument_shift): Likewise.
3707 2015-07-23 Marek Polacek <polacek@redhat.com>
3710 * c-ubsan.c: Include gimplify.h.
3711 (ubsan_instrument_division): Unshare OP0 and OP1.
3712 (ubsan_instrument_shift): Likewise.
3714 2015-07-20 Marek Polacek <polacek@redhat.com>
3715 Richard Sandiford <richard.sandiford@arm.com>
3718 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3719 Use EXPR_LOC_OR_LOC.
3720 (maybe_warn_shift_overflow): New function.
3721 * c-common.h (maybe_warn_shift_overflow): Declare.
3722 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3723 * c.opt (Wshift-overflow): New option.
3725 2015-07-16 Martin Liska <mliska@suse.cz>
3727 * c-format.c (static void check_format_info_main): Use
3728 object_allocator instead of pool_allocator.
3729 (check_format_arg): Likewise.
3730 (check_format_info_main): Likewise.
3732 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3734 * c-opts.c: Remove multiline #include comment.
3736 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3738 * c-common.c: Fix double word typos.
3740 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3742 * c-ada-spec.h (cpp_operation): Revert latest change.
3743 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3744 constructors and destructors.
3746 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3748 * c-common.h: Adjust includes for flags.h changes.
3749 * stub-objc.c: Likewise.
3751 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3753 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3754 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3756 2015-07-08 Jakub Jelinek <jakub@redhat.com>
3758 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3759 are to be removed, return NULL rather than original clauses list.
3761 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
3763 * array-notation-common.c: Adjust includes.
3764 * c-ada-spec.c: Likewise.
3765 * c-cilkplus.c: Likewise.
3766 * c-common.h: Likewise.
3767 * c-cppbuiltin.c: Likewise.
3768 * c-dump.c: Likewise.
3769 * c-format.c: Likewise.
3770 * c-gimplify.c: Likewise.
3771 * c-indentation.c: Likewise.
3772 * c-lex.c: Likewise.
3773 * c-omp.c: Likewise.
3774 * c-opts.c: Likewise.
3775 * c-pch.c: Likewise.
3776 * c-ppoutput.c: Likewise.
3777 * c-pragma.c: Likewise.
3778 * c-pretty-print.c: Likewise.
3779 * c-semantics.c: Likewise.
3780 * c-ubsan.c: Likewise.
3782 * stub-objc.c: Likewise.
3784 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3786 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3787 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3789 2015-07-01 Jason Merrill <jason@redhat.com>
3791 * c-common.h (D_CXX11): Rename from D_CXX0X.
3792 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3793 * c-common.c: Adjust.
3795 * c-opts.c (c_common_post_options): Default to C++14.
3797 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3799 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3801 Implement N4197 - Adding u8 character literals
3802 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3804 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3805 CPP_UTF8CHAR_USERDEF tokens.
3806 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3807 and CPP_UTF8CHAR tokens.
3808 (lex_charconst): Treat CPP_UTF8CHAR token.
3810 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3813 * c-common.c (do_warn_unused_parameter): Move here.
3814 * c-common.h (do_warn_unused_parameter): Declare.
3816 2015-06-29 Marek Polacek <polacek@redhat.com>
3819 * c-common.c (check_case_bounds): Add bool * parameter. Set
3821 (c_add_case_label): Add bool * parameter. Pass it down to
3823 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3825 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3828 2015-06-27 Marek Polacek <polacek@redhat.com>
3830 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3831 or VECTOR_INTEGER_TYPE_P throughout.
3832 * c-gimplify.c: Likewise.
3834 2015-06-26 Marek Polacek <polacek@redhat.com>
3836 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3837 * c-common.c (c_fully_fold_internal): Likewise.
3838 (c_alignof_expr): Likewise.
3839 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3840 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3841 * cilk.c (create_parm_list): Likewise.
3843 2015-06-26 Marek Polacek <polacek@redhat.com>
3845 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3847 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3849 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3850 * c-gimplify.c: Likewise.
3851 * c-pragma.c: Likewise.
3852 * c-ubsan.c: Likewise.
3855 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3857 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3860 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3862 * cilk.c: Move calls.h after tm.h in the include chain.
3864 2015-06-25 Marek Polacek <polacek@redhat.com>
3866 * array-notation-common.c: Use VAR_P throughout.
3867 * c-ada-spec.c: Likewise.
3868 * c-common.c: Likewise.
3869 * c-format.c: Likewise.
3870 * c-gimplify.c: Likewise.
3871 * c-omp.c: Likewise.
3872 * c-pragma.c: Likewise.
3873 * c-pretty-print.c: Likewise.
3876 2015-06-25 Marek Polacek <polacek@redhat.com>
3878 * cilk.c (extract_free_variables): Use is_global_var.
3880 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3882 * c-common.c: Don't include target-def.h.
3884 2015-06-23 Marek Polacek <polacek@redhat.com>
3886 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3887 when comparing INTEGER_CSTs.
3889 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3891 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3892 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3893 (dump_ada_template): Skip partially specialized types.
3895 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3897 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3900 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3902 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3903 * c-ada-spec.c: Likewise.
3904 * c-cilkplus.c: Likewise.
3905 * c-common.c: Likewise.
3906 * c-common.h: Likewise.
3907 * c-cppbuiltin.c: Likewise.
3908 * c-dump.c: Likewise.
3909 * c-format.c: Likewise.
3910 * c-gimplify.c: Likewise.
3911 * c-indentation.c: Likewise.
3912 * c-lex.c: Likewise.
3913 * c-omp.c: Likewise.
3914 * c-opts.c: Likewise.
3915 * c-pch.c: Likewise.
3916 * c-ppoutput.c: Likewise.
3917 * c-pragma.c: Likewise.
3918 * c-pretty-print.c: Likewise.
3919 * c-semantics.c: Likewise.
3920 * c-ubsan.c: Likewise.
3922 * stub-objc.c: Likewise.
3924 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3927 * c-common.c (c_common_truthvalue_conversion): Warn when
3928 converting an address of a reference to a truth value.
3930 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
3932 * array-notation-common.c : Adjust include files.
3933 * c-ada-spec.c : Likewise.
3934 * c-cilkplus.c : Likewise.
3935 * c-common.c : Likewise.
3936 * c-common.h : Likewise.
3937 * c-cppbuiltin.c : Likewise.
3938 * c-dump.c : Likewise.
3939 * c-format.c : Likewise.
3940 * c-gimplify.c : Likewise.
3941 * c-indentation.c : Likewise.
3942 * c-lex.c : Likewise.
3943 * c-omp.c : Likewise.
3944 * c-opts.c : Likewise.
3945 * c-pch.c : Likewise.
3946 * c-ppoutput.c : Likewise.
3947 * c-pragma.c : Likewise.
3948 * c-pretty-print.c : Likewise.
3949 * c-semantics.c : Likewise.
3950 * c-ubsan.c : Likewise.
3951 * cilk.c : Likewise.
3952 * stub-objc.c : Likewise.
3954 2015-06-08 Marek Polacek <polacek@redhat.com>
3957 * c-format.c (location_from_offset): Return LOC if LINE is null.
3959 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3961 * c-common.h (c_parse_final_cleanups): New prototype.
3962 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3964 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3966 * c-common.c (noplt): New attribute.
3967 (handle_noplt_attribute): New handler.
3969 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3971 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3972 * c-ada-spec.c: Likewise.
3973 * c-cilkplus.c: Likewise.
3974 * c-common.c: Likewise.
3975 * c-common.h: Likewise.
3976 * c-cppbuiltin.c: Likewise.
3977 * c-dump.c: Likewise.
3978 * c-format.c: Likewise.
3979 * c-gimplify.c: Likewise.
3980 * c-indentation.c: Likewise.
3981 * c-lex.c: Likewise.
3982 * c-omp.c: Likewise.
3983 * c-opts.c: Likewise.
3984 * c-pch.c: Likewise.
3985 * c-ppoutput.c: Likewise.
3986 * c-pragma.c: Likewise.
3987 * c-pretty-print.c: Likewise.
3988 * c-semantics.c: Likewise.
3989 * c-ubsan.c: Likewise.
3991 * stub-objc.c: Likewise.
3993 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3996 * c-indentation.c (should_warn_for_misleading_indentation): Use
3997 expand_location rather than expand_location_to_spelling_point.
3998 Don't warn if the guarding statement is more indented than the
4001 2015-06-02 David Malcolm <dmalcolm@redhat.com>
4003 * c-indentation.c (warn_for_misleading_indentation): Bail out
4004 immediately if -Wmisleading-indentation isn't enabled.
4006 2015-06-01 Martin Liska <mliska@suse.cz>
4008 * c-format.c (check_format_arg):Use new type-based pool allocator.
4009 (check_format_info_main) Likewise.
4011 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4013 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4014 (has_nontrivial_methods): Likewise.
4016 2015-05-25 Marek Polacek <polacek@redhat.com>
4018 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4020 2015-05-22 Marek Polacek <polacek@redhat.com>
4023 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4025 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4027 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4028 STACK_GROWS_DOWNWARD.
4030 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4032 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4033 STACK_GROWS_DOWNWARD rather than if it is defined.
4035 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4038 * c-format.c (location_column_from_byte_offset): New.
4039 (location_from_offset): New.
4040 (struct format_wanted_type): Add offset_loc field.
4041 (check_format_info): Move handling of location for extra arguments
4042 closer to the point of warning.
4043 (check_format_info_main): Pass the result of location_from_offset
4045 (format_type_warning): Pass the result of location_from_offset
4048 2015-05-20 Marek Polacek <polacek@redhat.com>
4050 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4052 2015-05-20 Marek Polacek <polacek@redhat.com>
4054 * c-ada-spec.c (dump_sloc): Use DECL_P.
4056 2015-05-20 Marek Polacek <polacek@redhat.com>
4058 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4059 * c-common.c: Likewise.
4061 2015-05-19 David Malcolm <dmalcolm@redhat.com>
4063 * c-common.h (fe_file_change): Strengthen param from
4064 const line_map * to const line_map_ordinary *.
4065 (pp_file_change): Likewise.
4066 * c-lex.c (fe_file_change): Likewise.
4067 (cb_define): Use linemap_check_ordinary when invoking
4069 (cb_undef): Likewise.
4070 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4071 invoking cb_file_change.
4072 (c_finish_options): Likewise.
4073 (push_command_line_include): Likewise.
4074 (cb_file_change): Strengthen param "new_map" from
4075 const line_map * to const line_map_ordinary *.
4076 * c-ppoutput.c (cb_define): Likewise for local "map".
4077 (pp_file_change): Likewise for param "map" and local "from".
4079 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4081 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4083 2015-05-18 Tom de Vries <tom@codesourcery.com>
4085 * c-common.c (build_va_arg_1): New function.
4086 (build_va_arg): Add address operator to va_list operand if necessary.
4088 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4091 * c-common.c (int_safely_convertible_to_real_p): Define.
4092 (unsafe_conversion_p): Check conversions involving complex types.
4093 (conversion_warning): Add new warning message for conversions which
4094 discard imaginary component.
4095 * c-common.h: (enum conversion_safety): Add new enumerator for such
4098 2015-05-14 Marek Polacek <polacek@redhat.com>
4102 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4103 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4104 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4105 use it. If FOR_INT_CONST, require that all evaluated operands be
4108 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4110 * c-common.h (warn_for_misleading_indentation): New prototype.
4111 * c-indentation.c: New file.
4112 * c.opt (Wmisleading-indentation): New option.
4114 2015-05-12 Tom de Vries <tom@codesourcery.com>
4116 PR tree-optimization/66010
4117 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4119 2015-05-09 Jason Merrill <jason@redhat.com>
4121 * c-opts.c (c_common_post_options): Also clear
4122 cpp_opts->cpp_warn_cxx11_compat.
4124 * c-common.h (enum cxx_dialect): Add cxx_unset.
4125 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4126 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4128 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4129 (std=gnu++0x): Mark as Undocumented.
4130 (std=gnu++1y): Add deprecated message.
4132 2015-05-08 Jason Merrill <jason@redhat.com>
4134 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4137 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4139 2015-05-08 Marek Polacek <polacek@redhat.com>
4142 * c.opt (Woverride-init-side-effects): New option.
4144 2015-05-07 Marek Polacek <polacek@redhat.com>
4147 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4149 * c.opt (Wshift-negative-value): New option.
4150 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4151 when -Wextra and C99/C++11 mode.
4153 2015-05-07 Marek Polacek <polacek@redhat.com>
4154 Martin Uecker <uecker@eecs.berkeley.edu>
4156 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4157 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4159 2015-05-05 Jason Merrill <jason@redhat.com>
4161 * c.opt (Wterminate): New.
4163 2015-04-30 Marek Polacek <polacek@redhat.com>
4165 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4166 require that the non-constant be of a boolean type.
4168 2015-04-29 Josh Triplett <josh@joshtriplett.org>
4170 * c-common.c (handle_section_attribute): Refactor to reduce
4171 nesting and distinguish between error cases.
4173 2015-04-29 Marek Polacek <polacek@redhat.com>
4176 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4179 2015-04-29 Jakub Jelinek <jakub@redhat.com>
4181 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4182 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4183 HOST_BITS_PER_WIDE_INT.
4185 2015-04-28 Tom de Vries <tom@codesourcery.com>
4187 PR tree-optimization/65887
4188 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4190 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
4191 Pierre-Marie de Rodat <derodat@adacore.com>
4193 * c-ada-spec.c (in_function): Delete.
4194 (dump_generic_ada_node): Do not change in_function and remove the
4195 redundant code dealing with it.
4196 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4197 (print_ada_methods): Output the static member functions in a nested
4198 package after the regular methods as well as associated renamings.
4200 2015-04-24 Marek Polacek <polacek@redhat.com>
4203 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4204 and OPT_Wshift_count_overflow.
4207 * c-common.c (warn_logical_operator): Warn if the operands have the
4210 2015-04-24 Marek Polacek <polacek@redhat.com>
4213 * c-common.c (warn_logical_operator): Bail if either operand comes
4214 from a macro expansion.
4216 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4219 * c-common.c (c_default_pointer_mode): Add definition.
4220 * c-common.h (c_default_pointer_mode): Add declaration.
4222 2015-03-11 Jakub Jelinek <jakub@redhat.com>
4224 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4225 on record_builtin_type argument.
4227 2015-03-10 Jakub Jelinek <jakub@redhat.com>
4230 * c-common.c (warn_logical_not_parentheses): Don't warn for
4233 2015-03-07 Marek Polacek <polacek@redhat.com>
4236 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4237 before trying to figure out whether we have a flexible array member.
4239 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
4240 Jonathan Wakely <jwakely.gcc@gmail.com>
4242 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4244 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4247 * c-ada-spec.c (print_destructor): Remove obsolete code.
4249 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4251 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4252 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4253 DECL_TEMPLATE_RESULT emulations.
4254 (dump_ada_template)): Add guard for TYPE_METHODS.
4256 2015-02-27 Marek Polacek <polacek@redhat.com>
4259 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4261 2015-02-27 Kai Tietz <ktietz@redhat.com>
4264 * c-pragma.c (handle_pragma_weak): Do not try to create
4265 weak/alias of declarations not being function, or variable
4268 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4271 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4273 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4275 2015-02-16 Marek Polacek <polacek@redhat.com>
4278 * c-format.c (check_format_types): Handle null param.
4280 2015-02-13 Marek Polacek <polacek@redhat.com>
4283 * c-format.c (check_format_types): Don't warn about different
4284 signedness if the original value is in the range of WANTED_TYPE.
4286 2015-02-12 Jason Merrill <jason@redhat.com>
4289 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4290 to the current highest version.
4291 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4293 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4297 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4298 instead of RDIV_EXPR. Use build_binary_op instead of
4301 2015-01-30 Joseph Myers <joseph@codesourcery.com>
4303 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4304 to pass input_location as first argument.
4306 2015-01-23 Tom de Vries <tom@codesourcery.com>
4309 * c.opt (fopenacc): Mark as LTO option.
4311 2015-01-23 Tom de Vries <tom@codesourcery.com>
4314 * c.opt (fopenmp): Mark as LTO option.
4316 2015-01-21 Jakub Jelinek <jakub@redhat.com>
4319 * cilk.c (fill_decls_vec): Only put decls into vector v.
4320 (compare_decls): Fix up formatting.
4322 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4325 * cilk.c: Include vec.h.
4326 (struct cilk_decls): New structure.
4327 (wrapper_parm_cb): Split this function to...
4328 (fill_decls_vec): ...this...
4329 (create_parm_list): ...and this.
4330 (compare_decls): New function.
4331 (for_local_cb): Remove.
4332 (wrapper_local_cb): Ditto.
4333 (build_wrapper_type): For now first traverse and fill vector of
4334 declarations then sort it and then deal with sorted vector.
4335 (cilk_outline): Ditto.
4336 (declare_one_free_variable): Ditto.
4338 2015-01-21 Jason Merrill <jason@redhat.com>
4341 * c-format.c (check_format_arg): Call decl_constant_value.
4343 2015-01-19 Martin Liska <mliska@suse.cz>
4345 * c-common.c (handle_noicf_attribute): New function.
4347 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4348 Bernd Schmidt <bernds@codesourcery.com>
4349 James Norris <jnorris@codesourcery.com>
4350 Cesar Philippidis <cesar@codesourcery.com>
4351 Ilmir Usmanov <i.usmanov@samsung.com>
4352 Jakub Jelinek <jakub@redhat.com>
4354 * c.opt (fopenacc): New option.
4355 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4356 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4358 * c-common.h (c_finish_oacc_wait): New prototype.
4359 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4360 (c_finish_oacc_wait): New function.
4361 * c-pragma.c (oacc_pragmas): New variable.
4362 (c_pp_lookup_pragma, init_pragma): Handle it.
4363 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4364 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4365 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4366 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4367 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4368 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4369 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4370 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4371 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4372 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4373 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4374 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4375 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4376 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4377 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4378 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4379 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4380 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4381 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4382 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4383 PRAGMA_OACC_CLAUSE_WORKER.
4385 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4387 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4388 for the new option fstack-protector_explicit.
4389 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4390 (handle_stack_protect_attribute): New function.
4392 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
4394 * c.opt: New option -Warray-bounds=.
4396 2015-01-09 Michael Collison <michael.collison@linaro.org>
4398 * array-notation-common.c: Include hash-set.h, machmode.h,
4399 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4400 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4401 * c-ada-spec.c: Ditto.
4402 * c-cilkplus.c: Ditto.
4403 * c-common.c: Include input.h due to flattening of tree.h.
4404 Define macro GCC_C_COMMON_C.
4405 * c-common.h: Flatten tree.h header files into c-common.h.
4406 Remove include of tree-core.h.
4407 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4408 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4409 fold-const.h, wide-int.h, and inchash.h due to
4410 flattening of tree.h.
4412 * c-format.c: Flatten tree.h header files into c-common.h.
4413 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4414 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4415 fold-const.h, wide-int.h, and inchash.h due to
4416 flattening of tree.h.
4417 * c-dump.c: Include hash-set.h, machmode.h,
4418 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4419 fold-const.h, wide-int.h, and inchash.h due to
4420 flattening of tree.h.
4421 * c-format.c: Include hash-set.h, machmode.h,
4422 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4423 fold-const.h, wide-int.h, inchash.h and real.h due to
4424 flattening of tree.h.
4425 * c-gimplify.c: Include hash-set.h, machmode.h,
4426 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4427 fold-const.h, wide-int.h, and inchash.h due to
4428 flattening of tree.h.
4434 * c-ppoutput.c: Ditto.
4435 * c-pragma.c: Ditto.
4436 * c-pretty-print.c: Ditto.
4437 * c-semantics.c: Ditto.
4439 * stub-objc.c: Ditto.
4441 2015-01-08 Jason Merrill <jason@redhat.com>
4443 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4444 do_ubsan_in_current_function.
4445 (ubsan_maybe_instrument_reference_or_call): Likewise.
4446 * c-ubsan.h: Declare it.
4448 2015-01-08 Mike Stump <mikestump@comcast.net>
4450 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4452 2015-01-07 Marek Polacek <polacek@redhat.com>
4455 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4456 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4458 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4461 * c.opt (Wsuggest-override): New option.
4463 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4465 Update copyright years.
4467 2015-01-05 Marek Polacek <polacek@redhat.com>
4470 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4472 * c-common.h (warn_array_subscript_with_type_char): Update
4475 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4477 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4478 Control macro with flag_sized_deallocation.
4480 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
4482 * c.opt (Wdiscarded-array-qualifiers): New option.
4484 2014-12-19 Jakub Jelinek <jakub@redhat.com>
4486 PR preprocessor/63831
4487 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4488 and __has_cpp_attribute here.
4489 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4490 c_common_has_attribute.
4491 * c-common.h (c_common_has_attribute): New prototype.
4492 * c-lex.c (init_c_lex): Set cb->has_attribute to
4493 c_common_has_attribute instead of cb_has_attribute.
4494 (get_token_no_padding): New function.
4495 (cb_has_attribute): Renamed to ...
4496 (c_common_has_attribute): ... this. No longer static. Use
4497 get_token_no_padding, require ()s, don't build TREE_LIST
4498 unnecessarily, fix up formatting, adjust diagnostics, call
4501 2014-12-15 Jason Merrill <jason@redhat.com>
4503 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4504 (-Wsized-deallocation): New.
4505 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4506 to on in C++14 and up.
4508 2014-12-11 Jason Merrill <jason@redhat.com>
4510 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4512 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4513 we aren't complaining about VLAs.
4515 2014-12-06 Marek Polacek <polacek@redhat.com>
4517 PR tree-optimization/64183
4518 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4519 shift-expression if it is integer_type_node. Use types_compatible_p.
4521 2014-11-29 Jakub Jelinek <jakub@redhat.com>
4523 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4524 last argument from create_tmp_var_raw and create_tmp_var calls.
4525 * cilk.c (gimplify_cilk_spawn): Likewise.
4526 * c-omp.c (c_finish_omp_atomic): Likewise.
4528 2014-11-28 Marek Polacek <polacek@redhat.com>
4530 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4531 instead of unsigned_type_node.
4533 2014-11-28 Marek Polacek <polacek@redhat.com>
4536 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4538 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4539 expression to unsigned_type_node.
4541 2014-11-20 Mark Wielaard <mjw@redhat.com>
4544 * c-opts.c (set_std_c89): Set lang_hooks.name.
4545 (set_std_c99): Likewise.
4546 (set_std_c11): Likewise.
4547 (set_std_cxx98): Likewise.
4548 (set_std_cxx11): Likewise.
4549 (set_std_cxx14): Likewise.
4550 (set_std_cxx1z): Likewise.
4552 2014-11-21 Jakub Jelinek <jakub@redhat.com>
4555 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4556 return type to bool.
4557 * c-common.c: Include gimple-expr.h.
4558 (convert_vector_to_pointer_for_subscript): Change return type to
4559 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4560 and copy it into a TARGET_EXPR and use that instead of *vecp
4563 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4565 Merger of git branch "gimple-classes-v2-option-3".
4566 * ChangeLog.gimple-classes: New.
4567 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4568 from being just a vec<gimple> to a vec<gbind *>.
4570 2014-11-18 Jakub Jelinek <jakub@redhat.com>
4573 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4574 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4575 get_pointer_alignment for non-pointers. Use ptype, or if it is
4576 reference type, corresponding pointer type, as type of kind
4578 (ubsan_maybe_instrument_reference,
4579 ubsan_maybe_instrument_member_call): Adjust callers.
4581 2014-11-15 Marek Polacek <polacek@redhat.com>
4584 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4586 (extract_array_notation_exprs): Return for NULL node.
4588 2014-11-12 Joseph Myers <joseph@codesourcery.com>
4590 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4591 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4593 2014-11-12 Jakub Jelinek <jakub@redhat.com>
4596 * c-common.c (check_builtin_function_arguments): Handle
4597 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4599 2014-11-10 Andi Kleen <ak@linux.intel.com>
4602 * c-common.h (check_no_cilk): Declare.
4603 * cilk.c (get_error_location): New function.
4604 (check_no_cilk): Dito.
4606 2014-11-10 Andi Kleen <ak@linux.intel.com>
4608 * cilk.c (recognize_spawn): Use expression location
4611 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4613 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4615 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4617 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4618 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4619 (__cpp_range_based_for, __cpp_initializer_lists,
4620 __cpp_delegating_constructors, __cpp_nsdmi,
4621 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4622 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4623 __has_cpp_attribute.
4624 * c-lex.c (cb_has_attribute): New callback CPP function;
4625 (init_c_lex): Set has_attribute callback.
4627 2014-11-04 Richard Biener <rguenther@suse.de>
4629 * c-common.c (shorten_compare): Do not shorten mixed
4630 DFP and non-DFP compares.
4632 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4634 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4635 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4636 Commentary and rearrangement of tests.
4637 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4638 Commentary and rearrangement of tests.
4639 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4640 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4642 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4644 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4645 enum from machine_mode.
4647 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
4649 * c-common.c: Adjust include files.
4650 * c-gimplify.c: Ditto.
4652 * c-pragma.c: Ditto.
4655 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
4657 * c-gimplify.c: Adjust include files.
4659 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4662 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4663 c_common_initialize_diagnostics.
4664 * c-common.h: Likewise.
4666 2014-10-24 Marek Polacek <polacek@redhat.com>
4669 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4670 print "struct"/"union"/"enum" for typedefed names.
4672 2014-10-23 Marek Polacek <polacek@redhat.com>
4674 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4677 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4678 Yury Gribov <y.gribov@samsung.com>
4680 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4681 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4682 instead of flag_sanitize_recover as bool flag.
4684 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4686 * cilk.c: Revert previous change.
4688 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4691 * cilk.c: Include vec.h.
4692 (struct cilk_decls): New structure.
4693 (wrapper_parm_cb): Split this function to...
4694 (fill_decls_vec): ...this...
4695 (create_parm_list): ...and this.
4696 (compare_decls): New function.
4697 (for_local_cb): Remove.
4698 (wrapper_local_cb): Ditto.
4699 (build_wrapper_type): For now first traverse and fill vector of
4700 declarations then sort it and then deal with sorted vector.
4701 (cilk_outline): Ditto.
4702 (declare_one_free_variable): Ditto.
4704 2014-10-17 Marek Polacek <polacek@redhat.com>
4706 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4707 * c.opt (Wimplicit-int): Initialize to -1.
4709 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
4711 * c-pragma.c: Adjust include files.
4712 * c-semantics.c: Likewise.
4714 2014-10-16 DJ Delorie <dj@redhat.com>
4716 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4719 2014-10-14 Jason Merrill <jason@redhat.com>
4722 * c-common.h (CPP_PREPARSED_EXPR): New.
4723 (N_CP_TTYPES): Adjust.
4725 2014-10-15 Marek Polacek <polacek@redhat.com>
4727 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4729 2014-10-14 DJ Delorie <dj@redhat.com>
4731 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4732 types, not just __int128.
4733 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4734 types, not just __int128.
4735 (cpp_atomic_builtins): Round pointer sizes up.
4736 (type_suffix): Use type precision, not specific types.
4737 * c-common.c (c_common_reswords): Remove __int128 special case.
4738 (c_common_type_for_size): Check for all __intN types, not just
4740 (c_common_type_for_mode): Likewise.
4741 (c_common_signed_or_unsigned_type): Likewise.
4742 (c_build_bitfield_integer_type): Likewise.
4743 (c_common_nodes_and_builtins): Likewise.
4744 (keyword_begins_type_specifier): Likewise.
4745 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4748 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4750 * c-common.c: Use hash_table instead of hashtab.
4752 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4754 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4757 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
4762 * c-common.c (warn_logical_operator): Punt for vectors.
4764 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4766 Implement SD-6: SG10 Feature Test Recommendations
4767 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4768 macros and the __has_header macro.
4770 2014-09-30 Jason Merrill <jason@redhat.com>
4772 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4773 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4774 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4776 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4777 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4779 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4780 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4782 2014-09-24 Marek Polacek <polacek@redhat.com>
4786 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4788 2014-09-23 Andi Kleen <ak@linux.intel.com>
4790 * c-common.c (handle_no_reorder_attribute): New function.
4791 (c_common_attribute_table): Add no_reorder attribute.
4793 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4795 * c-cppbuiltin.c (c_cpp_builtins): Define
4796 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4799 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4801 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4802 for supported floating-point modes.
4804 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4806 * c.opt (Wpsabi): Use LangEnabledBy.
4807 * c-opts.c (c_common_handle_option): Do not handle here.
4809 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4811 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4812 macros for floating-point modes.
4814 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4817 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4818 __*_DENORM_MIN__ without denormals.
4820 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4822 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4823 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4824 ubsan_create_data callers.
4825 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4826 index is constant or BIT_AND_EXPR with constant mask and is
4827 small enough for the bound.
4828 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4829 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4831 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4833 * c.opt: Add CppReason to various flags.
4834 (Wdate-time): Re-sort.
4835 * c-common.c: Include c-common.h earlier.
4836 (struct reason_option_codes_t): Delete.
4837 (c_option_controlling_cpp_error): Prefix global type and struct
4840 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4842 * c.opt (Wnormalized): New.
4843 (Wnormalized=): Use Enum and Reject Negative.
4844 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4846 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4848 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4849 digits of floating-point modes if -fbuilding-libgcc.
4851 2014-09-05 Joseph Myers <joseph@codesourcery.com>
4853 * c-cppbuiltin.c (c_cpp_builtins): Also define
4854 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4855 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4856 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4857 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4858 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4859 __LIBGCC_STACK_GROWS_DOWNWARD__,
4860 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4861 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4862 __LIBGCC_DWARF_FRAME_REGISTERS__,
4863 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4864 __LIBGCC_STACK_POINTER_REGNUM__ and
4865 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4866 (builtin_define_with_value): Handle backslash-escaping in string
4869 2014-09-05 Richard Biener <rguenther@suse.de>
4872 * c-format.c (check_format_arg): Properly handle
4873 effectively signed POINTER_PLUS_EXPR offset.
4875 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4877 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4878 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4879 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4881 * c-opts.c (c_common_handle_option): Do not handle here.
4882 (sanitize_cpp_opts): Likewise.
4883 * c-common.c (struct reason_option_codes_t): Handle
4884 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4886 2014-09-03 Marek Polacek <polacek@redhat.com>
4888 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4890 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4891 Balaji V. Iyer <balaji.v.iyer@intel.com>
4892 Igor Zamyatin <igor.zamyatin@intel.com>
4894 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4895 * c-common.c (c_common_reswords): Added _Cilk_for.
4896 * c-common.h (enum rid): Added RID_CILK_FOR.
4897 (cilk_for_number_of_iterations): Add declaration.
4898 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4900 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4901 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4903 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4905 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4906 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4907 Wundef): Use CPP, Var and Init.
4908 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4910 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4912 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4913 * c-opts.c (c_common_handle_option): Do not handle here.
4915 2014-08-25 Jason Merrill <jason@redhat.com>
4917 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4918 -std=c++14 and -std=gnu++14, rather than the reverse.
4919 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4920 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4921 * c-common.h (cxx_dialect): Remove cxx1y.
4923 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4925 * c-common.h (enum cxx_dialect): Add cxx14.
4926 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4927 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4928 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4930 2014-08-22 Jason Merrill <jason@redhat.com>
4932 * c.opt (std=gnu++17): Fix alias.
4934 2014-08-22 Marek Polacek <polacek@redhat.com>
4937 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4938 check for vector types. Drop LHS argument.
4939 * c-common.h (warn_logical_not_parentheses): Adjust.
4941 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4943 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4944 (Wmultichar): Likewise.
4945 (Wdate-time): Use C-family languages instead of Common. Use CPP
4947 * c-opts.c (c_common_handle_option): Do not handle the above
4949 (sanitize_cpp_opts): Likewise.
4951 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4954 * c-opts.c: Include tree-diagnostics.h.
4955 (c_diagnostic_finalizer): New.
4956 (c_common_initialize_diagnostics): Use it.
4958 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4960 PR preprocessor/51303
4961 * c-common.c (struct reason_option_codes_t option_codes):
4962 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4964 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4968 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4969 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4970 (c_common_post_options): Call init_global_opts_from_cpp.
4971 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4973 2014-08-19 Marek Polacek <polacek@redhat.com>
4976 * c-common.c (maybe_warn_bool_compare): New function.
4977 * c-common.h (maybe_warn_bool_compare): Declare.
4978 * c.opt (Wbool-compare): New option.
4980 2014-08-19 Marek Polacek <polacek@redhat.com>
4982 * c.opt (Wc99-c11-compat): New option.
4984 2014-08-19 Marek Polacek <polacek@redhat.com>
4986 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4987 to warn_c90_c99_compat.
4988 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4991 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4992 Steven Bosscher <steven@gcc.gnu.org>
4995 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4996 format_check_results.
4997 (check_function_format): Use true and add comment for boolean
4999 (finish_dollar_format_checking): Use explicit location when warning.
5000 (check_format_info): Likewise.
5001 (check_format_arg): Set extra_arg_loc and format_string_loc.
5002 (check_format_info_main): Use explicit location when warning.
5003 (check_format_types): Pass explicit location.
5004 (format_type_warning): Likewise.
5006 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5009 * c-format.c: Handle Fortran flags.
5011 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5014 * array-notation-common.c (find_rank): Added handling for other
5015 types of references.
5017 2014-08-10 Marek Polacek <polacek@redhat.com>
5020 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5021 * c.opt (Wc90-c99-compat): Add option.
5023 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5025 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5027 2014-08-03 Marek Polacek <polacek@redhat.com>
5029 * c-common.c (check_case_value): Add location_t parameter. Use it.
5030 (c_add_case_label): Pass loc to check_case_value.
5032 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5034 * cilk.c: Use hash_map instead of pointer_map.
5036 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5038 * c-gimplify.c: Use hash_set instead of pointer_set.
5040 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5043 * array-notation-common.c (extract_array_notation_exprs): Handling
5046 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5048 * c-common.h (min_align_of_type): Removed prototype.
5049 * c-common.c (min_align_of_type): Removed.
5050 * c-ubsan.h (ubsan_maybe_instrument_reference,
5051 ubsan_maybe_instrument_member_call): New prototypes.
5052 * c-ubsan.c: Include stor-layout.h and builtins.h.
5053 (ubsan_maybe_instrument_reference_or_call,
5054 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5057 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
5060 * c.opt (-Wreturn-local-addr): Move to common.opt.
5062 2014-07-30 Jason Merrill <jason@redhat.com>
5067 * c.opt (-fuse-all-virtuals): New.
5069 2014-07-30 Tom Tromey <tromey@redhat.com>
5072 * c.opt (Wdesignated-init): New option.
5073 * c-common.c (c_common_attribute_table): Add "designated_init".
5074 (handle_designated_init): New function.
5076 2014-07-24 Marek Polacek <polacek@redhat.com>
5079 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5081 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5083 PR preprocessor/60723 - missing system-ness marks for macro tokens
5084 * c-ppoutput.c (struct print::prev_was_system_token): New data
5086 (init_pp_output): Initialize it.
5087 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5088 (do_line_change): Return a flag saying if a line marker was
5090 (scan_translation_unit): Detect if the system-ness of the token we
5091 are about to emit is different from the one of the previously
5092 emitted token. If so, emit a line marker. Avoid emitting useless
5093 adjacent line markers. Avoid emitting line markers for tokens
5094 originating from the expansion of built-in macros.
5095 (scan_translation_unit_directives_only): Adjust.
5097 2014-07-15 Marek Polacek <polacek@redhat.com>
5099 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5100 TYPE_MAX_VALUE is NULL.
5102 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5105 * c.opt (Wmemset-transposed-args): New warning.
5107 2014-07-10 Jason Merrill <jason@redhat.com>
5111 * c.opt (-fuse-all-virtuals): New.
5113 2014-07-09 Richard Biener <rguenther@suse.de>
5116 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5117 using unsigned arithmetic if overflow does not wrap instead of
5118 if overflow is undefined.
5120 2014-07-06 Marek Polacek <polacek@redhat.com>
5123 * c.opt (Wsizeof-array-argument): New option.
5125 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5127 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
5128 comments->count <= 1, as comments->entries might be NULL.
5130 2014-07-01 Marek Polacek <polacek@redhat.com>
5132 * c.opt (Wint-conversion): New option.
5134 2014-07-01 Marek Polacek <polacek@redhat.com>
5137 * c.opt (Wincompatible-pointer-types): New option.
5139 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5142 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5143 Do not discard TYPE_QUALS of type.
5145 2014-06-26 Jason Merrill <jason@redhat.com>
5147 * c-common.h (enum cxx_dialect): Add cxx1z.
5148 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5149 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5151 2014-06-26 Teresa Johnson <tejohnson@google.com>
5153 * c-common.h (get_dump_info): Declare.
5154 * c-gimplify.c (c_genericize): Use saved dump files.
5155 * c-opts.c (c_common_parse_file): Begin and end dumps
5156 once around parsing invocation.
5157 (get_dump_info): New function.
5159 2014-06-23 Marek Polacek <polacek@redhat.com>
5160 Andrew MacLeod <amacleod@redhat.com>
5163 * c-common.c (get_atomic_generic_size): Don't segfault if the
5164 type doesn't have a size.
5166 2014-06-20 Marek Polacek <polacek@redhat.com>
5168 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5169 (ubsan_walk_array_refs_r): New function.
5170 (c_genericize): Instrument array bounds.
5171 * c-ubsan.c: Include "internal-fn.h".
5172 (ubsan_instrument_division): Mark instrumented arrays as having
5173 side effects. Adjust ubsan_type_descriptor call.
5174 (ubsan_instrument_shift): Likewise.
5175 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5176 (ubsan_instrument_bounds): New function.
5177 (ubsan_array_ref_instrumented_p): New function.
5178 (ubsan_maybe_instrument_array_ref): New function.
5179 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5180 (ubsan_array_ref_instrumented_p): Declare.
5181 (ubsan_maybe_instrument_array_ref): Declare.
5183 2014-06-20 Hale Wang <hale.wang@arm.com>
5186 * c.opt (fshort-enums): Add to LTO.
5187 * c.opt (fshort-wchar): Likewise.
5189 2014-06-16 Marek Polacek <polacek@redhat.com>
5192 * c.opt (Wswitch-bool): Add Var.
5194 2014-06-12 Jakub Jelinek <jakub@redhat.com>
5197 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5198 #pragma omp target teams or
5199 #pragma omp {,target }teams distribute simd.
5201 2014-06-12 Jason Merrill <jason@redhat.com>
5203 * c.opt (Wabi=, fabi-compat-version): New.
5204 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5205 (c_common_post_options): Handle flag_abi_compat_version default.
5206 Disallow -fabi-compat-version=1.
5207 * c-common.h (abi_version_crosses): New.
5209 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
5211 * c-common.c (handle_section_attribute): Update handling for
5212 section names that are no longer trees.
5214 2014-06-10 Jakub Jelinek <jakub@redhat.com>
5217 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5218 (omp_pragmas): ... back here.
5220 2014-06-05 Marek Polacek <polacek@redhat.com>
5223 * c-common.c (warn_logical_not_parentheses): New function.
5224 * c-common.h (warn_logical_not_parentheses): Declare.
5225 * c.opt (Wlogical-not-parentheses): New option.
5227 2014-06-04 Marek Polacek <polacek@redhat.com>
5230 * c-common.c (check_case_bounds): Add location parameter.
5232 (c_add_case_label): Pass loc to check_case_bounds.
5234 2014-06-03 Marek Polacek <polacek@redhat.com>
5237 * c.opt (Wswitch-bool): New option.
5239 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5241 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5243 (record_types_used_by_current_var_decl): Move prototype to where
5246 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5247 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5248 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5250 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5252 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5253 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5255 * c-pretty-print.c (pp_c_void_constant): New function.
5256 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5257 (c_pretty_printer::expression): Handle VOID_CST.
5258 * cilk.c (extract_free_variables): Likewise.
5259 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5260 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5262 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5264 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5265 * c-pragma.c (push_alignment): Adjust.
5266 (handle_pragma_push_options): Likewise.
5268 2014-05-09 Marek Polacek <polacek@redhat.com>
5271 * c-common.c (check_user_alignment): Return -1 if alignment is error
5273 (handle_aligned_attribute): Don't call default_conversion on
5275 (handle_vector_size_attribute): Likewise.
5276 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5277 (handle_sentinel_attribute): Call default_conversion and allow even
5278 integral types as an argument.
5280 2014-05-08 Marek Polacek <polacek@redhat.com>
5283 * c-common.c (min_align_of_type): New function factored out from...
5284 (c_sizeof_or_alignof_type): ...here.
5285 * c-common.h (min_align_of_type): Declare.
5287 2014-05-08 Marek Polacek <polacek@redhat.com>
5290 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5291 parameter type of main.
5293 2014-05-07 DJ Delorie <dj@redhat.com>
5295 * c-cppbuiltin.c (print_bits_of_hex): New.
5296 (builtin_define_type_minmax): Print values using hex so as not to
5297 require a pre-computed list of string values.
5299 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5300 Mike Stump <mikestump@comcast.net>
5301 Richard Sandiford <rdsandiford@googlemail.com>
5303 * c-ada-spec.c: Include wide-int.h.
5304 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5305 (dump_generic_ada_node): Use wide-int interfaces.
5306 * c-common.c: Include wide-int-print.h.
5307 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5308 (pointer_int_sum): Use wide-int interfaces.
5309 (c_common_nodes_and_builtins): Use make_int_cst.
5310 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5311 (handle_alloc_size_attribute): Use wide-int interfaces.
5312 (get_nonnull_operand): Likewise.
5313 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5314 * c-lex.c: Include wide-int.h.
5315 (narrowest_unsigned_type): Take a widest_int rather than two
5317 (narrowest_signed_type): Likewise.
5318 (interpret_integer): Update accordingly. Use wide-int interfaces.
5319 (lex_charconst): Use wide-int interfaces.
5320 * c-pretty-print.c: Include wide-int.h.
5321 (pp_c_integer_constant): Use wide-int interfaces.
5322 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5323 INT_CST_LT_UNSIGNED.
5325 2014-05-06 Richard Biener <rguenther@suse.de>
5327 * c-opts.c (c_common_post_options): For -freestanding,
5328 -fno-hosted and -fno-builtin disable pattern recognition
5329 if not enabled explicitely.
5331 2014-05-02 Marek Polacek <polacek@redhat.com>
5333 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5335 2014-05-01 Marek Polacek <polacek@redhat.com>
5338 * c.opt (Wdiscarded-qualifiers): Add.
5340 2014-04-30 Marek Polacek <polacek@redhat.com>
5342 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5343 INT_MIN / -1 sanitization only for integer types.
5345 2014-04-25 Marek Polacek <polacek@redhat.com>
5348 * c-common.c (handle_noinline_attribute): Warn if the attribute
5349 conflicts with always_inline attribute.
5350 (handle_always_inline_attribute): Warn if the attribute conflicts
5351 with noinline attribute.
5353 2014-04-25 Marek Polacek <polacek@redhat.com>
5356 * c-common.c (check_main_parameter_types): Warn about variadic main.
5358 2014-04-24 Mike Stump <mikestump@comcast.net>
5360 * c.opt (Wshadow-ivar): Default to on.
5362 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5364 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5366 2014-04-23 Marek Polacek <polacek@redhat.com>
5368 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5370 2014-04-22 Jakub Jelinek <jakub@redhat.com>
5373 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5374 if flag_sanitize_undefined_trap_on_error.
5375 (ubsan_instrument_division, ubsan_instrument_shift,
5376 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5377 if !flag_sanitize_recover.
5379 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
5382 * c-common.c (registered_builtin_types): Make non-static.
5383 * c-common.h (registered_builtin_types): Declare.
5385 2014-04-14 Richard Biener <rguenther@suse.de>
5386 Marc Glisse <marc.glisse@inria.fr>
5389 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5390 apply may-alias the scalar pointer type when applicable.
5392 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5395 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5396 as possible argument for Cilk_spawn.
5398 2014-04-11 Tobias Burnus <burnus@net-b.de>
5401 * c.opt (Wformat-signedness): Add
5402 * c-format.c(check_format_types): Use it.
5404 2014-04-11 Jason Merrill <jason@redhat.com>
5407 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5408 default_conversion for an array argument.
5410 2014-04-08 Marek Polacek <polacek@redhat.com>
5413 * c-ubsan.c: Include asan.h.
5414 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5416 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5418 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5420 2014-04-02 Marek Polacek <polacek@redhat.com>
5422 * c-common.h (c_expand_expr): Remove declaration.
5424 2014-03-28 Jakub Jelinek <jakub@redhat.com>
5427 * c-common.c (add_atomic_size_parameter): When creating new
5428 params vector, push the size argument first.
5430 2014-03-26 Jakub Jelinek <jakub@redhat.com>
5432 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5433 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5434 ubsan_create_data callers.
5436 2014-03-22 Jakub Jelinek <jakub@redhat.com>
5439 * c-opts.c (c_finish_options): Restore cb_file_change call to
5442 2014-03-13 Jakub Jelinek <jakub@redhat.com>
5445 * c-pragma.c (apply_pragma_weak): Only look at
5446 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5447 DECL_ASSEMBLER_NAME_SET_P (decl).
5448 (maybe_apply_pending_pragma_weaks): Exit early if
5449 vec_safe_is_empty (pending_weaks) rather than only when
5451 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5452 set assembler name back to NULL afterwards.
5454 2014-03-11 Jason Merrill <jason@redhat.com>
5456 * c.opt: Add -std=gnu++14.
5458 2014-03-11 Ian Bolton <ian.bolton@arm.com>
5460 * c-opts.c (c_common_post_options): Don't override
5461 -ffp-contract=fast if unsafe-math-optimizations is on.
5463 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
5465 * c.opt: Enable LTO FE for fshort-double.
5467 2014-03-07 Jason Merrill <jason@redhat.com>
5469 * c.opt: Add -std=c++14.
5471 2014-03-06 Marek Polacek <polacek@redhat.com>
5474 * cilk.c (contains_cilk_spawn_stmt): New function.
5475 (contains_cilk_spawn_stmt_walker): Likewise.
5476 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5477 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5479 2014-03-03 Jakub Jelinek <jakub@redhat.com>
5481 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5482 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5483 even when flag_preprocess_only.
5485 2014-02-26 Jason Merrill <jason@redhat.com>
5489 * c-common.c (shorten_compare): Don't check
5490 c_inhibit_evaluation_warnings.
5492 2014-02-19 Jakub Jelinek <jakub@redhat.com>
5495 * c-common.c (c_common_nodes_and_builtins): When initializing
5496 c_uint{16,32,64}_type_node, also set corresponding
5497 uint{16,32,64}_type_node to the same value.
5500 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5501 for PRAGMA_IVDEP if flag_preprocess_only.
5503 2014-02-12 Jakub Jelinek <jakub@redhat.com>
5506 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5507 if false, add ADD itself, rather than vice versa.
5508 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5509 copy. For SAVE_EXPR, only call merge_tlist once.
5511 2014-02-08 Jakub Jelinek <jakub@redhat.com>
5514 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5516 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5518 (c_common_attribute_table): Add alloc_align and assume_aligned
5521 2014-02-06 Marek Polacek <polacek@redhat.com>
5524 * c-common.c (warn_for_sign_compare): Call warning_at with location
5527 2014-02-05 Marek Polacek <polacek@redhat.com>
5530 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5533 2014-02-04 Marek Polacek <polacek@redhat.com>
5536 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5539 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
5543 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5544 handle_vector_size_attribute, handle_nonnull_attribute): Call
5545 default_conversion on the attribute argument.
5546 (handle_nonnull_attribute): Increment the argument number.
5548 2014-01-31 Marek Polacek <polacek@redhat.com>
5551 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5552 build_function_call_vec.
5553 (resolve_overloaded_builtin): Likewise.
5554 * c-common.h (build_function_call_vec): Adjust declaration.
5556 2014-01-30 Marek Polacek <polacek@redhat.com>
5559 * c-common.h (unsafe_conversion_p): Adjust declaration.
5560 (warnings_for_convert_and_check): Likewise.
5561 (convert_and_check): Likewise.
5562 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5563 expansion_point_location_if_in_system_header on it.
5564 (warnings_for_convert_and_check): Add location parameter. Call
5565 expansion_point_location_if_in_system_header on it. Use it.
5566 (convert_and_check): Add location parameter. Use it.
5567 (conversion_warning): Likewise.
5568 (c_add_case_label): Adjust convert_and_check calls.
5569 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5571 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5573 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5575 * c-pragma.c (init_pragma): Likewise.
5578 2014-01-23 Marek Polacek <polacek@redhat.com>
5581 * c-common.c (shorten_compare): Add location_t parameter.
5582 * c-common.h (shorten_binary_op): Adjust declaration.
5584 2014-01-23 Marek Polacek <polacek@redhat.com>
5587 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5588 * c-common.h: Declare it.
5590 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5592 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5593 * c-ada-spec.c (dump_ads): Likewise.
5594 (cpp_check): Likewise.
5595 (dump_ada_specs): Likewise.
5597 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
5600 * c-common.c (handle_no_instrument_function_attribute): Allow
5601 no_instrument_function attribute in class member
5602 definition/declaration.
5604 2014-01-15 Jakub Jelinek <jakub@redhat.com>
5607 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5608 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5609 being COMPOUND_EXPR.
5610 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5611 operand a SAVE_EXPR and second MODIFY_EXPR.
5613 2014-01-09 Jakub Jelinek <jakub@redhat.com>
5616 * c-pch.c (c_common_write_pch): Call
5617 prepare_target_option_nodes_for_pch.
5619 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5621 Update copyright years
5623 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5625 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5626 the copyright notice.
5628 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5630 * c-ada-spec.c (print_constructor): New function.
5631 (print_destructor): Retrieve the origin of the destructor.
5632 (print_ada_declaration): Revamp handling of constructors/destructors.
5634 2013-12-23 Stuart Hastings <stuart@apple.com>
5635 Bill Maddox <maddox@google.com>
5636 Jason Merrill <jason@redhat.com>
5638 * c.opt: Add -fdeclone-ctor-dtor.
5639 * c-opts.c (c_common_post_options): Default to on iff -Os.
5641 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5643 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5645 * c-pragma.h (enum pragma_cilk_clause): Remove.
5646 (enum pragma_omp_clause): Added the following fields:
5647 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5648 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5649 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5650 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5651 PRAGMA_CILK_CLAUSE_UNIFORM.
5654 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5656 * cilk.c (cilk_outline): Made this function non-static.
5657 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5658 (create_cilk_wrapper): Added a new parameter: a function pointer.
5659 (c_install_body_w_frame_cleanup): Remove
5660 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5661 * c-common.h (cilk_outline): New prototype.
5662 (gimplify_cilk_spawn): Removed two parameters.
5663 (cilk_install_body_with_frame_cleanup): New prototype.
5664 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5665 CILK_SPAWN_STMT case.
5667 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5669 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5671 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5672 (int_array_type_node): Remove.
5673 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5675 2013-12-05 Marek Polacek <polacek@redhat.com>
5678 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5679 [ADJUST_FIELD_ALIGN].
5681 2013-12-04 Joseph Myers <joseph@codesourcery.com>
5684 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5685 and check field alignment if set.
5686 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5687 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5689 2013-12-04 Jakub Jelinek <jakub@redhat.com>
5690 Marek Polacek <polacek@redhat.com>
5692 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5693 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5695 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5698 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5701 2013-11-29 Jakub Jelinek <jakub@redhat.com>
5704 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5705 goto invalid. If it is error_mark_node, don't issue further
5708 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5710 * c.opt (Wopenmp-simd): New.
5712 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5714 * c-ubsan.h (ubsan_instrument_return): New prototype.
5715 * c-ubsan.c (ubsan_instrument_return): New function.
5717 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5719 * c-common.c: Add required include files from gimple.h.
5720 * c-gimplify.c: Likewise
5723 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5725 * c-common.c (unsafe_conversion_p): Remove use of
5726 EXPR_LOC_OR_HERE macro.
5727 (conversion_warning): Likewise.
5728 (warnings_for_convert_and_check): Likewise.
5729 (warn_for_collisions_1): Likewise.
5730 (shorten_compare): Likewise, and remove use of in_system_header
5731 macro, using the location from the former.
5732 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5733 (cb_def_pragma): Remove use of in_system_header macro.
5734 (lex_string): Likewise.
5735 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5737 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5738 Mike Stump <mikestump@comcast.net>
5739 Richard Sandiford <rdsandiford@googlemail.com>
5741 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5742 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5743 tree_fits_shwi_p or tree_fits_uhwi_p.
5744 (dump_generic_ada_node): Likewise.
5745 * c-format.c (check_format_arg): Likewise.
5746 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5748 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5750 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5752 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5755 * c-common.c (unsafe_conversion_p): Make this function
5756 return an enumeration with more detail.
5757 (conversion_warning): Use the new return type of
5758 unsafe_conversion_p to separately warn either about conversions
5759 that lower floating point number precision or about the other
5760 kinds of conversions.
5761 * c-common.h (enum conversion_safety): New enumeration.
5762 (unsafe_conversion_p): switching return type to
5763 conversion_safety enumeration.
5764 * c.opt: Adding new warning -Wfloat-conversion and
5765 enabling it with -Wconversion.
5767 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5769 * c-opts.c: Include plugin.h.
5770 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5772 2013-11-19 Marek Polacek <polacek@redhat.com>
5774 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5776 (ubsan_instrument_shift): Likewise.
5777 (ubsan_instrument_vla): Likewise.
5779 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5781 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5782 cast to unsigned type.
5784 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5786 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5788 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5789 rather than tree_low_cst.
5791 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5793 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5794 tree_to_uhwi throughout.
5796 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5798 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5799 tree_low_cst (..., 0) with tree_to_shwi throughout.
5801 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5803 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5804 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5806 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5808 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5809 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5811 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5813 * c-cilkplus.c: New file.
5814 * c-common.c (readonly_error): Add location argument.
5815 * c-common.h (readonly_error): Same.
5816 (c_finish_cilk_clauses): Protoize.
5817 (c_check_cilk_loop): Same.
5818 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5819 Do not fail on error_mark_node.
5820 Abstract increment canonicalization to here...
5821 (c_omp_for_incr_canonicalize_ptr): New.
5822 c-pragma.c (init_pragma): Register "simd" pragma.
5823 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5824 (enum pragma_cilk_clause): New.
5826 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5828 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5829 wchar_type and host_integerp checks.
5831 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5833 * c-common.c: Likewise.
5834 * c-gimplify.c: Likewise.
5837 2013-11-14 Diego Novillo <dnovillo@google.com>
5839 * c-common.c: Include fold-const.h.
5840 Include stor-layout.h.
5842 Include stringpool.h.
5845 Include trans-mem.h.
5846 * c-cppbuiltin.c: Include stor-layout.h.
5847 Include stringpool.h.
5848 * c-format.c: Include stringpool.h.
5849 * c-lex.c: Include stringpool.h.
5850 Include stor-layout.h.
5851 * c-pragma.c: Include stringpool.h.
5854 Include gcc-symtab.h.
5855 * c-pretty-print.c: Include stor-layout.h.
5857 * cilk.c: Include stringpool.h.
5860 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5862 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5863 * c-common.c (c_common_reswords): Add __auto_type.
5864 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5866 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5868 * c-common.c: Include gimplify.h.
5869 * c-gimplify.c: Likewise.
5871 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5872 * c-ubsan.c: Don't include gimple.h.
5874 2013-11-12 Joseph Myers <joseph@codesourcery.com>
5876 * c-common.c (c_common_reswords): Add _Thread_local.
5878 2013-11-09 Joseph Myers <joseph@codesourcery.com>
5880 * c-common.c (atomic_size_supported_p): New function.
5881 (resolve_overloaded_atomic_exchange)
5882 (resolve_overloaded_atomic_compare_exchange)
5883 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5884 Use it instead of comparing size with a local list of sizes.
5886 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5887 Joseph Myers <joseph@codesourcery.com>
5889 * c-common.h (enum rid): Add RID_ATOMIC.
5890 * c-common.c (c_common_reswords): Add _Atomic.
5891 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5892 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5893 * c-format.c (check_format_types): Check for extra _Atomic
5894 qualifiers in format argument.
5895 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5896 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5898 2013-11-06 Tobias Burnus <burnus@net-b.de>
5900 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5902 2013-11-06 Joseph Myers <joseph@codesourcery.com>
5904 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5906 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5907 to mean lack of IEEE 754 support.
5909 2013-11-05 Tobias Burnus <burnus@net-b.de>
5911 * c.opt (-Wdate-time): New option
5912 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5914 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5916 * c-cppbuiltin.c (cpp_iec_559_value): Test
5917 flag_excess_precision_cmdline not flag_excess_precision.
5919 2013-11-05 Tobias Burnus <burnus@net-b.de>
5921 * c.opt (fopenmp-simd): New option.
5922 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5923 (omp_pragmas): ... this new struct.
5924 (c_pp_lookup_pragma): Also walk omp_pragmas.
5925 (init_pragma): Init pragmas for -fopenmp-simd.
5927 2013-11-04 Marek Polacek <polacek@redhat.com>
5930 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5932 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5934 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5936 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5938 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5940 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5941 (dump_ada_specs): Adjust prototype of second callback.
5942 * c-ada-spec.c (cpp_check): New global variable.
5943 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5944 (print_generic_ada_decl): Likewise.
5945 (has_static_fields): Change return type to bool and add guard.
5946 (has_nontrivial_methods): New predicate.
5947 (is_tagged_type): Change return type to bool.
5948 (separate_class_package): Call has_nontrivial_methods.
5949 (pp_ada_tree_identifier): Minor tweaks.
5950 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5951 (dump_ada_array_domains): Likewise.
5952 (dump_ada_array_type): Likewise.
5953 (dump_template_types): Remove cpp_check parameter and do not pass it to
5954 dump_generic_ada_node.
5955 (dump_ada_template): Likewise.
5956 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5958 (print_ada_methods): Change return type to integer. Remove cpp_check
5959 parameter and do not pass it down.
5960 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5961 dump_generic_ada_node.
5962 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5964 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5965 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5966 value of print_ada_methods.
5967 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5968 Set cpp_check to it before invoking dump_ada_nodes.
5969 (dump_ada_specs): Likewise.
5971 2013-11-03 Marek Polacek <polacek@redhat.com>
5973 * c-ubsan.c: Don't include hash-table.h.
5974 (ubsan_instrument_vla): New function.
5975 * c-ubsan.h: Declare it.
5977 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5979 Automated part of renaming of symtab_node_base to symtab_node.
5981 Patch autogenerated by rename_symtab.py from
5982 https://github.com/davidmalcolm/gcc-refactoring-scripts
5983 revision 58bb219cc090b2f4516a9297d868c245495ee622
5985 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5986 symtab_node_base to symtab_node.
5988 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5990 Implement C++14 digit separators.
5991 * c-lex.c (interpret_float): Remove digit separators from scratch string
5992 before building real literal.
5994 2013-10-30 Jakub Jelinek <jakub@redhat.com>
5996 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5998 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6000 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6002 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6004 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6005 (insert_cilk_frame): New prototype.
6006 (cilk_init_builtins): Likewise.
6007 (gimplify_cilk_spawn): Likewise.
6008 (c_cilk_install_body_w_frame_cleanup): Likewise.
6009 (cilk_detect_spawn_and_unwrap): Likewise.
6010 (cilk_set_spawn_marker): Likewise.
6011 (build_cilk_sync): Likewise.
6012 (build_cilk_spawn): Likewise.
6015 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6017 Patch autogenerated by refactor_symtab.py from
6018 https://github.com/davidmalcolm/gcc-refactoring-scripts
6019 revision 58bb219cc090b2f4516a9297d868c245495ee622
6021 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6022 to a true class hierarchy.
6023 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6025 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6027 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6029 2013-10-26 Jeff Law <law@redhat.com>
6031 * c-common.c (c_define_builtins): Remove mudflap support.
6032 * c.opt: Ignore and warn for mudflap options.
6034 2013-10-24 Tobias Burnus <burnus@net-b.de>
6037 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6038 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6040 2013-10-23 Jason Merrill <jason@redhat.com>
6042 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6044 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6046 * c-common.h (omp_clause_mask::operator !=): New method.
6047 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6048 instead of if (mask & something) tests everywhere.
6050 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6051 201307 instead of 201107.
6052 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6053 (c_common_attribute_table): Add "omp declare target" and
6054 "omp declare simd" attributes.
6055 (handle_omp_declare_target_attribute,
6056 handle_omp_declare_simd_attribute): New functions.
6057 * c-omp.c: Include c-pragma.h.
6058 (c_finish_omp_taskgroup): New function.
6059 (c_finish_omp_atomic): Add swapped argument, if true,
6060 build the operation first with rhs, lhs arguments and use NOP_EXPR
6062 (c_finish_omp_for): Add code argument, pass it down to make_code.
6063 (c_omp_split_clauses): New function.
6064 (c_split_parallel_clauses): Removed.
6065 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6066 c_omp_declare_simd_clauses_to_decls): New functions.
6067 * c-common.h (omp_clause_mask): New type.
6068 (OMP_CLAUSE_MASK_1): Define.
6069 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6070 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6071 omp_clause_mask::operator |, omp_clause_mask::operator &,
6072 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6073 omp_clause_mask::operator ==): New methods.
6074 (enum c_omp_clause_split): New.
6075 (c_finish_omp_taskgroup): New prototype.
6076 (c_finish_omp_atomic): Add swapped argument.
6077 (c_finish_omp_for): Add code argument.
6078 (c_omp_split_clauses): New prototype.
6079 (c_split_parallel_clauses): Removed.
6080 (c_omp_declare_simd_clauses_to_numbers,
6081 c_omp_declare_simd_clauses_to_decls): New prototypes.
6082 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6083 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6084 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6085 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6086 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6087 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6088 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6089 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6090 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6091 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6092 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6093 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6094 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6095 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6096 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6097 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6098 PRAGMA_OMP_CLAUSE_UNIFORM.
6100 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
6102 PR tree-optimization/20318
6103 * c-common.c (handle_returns_nonnull_attribute): New function.
6104 (c_common_attribute_table): Add returns_nonnull.
6106 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
6109 * c.opt (fcheck-new): Move to common.opt.
6111 2013-09-25 Marek Polacek <polacek@redhat.com>
6112 Jakub Jelinek <jakub@redhat.com>
6115 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6116 an expression if we can prove it is correct.
6117 (ubsan_instrument_division): Likewise. Remove unnecessary
6120 2013-09-18 Marek Polacek <polacek@redhat.com>
6123 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6125 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6127 2013-09-14 Iain Sandoe <iain@codesourcery.com>
6130 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6131 fobjc-gc, freplace-objc-classes): Accept for LTO.
6133 2013-09-13 Jacek Caban <jacek@codeweavers.com>
6135 * c-target.def: New hook
6137 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6140 * c.opt (Wdelete-incomplete): Add.
6142 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6144 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6145 (vector_types_compatible_elements_p): New function.
6146 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6148 (vector_types_compatible_elements_p): Declare.
6150 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6152 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6153 a virtual member function.
6154 (pp_simple_type_specifier): Remove.
6155 (pp_c_type_specifier): Likewise.
6156 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6157 Rename from pp_c_type_specifier. Adjust.
6158 (c_pretty_printer::c_pretty_printer): Do not assign to
6159 simple_type_specifier.
6161 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6163 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6165 (c_pretty_printer::storage_class_specifier): Likewise.
6166 (c_pretty_printer::initializer): Likewise.
6167 (pp_declaration): Remove.
6168 (pp_declaration_specifiers): Likewise.
6169 (pp_abstract_declarator): Likewise.
6170 (pp_declarator): Likewise.
6171 (pp_type_id): Likewise.
6172 (pp_statement): Likewise.
6173 (pp_constant): Likewise.
6174 (pp_id_expression): Likewise.
6175 (pp_primary_expression): Likewise.
6176 (pp_unary_expression): Likewise.
6177 (pp_multiplicative_expression): Likewise.
6178 (pp_conditional_expression): Likewise.
6179 (pp_assignment_expression): Likewise.
6180 (pp_expression): Likewise.
6181 (pp_c_type_id): Likewise.
6182 (pp_c_storage_class_specifier): Likewise.
6183 * c-pretty-print.c (pp_c_type_cast): Tidy.
6184 (pp_c_pointer): Likewise.
6185 (pp_c_type_specifier): Likewise.
6186 (pp_c_parameter_type_list): Likewise.
6187 (pp_c_function_definition): Likewise.
6188 (pp_c_init_declarator): Likewise.
6189 (pp_c_initializer_list): Likewise.
6190 (pp_c_constructor_elts): Likewise.
6191 (c_pretty_printer::direct_abstract_declarator): Likewise.
6192 (c_pretty_printer::declaration_specifiers): Likewise.
6193 (c_pretty_printer::primary_expression): Likewise.
6194 (c_pretty_printer::postfix_expression): Likewise.
6195 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6196 (c_pretty_printer::storage_class_specifier): Rename from
6197 pp_c_storage_class_specifier.
6198 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6199 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6200 storage_class_specifier, initializer, offset_list, flags.
6202 2013-08-30 Marek Polacek <polacek@redhat.com>
6204 * c-ubsan.c: New file.
6205 * c-ubsan.h: New file.
6207 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6209 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6211 (c_pretty_printer::declaration_specifiers): Likewise.
6212 (c_pretty_printer::declarator): Likewise.
6213 (c_pretty_printer::abstract_declarator): Likewise.
6214 (c_pretty_printer::direct_abstract_declarator): Likewise.
6215 (c_pretty_printer::direct_declarator): Likewise.
6216 (c_pretty_printer::function_specifier): Likewise.
6217 (pp_declaration): Adjust.
6218 (pp_declaration_specifiers): Likewise.
6219 (pp_abstract_declarator): Likewise.
6220 (pp_direct_declarator): Likewise.
6221 (pp_function_specifier): Likewise.
6222 (pp_direct_abstract_declarator): Remove as unused.
6223 (pp_c_declaration): Remove.
6224 (pp_c_declaration_specifiers): Likewise.
6225 (pp_c_declarator): Likewise.
6226 (pp_c_direct_declarator): Likewise.
6227 (pp_c_function_specifier): Likewise.
6228 (pp_c_direct_abstract_declarator): Likewise.
6229 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6230 from pp_c_abstract_declarator. Adjust.
6231 (c_pretty_printer::direct_abstract_declarator): Rename from
6232 pp_c_direct_abstract_declarator. Adjust.
6233 (c_pretty_printer::function_specifier): Rename from
6234 pp_c_function_specifier. Adjust.
6235 (c_pretty_printer::declaration_specifiers): Rename from
6236 pp_c_declaration_specifiers. Adjust.
6237 (c_pretty_printer::direct_declarator): Rename from
6238 pp_c_direct_declarator. Adjust.
6239 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6240 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6241 (c_pretty_printer::c_pretty_printer): Do not assign to
6242 declaration, declaration_specifiers, declarator,
6243 direct_declarator, direct_abstract_declarator, function_specifier.
6245 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6247 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6248 virtual member function.
6249 (c_pretty_printer::multiplicative_expression): Likewise.
6250 (c_pretty_printer::conditional_expression): Likewise.
6251 (c_pretty_printer::assignment_expression): Likewise.
6252 (c_pretty_printer::expression): Likewise.
6253 (pp_unary_expression): Adjust.
6254 (pp_multiplicative_expression): Likewise.
6255 (pp_assignment_expression): Likewise.
6256 (pp_conditional_expression): Likewise.
6257 (pp_expression): Likewise.
6258 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6259 from pp_c_unary_expression. Adjust.
6260 (c_pretty_printer::multiplicative_expression): Rename from
6261 pp_c_multiplicative_expression. Adjust.
6262 (c_pretty_printer::conditional_expression): Rename from
6263 pp_c_conditional_expression. Adjust.
6264 (c_pretty_printer::assignment_expression): Rename from
6265 pp_c_assignment_expression. Adjust.
6266 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6267 (c_pretty_printer::c_pretty_printer): Do not assign to
6268 unary_expression, multiplicative_expression,
6269 conditional_expression, expression.
6271 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6273 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6274 virtual member function.
6275 (pp_postfix_expression): Adjust.
6276 (pp_c_postfix_expression): Remove.
6277 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6278 from pp_c_postfix_expression. Adjust.
6279 (c_pretty_printer::c_pretty_printer): Do not assign to
6282 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6284 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6285 virtua member function.
6286 (pp_primary_expression): Adjust.
6287 (pp_c_primary_expression): Remove.
6288 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6289 from pp_c_primary_expression. Adjust.
6290 (pp_c_initializer_list): Use pp_primary_expression.
6291 (c_pretty_printer::c_pretty_printer): Do not assign to
6294 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6296 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6297 * c-pretty-print.c (M_): Remove.
6298 (c_pretty_printer::translate_string): Define.
6299 (pp_c_type_specifier): Use it.
6300 (pp_c_primary_expression): Likewise.
6301 (pp_c_expression): Likewise.
6303 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6305 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6307 (pp_c_id_expression): Remove.
6308 (pp_id_expression): Adjust.
6309 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6310 pp_c_id_expression. Adjust.
6311 (pp_c_postfix_expression): Use pp_id_expression.
6312 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6314 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6316 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6318 (pp_constant): Adjust.
6319 (pp_c_constant): Remove.
6320 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6321 pp_c_constant. Adjust.
6323 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6324 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6326 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6328 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6329 (c_pretty_printer::c_pretty_printer): Declare.
6330 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6331 c_pretty_printer_init. Adjust.
6332 (print_c_tree): Do not call c_pretty_printer_init.
6333 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6335 2013-08-09 Arnaud Charlet <charlet@adacore.com>
6337 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6339 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6342 * c-common.c (pointer_int_sum): Add bool parameter.
6343 * c-common.h (pointer_int_sum): Adjust declaration.
6345 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6347 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6348 c_pretty_printer variable.
6350 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6352 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6354 (pp_c_base): Likewise. Adjust users.
6355 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6356 (pp_c_whitespace): Do not call pp_base.
6357 (pp_c_left_paren): Likewise.
6358 (pp_c_right_paren): Likewise.
6359 (pp_c_left_brace): Likewise.
6360 (pp_c_right_brace): Likewise.
6361 (pp_c_left_bracket): Likewise.
6362 (pp_c_right_bracket): Likewise.
6363 (pp_c_dot): Likewise.
6364 (pp_c_ampersand): Likewise.
6365 (pp_c_star): Likewise.
6366 (pp_c_arrow): Likewise.
6367 (pp_c_semicolon): Likewise.
6368 (pp_c_complement): Likewise.
6369 (pp_c_exclamation): Likewise.
6370 (pp_c_direct_declarator): Likewise.
6371 (pp_c_ws_string): Likewise.
6372 (pp_c_identifier): Likewise.
6373 (pp_c_statement): Likewise.
6374 (print_c_tree): Likewise.
6376 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6379 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6380 provide useful error strings.
6382 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6384 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6385 printer functions instead of pp_string or operators and punctuators.
6386 (dump_generic_ada_node): Likewise.
6387 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6388 (pp_c_relational_expression): Likewise.
6389 (pp_c_logical_or_expression): Likewise.
6391 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6393 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6394 functions instead of pp_character.
6395 (pp_ada_tree_identifier): Likewise.
6396 (dump_ada_double_name): Likewise.
6397 (dump_ada_function_declaration): Likewise.
6398 (dump_ada_array_domains): Likewise.
6399 (dump_template_types): Likewise.
6400 (dump_generic_ada_node): Likewise.
6401 (print_ada_declaration): Likewise.
6402 (print_ada_struct_decl): Likewise.
6403 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6405 2013-07-23 Tom Tromey <tromey@redhat.com>
6407 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6408 * c-common.c (c_common_reswords): Add _Generic.
6410 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
6412 * c-common.c: Fix typos.
6413 * c-common.h: Likewise.
6415 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
6418 * c-common.c (c_common_attribute_table): Add warn_unused.
6419 (handle_warn_unused_attribute): New.
6421 2013-07-10 Jakub Jelinek <jakub@redhat.com>
6423 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6424 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6426 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6429 * c.opt: Add Wconditionally-supported.
6431 2013-07-08 Graham Stott <graham.stott@btinternet.com>
6433 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6434 unused variables l_length and l_node.
6436 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
6439 * c-common.c (complete_array_type): Delay folding first index
6440 like other indices. When folding, check for index overflow.
6442 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
6445 * c-common.h (c_build_vec_perm_expr): New complain argument.
6446 * c-common.c (c_build_vec_perm_expr): Likewise.
6447 Use save_expr also in C++.
6449 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6451 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6452 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6453 * c-opts.c (c_common_post_options): Likewise.
6455 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6457 * array-notation-common.c (length_mismatch_in_expr): Changed the
6458 parameter type's from a dynamic array to a vec_tree. Also removed
6459 the size parameters.
6460 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6463 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6465 * c-common.h (struct cilkplus_an_parts): New structure.
6466 (struct cilkplus_an_loop_parts): Likewise.
6467 (cilkplus_extract_an_triplets): New prototype.
6468 (fix_sec_implicit_args): Likewise.
6469 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6470 (fix_sec_implicit_args): Likewise.
6472 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6474 * array-notation-common.c (find_inv_trees): Removed an unwanted
6476 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6477 enum rid to enum tree_code.
6479 2013-06-11 Jan Hubicka <jh@suse.cz>
6481 * c-common.c (handle_alias_ifunc_attribute): Do not set
6482 DECL_EXTERNAL for weakref variables.
6483 * c-pragma.c (handle_pragma_weak): Make sure aliases
6484 are not declared as external.
6486 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6488 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6489 function from c/c-array-notation.c.
6490 (is_cilkplus_reduce_builtin): Likewise.
6491 (find_rank): Likewise.
6492 (extract_array_notation_exprs): Likewise.
6493 (replace_array_notations): Likewise.
6494 (find_inv_trees): Likewise.
6495 (replace_inv_trees): Likewise.
6496 (contains_array_notation_expr): Likewise.
6497 (find_correct_array_notation_type): Likewise.
6498 * c-common.h (struct inv_list): Moved this struct from the file
6499 c/c-array-notation.c and added a new field called additional tcodes.
6500 (length_mismatch_in_expr_p): New prototype.
6501 (is_cilkplus_reduce_builtin): Likewise.
6502 (find_rank): Likewise.
6503 (extract_array_notation_exprs): Likewise.
6504 (replace_array_notation): Likewise.
6505 (find_inv_trees): Likewise.
6506 (replace_inv_trees): Likewise.
6507 (find_correct_array_notation_type): Likewise.
6509 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6511 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6512 function array_notation_init_builtins is called.
6513 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6514 * c-common.def (ARRAY_NOTATION_REF): New tree.
6515 * c-common.h (build_array_notation_expr): New function declaration.
6516 (build_array_notation_ref): Likewise.
6517 (extract_sec_implicit_index_arg): New extern declaration.
6518 (is_sec_implicit_index_fn): Likewise.
6519 (ARRAY_NOTATION_CHECK): New define.
6520 (ARRAY_NOTATION_ARRAY): Likewise.
6521 (ARRAY_NOTATION_START): Likewise.
6522 (ARRAY_NOTATION_LENGTH): Likewise.
6523 (ARRAY_NOTATION_STRIDE): Likewise.
6524 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6526 (pp_c_expression): Likewise.
6527 * c.opt (flag_enable_cilkplus): New flag.
6528 * array-notation-common.c: New file.
6530 2013-05-14 Jakub Jelinek <jakub@redhat.com>
6533 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6535 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
6537 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6540 2013-05-07 Han Shen <shenhan@google.com>
6542 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6544 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6546 * c-common.c (check_user_alignment): Emit error for negative values.
6548 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6550 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6552 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6554 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6555 __GXX_EXPERIMENTAL_CXX1Y__.
6557 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6558 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6560 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6561 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6562 to simply use OPT_Wpointer_arith.
6563 (c_sizeof_or_alignof_type): Likewise.
6565 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6567 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6569 2013-04-12 Jakub Jelinek <jakub@redhat.com>
6571 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6572 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6575 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6577 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6579 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6581 * c-common.c (pointer_int_sum): Remove dead code.
6583 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6586 * c-common.c (handle_optimize_attribute): Don't call
6587 save_optabs_if_changed.
6589 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6592 * c-pch.c (pch_init): Free target_validity at the end.
6594 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6596 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6598 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6599 Jakub Jelinek <jakub@redhat.com>
6602 * c-common.c (handle_no_sanitize_address_attribute): New function.
6603 (c_common_attribute_table): Add no_sanitize_address attribute.
6604 (handle_no_address_safety_analysis_attribute): Add
6605 no_sanitize_address attribute, not no_address_safety_analysis
6608 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6611 * c-common.c (handle_optimize_attribute): Call
6612 save_optabs_if_changed.
6614 2013-02-18 Jakub Jelinek <jakub@redhat.com>
6615 Steven Bosscher <steven@gcc.gnu.org>
6618 * c-opts.c (c_common_post_options): If debug info is enabled
6619 and non-dwarf*, refuse to load PCH files and when writing PCH
6622 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6625 * c-common.c (handle_error_attribute): Fix condition.
6627 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6630 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6632 2013-01-18 Jason Merrill <jason@redhat.com>
6635 * c.opt (-fextern-tls-init): New.
6636 * c-opts.c (c_common_post_options): Handle it.
6638 2013-01-09 Jakub Jelinek <jakub@redhat.com>
6641 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6642 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6643 and is either negative or bigger or equal to type precision
6644 of the first operand.
6646 2012-12-03 Marek Polacek <polacek@redhat.com>
6649 * c-common.c (check_user_alignment): Swap order of tests,
6650 check TREE_CODE first.
6652 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6655 * c-common.h (overflow_type): New enum.
6656 (build_userdef_literal): Add overflow_type argument.
6657 (tree_userdef_literal): Add overflow_type.
6658 (USERDEF_LITERAL_OVERFLOW): New access macro.
6659 * c-common.c (build_userdef_literal): Add overflow_type
6661 * c-lex.c (c_lex_with_flags): Add overflow_type to
6662 build_userdef_literal calls.
6663 (interpret_integer, interpret_float): Add overflow_type argument.
6665 2012-11-28 Richard Biener <rguenther@suse.de>
6668 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6669 here and use a type with proper overflow behavior for types that would
6670 need to be promoted for the arithmetic.
6672 2012-11-23 Jakub Jelinek <jakub@redhat.com>
6675 * c-common.c (handle_no_address_safety_analysis_attribute): New
6677 (c_common_attribute_table): Add no_address_safety_analysis.
6679 2012-11-16 Simon Baldwin <simonb@google.com>
6681 * c.opt: Add f[no-]canonical-system-headers.
6682 * c-opts.c (c_common_handle_option): Handle
6683 OPT_fcanonical_system_headers.
6685 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6688 * c-opts.c (c_common_handle_option): Set new flags.
6689 * c.opt: Describe new flags.
6691 2012-11-09 Jason Merrill <jason@redhat.com>
6693 * c.opt (Wabi-tag): New.
6695 2012-11-09 Andi Kleen <ak@linux.intel.com>
6698 * c-common.c (get_atomic_generic_size): Mask with
6701 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6704 * c.opt (Wformat): Make it Alias Wformat=1.
6705 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6706 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6708 (Wformat=): RejectNegative. Use LangEnabledBy.
6709 (Wnonnull): Use LangEnabledBy.
6710 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6711 * c-format.c (set_Wformat): Delete.
6712 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6713 (maybe_read_dollar_number): Likewise.
6714 (avoid_dollar_number): Likewise.
6715 (finish_dollar_format_checking): Likewise.
6716 (check_format_info): Likewise.
6717 (check_format_info_main): Likewise.
6718 (check_format_types): Likewise.
6719 (format_type_warning): Likewise.
6720 * c-common.c (int): Likewise.
6721 (check_function_sentinel): Likewise.
6722 * c-common.h (warn_format,set_Wformat): Do not declare here.
6724 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6727 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6728 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6730 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6732 (Wvariadic-macros): Init(1).
6733 * c-opts.c (c_common_handle_option): Do not handle them
6735 (c_common_post_options): Likewise.
6736 (sanitize_cpp_opts): warn_unused_macros is now
6737 cpp_warn_unused_macros.
6738 (push_command_line_include): Likewise.
6739 * c-common.c (warn_unknown_pragmas): Do not define.
6740 * c-common.h (warn_unknown_pragmas): Do not declare.
6742 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6745 * c-common.c (conversion_warning): Handle conditional expressions.
6747 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6750 * c.opt (Wreturn_local_addr): Define new option.
6752 2012-10-25 Jason Merrill <jason@redhat.com>
6754 * c.opt (Wvirtual-move-assign): New.
6756 * c.opt (Winherited-variadic-ctor): New.
6758 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6761 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6763 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6765 * c-common.h (pch_cpp_save_state): Declare.
6766 * c-target.def (c_preinclude): New hook.
6767 * c-opts.c (done_preinclude): New.
6768 (push_command_line_include): Handle default preincluded header.
6769 (cb_file_change): Call pch_cpp_save_state when calling
6770 push_command_line_include.
6771 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6772 (pch_cpp_save_state): New.
6773 (pch_init): Call pch_cpp_save_state conditionally, instead of
6774 calling cpp_save_state.
6776 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6780 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6781 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6782 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6783 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6784 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6785 * c-opts.c (c_common_handle_option): Remove explicit handling from
6787 (c_common_post_options): Likewise.
6789 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6791 * c-ada-spec.c (LOCATION_COL): Delete.
6792 (compare_location): New function.
6793 (compare_node): Use it.
6794 (compare_comment): Likewise.
6796 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6800 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6801 * c-opts.c (c_common_handle_option): Do not set them here. Add
6803 (c_common_post_options): Likewise.
6805 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6807 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6808 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6809 Remove POINTER_TYPE handling, add large unsigned handling and use
6810 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6812 2012-10-12 Jakub Jelinek <jakub@redhat.com>
6815 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6816 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6817 locs and array of 3 trees instead of just single loc and single
6818 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6819 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6820 For *cmp* builtins that take two sources strings report warnings
6821 about first and second source, not about destination and source.
6823 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
6826 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6828 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6830 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6831 declaring something coming from another file.
6833 2012-10-10 Arnaud Charlet <charlet@adacore.com>
6836 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6838 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6841 * c-common.c (warn_about_parentheses): Add location_t parameter;
6842 use EXPR_LOC_OR_LOC.
6843 * c-common.h: Update declaration.
6845 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
6848 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6849 more operations. Make error messages optional.
6850 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6851 (scalar_to_vector): Declare.
6853 2012-10-08 Jason Merrill <jason@redhat.com>
6855 * c-common.c (c_common_reswords): Add thread_local.
6857 2012-10-08 Dodji Seketeli <dodji@redhat.com>
6859 PR c++/53528 C++11 attribute support
6860 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6862 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6864 (handle_aligned_attribute): In choose strictest alignment
6865 among many. Use new check_cxx_fundamental_alignment_constraints.
6866 (handle_transparent_union_attribute): In c++11 attribute syntax,
6867 don't look through typedefs.
6869 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6871 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6872 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6875 2012-09-25 Dehao Chen <dehao@google.com>
6878 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6879 map when read in the pch.
6881 2012-09-18 Arnaud Charlet <charlet@adacore.com>
6883 * c-ada-spec.c: Style fixes.
6885 2012-09-18 Thomas Quinot <quinot@adacore.com>
6887 * c.opt (-fada-spec-parent): Define new command line switch.
6888 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6889 is specified, generate binding spec as a child of the specified unit.
6891 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6892 Manuel López-Ibáñez <manu@gcc.gnu.org>
6895 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6897 2012-08-23 Arnaud Charlet <charlet@adacore.com>
6899 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6900 for pointers, and add missing Convention C pragma.
6901 (print_ada_struct_decl): Add missing aliased keyword.
6902 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6904 2012-08-17 Jakub Jelinek <jakub@redhat.com>
6906 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6907 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6908 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6909 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6910 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6912 2012-08-10 Richard Guenther <rguenther@suse.de>
6914 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6916 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6918 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6919 instead of separate pp_newline and pp_flush.
6920 (print_c_tree): Likewise.
6922 2012-07-26 Richard Henderson <rth@redhat.com>
6924 * c-common.c (handle_hot_attribute): Allow labels.
6925 (handle_cold_attribute): Likewise.
6927 2012-07-20 Jakub Jelinek <jakub@redhat.com>
6930 * c-common.c (check_function_nonnull): Handle multiple nonnull
6931 attributes properly.
6933 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6935 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6936 * c-ada-spec.c: Likewise.
6937 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6939 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6941 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6942 Remove code conditional on it.
6944 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6946 * c-gimplify.c: Do not include basic-block.h.
6947 * c-common.c: Do not include linfuncs.h.
6949 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6951 * c-common.h: Include tree.h.
6953 2012-07-02 Jason Merrill <jason@redhat.com>
6956 * c-common.c (get_priority): Call default_conversion.
6958 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
6960 * c-pch.c (c_common_write_pch): Remove unused variables.
6962 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6964 * cppspec.c: Moved from gcc/ to here.
6966 2012-06-27 Kai Tietz <ktietz@redhat.com>
6968 PR preprocessor/37215
6969 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6971 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6973 * c-common.h (c_common_print_pch_checksum): Remove.
6974 * c-pch.c: Do not include output.h.
6975 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6976 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6977 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6978 (struct c_pch_header): Remove.
6979 (get_ident): Update gpch version.
6980 (pch_init): Do not print executable_checksum to asm_out_file.
6981 Do not fail if there is no asm_out_file to read back from. Set
6982 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6983 (c_common_write_pch): Verify that nothing was written to asm_out_file
6984 since pch_init was called. Do not write a c_pch_header, and do not
6985 copy from asm_out_file to the PCH.
6986 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6987 the content of asm_out_file from the PCH.
6988 (c_common_print_pch_checksum): Remove.
6989 * c-opts.c (c_common_init): Print out executable_checksum directly.
6991 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6993 * c-target.def (objc_declare_unresolved_class_reference,
6994 objc_declare_class_definition): Add new hooks.
6996 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6998 * c-lex.c: Do not include output.h.
6999 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7000 Remove uses of ASM_OUTPUT_IDENT.
7002 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
7005 * c-common.h (c_build_vec_perm_expr): Move decl here.
7006 * c-common.c (c_build_vec_perm_expr): Move definition
7009 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7011 * c.opt (fconserve-space): Turn into a no-op.
7013 2012-06-04 Sterling Augustine <saugustine@google.com>
7015 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7016 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7017 both the start and end of the function.
7019 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7021 * c-common.c: Do not include output.h.
7022 * c-pragma.c: Likewise.
7024 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7026 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7027 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7028 (lang_decl_name): Handle namespace decls.
7030 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7032 * c-ada-spec.c: Do not include output.h.
7033 * c-semantics.c: Likewise.
7035 2012-05-29 Joseph Myers <joseph@codesourcery.com>
7037 * c-common.c: Fix typo.
7039 2012-05-29 Michael Matz <matz@suse.de>
7041 * c-common.h (c_expand_decl): Remove prototype.
7043 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7045 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7046 * c-opts.c (c_common_handle_option): Remove code handling
7047 warn_missing_braces.
7049 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7052 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7055 2012-05-22 Dodji Seketeli <dodji@redhat.com>
7058 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7060 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7062 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7063 * c-opts.c (c_common_handle_option): Do not handle explicitly
7064 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7066 2012-05-16 Dodji Seketeli <dodji@redhat.com>
7068 PR preprocessor/7263
7069 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7070 to cpp_classify_number. For diagnostics, use the precise location
7071 instead of the global input_location.
7073 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7076 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7078 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7080 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
7082 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7085 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7086 Wreorder): Use LangEnabledBy.
7087 * c-opts.c (c_common_handle_option): Do not enable them
7088 explicitly. Call lang-specific generated functions.
7089 (c_common_post_options): Do not set them here.
7091 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7093 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7094 Wmissing-field-initializers,Wmissing-parameter-type,
7095 Wold-style-declaration,Woverride-init): Use EnabledBy.
7096 * c-opts.c (c_common_post_options): Do not set here explicitly.
7098 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7101 * c-opts.c (c_common_handle_option): Use handle_generated_option
7102 to enable sub-options.
7104 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7107 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7109 2012-05-10 Richard Guenther <rguenther@suse.de>
7111 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7112 adjust commentary about TYPE_IS_SIZETYPE types.
7114 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7117 * c-common.c (warn_logical_operator): Check that argument of
7118 integer_zerop is not NULL.
7120 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7123 * c-common.c (warn_logical_operator): Do not warn if either side
7124 is already true or false.
7126 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7129 * c-common.c (expr_original_type): New.
7130 (shorten_compare): Do not warn for enumeration types.
7132 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7134 * c.opt (fpermissive): Add Var(flag_permissive).
7136 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
7139 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7140 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7142 2012-04-30 Dodji Seketeli <dodji@redhat.com>
7144 Add -Wvarargs option
7145 * c.opt (Wvarargs): Define new option.
7147 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7149 * c-common.c (check_function_arguments): Replace
7150 Wmissing-format-attribute with Wsuggest-attribute=format.
7152 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7154 * c.opt (Wsuggest-attribute=format): New. Alias of
7155 Wmissing-format-attribute.
7156 * c-format.c (decode_format_type): Replace
7157 Wmissing-format-attribute with Wsuggest-attribute=format.
7158 (check_function_format): Likewise.
7160 2012-04-27 Ollie Wild <aaw@google.com>
7162 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7163 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7164 * c.opt: Add Wliteral-suffix.
7166 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7169 * c.opt (Wpedantic): New.
7170 (pedantic): Alias Wpedantic.
7171 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7172 (c_common_post_options): Likewise.
7173 (sanitize_cpp_opts): Likewise.
7174 * c-lex.c (interpret_float): Likewise.
7175 * c-format.c (check_format_types): Likewise.
7176 * c-common.c (pointer_int_sum): Likewise.
7177 (c_sizeof_or_alignof_type): Likewise.
7178 (c_add_case_label): Likewise.
7179 (c_do_switch_warnings): Likewise.
7180 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7182 2012-04-15 Jason Merrill <jason@redhat.com>
7185 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7186 (C_STD_NAME): Distinguish between C++98 and C++11.
7188 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7191 * c-common.h (uint16_type_node): Rename into...
7192 (c_uint16_type_node): ...this.
7193 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7194 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7196 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7198 * c-common.c (warn_if_unused_value): Move definition to here.
7199 * c-common.h (warn_if_unused_value): Move declaration to here.
7201 2012-03-23 William Bader <williambader@hotmail.com>
7203 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7205 2012-03-20 Jason Merrill <jason@redhat.com>
7207 * c-common.h (enum cxx_dialect): Add cxx1y.
7208 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7210 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7211 * c-opts.c (c_common_post_options): Likewise.
7212 (set_std_cxx1y): New.
7213 (c_common_handle_option): Call it.
7214 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7216 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7219 * c.opt ([Wuseless-cast]): Add.
7221 2012-03-16 Richard Guenther <rguenther@suse.de>
7223 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7225 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7228 * c.opt (ftemplate-backtrace-limit) Add.
7230 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7232 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7234 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7235 (init_pragma): Don't register extern_prefix.
7237 2012-03-12 Richard Guenther <rguenther@suse.de>
7239 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7240 (builtin_type_for_size): Likewise.
7242 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7245 * c-common.c (sync_resolve_params): Don't decide whether to convert
7246 or not based on TYPE_SIZE comparison, convert whenever arg_type
7247 is unsigned INTEGER_TYPE.
7249 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7252 * c.opt ([Wunused-local-typedefs]): Fix description.
7254 2012-01-24 Mike Stump <mikestump@comcast.net>
7256 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7259 2012-01-18 Richard Guenther <rguenther@suse.de>
7261 * c-opts.c (c_common_post_options): Reset LTO flags if
7262 we are about to generate a PCH.
7264 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7267 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7268 use pp_unsigned_wide_integer.
7270 2012-01-10 Richard Guenther <rguenther@suse.de>
7273 * c-opts.c (c_common_handle_option): Move -Werror handling
7274 to language independent code.
7276 2012-01-05 Richard Guenther <rguenther@suse.de>
7279 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7282 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7285 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7286 of array types with an unknown bound.
7288 2011-12-20 Joseph Myers <joseph@codesourcery.com>
7290 * c-common.c (flag_isoc99): Update comment to refer to C11.
7291 (flag_isoc1x): Change to flag_isoc11.
7292 * c-common.h (flag_isoc99): Update comment to refer to C11.
7293 (flag_isoc1x): Change to flag_isoc11.
7294 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7296 * c-opts.c (set_std_c1x): Change to set_std_c11.
7297 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7299 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7300 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7301 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7303 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7304 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7305 (std=gnu1x): Make alias of std=gnu11.
7307 2011-12-19 Jason Merrill <jason@redhat.com>
7310 * c-common.c (handle_transparent_union_attribute): Check the first
7311 field if the type is complete.
7313 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7316 * c-common.c (RID_IS_FINAL): Add.
7317 * c-common.h (RID_IS_FINAL): Add.
7319 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7321 * c.opt (fgnu-runtime): Provide full description.
7322 (fnext-runtime): Likewise.
7323 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7325 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
7327 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7328 predefines in one place. Add LOCK_FREE predefines.
7329 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7332 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
7335 * c-common.c (get_atomic_generic_size): Check for various error
7337 (resolve_overloaded_atomic_exchange,
7338 resolve_overloaded_atomic_compare_exchange,
7339 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7340 error_mark_node for error conditions.
7342 2011-11-08 Richard Guenther <rguenther@suse.de>
7347 2011-11-07 Richard Henderson <rth@redhat.com>
7348 Aldy Hernandez <aldyh@redhat.com>
7349 Torvald Riegel <triegel@redhat.com>
7351 Merged from transactional-memory.
7353 * c-common.c (handle_tm_wrap_attribute,
7354 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7355 (struct c_common_reswords): Added __transaction* keywords.
7356 (struct c_common_attribute_table): Added transaction* and tm_regparm
7358 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7360 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7361 find_tm_attribute): Declare.
7363 2011-11-07 Jason Merrill <jason@redhat.com>
7366 * c-common.c, c-common.h: Revert yesterday's changes.
7368 2011-11-06 Jason Merrill <jason@redhat.com>
7371 * c-common.c (decl_has_visibility_attr): Split out from...
7372 (c_determine_visibility): ...here.
7373 * c-common.h: Declare it.
7375 2011-11-06 Joseph Myers <joseph@codesourcery.com>
7377 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7378 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7380 (check_user_alignment): New. Split out of
7381 handle_aligned_attribute. Disallow integer constants with
7382 noninteger types. Conditionally allow zero.
7383 (handle_aligned_attribute): Use check_user_alignment.
7384 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7386 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
7387 Richard Henderson <rth@redhat.com>
7389 Merged from cxx-mem-model.
7391 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7392 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7393 parameters that are the same type size.
7394 (get_atomic_generic_size): New. Find size of generic
7395 atomic function parameters and do typechecking.
7396 (add_atomic_size_parameter): New. Insert size into parameter list.
7397 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7398 either __atomic_exchange_n or external library call.
7399 (resolve_overloaded_atomic_compare_exchange): Restructure
7400 __atomic_compare_exchange to either _n variant or external library call.
7401 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7402 __atomic_load_n or an external library call.
7403 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7404 __atomic_store_n or an external library call.
7405 (resolve_overloaded_builtin): Handle new __atomic builtins.
7407 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7410 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7411 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7412 <INDIRECT_REF>: Return the argument.
7413 <ARRAY_REF>: Remove special code for negative offset.
7414 Call fold_build_pointer_plus instead of size_binop.
7415 (fold_offsetof): Remove STOP_REF argument and adjust.
7416 * c-common.h (fold_offsetof_1): Declare.
7417 (fold_offsetof): Remove STOP_REF argument.
7419 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7422 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7423 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7424 Wnarrowing for C++0x and C++98.
7425 * c.opt ([Wnarrowing]): Update.
7427 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7430 * c.opt: Add Wzero-as-null-pointer-constant.
7432 2011-10-31 Jason Merrill <jason@redhat.com>
7434 * c.opt (-fdeduce-init-list): Off by default.
7437 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7438 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7440 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7442 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7445 * c.opt (fvisibility-inlines-hidden): Description change.
7447 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7449 Implement C++11 user-defined literals.
7450 * c-common.c (build_userdef_literal): New.
7451 * c-common.def: New tree code.
7452 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7453 * c-lex.c (interpret_float): Add suffix parm.
7454 (c_lex_with_flags): Build literal tokens.
7456 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7460 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7463 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7464 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7465 Wnarrowing for C++0x and C++98.
7466 * c.opt ([Wnarrowing]): Update.
7468 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7471 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7472 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7473 Wnarrowing for C++0x and C++98.
7474 * c.opt ([Wnarrowing]): Update.
7476 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7479 * c-common.c (conversion_warning): Remove code looking for
7480 artificial operands.
7482 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7485 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7486 !NO_IMPLICIT_EXTERN_C.
7488 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
7490 * c-common.c (c_common_reswords): Add __bases,
7492 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7494 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7497 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7499 2011-10-15 Tom Tromey <tromey@redhat.com>
7500 Dodji Seketeli <dodji@redhat.com>
7502 * c.opt (fdebug-cpp): New option.
7503 * c-opts.c (c_common_handle_option): Handle the option.
7504 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7505 output stream in parameter. Factorized from ...
7506 (maybe_print_line): ... this. Dump location debug information when
7507 -fdebug-cpp is in effect.
7508 (print_line_1): New static function. Takes an output stream in
7509 parameter. Factorized from ...
7510 (print_line): ... here. Dump location information when -fdebug-cpp
7512 (scan_translation_unit): Dump location information when
7513 -fdebug-cpp is in effect.
7515 2011-10-15 Tom Tromey <tromey@redhat.com>
7516 Dodji Seketeli <dodji@redhat.com>
7518 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7520 * c-opts.c (c_common_handle_option)<case
7521 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7522 cases. Handle -ftrack-macro-expansion with and without argument.
7524 2011-10-15 Tom Tromey <tromey@redhat.com>
7525 Dodji Seketeli <dodji@redhat.com>
7527 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7528 (print_line, cb_define, do_line_change): Adjust to avoid touching
7529 the internals of struct line_map. Use the public API instead.
7530 * c-pch.c (c_common_read_pch): Likewise.
7531 * c-lex.c (fe_file_change): Likewise.
7533 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7536 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7538 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7541 * c-pretty-print.c (pp_c_floating_constant): Output
7542 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7544 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7546 * c-common.c (def_builtin_1): Delete old interface with two
7547 parallel arrays to hold standard builtin declarations, and replace
7548 it with a function based interface that can support creating
7549 builtins on the fly in the future. Change all uses, and poison
7550 the old names. Make sure 0 is not a legitimate builtin index.
7551 * c-omp.c (c_finish_omp_barrier): Ditto.
7552 (c_finish_omp_taskwait): Ditto.
7553 (c_finish_omp_flush): Ditto.
7555 2011-10-11 Tristan Gingold <gingold@adacore.com>
7557 * c.opt: (fallow-parameterless-variadic-functions): New.
7559 2011-09-08 Dodji Seketeli <dodji@redhat.com>
7561 PR c++/33255 - Support -Wunused-local-typedefs warning
7562 * c-common.h (struct c_language_function::local_typedefs): New
7564 (record_locally_defined_typedef, maybe_record_typedef_use)
7565 (maybe_warn_unused_local_typedefs): Declare new functions.
7566 * c-common.c (record_locally_defined_typedef)
7567 (maybe_record_typedef_use)
7568 (maybe_warn_unused_local_typedefs): Define new functions.
7569 * c.opt: Declare new -Wunused-local-typedefs flag.
7571 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7574 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7577 2011-09-05 Richard Guenther <rguenther@suse.de>
7579 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7580 of integer_minus_one_node for empty array upper bounds.
7582 2011-08-28 Dodji Seketeli <dodji@redhat.com>
7584 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7585 it's the first time it's being called on this main TU.
7587 2011-08-24 Richard Guenther <rguenther@suse.de>
7590 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7592 2011-08-22 Gabriel Charette <gchare@google.com>
7594 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7595 defined in cpp_init_builtins and c_cpp_builtins.
7597 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7599 * c-common.c (c_common_reswords): Add __builtin_complex.
7600 * c-common.h (RID_BUILTIN_COMPLEX): New.
7602 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7604 * c-common.c (c_common_reswords): Add _Noreturn.
7605 (keyword_is_function_specifier): Handle RID_NORETURN.
7606 * c-common.h (RID_NORETURN): New.
7608 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7610 * c-common.c (unsafe_conversion_p): New function. Check if it is
7611 unsafe to convert an expression to the type.
7612 (conversion_warning): Adjust, use unsafe_conversion_p.
7613 * c-common.h (unsafe_conversion_p): New function declaration.
7615 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7617 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7618 (c_finish_omp_taskyield): New prototype.
7619 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7620 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7621 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7622 or RHS1 have side-effects, evaluate those too in the right spot,
7623 if it is a decl and LHS is also a decl, error out if they
7625 (c_finish_omp_taskyield): New function.
7626 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7627 * c-pragma.c (omp_pragmas): Add taskyield.
7628 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7629 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7630 PRAGMA_OMP_CLAUSE_MERGEABLE.
7632 2011-07-25 Dodji Seketeli <dodji@redhat.com>
7634 * c-common.h (set_underlying_type): Remove parm name from
7637 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
7639 * c-pretty-print.h: Search c-common.h in c-family.
7641 2011-07-22 Jason Merrill <jason@redhat.com>
7644 * c.opt (Wnarrowing): New.
7647 * c-common.h: Declare c_linkage_bindings.
7648 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7651 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7652 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7653 as flag_isoc99 for 'restrict'.
7654 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7656 2011-07-21 Ian Lance Taylor <iant@google.com>
7659 * c-common.c (c_disable_warnings): New static function.
7660 (c_enable_warnings): New static function.
7661 (c_fully_fold_internal): Change local unused_p to bool. Call
7662 c_disable_warnings and c_enable_warnings rather than change
7663 c_inhibit_evaluation_warnings.
7665 2011-07-20 Jason Merrill <jason@redhat.com>
7667 PR c++/6709 (DR 743)
7668 PR c++/42603 (DR 950)
7669 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7670 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7671 (CPP_DECLTYPE): New.
7672 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7674 2011-07-19 Richard Guenther <rguenther@suse.de>
7676 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7677 * c-omp.c (c_finish_omp_for): Likewise.
7679 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7681 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7682 body on the next line.
7684 2011-07-08 Jason Merrill <jason@redhat.com>
7687 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7690 * c-common.c (c_apply_type_quals_to_decl): Don't check
7691 TYPE_NEEDS_CONSTRUCTING.
7693 2011-07-06 Richard Guenther <rguenther@suse.de>
7695 * c-common.c (c_common_nodes_and_builtins):
7696 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7698 2011-07-05 Richard Guenther <rguenther@suse.de>
7700 * c-common.c (c_common_nodes_and_builtins): Build all common
7703 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7705 * c-common.h (c_tree_chain_next): New static inline function.
7707 * c-common.c (check_builtin_function_arguments): Handle
7708 BUILT_IN_ASSUME_ALIGNED.
7710 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7712 * c-common.c: Add sync_ or SYNC__ to builtin names.
7713 * c-omp.c: Add sync_ or SYNC__ to builtin names.
7715 2011-06-20 Pierre Vittet <piervit@pvittet.com>
7717 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7719 (gen_pragma_handler): New union.
7720 (internal_pragma_handler): New type.
7721 (c_register_pragma_with_data)
7722 (c_register_pragma_with_expansion_and_data): New functions.
7724 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7725 (c_register_pragma, c_register_pragma_with_expansion)
7726 (c_invoke_pragma_handler): Changed to work with
7727 internal_pragma_handler.
7728 (c_register_pragma_with_data)
7729 (c_register_pragma_with_expansion_and_data): New functions.
7731 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7733 * c-common.c: Include common/common-target.h.
7734 (handle_section_attribute): Use
7735 targetm_common.have_named_sections.
7736 * c-cppbuiltin.c: Include common/common-target.h.
7737 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7739 2011-06-10 Richard Guenther <rguenther@suse.de>
7741 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7742 to print a IDENTIFIER_NODE.
7744 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7745 Joseph Myers <joseph@codesourcery.com>
7747 * c.opt (fbuilding-libgcc): New option.
7748 * c-cppbuiltin.c (c_cpp_builtins): Define
7749 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7751 2011-06-07 Jason Merrill <jason@redhat.com>
7753 * c-common.c (max_tinst_depth): Lower default to 900.
7755 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7757 2011-06-07 Richard Guenther <rguenther@suse.de>
7759 * c-common.c (c_common_nodes_and_builtins): Do not set
7760 size_type_node or call set_sizetype.
7762 2011-06-07 Dodji Seketeli <dodji@redhat.com>
7765 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7766 type when using pointer comparison to compare types.
7768 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7770 * c.opt: Add -Wdelete-non-virtual-dtor.
7771 * c-opts.c (c_common_handle_option): Include it in -Wall.
7773 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7778 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7780 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7783 2011-05-27 Jakub Jelinek <jakub@redhat.com>
7786 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7787 C++ don't call c_common_truthvalue_conversion on void type arms.
7789 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7791 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7792 (stmt_list_stack): Define.
7793 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7794 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7796 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7798 * c-common.c (warning_candidate_p): Check for BLOCKs.
7800 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7802 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7805 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7807 * c-common.c (def_fn_type): Remove extra va_end.
7809 2011-05-23 Jason Merrill <jason@redhat.com>
7812 * c-common.c (c_common_get_narrower): New.
7813 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7815 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7817 * c-common.h (check_function_arguments): Tweak prototype of
7818 check_function_arguments.
7819 * c-common.c (check_function_arguments): Likewise. Adjust
7820 calls to check_function_nonnull, check_function_format, and
7821 check_function_sentinel.
7822 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7823 separate attributes and typelist arguments. Use
7824 FOREACH_FUNCTION_ARGS to iterate over argument types.
7826 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7828 * c-common.c (c_common_reswords): Reorder.
7829 * c-common.h (rid): Likewise.
7831 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7833 * c-common.c (def_fn_type): Don't call build_function_type, call
7834 build_function_type_array or build_varargs_function_type_array
7836 (c_common_nodes_and_builtins): Likewise.
7838 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7840 * c-common.c (c_add_case_label): Omit the loc argument to
7842 * c-common.h (build_case_label): Remove.
7843 * c-semantics.c (build_case_label): Remove.
7845 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7847 * c-objc.h (objc_start_method_definition): Update prototype.
7848 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7850 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7852 * c-common.c (check_main_parameter_types): Reindent. Don't use
7853 TYPE_ARG_TYPES directly.
7854 (handle_nonnull_attribute): Likewise.
7855 (sync_resolve_params): Likewise.
7856 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7857 to check_format_string.
7858 (handle_format_attribute): Likewise.
7859 (check_format_string): Take a function type to examine instead of
7860 a type list. Use a function_arg_iterator to step through argument
7863 2011-05-04 Richard Guenther <rguenther@suse.de>
7865 * c-common.c (fix_string_type): Use size_int for index type bounds.
7866 (start_fname_decls): Do not pass NULL to build_int_cst.
7867 (c_init_attributes): Likewise.
7868 * c-lex.c (c_lex_with_flags): Likewise.
7870 2011-04-27 Jason Merrill <jason@redhat.com>
7872 * c-common.c (make_tree_vector_from_list): New.
7873 * c-common.h: Declare it.
7875 2011-04-26 Richard Guenther <rguenther@suse.de>
7877 PR preprocessor/48248
7878 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7879 for output size with -P.
7881 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7883 * c-common.c (struct c_common_resword): Add __underlying_type.
7884 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7886 2011-04-20 Jim Meyering <meyering@redhat.com>
7888 * c-format.c (init_dollar_format_checking): Remove useless
7891 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7893 * c-objc.h (objc_get_interface_ivars): Removed.
7894 (objc_detect_field_duplicates): New.
7895 * stub-objc.c: Likewise.
7897 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7899 * stub-objc.c (objc_declare_protocols): Renamed to
7900 objc_declare_protocol.
7901 * c-objc.h: Likewise.
7903 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7905 * stub-objc.c (objc_declare_class): Updated argument name.
7907 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7909 * c-common.h (c_common_init_ts): Declare.
7910 * c-common.c (c_common_init_ts): Define.
7912 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7914 * c-objc.h (objc_build_message_expr): Updated prototype.
7915 * stub-objc.c (objc_build_message_expr): Likewise.
7917 2011-04-12 Martin Jambor <mjambor@suse.cz>
7919 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7922 2011-04-11 Richard Guenther <rguenther@suse.de>
7924 * c-common.c (complete_array_type): Build a range type of
7927 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7929 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7930 (handle_type_generic_attribute): Likewise.
7932 2011-04-07 Jason Merrill <jason@redhat.com>
7935 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7936 conversion from C++0x scoped enum.
7938 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7940 * c-target-def.h: New file.
7941 * c-target.def: New file.
7942 * c-target.h: New file.
7943 * c-common.c (targetcm): Don't define here.
7944 * c-common.h (default_handle_c_option): Declare.
7945 * c-format.c: Include c-target.h instead of target.h.
7946 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7948 (default_handle_c_option): Move from targhooks.c.
7950 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7952 PR preprocessor/48248
7953 * c-ppoutput.c (print): Add src_file field.
7954 (init_pp_output): Initialize it.
7955 (maybe_print_line): Don't optimize by adding up to 8 newlines
7956 if map->to_file and print.src_file are different file.
7957 (print_line): Update print.src_file.
7959 2011-03-25 Kai Tietz <ktietz@redhat.com>
7961 * c-ada-spec.c (compare_comment): Use filename_cmp
7962 instead of strcmp for filename.
7964 2011-03-25 Jeff Law <law@redhat.com>
7966 * c-common.c (def_fn_type): Add missing va_end.
7968 2011-03-25 Jason Merrill <jason@redhat.com>
7970 * c.opt: Add -std=c++03.
7972 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7974 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7976 2011-03-17 Kai Tietz <ktietz@redhat.com>
7979 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7980 Display allowed attributes for function pointer types.
7981 (pp_c_attributes_display): New function to display
7982 attributes having affects_type_identity flag set to true.
7983 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7985 * c-common.c (c_common_attribute_table):
7987 (c_common_format_attribute_table): Likewise.
7989 2011-03-18 Jason Merrill <jason@redhat.com>
7991 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7992 * c-common.h: Don't declare it here.
7993 * c-common.c: Or define it here.
7994 * c-opts.c (c_common_handle_option): Or set it here.
7997 * c-common.c (handle_transparent_union_attribute): Don't
7998 make a duplicate type in C++.
8000 2011-03-15 Jason Merrill <jason@redhat.com>
8002 * c-common.c (max_constexpr_depth): New.
8003 * c-common.h: Declare it.
8004 * c-opts.c (c_common_handle_option): Set it.
8005 * c.opt (fconstexpr-depth): New option.
8007 2011-03-11 Jason Merrill <jason@redhat.com>
8009 * c-common.c (attribute_takes_identifier_p): Add missing const.
8012 * c-common.c (attribute_takes_identifier_p): Assume that an
8013 unknown attribute takes an identifier.
8015 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8018 * c-common.c (c_type_hash): Call list_length instead of iterating
8019 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8021 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8024 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8026 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8028 * c.opt (fobjc-abi-version=) New.
8029 (fobjc-nilcheck): New.
8031 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8034 * c-common.h (keyword_is_decl_specifier): Declare.
8035 * c-common.c (keyword_is_decl_specifier): Define.
8036 (keyword_is_function_specifier): New function.
8038 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8041 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8042 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8045 2011-01-26 Arnaud Charlet <charlet@adacore.com>
8047 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8049 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8052 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8053 after init_c_lex if pch_file is set.
8055 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8058 * c.opt (-fkeep-inline-dllexport): New switch.
8060 2011-01-12 Richard Guenther <rguenther@suse.de>
8063 * c-common.c (handle_weak_attribute): Warn instead of error
8064 on declaring an inline function weak.
8066 2011-01-05 Tom Tromey <tromey@redhat.com>
8068 * c-common.h (lvalue_error): Update.
8069 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8072 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
8075 * c-objc.h (objc_finish_message_expr): Added argument to
8078 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8080 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8083 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8085 * c-objc.h (objc_maybe_warn_exceptions): New.
8086 * stub-objc.c (objc_maybe_warn_exceptions): New.
8088 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8090 * c-common.h (readonly_error): Declare.
8091 * c-common.c (readonly_error): Define.
8093 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8095 * c-common.h (invalid_indirection_error): Declare.
8096 * c-common.c (invalid_indirection_error): Define.
8098 2010-12-03 Richard Guenther <rguenther@suse.de>
8101 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8102 (pp_c_unary_expression): Likewise.
8103 (pp_c_expression): Likewise.
8105 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8107 * c-common.h (objc_finish_function): New.
8108 (objc_non_volatilized_type): Removed.
8109 (objc_type_quals_match): Removed.
8110 * stub-objc.c (objc_finish_function): New.
8111 (objc_non_volatilized_type): Removed.
8112 (objc_type_quals_match): Removed.
8114 2010-11-30 Joseph Myers <joseph@codesourcery.com>
8116 * c-common.h (parse_optimize_options): Declare.
8117 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8118 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8120 2010-11-29 Joseph Myers <joseph@codesourcery.com>
8122 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8124 * c-pch.c (O_BINARY): Don't define here.
8125 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8127 2010-11-25 Joseph Myers <joseph@codesourcery.com>
8129 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8130 targetm.except_unwind_info.
8132 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8134 * c-opts.c (c_common_handle_option): Pass location to
8135 set_struct_debug_option.
8137 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8139 * c-common.c (visibility_options): Move from ../opts.c.
8140 * c-common.h (struct visibility_flags, visibility_options):
8142 * c-opts.c (finish_options): Rename to c_finish_options.
8143 (c_common_init): Update call to finish_options.
8145 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8148 * c-lex.c (lex_string): Check that each string in an Objective-C
8149 string concat sequence starts with either one or zero '@', and
8150 that there are no spurious '@' signs at the end.
8152 2010-11-20 Joseph Myers <joseph@codesourcery.com>
8154 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8155 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8156 HANDLE_PRAGMA_VISIBILITY.
8157 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8158 HANDLE_PRAGMA_VISIBILITY): Don't define.
8159 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8161 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8166 * c-common.h (keyword_begins_type_specifier): Declare.
8167 (keyword_is_storage_class_specifier): Declare.
8168 (keyword_is_type_qualifier): Declare.
8169 * c-common.c (keyword_begins_type_specifier): New function.
8170 (keyword_is_storage_class_specifier): New function.
8171 (keyword_is_type_qualifier): Declare.
8173 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8176 * c-common.c (in_late_binary_op): Define.
8177 (c_common_truthvalue_conversion): Check in_late_binary_op before
8178 calling c_save_expr.
8179 * c-common.h (in_late_binary_op): Declare.
8181 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8183 * c-opts.c (c_common_handle_option): Update calls to
8184 set_struct_debug_option.
8186 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8188 * c-common.h (objc_declare_protocols): Added additional argument.
8189 * stub-objc.c (objc_declare_protocol): Same change.
8191 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8194 * c-common.h (build_real_imag_expr): Declare.
8195 * c-semantics.c (build_real_imag_expr): Define.
8197 2010-11-17 Joseph Myers <joseph@codesourcery.com>
8199 * c-opts.c (c_common_parse_file): Take no arguments.
8200 * c-common.h (c_common_parse_file): Update prototype.
8202 2010-11-16 Jakub Jelinek <jakub@redhat.com>
8205 * c-common.c (warning_candidate_p): Don't track non-const calls
8208 2010-11-15 Ian Lance Taylor <iant@google.com>
8210 * c-lex.c (init_c_lex): Set macro debug callbacks if
8211 flag_dump_go_spec is set.
8213 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8215 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8216 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8218 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8220 PR preprocessor/45038
8221 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8224 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8226 * c-common.h (c_family_lang_mask): Declare.
8227 * c-opts.c (c_family_lang_mask): Make extern.
8228 * c-pragma.c (handle_pragma_diagnostic): Use
8229 control_warning_option.
8231 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8233 * c-common.c (parse_optimize_options): Update call to
8235 * c-common.h (c_common_handle_option): Update prototype.
8236 * c-opts.c (c_common_handle_option): Take location_t parameter and
8237 pass it to other functions.
8239 2010-11-11 Joseph Myers <joseph@codesourcery.com>
8241 * c-opts.c (warning_as_error_callback): Remove.
8242 (c_common_initialize_diagnostics): Don't call
8243 register_warning_as_error_callback.
8244 (c_common_handle_option): Handle -Werror=normalized= here.
8246 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8248 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8250 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8252 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8253 Remove trailing '.' from diagnostics.
8254 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8256 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8258 * c-common.c (parse_optimize_options): Pass global_dc to
8260 * c-opts.c (c_common_handle_option): Pass &global_options to
8261 set_Wstrict_aliasing.
8262 * c.opt (v): Don't mark Common or document here.
8264 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8267 * c-format.c (format_type): New type gcc_objc_string_format_type.
8268 (valid_stringptr_type_p): New.
8269 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8270 (check_format_string): Pass expected type, use
8271 valid_stringptr_type_p (), check that the format string types are
8272 consistent with the format specification.
8273 (decode_format_attr): Warn if NSString is used outside objective-c.
8274 (format_types_orig): Add NSString.
8276 (format_flags): New.
8277 (check_format_arg): Handle format strings requiring an external parser.
8278 first_target_format_type: New variable.
8279 (handle_format_attribute): Set up first_target_format_type, pass the
8280 expected format arg string type to check_format_string().
8281 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8282 * stub-objc.c (objc_string_ref_type_p): New.
8283 (objc_check_format_arg): New.
8285 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8287 Fixed using the Objective-C 2.0 dot-syntax with class names.
8288 * c-common.h (objc_build_class_component_ref): New.
8289 * stub-objc.c (objc_build_class_component_ref): New.
8291 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8293 * c.opt (Wproperty-assign-default): New option.
8295 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8297 Implemented -fobjc-std=objc1 flag.
8298 * c.opt (fobjc-std=objc1): New option.
8300 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8302 Implemented format and noreturn attributes for Objective-C methods.
8303 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8304 attribute for Objective-C methods.
8306 2010-10-31 Jason Merrill <jason@redhat.com>
8308 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8311 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8313 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8314 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8315 (objc_add_property_declaration): Removed arguments for copies and
8317 (objc_build_getter_call): Renamed to
8318 objc_maybe_build_component_ref.
8319 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8320 (objc_is_property_ref): New.
8321 * c-common.c (c_common_reswords): Removed copies and ivar.
8322 * stub-objc.c (objc_add_property_declaration): Removed arguments
8323 for copies and ivar.
8324 (objc_build_getter_call): Renamed to
8325 objc_maybe_build_component_ref.
8326 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8327 (objc_is_property_ref): New.
8329 2010-10-29 Arnaud Charlet <charlet@adacore.com>
8330 Matthew Gingell <gingell@adacore.com>
8332 * c-ada-spec.c (separate_class_package): New function.
8333 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8334 name of their enclosing package.
8335 (print_ada_declaration): Use separate_class_package.
8337 2010-10-27 Jason Merrill <jason@redhat.com>
8339 * c-common.c (c_common_reswords): Add __is_literal_type.
8340 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8342 * c-common.c (check_case_value): Remove special C++ code.
8344 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8346 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8347 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8349 (objc_add_property_declaration): Added additional arguments.
8350 (objc_property_attribute_kind): Removed.
8351 (objc_set_property_attr): Removed.
8352 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8354 * stub-objc.c (objc_add_property_declaration): Added additional
8356 (objc_set_property_attr): Removed.
8358 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8360 * c-common.h (objc_add_property_variable): Renamed to
8361 objc_add_property_declaration. Added location argument.
8362 * stub-objc.c (objc_add_property_variable): Same change.
8364 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8366 * c-common.h (objc_maybe_printable_name): New.
8367 * stub-objc.c (objc_maybe_printable_name): New.
8369 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8370 Andrew Pinski <pinskia@gmail.com>
8372 * c-common.h (c_common_mark_addressable_vec): Declare.
8373 * c-common.c (c_common_mark_addressable_vec): New function.
8375 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8377 * c-common.h (objc_set_method_type): Removed.
8378 (objc_add_method_declaration): Added boolean argument.
8379 (objc_start_method_definition): Same change.
8380 (objc_build_method_signature): Same change.
8381 * stub-objc.c (objc_set_method_type): Removed.
8382 (objc_add_method_declaration): Added boolean argument.
8383 (objc_start_method_definition): Same change.
8384 (objc_build_method_signature): Same change.
8386 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8388 * c-common.h (finish_file): Removed.
8389 (objc_write_global_declarations): New.
8390 * c-opts.c (c_common_parse_file): Do not call finish_file.
8391 * stub-objc.c (objc_write_global_declarations): New.
8393 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8395 Implemented parsing @synthesize and @dynamic for
8396 Objective-C/Objective-C++.
8397 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8398 (objc_add_synthesize_declaration): New.
8399 (objc_add_dynamic_declaration): New.
8400 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8401 * stub-objc.c (objc_add_synthesize_declaration): New.
8402 (objc_add_dynamic_declaration): New.
8404 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8407 * c-cppbuiltin.c (mode_has_fma): Move function here from
8408 builtins.c. Don't use the fma optab, instead just use the
8409 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8412 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8414 Merge from 'apple/trunk' branch on FSF servers.
8416 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
8419 * c-common.h (objc_non_volatilized_type): New declaration
8420 * stub-objc.c (objc_non_volatilized_type): New stub.
8422 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8424 Merge from 'apple/trunk' branch on FSF servers.
8426 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8429 * c-common.h (objc_diagnose_private_ivar): New decl.
8430 * stub-objc.c (objc_diagnose_private_ivar): New stub.
8432 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8434 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8435 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8436 (objc_ivar_visibility_kind): New enum.
8437 (objc_set_visibility): Adjust prototype to use visibility enum.
8438 * stub-objc.c (objc_set_visibility): Adjust stub to use
8441 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8443 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8444 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8445 has the appropriate fma builtins.
8446 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8448 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8450 merge from FSF apple 'trunk' branch.
8451 2006 Fariborz Jahanian <fjahanian@apple.com>
8453 Radars 4436866, 4505126, 4506903, 4517826
8454 * c-common.c (c_common_resword): Define @property and its attributes.
8455 * c-common.h: Define property attribute enum entries.
8456 (OBJC_IS_PATTR_KEYWORD): New.
8457 (objc_property_attribute_kind): New enum.
8458 Declare objc_set_property_attr (), objc_add_property_variable (),
8459 objc_build_getter_call () and objc_build_setter_call ().
8460 * stub-objc.c (objc_set_property_attr): New stub.
8461 (objc_add_property_variable): Likewise.
8462 (objc_build_getter_call): Likewise.
8463 (objc_build_setter_call) Likewise.
8465 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8467 merge from FSF apple 'trunk' branch.
8468 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
8470 Radar 3803157 (method attributes)
8471 * c-common.c (handle_deprecated_attribute): Recognize
8472 objc methods as valid declarations.
8473 * c-common.h: Declare objc_method_decl ().
8474 * stub-objc.c (objc_method_decl): New stub.
8476 2010-10-08 Joseph Myers <joseph@codesourcery.com>
8478 * c-common.c (parse_optimize_options): Call
8479 decode_cmdline_options_to_array_default_mask before
8480 decode_options. Update arguments to decode_options.
8481 * c-common.h (c_common_init_options_struct): Declare.
8482 * c-opts.c (c_common_init_options_struct): New. Split out from
8483 c_common_init_options.
8485 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8487 Implemented fast enumeration for Objective-C.
8488 * c-common.h (objc_finish_foreach_loop): New.
8489 * stub-objc.c (objc_finish_foreach_loop): New.
8491 2010-10-05 Joseph Myers <joseph@codesourcery.com>
8493 * c-common.h (struct diagnostic_context): Don't declare here.
8494 (c_common_initialize_diagnostics): Declare using
8495 diagnostic_context typedef.
8496 * c-opts.c (c_common_handle_option): Pass global_dc to
8497 handle_generated_option.
8499 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8501 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8502 handle_generated_option.
8504 2010-10-03 Ian Lance Taylor <iant@google.com>
8506 * c.opt (-fplan9-extensions): New option.
8508 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8510 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8512 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8513 of duplicating code.
8515 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8517 * c-common.c: Add two new entries for @optional
8518 and @required keywords.
8520 merge from FSF 'apple/trunk' branch.
8521 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
8524 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8525 objective-c keywords.
8526 (objc_set_method_opt): New declaration.
8527 * stub-objc.c (objc_set_method_opt): New stub.
8529 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8531 * c-common.c (handle_optimize_attribute): Pass &global_options to
8532 cl_optimization_save and cl_optimization_restore.
8533 * c-opts.c (c_common_handle_option): Pass &global_options to
8534 handle_generated_option.
8535 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8536 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8537 &global_options to cl_optimization_restore.
8539 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8541 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8542 Objective-C/Objective-C++ keywords.
8544 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8546 Merge from 'apple/trunk' branch on FSF servers.
8548 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8551 * c-common.h (objc_check_global_decl): New declaration.
8552 * stub-objc.c (objc_check_global_decl): New stub.
8554 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8556 * c.opt: Don't use VarExists.
8558 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8560 * c-common.c (c_cpp_error): Update names of diagnostic_context
8562 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8563 cl_optimization members.
8564 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8565 sanitize_cpp_opts, finish_options): Update names of cpp_options
8568 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8570 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8571 (objc_is_reserved_word): Removed.
8572 * c-common.c: Updated comments.
8573 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8574 objc_is_reserved_word.
8575 * stub-objc.c (objc_is_reserved_word): Removed.
8577 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8579 * c-common.h (objc_add_method_declaration): Adjust prototype to
8581 (objc_start_method_definition): Likewise.
8582 (objc_build_keyword_decl): Likewise.
8583 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8584 (objc_start_method_definition): Likewise.
8585 (objc_build_keyword_decl): Likewise.
8587 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8589 * c-common.h (objc_start_class_interface): Adjust prototype.
8590 (objc_start_category_interface): Likewise.
8591 (objc_start_protocol): Likewise.
8592 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8593 (objc_start_class_interface): Likewise.
8594 (objc_start_category_interface): Likewise.
8596 2010-09-27 Ian Lance Taylor <iant@google.com>
8598 * c-common.c (c_common_attribute_table): Add no_split_stack.
8599 (handle_no_split_stack_attribute): New static function.
8601 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8603 Merge from 'apple/trunk' branch on FSF servers.
8605 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8608 * c-common.h (objc_have_common_type): New declaration.
8609 * stub-objc.c (objc_have_common_type): New stub.
8611 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8614 * c-common.h (objc_common_type): New prototype.
8615 * stub-objc.c (objc_common_type): New stub.
8617 2010-09-24 Jan Hubicka <jh@suse.cz>
8619 * c-common.c (handle_leaf_attribute): New function.
8620 (struct attribute_spec c_common_att): Add leaf.
8622 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8624 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8625 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8626 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8627 -include-barrier, -include-directory, -include-directory=,
8628 -include-directory-after, -include-directory-after=,
8629 -include-prefix, -include-prefix=, -include-with-prefix,
8630 -include-with-prefix=, -include-with-prefix-after,
8631 -include-with-prefix-after=, -include-with-prefix-before,
8632 -include-with-prefix-before=, -no-integrated-cpp,
8633 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8634 -output=, -pedantic, -pedantic-errors, -preprocess,
8635 -print-missing-file-dependencies, -trace-includes, -traditional,
8636 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8637 -user-dependencies, -verbose, -write-dependencies,
8638 -write-user-dependencies, no-integrated-cpp, traditional): New.
8640 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8643 * c-common.h (objc_start_method_definition): Return bool instead
8645 * stub-objc.c (objc_start_method_definition): Return bool instead
8648 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8651 * c-common.h (objc_get_interface_ivars): New declaration.
8652 * stub-objc.c (objc_get_interface_ivars): New stub.
8654 2010-09-15 Ian Lance Taylor <iant@google.com>
8656 * c-common.c (parse_optimize_options): Do not capitalize warning
8657 messages. Remove period at end of warning message.
8659 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8661 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8662 (handle_alias_attribute): ... here.
8663 (handle_ifunc_attribute): New.
8665 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8667 * c-common.h (do_warn_double_promotion): Declare.
8668 * c-common.c (do_warn_double_promotion): Define.
8670 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8672 * c.opt (Wdouble-promotion): New.
8674 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8676 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8677 fvtable-thunks, fxref): Mark no longer supported in help text.
8679 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8681 * c.opt (Wimport, fall-virtual, falt-external-templates,
8682 fdefault-inline, fenum-int-equiv, fexternal-templates,
8683 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8684 fname-mangling-version-, fnew-abi, fnonnull-objects,
8685 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8686 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8688 (fhandle-exceptions): Mark with Alias and Warn.
8689 * c-opts.c (c_common_handle_option): Don't handle options marked
8692 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8694 * c.opt (Wcomments, Werror-implicit-function-declaration,
8695 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8696 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8698 * c-common.c (option_codes): Use OPT_Wcomment instead of
8700 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8701 Don't handle options marked as aliases.
8703 2010-08-25 Richard Guenther <rguenther@suse.de>
8705 * c-common.c (c_common_get_alias_set): Remove special
8706 handling for pointers.
8708 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8710 * c-common.c: Use FOR_EACH_VEC_ELT.
8711 * c-gimplify.c: Likewise.
8712 * c-pragma.c: Likewise.
8714 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8716 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8718 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8720 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8721 instead of OPT_MDX and OPT_MMDX.
8723 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8725 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8727 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8729 * c.opt (MD, MMD): Change to MDX and MMDX.
8730 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8732 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8734 * c-opts.c (c_common_handle_option): Call handle_generated_option
8735 instead of handle_option.
8737 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8739 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8740 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8742 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8744 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8745 (pending_redefine_extname): Change type to a VEC.
8746 (add_to_renaming_pragma_list): Update for new type of
8747 pending_redefine_extname.
8748 (maybe_apply_renaming_pragma): Likewise.
8750 2010-08-04 Arnaud Charlet <charlet@adacore.com>
8752 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8754 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8755 decide whether a type has already been declared/seen.
8756 Do not go to the original type.
8757 (dump_nested_types): New parameter forward.
8758 Generate forward declaration if needed and mark type as visited.
8759 (print_ada_declaration): Call dump_nested_types if not already done.
8760 Mark types as visited.
8762 2010-08-03 Joseph Myers <joseph@codesourcery.com>
8764 * c.opt (-print-pch-checksum): Remove option.
8765 * c-opts.c (c_common_handle_option): Don't handle
8766 OPT_print_pch_checksum.
8768 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8770 * c-common.h (c_common_handle_option): Update prototype and return
8772 * c-opts.c (c_common_handle_option): Update prototype and return
8773 value type. Update calls to handle_option and
8774 enable_warning_as_error.
8776 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8779 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8781 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8783 * c-common.h (c_common_missing_argument): Remove.
8784 * c-opts.c (c_common_missing_argument): Remove.
8785 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8786 idirafter, imacros, include, isysroot, isystem, iquote): Add
8788 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8790 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8792 * c-common.h (c_common_option_lang_mask,
8793 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8795 (c_common_init_options): Update prototype.
8796 * c-opts.c (c_common_option_lang_mask): New.
8797 (c_common_initialize_diagnostics): Split out of
8798 c_common_init_options.
8799 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8801 (c_common_init_options): Update prototype. Use decoded options in
8802 search for -lang-asm.
8804 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8806 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8807 * c-format.c: Likewise.
8809 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8811 * c-common.h: Include diagnostic-core.h. Error if already
8813 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8815 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8817 * c-common.c (IN_GCC_FRONTEND): Do not undef.
8818 Do not include expr.h
8819 (vector_mode_valid_p): Move here.
8821 2010-06-21 DJ Delorie <dj@redhat.com>
8823 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8824 allow these pragmas anywhere.
8826 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8829 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8830 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8831 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8832 ggc_strdup instead of xstrdup.
8834 2010-06-10 Jakub Jelinek <jakub@redhat.com>
8836 * c-cppbuiltin.c: Include cpp-id-data.h.
8837 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8838 (lazy_hex_fp_value): New function.
8839 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8841 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8843 * c-gimplify.c: Do not include tree-flow.h
8845 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8848 * c-common.c: Rename targetm member:
8849 targetm.enum_va_list -> targetm.enum_va_list_p
8851 2010-06-28 Anatoly Sokolov <aesok@post.ru>
8853 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8855 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8857 * c-cppbuiltin.c: Do not include except.h.
8859 2010-06-24 Andi Kleen <ak@linux.intel.com>
8861 * c-common.c (warn_for_omitted_condop): New.
8862 * c-common.h (warn_for_omitted_condop): Add prototype.
8864 2010-06-21 Joseph Myers <joseph@codesourcery.com>
8866 * c.opt (lang-objc): Remove.
8867 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8869 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8871 * c-opts.c: Include "tm_p.h".
8873 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8875 * c-common.c (parse_optimize_options): Update call to
8878 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8880 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8881 new type of types_used_by_cur_var_decl.
8883 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8886 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8887 for C++ standard compliance.
8889 2010-06-16 Jason Merrill <jason@redhat.com>
8891 * c.opt: Add -Wnoexcept.
8893 2010-06-16 Richard Guenther <rguenther@suse.de>
8896 * c-common.c (c_common_truthvalue_conversion): Remove
8897 premature and wrong optimization concering ADDR_EXPRs.
8899 2010-06-15 Arnaud Charlet <charlet@adacore.com>
8901 * c-ada-spec.c (dump_sloc): Remove column info.
8902 (is_simple_enum): New function.
8903 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8904 enum types when relevant.
8906 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8908 * c-common.c (conversion_warning): Warn at expression
8911 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8913 * c-opts.c (c_common_handle_option): Don't handle
8916 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8918 * c-pragma.c (push_alignment): Use typed GC allocation.
8919 (handle_pragma_push_options): Likewise.
8921 * c-common.c (parse_optimize_options): Likewise.
8923 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8926 2010-06-07 Joseph Myers <joseph@codesourcery.com>
8928 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8929 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8930 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8931 flag_signed_bitfields, warn_strict_null_sentinel,
8932 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8933 flag_gen_declaration, flag_no_gnu_keywords,
8934 flag_implement_inlines, flag_implicit_templates,
8935 flag_implicit_inline_templates, flag_optional_diags,
8936 flag_elide_constructors, flag_default_inline, flag_rtti,
8937 flag_conserve_space, flag_access_control, flag_check_new,
8938 flag_new_for_scope, flag_weak, flag_working_directory,
8939 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8940 flag_enforce_eh_specs, flag_threadsafe_statics,
8941 flag_pretty_templates): Remove.
8942 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8943 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8944 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8945 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8946 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8947 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8948 flag_no_gnu_keywords, flag_implement_inlines,
8949 flag_implicit_templates, flag_implicit_inline_templates,
8950 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8951 flag_rtti, flag_conserve_space, flag_access_control,
8952 flag_check_new, flag_new_for_scope, flag_weak,
8953 flag_working_directory, flag_use_cxa_atexit,
8954 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8955 flag_threadsafe_statics, flag_pretty_templates,
8956 warn_strict_null_sentinel): Remove.
8957 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8958 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8959 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8960 fimplicit-inline-templates, fimplicit-templates,
8961 flax-vector-conversions, fms-extensions, fnil-receivers,
8962 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8963 frtti, fshort-double, fshort-enums, fshort-wchar,
8964 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8965 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8966 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8967 gen-decls, undef): Use Var.
8968 (fdefault-inline, foptional-diags): Document as doing nothing.
8969 * c-opts.c (c_common_handle_option): Remove cases for options now
8970 using Var. Mark ignored options as such.
8972 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8974 * c-common.c: Moved to here from parent directory.
8975 * c-common.def: Likewise.
8976 * c-common.h: Likewise.
8977 * c-cppbuiltin.c: Likewise.
8978 * c-dump.c: Likewise.
8979 * c-format.c: Likewise.
8980 * c-format.h : Likewise.
8981 * c-gimplify.c: Likewise.
8982 * c-lex.c: Likewise.
8983 * c-omp.c: Likewise.
8985 * c-opts.c: Likewise.
8986 * c-pch.c: Likewise.
8987 * c-ppoutput.c: Likewise.
8988 * c-pragma.c: Likewise.
8989 * c-pragma.h: Likewise.
8990 * c-pretty-print.c: Likewise.
8991 * c-pretty-print.h: Likewise.
8992 * c-semantics.c: Likewise.
8993 * stub-objc.c: Likewise.
8995 * c-common.c: Include gt-c-family-c-common.h.
8996 * c-pragma.c: Include gt-c-family-c-pragma.h.
8998 Copyright (C) 2010-2018 Free Software Foundation, Inc.
9000 Copying and distribution of this file, with or without modification,
9001 are permitted in any medium without royalty provided the copyright
9002 notice and this notice are preserved.