1 2018-05-26 Jakub Jelinek <jakub@redhat.com>
4 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
5 noinline variable to workaround broken kernel headers.
7 2018-05-18 Jason Merrill <jason@redhat.com>
9 * c.opt (Wdeprecated-copy): New flag.
11 2018-05-17 Martin Liska <mliska@suse.cz>
13 * c-warn.c (overflow_warning): Do not use
14 space in between 'G_' and '('.
16 2018-05-09 Jason Merrill <jason@redhat.com>
18 * c-common.c (valid_array_size_p): Add complain parameter.
19 * c-common.h: ...which defaults to true.
21 2018-05-11 Jakub Jelinek <jakub@redhat.com>
24 * c-omp.c (c_omp_predetermined_sharing): Return
25 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
27 2018-05-11 Martin Liska <mliska@suse.cz>
30 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
33 2018-05-10 Jakub Jelinek <jakub@redhat.com>
36 * c-common.h (fold_offsetof_1): Removed.
37 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
38 CTX argument defaulted to ERROR_MARK.
39 * c-common.c (fold_offsetof_1): Renamed to ...
40 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
41 argument, convert the pointer constant to TYPE and use size_binop
42 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
43 a pointer type. Adjust recursive calls.
45 2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
48 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
50 2018-05-07 Nathan Sidwell <nathan@acm.org>
52 * c.opt (ffor-scope): Remove functionality, issue warning.
54 2018-05-03 Nathan Sidwell <nathan@acm.org>
56 * c.opt (ffriend-injection): Remove functionality, issue warning.
58 2018-05-01 David Malcolm <dmalcolm@redhat.com>
61 * c-format.c (struct format_check_results): Add field
63 (check_format_info): Initialize it, and warn if encountered.
64 (check_format_arg): Distinguish between wide char and
65 everything else when detecting arrays of non-char.
67 2018-04-30 David Malcolm <dmalcolm@redhat.com>
69 * c-format.c (get_corrected_substring): Update for
70 location_get_source_line returning a char_span. Use a char_span
71 when handling the prefix of the correction.
72 * c-indentation.c (get_visual_column): Update for
73 location_get_source_line returning a char_span.
74 (get_first_nws_vis_column): Likewise.
76 2018-03-29 David Malcolm <dmalcolm@redhat.com>
79 * known-headers.cc (get_stdlib_header_for_name): Add various names
80 from <assert.h>, <string.h>, and <memory.h>; add more names from
83 2018-03-27 Jakub Jelinek <jakub@redhat.com>
86 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
87 get_base_address of the second operand is a VAR_P, rather than the
88 operand itself, and use gcc_checking_assert instead of gcc_assert.
90 2018-03-23 Marek Polacek <polacek@redhat.com>
93 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
94 <case RDIV_EXPR>: Tweak condition.
96 2018-03-20 Eric Botcazou <ebotcazou@adacore.com>
98 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
100 2018-03-16 Jakub Jelinek <jakub@redhat.com>
103 * c-warn.c (conversion_warning): Replace "to to" with "to" in
107 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
110 2018-03-16 Richard Biener <rguenther@suse.de>
113 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
114 unshare the possibly folded expression.
116 2018-03-15 Richard Biener <rguenther@suse.de>
119 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
121 2018-03-13 Martin Sebor <msebor@redhat.com>
123 PR tree-optimization/84725
124 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
125 with all three narrow character types, including their qualified forms.
127 2018-03-12 Martin Sebor <msebor@redhat.com>
129 PR tree-optimization/83456
130 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
131 Restore checking of bounded built-in functions.
132 (check_function_arguments): Also return the result
133 of warn_for_restrict.
134 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
135 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
137 2018-03-02 Marek Polacek <polacek@redhat.com>
140 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
143 2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
145 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
148 2018-03-01 Marek Polacek <polacek@redhat.com>
151 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
152 alignment in computation.
154 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
156 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
157 <REAL_TYPE>: Deal specifically with _Float128/__float128.
159 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
161 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
162 (is_char_array): Take a type instead of a declaration.
163 (dump_ada_array_type): Likewise.
164 (is_simple_enum): Minor tweak.
165 (dump_ada_enum_type): New function extracted from...
166 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
167 <INTEGER_TYPE>: Remove unreachable code.
168 <RECORD_TYPE>: Likewise. Minor tweaks.
169 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
170 <ENUMERAL_TYPE>: New case.
171 <RECORD_TYPE>: Factor out common code.
172 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
173 Minor tweaks. Deal with enumeral types.
174 (dump_ada_structure): Minor tweaks.
176 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
178 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
179 address for incomplete structures.
180 (dump_forward_type): Do not bail out for incomplete structures.
181 (dump_ada_declaration): Do not special-case incomplete structures
182 for subtypes. Dump them as null records for types.
184 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
186 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
187 (is_char_array): Fix formatting.
188 (dump_template_types): Likewise.
189 (dump_generic_ada_node): Rename into...
190 (dump_ada_node): ...this.
191 <POINTER_TYPE>: Remove superfluous space. Use generic address for
192 incomplete structures and not for empty structures. Do not use it
193 when forward declarations are needed.
194 (dump_forward_type): New function.
195 (dump_nested_types): Remove FORWARD parameter. Do not consider
196 TREE_VISITED and do not generate a forward declaration. Only dump
197 original nested types for nested declaration.
198 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
199 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
200 <RECORD_TYPE>: Do not consider TREE_VISITED.
201 (dump_ada_declaration): Use booleans and fix formatting throughout.
202 <TYPE_DECL>: Skip incomplete structures and not empty structures.
203 Call dump_forward_type instead of dump_nested_types for a typedef.
204 Remove superfluous check and adjust call to dump_nested_types.
205 <POINTER_TYPE>: Call dump_forward_type and fall through.
206 (dump_ada_struct_decl): Rename into...
207 (dump_ada_structure): ...this. Do not special-case empty structures.
209 2018-02-27 Martin Sebor <msebor@redhat.com>
212 * c.opt (-Wmissing-attributes): New option.
214 2018-02-21 Martin Liska <mliska@suse.cz>
216 * c.opt (Wcatch-value=): Add IntegerRange.
218 2018-02-15 Jason Merrill <jason@redhat.com>
220 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
222 2018-02-09 Nathan Sidwell <nathan@acm.org>
225 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
227 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
230 2018-02-09 Martin Sebor <msebor@redhat.com>
233 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
234 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
235 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
236 (-Wstrict-overflow, -Wsuggest-attribute): Same.
237 (-Wuninitialized): Same.
239 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
241 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
242 keyword for components.
244 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
246 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
248 2018-02-02 Julia Koval <julia.koval@intel.com>
250 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
252 2018-01-29 Marek Polacek <polacek@redhat.com>
255 * c-format.c (check_function_format): Check current_function_decl.
257 2018-01-27 Jakub Jelinek <jakub@redhat.com>
259 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
261 (LAZY_HEX_FP_VALUES_CNT): Define.
262 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
263 values rather than just 12.
264 (builtin_define_with_hex_fp_value): Likewise.
266 2018-01-18 Boris Kolpackov <boris@codesynthesis.com>
269 * c.opt (-fmacro-prefix-map): New option.
270 * c-opts.c (c_common_handle_option): Handle it.
271 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
272 * c-ppoutput.c (init_pp_output): Likewise.
274 2018-01-17 David Malcolm <dmalcolm@redhat.com>
277 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
279 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
281 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
282 Skip 'f' and 'F' characters if it is true.
283 (store_ada_macro): Minor tweak.
284 (dump_ada_macros) <CPP_COMMENT>: Likewise.
285 <CPP_WSTRING>: Likewise.
286 <CPP_STRING>: Output '&' in the buffer if not the first string.
287 <CPP_NUMBER>: Adjust calls to dump_number.
289 2018-01-10 David Malcolm <dmalcolm@redhat.com>
292 * c-common.c: Include "selftest.h".
293 (get_atomic_generic_size): Perform the test for integral type
294 before the range test for any integer constant, fixing indentation
295 of braces. Call fold_for_warn before testing for an INTEGER_CST.
296 (reject_gcc_builtin): Strip any location wrapper from EXPR.
297 (selftest::test_fold_for_warn): New function.
298 (selftest::c_common_c_tests): New function.
299 (selftest::c_family_tests): Call it, and
300 selftest::c_pretty_print_c_tests.
301 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
302 * c-format.c (check_format_arg): Convert VAR_P check to a
304 * c-pretty-print.c: Include "selftest.h".
305 (pp_c_cast_expression): Don't print casts for location wrappers.
306 (selftest::assert_c_pretty_printer_output): New function.
307 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
308 (selftest::test_location_wrappers): New function.
309 (selftest::c_pretty_print_c_tests): New function.
310 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
312 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
313 Alan Hayward <alan.hayward@arm.com>
314 David Sherwood <david.sherwood@arm.com>
316 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
318 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
319 Alan Hayward <alan.hayward@arm.com>
320 David Sherwood <david.sherwood@arm.com>
322 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
325 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
326 Alan Hayward <alan.hayward@arm.com>
327 David Sherwood <david.sherwood@arm.com>
329 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
330 (convert_vector_to_array_for_subscript): Handle polynomial
331 TYPE_VECTOR_SUBPARTS.
332 (c_common_type_for_mode): Check valid_vector_subparts_p.
333 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
336 2018-01-03 Jakub Jelinek <jakub@redhat.com>
338 Update copyright years.
340 2017-12-22 Mike Stump <mikestump@comcast.net>
341 Eric Botcazou <ebotcazou@adacore.com>
343 * c-pragma.c (init_pragma): Register pragma GCC unroll.
344 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
346 2017-12-22 Alexandre Oliva <aoliva@redhat.com>
350 * c-semantics.c (only_debug_stmts_after_p): New.
351 (pop_stmt_list): Clear side effects in debug-only stmt list.
352 Check for single nondebug stmt followed by debug stmts only.
354 2017-12-21 Alexandre Oliva <aoliva@redhat.com>
357 * c-semantics.c (pop_stmt_list): Propagate side effects from
358 single nondebug stmt to container list.
360 2017-12-19 Jakub Jelinek <jakub@redhat.com>
362 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
363 conditions with typical order conditions.
365 2017-12-18 Marek Polacek <polacek@redhat.com>
367 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
370 2017-12-17 Martin Sebor <msebor@redhat.com>
372 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
373 an error for attribute warn_if_not_aligned.
375 2017-12-16 Martin Sebor <msebor@redhat.com>
377 PR tree-optimization/78918
378 * c-common.c (check_function_restrict): Avoid checking built-ins.
379 * c.opt (-Wrestrict): Include in -Wall.
381 2017-12-15 Jakub Jelinek <jakub@redhat.com>
383 * c-attribs.c (c_common_attribute_table,
384 c_common_format_attribute_table): Swap affects_type_identity
385 and handler fields, adjust comments.
387 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
389 * c.opt (Wcast-function-type): New warning option.
390 * c-lex.c (get_fileinfo): Avoid warning.
391 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
393 2017-12-14 Qing Zhao <qing.zhao@oracle.com>
396 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
397 Adjust the size of buf1 and buf2, add a new buf to avoid
398 format-overflow warning.
400 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
402 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
403 subsequent statement list.
405 2017-12-07 Martin Sebor <msebor@redhat.com>
409 * c-attribs.c (attr_aligned_exclusions): New array.
410 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
411 (attr_common_exclusions, attr_const_pure_exclusions): Same.
412 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
413 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
414 (attr_warn_unused_result_exclusions): Same.
415 (handle_hot_attribute, handle_cold_attribute): Simplify.
416 (handle_const_attribute): Warn on function returning void.
417 (handle_pure_attribute): Same.
418 (handle_aligned_attribute): Diagnose conflicting attribute
420 * c-warn.c (diagnose_mismatched_attributes): Simplify.
422 2017-12-06 David Malcolm <dmalcolm@redhat.com>
425 * c-common.c (selftest::c_family_tests): Call
426 selftest::c_spellcheck_cc_tests.
427 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
428 * c-spellcheck.cc: Include "selftest.h".
429 (name_reserved_for_implementation_p): New function.
430 (should_suggest_as_macro_p): New function.
431 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
432 should_suggest_as_macro_p and call it.
433 (selftest::test_name_reserved_for_implementation_p): New function.
434 (selftest::c_spellcheck_cc_tests): New function.
435 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
437 2017-12-06 David Malcolm <dmalcolm@redhat.com>
439 * c-spellcheck.cc: New file, taken from macro-handling code in
441 * c-spellcheck.h: New file, taken from macro-handling code in
444 2017-12-01 Jakub Jelinek <jakub@redhat.com>
446 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
448 (handle_simd_attribute): Don't check for "cilk simd function"
449 attribute. Reindent, formatting changes.
451 2017-11-30 Julia Koval <julia.koval@intel.com>
453 * c-common.h (inv_list): Remove.
455 2017-11-28 Jakub Jelinek <jakub@redhat.com>
458 * c-common.c (c_switch_covers_all_cases_p_1,
459 c_switch_covers_all_cases_p): New functions.
460 * c-common.h (c_switch_covers_all_cases_p): Declare.
462 2017-11-28 Julia Koval <julia.koval@intel.com>
463 Sebastian Peryt <sebastian.peryt@intel.com>
465 * array-notation-common.c: Delete.
466 * c-cilkplus.c: Ditto.
467 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
468 * c-common.def (ARRAY_NOTATION_REF): Remove.
469 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
470 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
471 c_validate_cilk_plus_loop, cilkplus_an_parts,
472 cilk_ignorable_spawn_rhs_op,
473 cilk_recognize_spawn): Remove.
474 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
475 * c-omp.c: Remove CILK_SIMD check.
477 * c-pragma.h: Remove CILK related pragmas.
478 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
479 ARRAY_NOTATION_REF condition.
480 (c_pretty_printer::expression): Ditto.
481 * c.opt (fcilkplus): Remove.
484 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
486 * c-pretty-print.c (pp_c_additive_expression,
487 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
489 2017-11-21 Jakub Jelinek <jakub@redhat.com>
491 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
494 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
495 instead of tree_to_uhwi, formatting fix.
497 2017-11-20 David Malcolm <dmalcolm@redhat.com>
500 * known-headers.cc: New file, based on material from c/c-decl.c.
501 (suggest_missing_header): Copied as-is.
502 (get_stdlib_header_for_name): New, based on get_c_name_hint but
503 heavily edited to add C++ support. Add some knowledge about
504 <limits.h>, <stdint.h>, and <wchar.h>.
505 * known-headers.h: Likewise.
507 2017-11-20 David Malcolm <dmalcolm@redhat.com>
509 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
510 (lookup_name_fuzzy): Likewise. Convert return type from
511 const char * to name_hint. Add location_t param.
512 * name-hint.h: New header.
514 2017-11-19 Jakub Jelinek <jakub@redhat.com>
518 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
520 2017-11-16 Joseph Myers <joseph@codesourcery.com>
522 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
523 expected publication date of C17.
524 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
526 2017-11-15 Joseph Myers <joseph@codesourcery.com>
529 * c-common.c (c_common_reswords): Add __builtin_tgmath.
530 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
532 2017-11-10 Martin Sebor <msebor@redhat.com>
535 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
536 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
537 * c.opt (-Wstringop-truncation): New option.
539 2017-11-06 Martin Liska <mliska@suse.cz>
542 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
544 * c.opt: Set default value of warn_return_type.
546 2017-10-31 David Malcolm <dmalcolm@redhat.com>
548 * c-common.c (binary_op_error): Update for renaming of
550 (c_parse_error): Likewise.
551 * c-warn.c (warn_logical_not_parentheses): Likewise for
552 renaming of inform_at_rich_loc.
553 (warn_for_restrict): Likewise for renaming of
554 warning_at_rich_loc_n.
556 2017-10-30 Joseph Myers <joseph@codesourcery.com>
558 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
559 * c-opts.c (set_std_c17): New function.
560 (c_common_init_options): Use gnu17 as default C version.
561 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
563 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
565 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
566 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
567 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
570 2017-10-23 Marek Polacek <polacek@redhat.com>
573 * c-warn.c (warnings_for_convert_and_check): Fix typos.
575 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
577 * c-common.c (check_builtin_function_arguments): Also check arguments
578 of __builtin_alloca_with_align_and_max.
580 2017-10-17 David Malcolm <dmalcolm@redhat.com>
582 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
583 rather than NULL to format_warning_va.
584 (check_format_types): Likewise when calling format_type_warning.
585 Remove code to extract source_ranges and source_range * in favor
586 of just a location_t.
587 (format_type_warning): Convert source_range * param to a
590 2017-10-13 Jakub Jelinek <jakub@redhat.com>
592 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
595 2017-10-12 David Malcolm <dmalcolm@redhat.com>
597 * c-common.c (enum missing_token_insertion_kind): New enum.
598 (get_missing_token_insertion_kind): New function.
599 (maybe_suggest_missing_token_insertion): New function.
600 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
602 2017-10-11 Nathan Sidwell <nathan@acm.org>
604 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
605 (c_common_handle_option): Update incpath_kind names.
607 2017-10-11 Martin Liska <mliska@suse.cz>
610 * c-attribs.c (handle_no_sanitize_attribute): Report directly
613 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
615 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
616 operating on trees as wide_ints.
617 * c-common.c (pointer_int_sum): Likewise.
618 * c-pretty-print.c (pp_c_integer_constant): Likewise.
619 * c-warn.c (match_case_to_enum_1): Likewise.
620 (c_do_switch_warnings): Likewise.
621 (maybe_warn_shift_overflow): Likewise.
623 2017-10-10 Jakub Jelinek <jakub@redhat.com>
626 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
627 instead of wide_int::from.
629 2017-10-06 Jakub Jelinek <jakub@redhat.com>
632 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
633 using to_widest use wide_int with the larger of the two precisions.
635 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
637 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
640 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
642 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
643 when combining the original unconverted comparison operands.
645 2017-09-29 Jakub Jelinek <jakub@redhat.com>
647 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
650 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
652 * c-ada-spec.c (to_ada_name): Add index parameter.
653 (pp_ada_tree_identifier): Likewise.
654 (dump_ada_macros): Adjust call to to_ada_name.
655 (struct overloaded_name_hash): New type.
656 (struct overloaded_name_hasher): Likewise.
657 (overloaded_names): New hash table.
658 (compute_overloading_index): New function.
659 (dump_ada_decl_name): Call it and pass the result to
660 pp_ada_tree_identifier.
661 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
662 (dump_ada_function_declaration): Likewise.
663 (dump_generic_ada_node): Likewise.
664 (print_constructor): Likewise.
665 (print_destructor): Likewise.
666 (dump_ada_specs): Delete overloaded_names table.
668 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
670 * c-ada-spec.c (max_ada_macros): Move around.
671 (store_ada_macro_index): Likewise.
672 (source_file): Rename into...
673 (macro_source_file): ...this.
674 (count_ada_macro): Move around.
675 (store_ada_macro): Likewise.
676 (compare_macro): Likewise.
677 (print_ada_macros): Merge in...
678 (dump_ada_macros): ...this.
679 (source_file_base): Rename into...
680 (current_source_file): ...this.
681 (print_comment): Move around.
682 (dump_ada_nodes): Call dump_ada_declaration directly.
683 (struct with): Change type of limited field to bool.
684 (append_withs): Change type of limited_access parameter to bool.
685 (pp_ada_tree_identifie): Likewise.
686 (dump_ada_decl_nam): Likewise.
687 (dump_generic_ada_node): Likewise. Do not print the return type.
688 (to_ada_name): Change type of space_found parameter to bool.
689 (dump_ada_function_declaration): Return void and change type of
690 parameters to bool. Also print the return type for a function.
691 (print_ada_methods): Rename into...
692 (dump_ada_methods): ...this.
693 (print_ada_declaration): Rename into ...
694 (dump_ada_declaration): ...this. Do not print the return type.
695 (print_ada_struct_decl): Rename into...
696 (dump_ada_struct_decl): ...this.
698 2017-09-29 Jakub Jelinek <jakub@redhat.com>
700 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
701 rather than DECL_INITIAL.
702 (common_handle_aligned_attribute): Likewise.
704 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
706 * c.opt (gen-decls): Add RejectNegative.
708 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
709 Jakub Jelinek <jakub@redhat.com>
711 Add support for -std=c++2a.
712 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
713 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
714 * c-opts.c (set_std_cxx2a): New.
715 (c_common_handle_option): Set options when -std=c++2a is enabled.
716 (c_common_post_options): Adjust comments.
717 (set_std_cxx14, set_std_cxx17): Likewise.
719 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
721 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
722 message for non-uniform endianness and issue a warning in C++.
724 2017-09-15 Jakub Jelinek <jakub@redhat.com>
726 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
727 (Wc++17-compat): Change from undocumented alias to option.
728 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
729 change C++1z to C++17 in description.
730 (std=c++1z, std=gnu++1z): Change from option to undocumented
732 (std=c++17, std=gnu++17): Change from undocumented alias to option.
734 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
735 * c-opts.c (set_std_cxx1z): Rename to ...
736 (set_std_cxx17): ... this.
737 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
738 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
740 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
743 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
745 * c-attribs.c (common_handle_aligned_attribute): Don't warn
746 function alignment if warn_if_not_aligned_p is true.
748 2017-09-12 Nathan Sidwell <nathan@acm.org>
750 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
751 resort_sorted_fields): Move to c/c-decl.c.
752 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
753 (struct sorted_fields_type): Move to c/c-lang.h.
755 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
758 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
760 2017-09-04 Marek Polacek <polacek@redhat.com>
763 * c-warn.c (warn_tautological_bitwise_comparison): New function.
764 (warn_tautological_cmp): Call it.
766 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
768 * c-opts.c (c_common_finish): Write dependency information even if
771 2017-09-01 Jakub Jelinek <jakub@redhat.com>
774 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
775 (omp_pragmas_simd): ... here.
776 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
777 create new clauses list containing just simd clause.
779 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
780 Alan Hayward <alan.hayward@arm.com>
781 David Sherwood <david.sherwood@arm.com>
783 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
784 into scalar_mode_supported_p call.
785 (handle_mode_attribute): Update call to scalar_mode_supported_p.
787 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
788 Alan Hayward <alan.hayward@arm.com>
789 David Sherwood <david.sherwood@arm.com>
791 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
792 for the mode iterator.
794 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
795 Alan Hayward <alan.hayward@arm.com>
796 David Sherwood <david.sherwood@arm.com>
798 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
799 * c-common.c (c_build_vec_perm_expr): Likewise.
801 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
802 Alan Hayward <alan.hayward@arm.com>
803 David Sherwood <david.sherwood@arm.com>
805 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
807 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
808 Alan Hayward <alan.hayward@arm.com>
809 David Sherwood <david.sherwood@arm.com>
811 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
812 before calling targetm.addr_space.valid_pointer_mode.
814 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
815 Alan Hayward <alan.hayward@arm.com>
816 David Sherwood <david.sherwood@arm.com>
818 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
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 new mode
826 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
828 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
829 Alan Hayward <alan.hayward@arm.com>
830 David Sherwood <david.sherwood@arm.com>
832 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
835 2017-08-29 Martin Liska <mliska@suse.cz>
838 * c-common.c (parse_optimize_options): Add argument to function
840 * c-pragma.c (handle_pragma_diagnostic): Likewise.
842 2017-08-24 David Malcolm <dmalcolm@redhat.com>
844 * c-lex.c (interpret_float): Use token location
845 when building an EXCESS_PRECISION_EXPR.
847 2017-08-21 David Malcolm <dmalcolm@redhat.com>
849 * c-common.c (check_function_arguments): Add "arglogs" param; pass
850 it to check_function_format.
851 * c-common.h (check_function_arguments): Add vec<location_t> *
853 (check_function_format): Likewise.
854 * c-format.c (struct format_check_context): Add field "arglocs".
855 (check_function_format): Add param "arglocs"; pass it to
857 (check_format_info): Add param "arglocs"; use it to initialize
858 new field of format_ctx.
859 (check_format_arg): Pass format_ctx->arglocs to new param of
860 check_format_info_main.
861 (class argument_parser): New field "arglocs".
862 (argument_parser::argument_parser): Add "arglocs_" param and use
863 it to initialize new field.
864 (argument_parser::check_argument_type): Pass new arglocs field to
866 (check_format_info_main): Add param "arglocs", and use it when
867 constructing arg_parser.
868 (check_format_types): Add param "arglocs"; use it if non-NULL when
869 !EXPR_HAS_LOCATION (cur_param) to get at location information.
871 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
874 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
875 (c_common_attribute_table): Add warn_if_not_aligned.
876 (handle_aligned_attribute): Renamed to ...
877 (common_handle_aligned_attribute): Remove argument, name, and add
878 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
879 (handle_aligned_attribute): New.
880 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
882 2017-08-14 Martin Sebor <msebor@redhat.com>
885 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
886 (handle_nonstring_attribute): New function.
888 2017-08-14 Martin Sebor <msebor@redhat.com>
891 * c-format.h (T89_G): New macro.
892 * c-format.c (local_gcall_ptr_node): New variable.
893 (init_dynamic_diag_info): Initialize it.
895 2017-08-11 Martin Liska <mliska@suse.cz>
897 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
898 TARGET_SUPPORTS_ALIASES.
900 2017-08-10 David Malcolm <dmalcolm@redhat.com>
902 * c-common.c (c_parse_error): Add rich_location * param, using it
903 rather implicitly using input_location.
904 * c-common.h (c_parse_error): Add rich_location * param.
906 2017-08-09 Marek Polacek <polacek@redhat.com>
908 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
909 (c_common_truthvalue_conversion): Likewise.
910 * c-omp.c (c_finish_omp_atomic): Likewise.
911 * c-common.h (build_binary_op): Update declaration.
913 2017-08-08 Martin Liska <mliska@suse.cz>
915 * c-ada-spec.c: Include header files.
916 * c-ubsan.c: Likewise.
917 * c-warn.c: Likewise.
919 2017-08-07 Jakub Jelinek <jakub@redhat.com>
922 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
924 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
926 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
927 (print_ada_methods): Likewise.
928 (print_ada_declaration): Likewise.
930 2017-08-07 Martin Liska <mliska@suse.cz>
932 * array-notation-common.c: Add new includes.
933 * c-format.c( handle_format_attribute): Canonicalize a format
935 * c-lex.c (c_common_has_attribute): Canonicalize name of an
937 * c-pretty-print.c: Add new include.
939 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
941 * c-ada-spec.c (has_static_fields): Look only into variables.
942 (print_constructor): Add TYPE parameter and use it for the name.
943 (print_destructor): Likewise.
944 (print_ada_declaration): Adjust to new constructor/destructor names.
945 Adjust calls to print_constructor and print_destructor.
946 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
947 Look only into variables in the final loop.
949 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
951 * c-ada-spec.c (has_static_fields): Look only into fields.
952 (dump_generic_ada_node): Small tweak.
953 (dump_nested_types): Look only into fields.
954 (print_ada_declaration): Look only into methods. Small tweak.
955 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
957 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
959 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
960 (dump_ada_function_declaration): Likewise.
961 (dump_generic_ada_node): Likewise.
962 (print_ada_declaration): Add support for const-qualified variables.
964 2017-07-31 Martin Liska <mliska@suse.cz>
967 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
968 Guard condition with flag_sanitize_p also with current_function_decl
970 (ubsan_maybe_instrument_reference_or_call): Likewise.
972 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
974 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
976 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
978 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
980 (print_ada_declaration): Add missing guard for record types.
982 2017-07-27 Jakub Jelinek <jakub@redhat.com>
985 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
986 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
987 new COMPOUND_EXPRs around the rhs of the comparison.
989 2017-07-27 Marek Polacek <polacek@redhat.com>
992 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
995 2017-07-27 Jakub Jelinek <jakub@redhat.com>
997 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
998 (handle_noipa_attribute): New function.
1000 2017-07-07 Torsten Duwe <duwe@suse.de>
1002 * c-attribs.c (c_common_attribute_table): Add entry for
1003 "patchable_function_entry".
1005 2017-07-20 Nathan Sidwell <nathan@acm.org>
1007 Remove TYPE_METHODS.
1008 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1009 dump_ada_template, print_ada_methods,
1010 print_ada_declaration): Member fns are on TYPE_FIELDS.
1012 2017-07-18 Nathan Sidwell <nathan@acm.org>
1014 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1016 2017-07-14 David Malcolm <dmalcolm@redhat.com>
1018 * c-common.c (try_to_locate_new_include_insertion_point): New
1020 (per_file_includes_t): New typedef.
1021 (added_includes_t): New typedef.
1022 (added_includes): New variable.
1023 (maybe_add_include_fixit): New function.
1024 * c-common.h (maybe_add_include_fixit): New decl.
1026 2017-07-10 Martin Sebor <msebor@redhat.com>
1029 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1031 2017-07-06 David Malcolm <dmalcolm@redhat.com>
1033 * c-common.c (selftest::c_family_tests): New.
1034 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1035 (selftest::c_family_tests): New decl.
1037 2017-07-04 Marek Polacek <polacek@redhat.com>
1040 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1043 2017-07-04 Marek Polacek <polacek@redhat.com>
1045 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1047 2017-06-28 Martin Liska <mliska@suse.cz>
1050 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1051 to a function declaration.
1053 2017-06-28 Martin Liska <mliska@suse.cz>
1056 * c.opt: Add IntegerRange to various options.
1058 2017-06-26 Marek Polacek <polacek@redhat.com>
1061 * c-common.h (warn_for_multistatement_macros): Declare.
1062 * c-warn.c: Include "c-family/c-indentation.h".
1063 (warn_for_multistatement_macros): New function.
1064 * c.opt (Wmultistatement-macros): New option.
1065 * c-indentation.c (guard_tinfo_to_string): No longer static.
1066 Change the parameter type to "enum rid". Handle RID_SWITCH.
1067 * c-indentation.h (guard_tinfo_to_string): Declare.
1069 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1071 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1073 2017-06-15 Martin Sebor <msebor@redhat.com>
1076 * c.opt (-Wclass-memaccess): New option.
1078 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1080 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1082 2017-06-13 Marek Polacek <polacek@redhat.com>
1085 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1088 2017-06-13 Martin Liska <mliska@suse.cz>
1091 * c-attribs.c (add_no_sanitize_value): New function.
1092 (handle_no_sanitize_attribute): Likewise.
1093 (handle_no_sanitize_address_attribute): Use the function.
1094 (handle_no_sanitize_thread_attribute): New function.
1095 (handle_no_address_safety_analysis_attribute): Use
1096 add_no_sanitize_value.
1097 (handle_no_sanitize_undefined_attribute): Likewise.
1098 * c-common.h: Declare new functions.
1099 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1100 (ubsan_instrument_shift): Likewise.
1101 (ubsan_instrument_bounds): Likewise.
1102 (ubsan_maybe_instrument_array_ref): Likewise.
1103 (ubsan_maybe_instrument_reference_or_call): Likewise.
1105 2017-06-11 Jason Merrill <jason@redhat.com>
1107 * c-ada-spec.c, c-pragma.c: Use id_equal.
1109 2017-06-04 Marek Polacek <polacek@redhat.com>
1112 * c-format.c (matching_type_p): Return false if any of the types
1113 requires structural equality.
1115 2017-06-02 Martin Sebor <msebor@redhat.com>
1118 * c-warn.c (conversion_warning): Use -Wconversion for integer
1119 conversion and -Wfloat-conversion for floating one.
1121 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1123 * c.opt (Wsizeof-pointer-div): New warning option.
1125 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1127 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1128 (Wcatch-value=1): Enable by -Wall.
1130 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1132 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1134 * c.opt (fdiagnostics-show-template-tree): New option.
1135 (felide-type): New option.
1137 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1139 * c.opt (Wcatch-value=): New C++ warning flag.
1141 2017-05-24 Nathan Sidwell <nathan@acm.org>
1143 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1144 const casts to avoid warning.
1146 2017-05-24 Martin Sebor <msebor@redhat.com>
1149 * c-common.h (unsafe_conversion_p): Add a function argument.
1150 * c-common.c (unsafe_conversion_p): Same.
1151 Add type names and values to diagnostics.
1152 (scalar_to_vector): Adjust.
1153 * c-warn.c (constant_expression_error): Add a function argument.
1154 Add type names and values to diagnostics.
1155 (conversion_warning): Add a function argument.
1156 Add type names and values to diagnostics.
1157 (warnings_for_convert_and_check): Same.
1159 2017-05-19 Jason Merrill <jason@redhat.com>
1161 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1164 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1166 * c-format.c (locus): Move out of function scope,
1169 2017-05-19 Nathan Sidwell <nathan@acm.org>
1171 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1172 (c_common_parse_file): Remove class dump handling.
1173 (get_dump_info): Likewise.
1175 2017-05-19 Richard Biener <rguenther@suse.de>
1178 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1179 to alias-set zero memory.
1181 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1183 * c-format.c (local_tree_type_node): Add GTY attribute.
1185 2017-05-18 Marek Polacek <polacek@redhat.com>
1187 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1188 (c_common_fixed_point_type_for_size): Likewise.
1189 (c_common_type_for_mode): Likewise.
1190 (shorten_compare): Likewise.
1191 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1192 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1194 2017-05-18 Marek Polacek <polacek@redhat.com>
1196 * c-common.c (self_promoting_args_p): Change the return type to bool.
1197 Use false/true instead of 0/1.
1198 * c-common.h (self_promoting_args_p): Update.
1200 2017-05-17 Marek Polacek <polacek@redhat.com>
1202 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1203 * c-warn.c: Likewise.
1205 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1207 Implement new C++ intrinsics __is_assignable and __is_constructible.
1208 * c-common.c (__is_assignable, __is_constructible): New.
1209 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1211 2017-05-17 Martin Liska <mliska@suse.cz>
1213 * c-common.h: Introduce dump_flags_t type and
1214 use it instead of int type.
1215 * c-gimplify.c (c_genericize): Likewise.
1216 * c-opts.c: Likewise.
1218 2017-05-17 Marek Polacek <polacek@redhat.com>
1220 * c-common.c (c_save_expr): Remove.
1221 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1222 * c-common.h (c_save_expr): Remove declaration.
1224 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1227 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1228 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1229 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1230 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1232 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1234 2017-05-09 Marek Polacek <polacek@redhat.com>
1237 * c-warn.c (unwrap_c_maybe_const): New.
1238 (warn_logical_operator): Call it.
1240 2017-05-09 Nathan Sidwell <nathan@acm.org>
1242 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1243 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1245 2017-05-08 Martin Sebor <msebor@redhat.com>
1247 PR translation/80280
1248 * c-format.h (struct format_flag_spec): Add new member.
1250 * c-format.c (local_tree_type_node): New global.
1251 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1252 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1253 (strfmon_flag_specs): Likewise.
1254 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1255 with distinct quoting properties.
1256 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1257 (flag_chars_t::validate): Add argument and handle bad quoting.
1258 (check_format_info_main): Handle quoting problems.
1259 (init_dynamic_diag_info): Simplify.
1261 2017-05-08 Jason Merrill <jason@redhat.com>
1263 * c-opts.c (c_common_post_options): Update defaults for
1264 flag_abi_version and flag_abi_compat_version.
1266 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1268 * c-common.c (c_cpp_error): Replace report_diagnostic
1269 with diagnostic_report_diagnostic.
1271 2017-05-04 Martin Sebor <msebor@redhat.com>
1273 PR translation/80280
1274 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1275 (handle_weakref_attribute): Same.
1277 2017-05-03 Nathan Sidwell <nathan@acm.org>
1279 Canonicalize canonical type hashing
1280 * c-common.c (complete_array_type): Use type_hash_canon.
1282 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1285 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1287 (cilk_install_body_pedigree_operations): Likewise.
1288 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1290 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1291 (cilk_install_body_pedigree_operations): Likewise.
1292 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1295 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1298 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1299 flag on non-aggregate element types.
1301 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1303 * c-common.c (c_type_hasher, type_hash_table): Remove.
1304 (c_common_get_alias_set): Remove unreachable code.
1305 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1307 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1309 * c.opt (Wextra-semi): New C++ warning flag.
1311 2017-04-20 Jakub Jelinek <jakub@redhat.com>
1314 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1316 2017-04-18 Jakub Jelinek <jakub@redhat.com>
1320 * c-common.c (c_common_type_for_mode): Don't handle
1321 widest_*_literal_type_node here.
1322 c_common_signed_or_unsigned_type): Likewise.
1323 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1324 to *intTI_type_node or *intDI_type_node depending on whether
1325 TImode is supported by the target or not.
1327 2017-04-10 Martin Liska <mliska@suse.cz>
1330 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1331 doing an UBSAN check.
1333 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1335 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1337 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1340 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1342 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1343 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1346 2017-03-31 David Malcolm <dmalcolm@redhat.com>
1348 PR documentation/78732
1349 * c.opt (Wendif-labels): Fix description to refer to
1350 #else rather than #elif.
1352 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1355 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1356 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1358 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1361 * c-common.c (c_common_mark_addressable_vec): Don't set
1362 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1364 2017-03-21 Martin Sebor <msebor@redhat.com>
1367 * c-common.c (set_underlying_type): Mark type used only when
1368 original del is declared unused.
1370 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1372 PR translation/79848
1373 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1376 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1379 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1380 from inform's message, so that xgettext can locate it.
1382 2017-03-09 Marek Polacek <polacek@redhat.com>
1386 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1387 conversion to the attribute list.
1389 2017-03-09 Martin Liska <mliska@suse.cz>
1391 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1393 2017-03-03 Jason Merrill <jason@redhat.com>
1395 * c.opt (Wnoexcept-type): New.
1397 2017-03-02 Richard Biener <rguenther@suse.de>
1400 * c-common.c (c_common_mark_addressable_vec): Look through
1403 2017-02-28 Martin Liska <mliska@suse.cz>
1405 * c.opt: Replace space with tabular for options of <number>
1408 2017-02-28 Martin Liska <mliska@suse.cz>
1410 * c.opt: Fix --help=option -Q for options which are of
1413 2017-02-24 Jakub Jelinek <jakub@redhat.com>
1416 * c-common.c (check_function_restrict): New function.
1417 (check_function_arguments): Add FNDECL argument. Call
1418 check_function_restrict if -Wrestrict.
1419 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1420 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1421 * c-common.h (check_function_arguments): Add FNDECL argument.
1422 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1424 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1426 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1427 treatment of parameters with pointer-to-tagged type and tidy up.
1428 (print_ada_methods): Remove the special treatment of C++ static member
1431 2017-02-22 Martin Liska <mliska@suse.cz>
1433 * c.opt: Replace inequality signs with square brackets
1436 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1439 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1442 2017-02-17 Joseph Myers <joseph@codesourcery.com>
1444 * c-cppbuiltin.c (builtin_define_float_constants): Define
1445 __DECIMAL_DIG__ to the value for long double.
1447 2017-02-15 Marek Polacek <polacek@redhat.com>
1450 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1451 conversion has occured.
1453 2017-01-24 David Malcolm <dmalcolm@redhat.com>
1455 * c-common.c (c_common_reswords): Add "__RTL".
1456 * c-common.h (enum rid): Add RID_RTL.
1458 2017-01-20 Marek Polacek <polacek@redhat.com>
1461 * c-common.h (do_warn_duplicated_branches_r): Declare.
1462 * c-gimplify.c (c_genericize): Walk the function tree calling
1463 do_warn_duplicated_branches_r.
1464 * c-warn.c (expr_from_macro_expansion_r): New.
1465 (do_warn_duplicated_branches): New.
1466 (do_warn_duplicated_branches_r): New.
1467 * c.opt (Wduplicated-branches): New option.
1469 2017-01-17 David Malcolm <dmalcolm@redhat.com>
1472 * c-indentation.c (warn_for_misleading_indentation): Use the past
1473 subjunctive in the note.
1475 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
1478 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1479 start type to integer_type.
1481 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1484 * c.opt (gen-decls): Add Driver flag.
1486 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1489 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1492 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1494 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1497 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1499 2017-01-12 Martin Sebor <msebor@redhat.com>
1501 (-Wformat-overflow): ...to this.
1503 2017-01-11 Martin Sebor <msebor@redhat.com>
1506 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1507 Also enable for LTO.
1509 2017-01-10 Jason Merrill <jason@redhat.com>
1511 Implement P0195R2, C++17 variadic using.
1512 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1514 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1516 PR translation/79019
1517 PR translation/79020
1518 * c.opt (Wnormalized=): Fix typo in description.
1520 2017-01-08 Martin Sebor <msebor@redhat.com>
1523 * c.opt (-Wformat-truncation): New option.
1525 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
1527 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1528 value to unsigned short to fit in 4 hex digits without
1531 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1533 * c.opt (fsso-struct): Add 'native' value.
1535 2017-01-05 Martin Liska <mliska@suse.cz>
1538 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1541 2017-01-04 Marek Polacek <polacek@redhat.com>
1544 * c.opt (Wpointer-compare): New option.
1546 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1549 * c.opt (fsso-struct=): Add RejectNegative.
1551 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1553 Update copyright years.
1555 2016-12-29 Martin Liska <mliska@suse.cz>
1558 * c.opt (strong-eval-order): Add RejectNegative keyword.
1560 2016-12-22 Jason Merrill <jason@redhat.com>
1562 Implement P0522R0, matching of template template arguments.
1563 * c-cppbuiltin.c (c_cpp_builtins): Define
1564 __cpp_template_template_args.
1566 2016-12-21 Jakub Jelinek <jakub@redhat.com>
1569 * c-common.c (struct nonnull_arg_ctx): New type.
1570 (check_function_nonnull): Return bool instead of void. Use
1571 nonnull_arg_ctx as context rather than just location_t.
1572 (check_nonnull_arg): Adjust for the new context type, set
1573 warned_p to true if a warning has been diagnosed.
1574 (check_function_arguments): Return bool instead of void.
1575 * c-common.h (check_function_arguments): Adjust prototype.
1577 2016-12-21 Jason Merrill <jason@redhat.com>
1579 * c.opt (-fnew-ttp-matching): New flag.
1580 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1582 2016-12-14 Martin Jambor <mjambor@suse.cz>
1584 * c-omp.c: Include omp-general.h instead of omp-low.h.
1585 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1588 2016-12-14 Martin Sebor <msebor@redhat.com>
1591 * c-common.c (check_nonnull_arg): Disable when optimization
1594 2016-12-12 Marek Polacek <polacek@redhat.com>
1597 * c-common.c (attribute_fallthrough_p): Return false for
1600 2016-12-08 Martin Sebor <msebor@redhat.com>
1603 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1605 2016-12-08 Martin Sebor <msebor@redhat.com>
1608 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1611 2016-12-07 Martin Sebor <msebor@redhat.com>
1617 * c.opt (-Wstringop-overflow): New option.
1619 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1621 * c-attribs.c (asan odr indicator): New attribute.
1622 (handle_asan_odr_indicator_attribute): New function.
1624 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1626 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1629 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1631 * c-common.c (excess_precision_mode_join): New.
1632 (c_ts18661_flt_eval_method): New.
1633 (c_c11_flt_eval_method): Likewise.
1634 (c_flt_eval_method): Likewise.
1635 * c-common.h (excess_precision_mode_join): New.
1636 (c_flt_eval_method): Likewise.
1637 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1638 (cpp_iec_559_value): Call it.
1639 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1640 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1641 __FLT_EVAL_METHOD_TS_18661_3__.
1643 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1645 * c-opts.c (c_common_post_options): Add logic to handle the default
1646 case for -fpermitted-flt-eval-methods.
1648 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1650 * c.opt (Wexpansion-to-defined): New.
1652 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1655 * c-pragma.c (handle_pragma_target): Don't replace
1656 current_target_pragma, but chainon the new args to the current one.
1658 2016-11-22 Nathan Sidwell <nathan@acm.org>
1660 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1661 indentation and formatting.
1663 2016-11-21 Martin Sebor <msebor@redhat.com>
1665 * c.opt (-fprintf-return-value): Enable by default.
1667 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1670 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1671 * c-common.c (c_common_nodes_and_builtins): Initialize
1672 const_tm_ptr_type_node.
1674 2016-11-16 Marek Polacek <polacek@redhat.com>
1677 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1679 2016-11-14 Jakub Jelinek <jakub@redhat.com>
1681 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1683 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1684 Richard Biener <rguenther@suse.de>
1686 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1687 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1688 * c.opt (fgimple): New option.
1690 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1693 * c-common.h (warn_for_restrict): Declare.
1694 * c-warn.c: Include gcc-rich-location.h.
1695 (warn_for_restrict): New function.
1696 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1697 (gcc_cdiag_char_table): Likewise.
1698 (gcc_cxxdiag_char_table): Likewise.
1699 * c.opt (Wrestrict): New option.
1701 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1703 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1704 for nested types only if the type is a record or union and dump SLOC.
1706 2016-11-09 Jason Merrill <jason@redhat.com>
1708 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1710 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1712 * c-ubsan.c (ubsan_instrument_shift): Handle split
1713 -fsanitize=shift-base and -fsanitize=shift-exponent.
1715 2016-11-07 Jason Merrill <jason@redhat.com>
1717 * c.opt (Wc++1z-compat): New.
1718 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1720 2016-11-07 Martin Liska <mliska@suse.cz>
1722 * c-warn.c (warn_for_unused_label): Save all labels used
1723 in goto or in &label.
1725 2016-11-03 Jason Merrill <jason@redhat.com>
1727 * c-cppbuiltin.c (c_cpp_builtins): Correct
1728 __cpp_inheriting_constructors.
1730 2016-11-01 Jason Merrill <jason@redhat.com>
1732 * c-cppbuiltin.c (c_cpp_builtins): Update
1733 __cpp_inheriting_constructors.
1735 * c.opt (-fnew-inheriting-ctors): New.
1736 * c-opts.c: Default to on for ABI 11+.
1738 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1741 * c.opt (fext-numeric-literals): Add Var and Init.
1742 * c-opts.c (c_common_handle_option): Don't clear
1743 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1744 (c_common_post_options): Clear it here if not set
1747 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
1750 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1753 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1755 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1756 * c-common.c (c_common_reswords): Add __builtin_launder.
1758 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1760 * c-common.c (c_common_truthvalue_conversion): Warn for
1761 multiplications in boolean context. Fix the quoting of '<<' and '<'
1762 in the shift warning.
1764 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1766 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1768 2016-10-20 Jason Merrill <jason@redhat.com>
1770 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1772 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1774 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1775 integer shift ops in boolean context.
1777 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1779 * c.opt (Walloca): New.
1780 (Walloca-larger-than=): New.
1781 (Wvla-larger-than=): New.
1783 2016-10-17 Marek Polacek <polacek@redhat.com>
1785 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1786 Return immediately when finding a match.
1787 (warn_tautological_cmp): Remove a boolean variable that is no longer
1790 2016-10-17 Marek Polacek <polacek@redhat.com>
1792 * c-attribs.c: New file.
1793 * c-common.c: Move attributes handling to c-attribs.c.
1794 (get_nonnull_operand): No longer static.
1795 * c-common.h: Move the declarations from c-attribs.c to its own section.
1797 2016-10-14 Jason Merrill <jason@redhat.com>
1799 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1800 and __cpp_deduction_guides.
1802 2016-10-13 Jason Merrill <jason@redhat.com>
1804 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1806 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1808 * c-cppbuiltin.c: Include memmodel.h.
1809 * c-opts.c: Likewise.
1810 * c-pragma.c: Likewise.
1811 * c-warn.c: Likewise.
1813 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1815 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1816 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1817 * c-opts.c (sanitize_cpp_opts): Initialize
1818 cpp_opts->cpp_warn_implicit_fallthrough.
1820 2016-10-11 Marek Polacek <polacek@redhat.com>
1822 * c-common.c (warning_candidate_p): Change the return type to bool
1823 and return true/false instead of 1/0.
1824 (vector_mode_valid_p): Likewise.
1826 2016-10-11 Marek Polacek <polacek@redhat.com>
1828 * c-common.c (fold_for_warn): No longer static.
1829 (bool_promoted_to_int_p): Likewise.
1830 (c_common_get_narrower): Likewise.
1831 (constant_expression_warning): Move to c-warn.c.
1832 (constant_expression_error): Likewise.
1833 (overflow_warning): Likewise.
1834 (warn_logical_operator): Likewise.
1835 (find_array_ref_with_const_idx_r): Likewise.
1836 (warn_tautological_cmp): Likewise.
1837 (expr_has_boolean_operands_p): Likewise.
1838 (warn_logical_not_parentheses): Likewise.
1839 (warn_if_unused_value): Likewise.
1840 (strict_aliasing_warning): Likewise.
1841 (sizeof_pointer_memaccess_warning): Likewise.
1842 (check_main_parameter_types): Likewise.
1843 (conversion_warning): Likewise.
1844 (warnings_for_convert_and_check): Likewise.
1845 (match_case_to_enum_1): Likewise.
1846 (match_case_to_enum): Likewise.
1847 (c_do_switch_warnings): Likewise.
1848 (warn_for_omitted_condop): Likewise.
1849 (readonly_error): Likewise.
1850 (lvalue_error): Likewise.
1851 (invalid_indirection_error): Likewise.
1852 (warn_array_subscript_with_type_char): Likewise.
1853 (warn_about_parentheses): Likewise.
1854 (warn_for_unused_label): Likewise.
1855 (warn_for_div_by_zero): Likewise.
1856 (warn_for_memset): Likewise.
1857 (warn_for_sign_compare): Likewise.
1858 (do_warn_double_promotion): Likewise.
1859 (do_warn_unused_parameter): Likewise.
1860 (record_locally_defined_typedef): Likewise.
1861 (maybe_record_typedef_use): Likewise.
1862 (maybe_warn_unused_local_typedefs): Likewise.
1863 (maybe_warn_bool_compare): Likewise.
1864 (maybe_warn_shift_overflow): Likewise.
1865 (warn_duplicated_cond_add_or_warn): Likewise.
1866 (diagnose_mismatched_attributes): Likewise.
1867 * c-common.h: Move the declarations from c-warn.c to its own section.
1868 * c-warn.c: New file.
1870 2016-10-08 Jason Merrill <jason@redhat.com>
1872 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1873 into COND_EXPR in C++.
1875 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1877 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1878 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1879 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1881 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1883 Implement LWG2296 helper intrinsic
1884 * c-common.h (enum rid): Add RID_ADDRESSOF.
1885 * c-common.c (c_common_reswords): Add __builtin_addressof.
1887 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1890 * c-common.c (c_common_truthvalue_conversion): Warn also for
1891 suspicious enum values in boolean context.
1893 2016-10-06 Jakub Jelinek <jakub@redhat.com>
1895 Implement P0258R2 - helper for C++17
1896 std::has_unique_object_representations trait
1897 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1898 * c-common.c (c_common_reswords): Add
1899 __has_unique_object_representations.
1901 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1904 * c-ubsan.c (ubsan_instrument_return): Don't call
1905 initialize_sanitizer_builtins here.
1907 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1909 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1910 conditional expression in boolean context when only one arm is
1913 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1916 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1919 * c-common.c (c_common_reswords): Update comment for C++11.
1921 2016-10-04 Jason Merrill <jason@redhat.com>
1923 * c-common.c (make_tree_vector_from_ctor): New.
1924 * c-common.h: Declare it.
1926 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1928 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1929 __LIBGCC_JCR_SECTION_NAME__.
1931 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1933 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1934 left shift in boolean context.
1936 2016-09-29 Jakub Jelinek <jakub@redhat.com>
1938 Implement P0001R1 - C++17 removal of register storage class specifier
1939 * c.opt (Wregister): New warning.
1940 * c-opts.c (c_common_post_options): Enable -Wregister by
1943 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1945 * c-opts.c (c_common_post_options): Remove special case for
1946 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1949 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1951 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1954 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1956 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1958 * c-common.c: Include memmodel.h.
1960 2016-09-26 Marek Polacek <polacek@redhat.com>
1962 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1964 2016-09-26 Marek Polacek <polacek@redhat.com>
1967 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1968 (handle_fallthrough_attribute): New function.
1969 (attribute_fallthrough_p): New function.
1970 * c-common.h (attribute_fallthrough_p): Declare.
1972 2016-09-24 Marek Polacek <polacek@redhat.com>
1975 * c.opt (Wbool-operation): New.
1977 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1979 * c-common.c (c_common_truthvalue_conversion): Inhibit
1980 Wint-in-bool-context warning with from_macro_definition_at.
1981 Mention the expression will always evaluate to true.
1983 2016-09-21 Martin Sebor <msebor@redhat.com>
1986 * c.opt (fprintf-return-value): Temporarily initialize to zero
1987 to unblock bootstrap failures.
1989 2016-09-21 Jakub Jelinek <jakub@redhat.com>
1992 * c.opt (Waligned-new=): Add RejectNegative.
1993 (faligned-new=): Likewise. Spelling fix - change
1994 aligned_new_threshhold to aligned_new_threshold.
1995 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1996 to aligned_new_threshold.
1998 2016-09-20 Martin Sebor <msebor@redhat.com>
2001 * c.opt: Add -Wformat-length and -fprintf-return-value.
2003 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2006 * c.opt (Wint-in-bool-context): New warning.
2007 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2008 constants in boolean context.
2010 2016-09-19 Joseph Myers <joseph@codesourcery.com>
2012 * c-common.c (max_align_t_align): Also consider alignment of
2015 2016-09-15 Jason Merrill <jason@redhat.com>
2017 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2020 2016-09-14 Jason Merrill <jason@redhat.com>
2022 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2023 limit FIELD_DECL, either.
2025 2016-09-14 Marek Polacek <polacek@redhat.com>
2027 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2028 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2029 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2031 2016-09-13 David Malcolm <dmalcolm@redhat.com>
2033 * c-common.c (warn_logical_not_parentheses): Replace
2034 rich_location::add_fixit_insert calls with add_fixit_insert_before
2035 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2037 2016-09-13 Jason Merrill <jason@redhat.com>
2038 Tom de Vries <tom@codesourcery.com>
2041 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2043 2016-09-13 Jason Merrill <jason@redhat.com>
2045 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2048 2016-09-12 Jason Merrill <jason@redhat.com>
2050 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2051 bit/byte confusion, allow large alignment for types.
2053 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2056 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2058 2016-09-12 David Malcolm <dmalcolm@redhat.com>
2061 * c-format.c (argument_parser::check_argument_type): Add params
2062 "type_start" and "conversion_char". Use the former to generate
2063 offset_to_type_start and pass it and conversion_char to
2065 (check_format_info_main): Capture the start of the type
2066 information as "type_start", and pass it an format_char
2067 to arg_parser.check_argument_type.
2068 (check_format_types): Provide an example in the leading comment.
2069 Add params "offset_to_type_start" and "conversion_char"; pass
2070 them to format_type_warning calls.
2071 (test_get_modifier_for_format_len): Likewise.
2072 (matching_type_p): New function.
2073 (get_format_for_type): Add param "conversion_char" and move
2074 implementation into...
2075 (get_format_for_type_1): ...new function, called twice.
2076 Use new function matching_type_p rather than checking for
2077 TYPE_CANONICAL equality.
2078 (get_corrected_substring): New function.
2079 (format_type_warning): Provide an example in the leading comment.
2080 Add params "offset_to_type_start" and "conversion_char". Replace
2081 call to get_format_for_type with call to get_corrected_substring
2082 and move rejection of hints for widths/precisions there.
2083 (assert_format_for_type_streq): Add param "conversion_char".
2084 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2085 (test_get_format_for_type_printf): Add conversion chars to the
2086 tests, adding coverage for various combinations of integer
2087 vs double conversions, and for preserving octal and hexadecimal
2089 (test_get_format_for_type_scanf): Add conversion chars to the
2092 2016-09-10 Tom de Vries <tom@codesourcery.com>
2095 * c-common.c (build_va_arg): Handle more strict
2096 targetm.canonical_va_list_type. Replace first argument type error with
2099 2016-09-09 Martin Sebor <msebor@redhat.com>
2103 * c-format.c (argument_parser::find_format_char_info): Use %qc
2104 format directive unconditionally.
2106 2016-09-09 Jason Merrill <jason@redhat.com>
2108 Implement C++17 new of over-aligned types.
2109 * c.opt: Add -faligned-new and -Waligned-new.
2110 * c-common.c (max_align_t_align): Split out from...
2111 (cxx_fundamental_alignment_p): ...here.
2112 * c-common.h: Declare it.
2113 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2115 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2117 * c-cppbuiltin.c (builtin_define_type_width): New function.
2118 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2121 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2123 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2125 (substring_loc::get_location): Move to substring-locations.c,
2126 keeping implementation as...
2127 (c_get_substring_location): New function, from the above, reworked
2128 to use accessors rather than member lookup.
2129 * c-common.h (class substring_loc): Move to substring-locations.h,
2130 replacing with a forward decl.
2131 (c_get_substring_location): New decl.
2132 * c-format.c: Include "substring-locations.h".
2133 (format_warning_va): Move to substring-locations.c.
2134 (format_warning_at_substring): Likewise.
2136 2016-09-06 Martin Sebor <msebor@redhat.com>
2139 * c-format.c (check_function_format): Avoid issuing warnings for
2140 functions unless they call format functions with non-constant
2143 2016-09-06 Richard Biener <rguenther@suse.de>
2146 * c-common.c (c_common_mark_addressable_vec): Handle
2147 COMPOUND_LITERAL_EXPR.
2149 2016-09-05 Marek Polacek <polacek@redhat.com>
2152 * c-common.c (bool_promoted_to_int_p): New function.
2153 (expr_has_boolean_operands_p): New function.
2154 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2155 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2157 2016-09-04 Tom de Vries <tom@codesourcery.com>
2160 2016-08-29 Tom de Vries <tom@codesourcery.com>
2162 * c-common.c (build_va_arg): Replace first argument type error
2165 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2168 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2169 (c_finish_omp_for): Reject _Atomic qualified iterators.
2171 2016-09-01 Martin Sebor <msebor@redhat.com>
2173 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2174 size to guarantee it fits the output of the formatted function
2175 regardless of its arguments.
2177 2016-09-01 Marek Polacek <polacek@redhat.com>
2180 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2183 2016-08-29 Marek Polacek <polacek@redhat.com>
2186 * c-common.c (warn_logical_not_parentheses): Don't warn for
2187 a comparison or a logical operator.
2189 2016-08-29 Tom de Vries <tom@codesourcery.com>
2191 * c-common.c (build_va_arg): Fix type comparison assert.
2193 2016-08-29 Tom de Vries <tom@codesourcery.com>
2195 * c-common.c (build_va_arg): Replace first argument type error
2198 2016-08-29 Tom de Vries <tom@codesourcery.com>
2201 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2202 with error_mark_node as va_list instead of with illegal va_list.
2204 2016-08-25 Marek Polacek <polacek@redhat.com>
2205 David Malcolm <dmalcolm@redhat.com>
2207 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2208 * c-common.h (warn_logical_not_parentheses): Update declaration.
2210 2016-08-22 Marek Polacek <polacek@redhat.com>
2213 * c-common.c (warn_for_memset): Check type for null.
2215 2016-08-22 Joseph Myers <joseph@codesourcery.com>
2217 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2218 _FloatNx types for suffixes for built-in functions.
2220 2016-08-19 Joseph Myers <joseph@codesourcery.com>
2223 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2224 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2225 (RID_FLOAT128X): New enum rid values.
2226 (CASE_RID_FLOATN_NX): New macro.
2227 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2229 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2230 corresponding complex types.
2231 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2232 _FloatNx and corresponding complex types.
2233 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2234 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2235 and _FloatNx types for the widest type for determining
2236 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2237 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2238 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2240 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2242 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2245 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2247 * c-opts.c (c_diagnostic_finalizer): Update for change to
2248 diagnostic_show_locus.
2250 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2252 * c-common.c: Include "spellcheck.h".
2253 (cb_get_suggestion): New function.
2254 * c-common.h (cb_get_suggestion): New decl.
2255 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2258 2016-08-18 Marek Polacek <polacek@redhat.com>
2261 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2264 2016-08-16 David Malcolm <dmalcolm@redhat.com>
2267 * c-common.c (substring_loc::get_range): Rename to...
2268 (substring_loc::get_location): ...this, converting param from a
2269 source_range * to a location_t *. Call
2270 get_source_location_for_substring rather than
2271 get_source_range_for_substring, and pass in m_caret_idx.
2272 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2273 (substring_loc::get_range): Replace with...
2274 (substring_loc::get_location): ...this.
2275 (substring_loc::set_caret_index): New method.
2276 (substring_loc): Add field m_caret_idx.
2277 * c-format.c (format_warning_va): Update for above changes.
2278 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2279 clashing with type name.
2280 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2281 (check_argument_type): Likewise.
2282 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2283 Use a copy when emitting warnings, setting the caret index from TYPE.
2285 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
2286 Arnaud Charlet <charlet@adacore.com>
2288 * c-ada-spec.c (dump_number): New function.
2289 (handle_escape_character): Likewise.
2290 (print_ada_macros): Add handling of constant integers and strings.
2292 2016-08-12 Marek Polacek <polacek@redhat.com>
2295 * c-common.c (scalar_to_vector): Adjust fall through comment.
2296 * c-opts.c (c_common_handle_option): Likewise.
2297 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2298 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2299 fall through comment.
2300 * cilk.c (extract_free_variables): Add FALLTHRU.
2302 2016-08-10 Jason Merrill <jason@redhat.com>
2304 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2306 2016-08-09 Jason Merrill <jason@redhat.com>
2308 * c-common.c (c_common_attribute_table): vector_size affects type
2311 2016-08-09 Marek Polacek <polacek@redhat.com>
2314 * c-ada-spec.c (dump_generic_ada_node): Add return.
2316 2016-08-09 Jason Merrill <jason@redhat.com>
2318 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2319 C++17 constexpr lambdas.
2321 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2324 * c-common.h (selftest::c_format_c_tests): New declaration.
2325 (selftest::run_c_tests): New declaration.
2326 * c-format.c: Include "selftest.h.
2327 (format_warning_va): Add param "corrected_substring" and use
2328 it to add a replacement fix-it hint.
2329 (format_warning_at_substring): Likewise.
2330 (format_warning_at_char): Update for new param of
2332 (argument_parser::check_argument_type): Pass "fki" to
2334 (check_format_types): Add param "fki" and pass it to
2335 format_type_warning.
2336 (deref_n_times): New function.
2337 (get_modifier_for_format_len): New function.
2338 (selftest::test_get_modifier_for_format_len): New function.
2339 (get_format_for_type): New function.
2340 (format_type_warning): Add param "fki" and use it to attempt
2341 to provide hints for argument types when calling
2342 format_warning_at_substring.
2343 (selftest::get_info): New function.
2344 (selftest::assert_format_for_type_streq): New function.
2345 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2346 (selftest::test_get_format_for_type_printf): New function.
2347 (selftest::test_get_format_for_type_scanf): New function.
2348 (selftest::c_format_c_tests): New function.
2350 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2353 * c-format.c: Include "diagnostic.h".
2354 (location_column_from_byte_offset): Delete.
2355 (location_from_offset): Delete.
2356 (format_warning_va): New function.
2357 (format_warning_at_substring): New function.
2358 (format_warning_at_char): New function.
2359 (check_format_arg): Capture location of format_tree and pass to
2360 check_format_info_main.
2361 (argument_parser): Add fields "start_of_this_format" and
2362 "format_string_cst".
2363 (flag_chars_t::validate): Add param "format_string_cst". Convert
2364 warning_at call using location_from_offset to call to
2365 format_warning_at_char.
2366 (argument_parser::argument_parser): Add param "format_string_cst_"
2367 and use use it to initialize field "format_string_cst".
2368 Initialize new field "start_of_this_format".
2369 (argument_parser::read_format_flags): Convert warning_at call
2370 using location_from_offset to a call to format_warning_at_char.
2371 (argument_parser::read_any_format_left_precision): Likewise.
2372 (argument_parser::read_any_format_precision): Likewise.
2373 (argument_parser::read_any_other_modifier): Likewise.
2374 (argument_parser::find_format_char_info): Likewise, in three places.
2375 (argument_parser::parse_any_scan_set): Likewise, in one place.
2376 (argument_parser::handle_conversions): Likewise, in two places.
2377 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2378 and use it to make a substring_loc. Pass the latter to
2380 (check_format_info_main): Add params "fmt_param_loc" and
2381 "format_string_cst". Convert warning_at calls using
2382 location_from_offset to calls to format_warning_at_char. Pass the
2383 new params to the arg_parser ctor. Pass "format_string_cst" to
2384 flag_chars.validate. Pass "fmt_param_loc" to
2385 arg_parser.check_argument_type.
2386 (check_format_types): Convert first param from a location_t
2387 to a const substring_loc & and rename to "fmt_loc". Attempt
2388 to extract the range of the relevant parameter and pass it
2389 to format_type_warning.
2390 (format_type_warning): Convert first param from a location_t
2391 to a const substring_loc & and rename to "fmt_loc". Add
2392 params "param_range" and "type". Replace calls to warning_at
2393 with calls to format_warning_at_substring.
2395 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2397 * c-format.c (class flag_chars_t): New class.
2398 (struct length_modifier): New struct.
2399 (class argument_parser): New class.
2400 (flag_chars_t::flag_chars_t): New ctor.
2401 (flag_chars_t::has_char_p): New method.
2402 (flag_chars_t::add_char): New method.
2403 (flag_chars_t::validate): New method.
2404 (flag_chars_t::get_alloc_flag): New method.
2405 (flag_chars_t::assignment_suppression_p): New method.
2406 (argument_parser::argument_parser): New ctor.
2407 (argument_parser::read_any_dollar): New method.
2408 (argument_parser::read_format_flags): New method.
2409 (argument_parser::read_any_format_width): New method.
2410 (argument_parser::read_any_format_left_precision): New method.
2411 (argument_parser::read_any_format_precision): New method.
2412 (argument_parser::handle_alloc_chars): New method.
2413 (argument_parser::read_any_length_modifier): New method.
2414 (argument_parser::read_any_other_modifier): New method.
2415 (argument_parser::find_format_char_info): New method.
2416 (argument_parser::validate_flag_pairs): New method.
2417 (argument_parser::give_y2k_warnings): New method.
2418 (argument_parser::parse_any_scan_set): New method.
2419 (argument_parser::handle_conversions): New method.
2420 (argument_parser::check_argument_type): New method.
2421 (check_format_info_main): Introduce classes argument_parser
2422 and flag_chars_t, moving the code within the loop into methods
2423 of these classes. Make various locals "const".
2425 2016-08-05 David Malcolm <dmalcolm@redhat.com>
2427 * c-common.c: Include "substring-locations.h".
2428 (get_cpp_ttype_from_string_type): New function.
2429 (g_string_concat_db): New global.
2430 (substring_loc::get_range): New method.
2431 * c-common.h (g_string_concat_db): New declaration.
2432 (class substring_loc): New class.
2433 * c-lex.c (lex_string): When concatenating strings, capture the
2434 locations of all tokens using a new obstack, and record the
2435 concatenation locations within g_string_concat_db.
2436 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2439 2016-07-29 Marek Polacek <polacek@redhat.com>
2442 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2443 parentheses warning.
2446 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2448 2016-07-28 Martin Liska <mliska@suse.cz>
2450 PR gcov-profile/68025
2451 * c-common.c (handle_no_profile_instrument_function_attribute):
2453 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2455 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2458 2016-07-25 Jason Merrill <jason@redhat.com>
2461 * c.opt (fconstexpr-loop-limit): New.
2463 2016-07-22 Martin Sebor <msebor@redhat.com>
2466 * c-common.c (resolve_overloaded_builtin): Avoid converting
2467 __atomic_compare_exchange_n return type to that of what its
2468 first argument points to.
2470 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
2472 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2473 ~(unsigned HOST_WIDE_INT) 0.
2475 2016-07-22 Martin Liska <mliska@suse.cz>
2477 PR gcov-profile/69028
2478 PR gcov-profile/62047
2479 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2480 to the current_function_decl.
2482 2016-07-21 Jason Merrill <jason@redhat.com>
2485 * c-common.c (c_common_truthvalue_conversion): Check
2486 c_inhibit_evaluation_warnings for warning about address of
2489 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2491 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2494 2016-07-15 Jason Merrill <jason@redhat.com>
2496 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2498 2016-07-15 Jakub Jelinek <jakub@redhat.com>
2501 * c-common.h (enum lookup_name_fuzzy_kind): Add
2502 FUZZY_LOOKUP_FUNCTION_NAME.
2504 2016-07-08 Jason Merrill <jason@redhat.com>
2506 P0145: Refining Expression Order for C++.
2507 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2510 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2513 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2515 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2517 * c-pragma.h (enum pragma_kind): Rename
2518 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2521 2016-06-29 Richard Biener <rguenther@suse.de>
2524 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2526 2016-06-24 Jason Merrill <jason@redhat.com>
2528 P0145R2: Refining Expression Order for C++.
2529 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2532 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2534 * c-common.c (check_builtin_function_arguments): Require last
2535 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2536 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2537 if the last argument is pointer to enumerated or boolean type.
2539 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2542 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2543 (lookup_name_fuzzy): New prototype.
2545 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
2547 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2549 2016-06-14 Jason Merrill <jason@redhat.com>
2551 P0145R2: Refining Expression Order for C++.
2552 * c.opt (fargs-in-order): New.
2553 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2555 2016-06-13 Jakub Jelinek <jakub@redhat.com>
2558 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2559 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2561 PR preprocessor/71183
2562 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2563 to cb_get_source_date_epoch.
2565 2016-06-10 Jakub Jelinek <jakub@redhat.com>
2568 * c.opt (Wpsabi): Add Warning flag.
2570 2016-06-10 Martin Sebor <msebor@redhat.com>
2573 * c-common.c (handle_nonnull_attribute): Accept
2574 the nonnull attribute in type-generic builtins.
2576 2016-06-09 Martin Sebor <msebor@redhat.com>
2579 * c-common.c (builtin_function_validate_nargs): Make text of error
2580 message consistent with others like it.
2582 2016-06-08 Martin Sebor <msebor@redhat.com>
2583 Jakub Jelinek <jakub@redhat.com>
2587 * c-common.c (check_builtin_function_arguments): Handle
2588 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2590 2016-06-08 Richard Biener <rguenther@suse.de>
2592 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2594 2016-06-07 Richard Biener <rguenther@suse.de>
2597 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2598 options and warn about others.
2600 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2602 * c-common.c (get_source_date_epoch): Rename to
2603 cb_get_source_date_epoch.
2604 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2605 message when the parsing fails. Use error_at instead of fatal_error.
2606 * c-common.h (get_source_date_epoch): Rename to
2607 cb_get_source_date_epoch.
2608 * c-common.h (cb_get_source_date_epoch): Prototype.
2609 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2610 * c-common.h (c_omp_region_type): Remove trailing comma.
2611 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2612 * c-lex.c (c_lex_with_flags): Remove initialization of
2613 pfile->source_date_epoch.
2615 2016-05-30 Jakub Jelinek <jakub@redhat.com>
2618 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2619 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2620 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2621 instead of C_OMP_CLAUSE_SPLIT_FOR.
2623 2016-05-24 Richard Biener <rguenther@suse.de>
2627 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2628 (convert_vector_to_array_for_subscript): ... this.
2629 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2630 VIEW_CONVERT_EXPR to an array type. Rename to ...
2631 (convert_vector_to_array_for_subscript): ... this.
2633 2016-05-12 Marek Polacek <polacek@redhat.com>
2636 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2637 size_in_bytes and pass LOC to it.
2639 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2642 * c.opt (Wduplicate-decl-specifier): New option.
2644 2016-05-11 Marek Polacek <polacek@redhat.com>
2647 * c-common.c (diagnose_mismatched_attributes): New function.
2648 * c-common.h (diagnose_mismatched_attributes): Declare.
2650 2016-05-04 Marek Polacek <polacek@redhat.com>
2652 * c.opt (Wdangling-else): New option.
2654 2016-05-03 Marek Polacek <polacek@redhat.com>
2657 * c-common.c (builtin_function_validate_nargs): Add location
2659 (check_builtin_function_arguments): Add location and arguments
2660 parameters. Use them.
2661 * c-common.h (check_builtin_function_arguments): Update declaration.
2663 2016-05-03 Richard Biener <rguenther@suse.de>
2665 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2666 allow call args to gimplify to SSA names.
2668 2016-05-03 Marek Polacek <polacek@redhat.com>
2670 * c-common.h (enum c_omp_region_type): Remove stray comma.
2672 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2674 * c-common.h (enum c_omp_region_type): Define.
2676 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2678 * c-common.c (shorten_compare): Use wi::to_wide.
2680 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2683 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2684 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2685 reduction clauses in acc parallel loops.
2687 2016-04-29 Marek Polacek <polacek@redhat.com>
2690 * c-common.c (warn_for_memset): Check domain before accessing it.
2692 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2695 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2696 "aligned" attribute.
2698 2016-04-28 Jason Merrill <jason@redhat.com>
2700 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2702 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2703 Matthias Klose <doko@debian.org>
2705 * c-common.c (get_source_date_epoch): New function, gets the environment
2706 variable SOURCE_DATE_EPOCH and parses it as long long with error
2708 * c-common.h (get_source_date_epoch): Prototype.
2709 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2711 2015-04-27 Ryan Burn <contact@rnburn.com>
2715 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2716 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2718 (cilk_detect_and_unwrap): Corresponding changes.
2719 (extract_free_variables): Don't extract free variables from
2720 AGGR_INIT_EXPR slot.
2721 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2722 (cilk_recognize_spawn): Likewise.
2724 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2726 * c.opt (Wmemset-elt-size): New option.
2727 * c-common.c (warn_for_memset): New function.
2728 * c-common.h (warn_for_memset): Declare.
2730 2016-04-25 Jason Merrill <jason@redhat.com>
2732 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2734 * c-common.h: Declare it.
2735 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2737 2016-04-22 Jason Merrill <jason@redhat.com>
2739 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2741 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2744 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2745 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2747 2016-04-18 Michael Matz <matz@suse.de>
2749 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2752 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2754 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2755 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2756 to incomplete types.
2757 (dump_nested_type): Remove redundant tests and tidy up.
2758 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2759 a type which is the typedef of an original type.
2761 2016-04-15 Marek Polacek <polacek@redhat.com>
2764 * c-common.c (build_va_arg): Change two asserts into errors and return
2767 2016-04-13 Marek Polacek <polacek@redhat.com>
2770 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2771 for switch statements, too.
2773 2016-03-28 Jason Merrill <jason@redhat.com>
2775 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2777 2016-03-23 Marek Polacek <polacek@redhat.com>
2780 * c.opt (Wignored-attributes): New option.
2782 2016-03-22 David Malcolm <dmalcolm@redhat.com>
2785 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2786 diagnostic text, reversing the order of the warning and note so
2787 that they appear in source order.
2789 2016-03-17 Marek Polacek <polacek@redhat.com>
2792 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2795 2016-03-14 Jason Merrill <jason@redhat.com>
2797 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2799 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2801 2016-03-09 Richard Biener <rguenther@suse.de>
2804 * c-common.c (strict_aliasing_warning): Add back
2805 alias_sets_conflict_p check.
2807 2016-03-08 Jason Merrill <jason@redhat.com>
2809 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2811 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2814 * c-indentation.c (get_visual_column): Move code to determine next
2816 (next_tab_stop): ...this new function.
2817 (line_contains_hash_if): Delete function.
2818 (detect_preprocessor_logic): Delete function.
2819 (get_first_nws_vis_column): New function.
2820 (detect_intervening_unindent): New function.
2821 (should_warn_for_misleading_indentation): Replace call to
2822 detect_preprocessor_logic with a call to
2823 detect_intervening_unindent.
2825 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2828 * c-indentation.c (should_warn_for_misleading_indentation): When
2829 suppressing warnings about cases where the guard and body are on
2830 the same column, only use the first non-whitespace column in place
2831 of the guard token column when dealing with "else" clauses.
2832 When rejecting aligned BODY and NEXT, loosen the requirement
2833 from equality with the first non-whitespace of guard to simply
2834 that they not be indented relative to it.
2836 2016-03-04 Richard Biener <rguenther@suse.de>
2839 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2840 instead of alias_sets_conflict_p.
2842 2016-03-01 Marek Polacek <polacek@redhat.com>
2845 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2848 2016-02-22 Martin Sebor <msebor@redhat.com>
2851 * c-common.c (check_builtin_function_arguments): Validate and
2852 reject invalid arguments to __builtin_alloca_with_align.
2854 2016-02-20 Mark Wielaard <mjw@redhat.com>
2857 * c.opt (Wunused-const-variable): Turn into Alias for...
2858 (Wunused-const-variable=): New option.
2860 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2863 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2865 (c_common_init_options): ...to here.
2866 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2868 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2871 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2872 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2873 flag_preprocess_only.
2875 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2878 * c.opt (Wnonnull-compare): Enable for -Wall.
2880 2016-02-15 Jakub Jelinek <jakub@redhat.com>
2883 * c-common.c (sync_resolve_size): Diagnose too few arguments
2884 even when params is non-NULL empty vector.
2886 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2889 * c.opt (fshort-double): Remove.
2891 2016-02-05 Martin Sebor <msebor@redhat.com>
2894 * c.opt (Warning options): Update -Wplacement-new to take
2895 an optional argument.
2897 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2899 PR preprocessor/69543
2901 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2902 instead of loc to control_warning_option.
2904 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2906 * c.opt (fopenacc-dim=): New option.
2908 2016-01-27 Ryan Burn <contact@rnburn.com>
2911 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2912 gimplify_arg. Removed superfluous post_p argument.
2913 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2914 superfluous post_p argument.
2915 * c-gimplify.c (c_gimplify_expr): Likewise.
2917 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2920 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2921 pp_newline_and_flush with pp_flush.
2923 2016-01-20 Martin Sebor <msebor@redhat.com>
2926 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2927 an incompatible argument when the argument isn't a valid tree node.
2929 2016-01-18 Jason Merrill <jason@redhat.com>
2932 * c-common.c (check_function_arguments_recurse): Fold the whole
2933 COND_EXPR, not just the condition.
2935 2016-01-18 Tom de Vries <tom@codesourcery.com>
2937 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2938 classify as loop clause.
2940 2016-01-15 Jakub Jelinek <jakub@redhat.com>
2943 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2944 C++ FE no longer has limit on number of pragmas.
2946 2015-01-14 Ryan Burn <contact@rnburn.com>
2949 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2950 to add missing cleanup point.
2952 2016-01-14 David Malcolm <dmalcolm@redhat.com>
2955 * c-indentation.c (get_visual_column): Add location_t param.
2956 Handle the column number being zero by effectively disabling the
2957 warning, with an "inform".
2958 (should_warn_for_misleading_indentation): Add location_t argument
2959 for all uses of get_visual_column.
2961 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2964 * c-indentation.c (should_warn_for_misleading_indentation):
2965 Don't warn about do-while statements.
2967 2016-01-07 Martin Sebor <msebor@redhat.com>
2970 * c-common.c (sync_resolve_size): Reject first argument when it's
2973 2016-01-05 David Malcolm <dmalcolm@redhat.com>
2976 * c-indentation.c (get_visual_column): Remove default argument.
2977 (should_warn_for_misleading_indentation): For the multiline case,
2978 update call to get_visual_column for next_stmt_exploc so that it
2979 captures the location of the first non-whitespace character in the
2980 relevant line. Don't issue warnings if there is non-whitespace
2981 before the next statement.
2983 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2985 Update copyright years.
2987 2015-12-21 David Malcolm <dmalcolm@redhat.com>
2989 * c-common.c (binary_op_error): Convert first param from
2990 location_t to rich_location * and use it when emitting an error.
2991 * c-common.h (binary_op_error): Convert first param from
2992 location_t to rich_location *.
2994 2015-12-16 David Malcolm <dmalcolm@redhat.com>
2996 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2997 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2999 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3001 * c-common.c (c_common_attribute_table): Handle "omp declare target
3004 2015-12-14 Jakub Jelinek <jakub@redhat.com>
3007 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3009 2014-12-12 Tobias Burnus <burnus@net-b.de>
3012 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3013 specifiers (%d, %i,%u and %c).
3015 2015-12-10 David Malcolm <dmalcolm@redhat.com>
3017 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3019 2015-12-08 Jakub Jelinek <jakub@redhat.com>
3023 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3024 * c-pragma.c (handle_pragma_diagnostic): Adjust
3025 control_warning_option caller.
3027 2015-12-07 David Malcolm <dmalcolm@redhat.com>
3029 * c-common.c (c_cpp_error): Update for change to
3030 rich_location::set_range.
3032 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
3034 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3035 shifting 1 out of the sign bit.
3037 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3039 * c-common.c (c_common_attribute_table[]): Update max arguments
3040 count for "simd" attribute.
3041 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3043 2015-12-03 Jakub Jelinek <jakub@redhat.com>
3045 PR preprocessor/57580
3046 * c-ppoutput.c (print): Change printed field to bool.
3047 Move src_file last for smaller padding.
3048 (init_pp_output): Set print.printed to false instead of 0.
3049 (scan_translation_unit): Fix up formatting. Set print.printed
3050 to true after printing something other than newline.
3051 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3052 (maybe_print_line_1): Set print.printed to false instead of 0.
3053 (print_line_1): Likewise.
3054 (do_line_change): Set print.printed to true instead of 1.
3055 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3056 dump_macro): Set print.printed to false after printing newline.
3058 2015-12-02 Jason Merrill <jason@redhat.com>
3060 * c-common.c (fold_for_warn): New.
3061 (warn_logical_operator, warn_tautological_cmp)
3062 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3064 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3065 (c_fully_fold_internal, decl_constant_value_for_optimization):
3067 * c-common.h: Don't declare decl_constant_value_for_optimization.
3069 2015-12-02 Joseph Myers <joseph@codesourcery.com>
3072 * c-common.h (c_build_qualified_type): Add extra default
3075 2015-12-01 Julian Brown <julian@codesourcery.com>
3076 Cesar Philippidis <cesar@codesourcery.com>
3077 James Norris <James_Norris@mentor.com>
3079 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3080 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3081 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3083 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3085 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3086 (decl_sloc_common): Delete and move bulk of processing to...
3087 (decl_sloc): ...here.
3088 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3089 (dump_ada_double_name): Remove S parameter and compute the suffix.
3090 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3091 element type and deal with an anonymous one.
3092 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3093 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3094 and remove reference to QUAL_UNION_TYPE.
3095 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3096 (dump_nested_type): ...here. New function extracted from above.
3097 Generate a full declaration for anonymous element type of arrays.
3098 (print_ada_declaration): Really skip anonymous declarations. Remove
3099 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3100 Clean up processing of declarations of array types and objects.
3101 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3102 Remove obsolete code and tidy up.
3104 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3107 * c-common.c (handle_transparent_union_attribute): Update
3110 2015-11-27 Martin Liska <mliska@suse.cz>
3113 * array-notation-common.c (cilkplus_extract_an_triplets):
3114 Release vector of vectors.
3115 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3117 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3120 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3121 (print_ada_struct_decl): Likewise.
3123 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3126 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3127 * cilk.c (recognize_spawn): Determine location in a more precise
3130 2015-11-19 Jason Merrill <jason@redhat.com>
3132 * c-common.c (shorten_compare): But look through macros from
3135 2015-11-18 Jason Merrill <jason@redhat.com>
3137 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3138 non-constant operand comes from a macro.
3140 2015-11-17 Jason Merrill <jason@redhat.com>
3143 * c-common.c (warn_tautological_cmp): Fold before checking for
3146 2015-11-16 Marek Polacek <polacek@redhat.com>
3149 * c-common.c (check_case_bounds): Fold low and high cases.
3151 2015-11-16 Marek Polacek <polacek@redhat.com>
3153 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3154 * c-common.c (c_common_get_alias_set): Likewise.
3155 (handle_visibility_attribute): Likewise.
3157 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3159 * c-common.c (handle_simd_attribute): New.
3160 (struct attribute_spec): Add entry for "simd".
3161 (handle_simd_attribute): New.
3163 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3165 * c-lex.c (interpret_float): Use fold_convert.
3167 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3169 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3170 and store it on the result.
3171 * c-opts.c (c_common_init_options): Set
3172 global_dc->colorize_source_p.
3174 2015-11-12 James Norris <jnorris@codesourcery.com>
3175 Joseph Myers <joseph@codesourcery.com>
3177 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
3178 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3179 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3180 PRAGMA_OACC_CLAUSE_LINK.
3182 2015-11-11 Marek Polacek <polacek@redhat.com>
3186 * c-common.c (valid_array_size_p): New function.
3187 * c-common.h (valid_array_size_p): Declare.
3189 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
3192 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3194 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
3196 * array-notation-common.c: Remove unused header files.
3197 * c-ada-spec.c: Likewise.
3198 * c-cilkplus.c: Likewise.
3199 * c-common.c: Likewise.
3200 * c-cppbuiltin.c: Likewise.
3201 * c-dump.c: Likewise.
3202 * c-format.c: Likewise.
3203 * c-gimplify.c: Likewise.
3204 * c-indentation.c: Likewise.
3205 * c-lex.c: Likewise.
3206 * c-omp.c: Likewise.
3207 * c-opts.c: Likewise.
3208 * c-pch.c: Likewise.
3209 * c-ppoutput.c: Likewise.
3210 * c-pragma.c: Likewise.
3211 * c-pretty-print.c: Likewise.
3212 * c-semantics.c: Likewise.
3213 * c-ubsan.c: Likewise.
3215 * stub-objc.c: Likewise.
3217 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3218 Cesar Philippidis <cesar@codesourcery.com>
3219 James Norris <jnorris@codesourcery.com>
3220 Julian Brown <julian@codesourcery.com>
3221 Nathan Sidwell <nathan@codesourcery.com>
3223 * c-pragma.c (oacc_pragmas): Add "routine".
3224 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3226 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3228 * c-common.c (c_common_attributes): Add scalar_storage_order.
3229 (handle_scalar_storage_order_attribute): New function.
3230 * c-pragma.c (global_sso): New variable.
3231 (maybe_apply_pragma_scalar_storage_order): New function.
3232 (handle_pragma_scalar_storage_order): Likewise.
3233 (init_pragma): Register scalar_storage_order.
3234 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3235 * c.opt (Wscalar-storage-order): New warning.
3236 (fsso-struct=): New option.
3238 2015-11-08 Martin Sebor <msebor@redhat.com>
3240 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3242 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3244 * c-common.c: Don't undef DEF_BUILTIN.
3246 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3248 * c-common.c (c_cpp_error): Convert parameter from location_t to
3249 rich_location *. Eliminate the "column_override" parameter and
3250 the call to diagnostic_override_column.
3251 Update the "done_lexing" clause to set range 0
3252 on the rich_location, rather than overwriting a location_t.
3253 * c-common.h (c_cpp_error): Convert parameter from location_t to
3254 rich_location *. Eliminate the "column_override" parameter.
3256 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3257 Thomas Schwinge <thomas@codesourcery.com>
3258 James Norris <jnorris@codesourcery.com>
3260 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3261 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3262 clauses with parallel and kernels and loops.
3263 * c-pragma.h (enum pragma_omp_clause): Add entries for
3264 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3265 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3266 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3268 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3270 2015-11-05 Martin Sebor <msebor@redhat.com>
3273 * c.opt (-Wplacement-new): New option.
3275 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3277 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3278 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3279 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3280 save_expr or create_tmp_var* if TEST is true.
3281 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3282 Don't call add_stmt here.
3283 (struct c_omp_check_loop_iv_data): New type.
3284 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3285 c_omp_check_loop_iv_exprs): New functions.
3286 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3288 (c_omp_declare_simd_clauses_to_numbers): Change
3289 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3290 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3291 from numbers to PARM_DECLs.
3293 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3295 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3298 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
3301 * c-common.h (fold_offsetof_1): Add argument.
3302 * c-common.c (fold_offsetof_1): Diagnose more invalid
3303 offsetof expressions that reference elements past the end of
3306 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3307 Chung-Lin Tang <cltang@codesourcery.com>
3309 * c-pragma.c (oacc_pragmas): Add "atomic".
3310 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3312 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3314 * c-common.c (handle_target_clones_attribute): New.
3315 (c_common_attribute_table): Add handle_target_clones_attribute.
3316 (handle_always_inline_attribute): Add check on target_clones attribute.
3317 (handle_target_attribute): Ditto.
3319 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3321 * array-notation-common.c: Reorder #include's and remove duplicates.
3322 * c-ada-spec.c: Likewise.
3323 * c-cilkplus.c: Likewise.
3324 * c-common.c: Likewise.
3325 * c-cppbuiltin.c: Likewise.
3326 * c-dump.c: Likewise.
3327 * c-format.c: Likewise.
3328 * c-gimplify.c: Likewise.
3329 * c-indentation.c: Likewise.
3330 * c-lex.c: Likewise.
3331 * c-omp.c: Likewise.
3332 * c-opts.c: Likewise.
3333 * c-pch.c: Likewise.
3334 * c-ppoutput.c: Likewise.
3335 * c-pragma.c: Likewise.
3336 * c-pretty-print.c: Likewise.
3337 * c-semantics.c: Likewise.
3338 * c-ubsan.c: Likewise.
3340 * stub-objc.c: Likewise.
3342 2015-10-28 Jason Merrill <jason@redhat.com>
3344 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3346 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3347 James Norris <jnorris@codesourcery.com>
3348 Cesar Philippidis <cesar@codesourcery.com>
3352 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3353 * c-omp.c (c_oacc_split_loop_clauses): New function.
3355 2015-10-21 Martin Sebor <msebor@redhat.com>
3358 * c.opt: End each sentence that describes an option with a period.
3360 2015-10-20 Marek Polacek <polacek@redhat.com>
3362 * array-notation-common.c (is_cilkplus_vector_p): Define.
3363 * c-common.h (is_cilkplus_vector_p): Declare.
3365 2015-10-20 Marek Polacek <polacek@redhat.com>
3367 * c.opt (std=gnu++11): Do not describe as experimental.
3368 (std=gnu++14): Likewise.
3370 2015-10-19 Jason Merrill <jason@redhat.com>
3372 * c-cppbuiltin.c (c_cpp_builtins): Define
3373 __cpp_nontype_template_args.
3375 2015-10-19 Jason Merrill <jason@redhat.com>
3377 * c-cppbuiltin.c (c_cpp_builtins): Define
3378 __cpp_enumerator_attributes, __cpp_fold_expressions,
3379 __cpp_unicode_characters.
3381 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3382 Aldy Hernandez <aldyh@redhat.com>
3384 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3385 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3386 (c_define_builtins): Likewise.
3387 * c-common.h (enum c_omp_clause_split): Add
3388 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3389 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3390 (c_finish_omp_for): Add ORIG_DECLV argument.
3391 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3392 201511 instead of 201307.
3393 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3394 OMP_CRITICAL_CLAUSES to it.
3395 (c_finish_omp_ordered): Add CLAUSES argument, set
3396 OMP_ORDERED_CLAUSES to it.
3397 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3398 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3399 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3400 constructs and new OpenMP 4.5 clauses. Clear
3401 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3403 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3404 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3405 (enum pragma_omp_clause): Add
3406 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3407 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3409 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3411 * c-lex.c (interpret_float): Use real_equal instead of
3414 2015-10-04 Jason Merrill <jason@redhat.com>
3416 Implement N4514, C++ Extensions for Transactional Memory.
3417 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3418 (c_common_attribute_table): Add transaction_safe_dynamic.
3419 transaction_safe now affects type identity.
3420 (handle_tm_attribute): Handle transaction_safe_dynamic.
3421 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3422 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3423 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3425 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3426 * c-pretty-print.c (pp_c_attributes_display): Don't print
3427 transaction_safe in C++.
3429 2015-10-02 Marek Polacek <polacek@redhat.com>
3431 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3433 2015-10-02 Marek Polacek <polacek@redhat.com>
3436 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3437 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3438 * c.opt (Wduplicated-cond): New option.
3440 2015-10-01 Joseph Myers <joseph@codesourcery.com>
3442 * c.opt (std=c11): Do not describe as experimental.
3443 (std=gnu11): Likewise.
3444 (std=iso9899:2011): Likewise.
3446 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3448 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3449 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3451 2015-09-25 Marek Polacek <polacek@redhat.com>
3453 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3454 (ubsan_instrument_shift): Likewise.
3456 2015-09-25 Marek Polacek <polacek@redhat.com>
3459 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3461 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3463 * c-indentation.c (should_warn_for_misleading_indentation):
3464 Compare next_stmt_vis_column with guard_line_first_nws instead
3465 of with guard_line_vis_column.
3467 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3471 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3472 options and options not valid for the current language.
3474 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3476 * c-indentation.c (should_warn_for_misleading_indentation):
3477 Float out and consolidate the calls to get_visual_column that
3478 are passed guard_exploc as an argument. Compare
3479 next_stmt_vis_column with guard_line_first_nws instead of with
3480 body_line_first_nws.
3482 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3484 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3485 Wnamespaces): New C++ warnings.
3487 2015-09-22 Jason Merrill <jason@redhat.com>
3489 * c-common.h (abi_compat_version_crosses): New.
3490 (warn_abi_version): Declare.
3491 * c-common.c: Define it.
3492 * c-opts.c (c_common_post_options): Handle it.
3493 flag_abi_compat_version defaults to 8.
3495 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3497 Complete the implementation of N4230, Nested namespace definition.
3498 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3499 __cpp_nested_namespace_definitions.
3501 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3503 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3505 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3507 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3509 * c-pragma.h (pragma_lex): Add optional loc argument.
3511 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3513 * c-format.c (check_format_arg): Adjust to use common block size in all
3516 2015-09-15 David Malcolm <dmalcolm@redhat.com>
3518 * c-format.c (location_from_offset): Update for change in
3519 signature of location_get_source_line.
3520 * c-indentation.c (get_visual_column): Likewise.
3521 (line_contains_hash_if): Likewise.
3523 2015-09-14 Marek Polacek <polacek@redhat.com>
3525 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3526 setting various warnings.
3528 2015-09-14 Marek Polacek <polacek@redhat.com>
3530 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3533 2015-09-11 Mark Wielaard <mjw@redhat.com>
3536 * c.opt (Wunused-variable): Option from common.opt.
3537 (Wunused-const-variable): New option.
3539 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3542 * c.opt ([Wsubobject-linkage]): Add.
3544 2015-09-03 Martin Sebor <msebor@redhat.com>
3547 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3549 * c-common.c (reject_gcc_builtin): Define.
3551 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3554 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3556 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3557 cilk_gimplify_call_params_in_spawned_fn.
3558 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3559 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3562 2015-08-25 Marek Polacek <polacek@redhat.com>
3565 * c-common.c (handle_weak_attribute): Don't check whether the
3566 visibility can be changed here.
3568 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3570 * c-lex.c (c_lex_with_flags): Use explicit locations.
3572 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3574 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3575 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3577 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3580 * c-common.c (check_builtin_function_arguments): Add check
3581 for BUILT_IN_SIGNBIT argument.
3583 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3586 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3589 2015-08-17 Marek Polacek <polacek@redhat.com>
3591 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3592 with whitespaces before qualifier names.
3594 2015-08-12 Marek Polacek <polacek@redhat.com>
3597 * c-common.c (maybe_warn_shift_overflow): Properly handle
3598 left-shifting 1 into the sign bit.
3600 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3602 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3604 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3605 Braden Obrzut <admin@maniacsvault.net>
3606 Jason Merrill <jason@redhat.com>
3608 Add C++ Concepts TS support.
3609 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3610 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3611 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3612 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3613 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3614 * c.opt (fconcepts): New.
3616 2015-08-02 Martin Sebor <msebor@redhat.com>
3618 * c.opt (-Wframe-address): New warning option.
3620 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3622 * c-indentation.c (should_warn_for_misleading_indentation):
3625 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3627 * c-indentation.c (get_visual_column): Add parameter first_nws,
3628 use it. Update comment documenting the function.
3629 (is_first_nonwhitespace_on_line): Remove.
3630 (should_warn_for_misleading_indentation): Replace usage of
3631 of is_first_nonwhitespace_on_line with get_visual_column.
3633 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3635 * c-indentation.h (struct token_indent_info): Define.
3636 (get_token_indent_info): Define.
3637 (warn_for_misleading_information): Declare.
3638 * c-common.h (warn_for_misleading_information): Remove.
3639 * c-identation.c (warn_for_misleading_indentation):
3640 Change declaration to take three token_indent_infos. Adjust
3642 * c-identation.c (should_warn_for_misleading_indentation):
3643 Likewise. Bail out early if the body is a compound statement.
3644 (guard_tinfo_to_string): Define.
3646 2015-07-30 Jason Merrill <jason@redhat.com>
3648 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3649 '*' for reference decay.
3651 2015-07-30 Marek Polacek <polacek@redhat.com>
3653 * c-common.c (warn_tautological_cmp): Bail for float types.
3655 2015-07-27 Marek Polacek <polacek@redhat.com>
3658 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3660 2015-07-27 Marek Polacek <polacek@redhat.com>
3664 * c-common.c (find_array_ref_with_const_idx_r): New function.
3665 (warn_tautological_cmp): New function.
3666 * c-common.h (warn_tautological_cmp): Declare.
3667 * c.opt (Wtautological-compare): New option.
3669 2015-07-23 Marek Polacek <polacek@redhat.com>
3671 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3672 (ubsan_instrument_shift): Likewise.
3674 2015-07-23 Marek Polacek <polacek@redhat.com>
3677 * c-ubsan.c: Include gimplify.h.
3678 (ubsan_instrument_division): Unshare OP0 and OP1.
3679 (ubsan_instrument_shift): Likewise.
3681 2015-07-20 Marek Polacek <polacek@redhat.com>
3682 Richard Sandiford <richard.sandiford@arm.com>
3685 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3686 Use EXPR_LOC_OR_LOC.
3687 (maybe_warn_shift_overflow): New function.
3688 * c-common.h (maybe_warn_shift_overflow): Declare.
3689 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3690 * c.opt (Wshift-overflow): New option.
3692 2015-07-16 Martin Liska <mliska@suse.cz>
3694 * c-format.c (static void check_format_info_main): Use
3695 object_allocator instead of pool_allocator.
3696 (check_format_arg): Likewise.
3697 (check_format_info_main): Likewise.
3699 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3701 * c-opts.c: Remove multiline #include comment.
3703 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3705 * c-common.c: Fix double word typos.
3707 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3709 * c-ada-spec.h (cpp_operation): Revert latest change.
3710 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3711 constructors and destructors.
3713 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3715 * c-common.h: Adjust includes for flags.h changes.
3716 * stub-objc.c: Likewise.
3718 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3720 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3721 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3723 2015-07-08 Jakub Jelinek <jakub@redhat.com>
3725 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3726 are to be removed, return NULL rather than original clauses list.
3728 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
3730 * array-notation-common.c: Adjust includes.
3731 * c-ada-spec.c: Likewise.
3732 * c-cilkplus.c: Likewise.
3733 * c-common.h: Likewise.
3734 * c-cppbuiltin.c: Likewise.
3735 * c-dump.c: Likewise.
3736 * c-format.c: Likewise.
3737 * c-gimplify.c: Likewise.
3738 * c-indentation.c: Likewise.
3739 * c-lex.c: Likewise.
3740 * c-omp.c: Likewise.
3741 * c-opts.c: Likewise.
3742 * c-pch.c: Likewise.
3743 * c-ppoutput.c: Likewise.
3744 * c-pragma.c: Likewise.
3745 * c-pretty-print.c: Likewise.
3746 * c-semantics.c: Likewise.
3747 * c-ubsan.c: Likewise.
3749 * stub-objc.c: Likewise.
3751 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3753 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3754 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3756 2015-07-01 Jason Merrill <jason@redhat.com>
3758 * c-common.h (D_CXX11): Rename from D_CXX0X.
3759 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3760 * c-common.c: Adjust.
3762 * c-opts.c (c_common_post_options): Default to C++14.
3764 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3766 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3768 Implement N4197 - Adding u8 character literals
3769 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3771 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3772 CPP_UTF8CHAR_USERDEF tokens.
3773 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3774 and CPP_UTF8CHAR tokens.
3775 (lex_charconst): Treat CPP_UTF8CHAR token.
3777 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3780 * c-common.c (do_warn_unused_parameter): Move here.
3781 * c-common.h (do_warn_unused_parameter): Declare.
3783 2015-06-29 Marek Polacek <polacek@redhat.com>
3786 * c-common.c (check_case_bounds): Add bool * parameter. Set
3788 (c_add_case_label): Add bool * parameter. Pass it down to
3790 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3792 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3795 2015-06-27 Marek Polacek <polacek@redhat.com>
3797 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3798 or VECTOR_INTEGER_TYPE_P throughout.
3799 * c-gimplify.c: Likewise.
3801 2015-06-26 Marek Polacek <polacek@redhat.com>
3803 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3804 * c-common.c (c_fully_fold_internal): Likewise.
3805 (c_alignof_expr): Likewise.
3806 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3807 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3808 * cilk.c (create_parm_list): Likewise.
3810 2015-06-26 Marek Polacek <polacek@redhat.com>
3812 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3814 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3816 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3817 * c-gimplify.c: Likewise.
3818 * c-pragma.c: Likewise.
3819 * c-ubsan.c: Likewise.
3822 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3824 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3827 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3829 * cilk.c: Move calls.h after tm.h in the include chain.
3831 2015-06-25 Marek Polacek <polacek@redhat.com>
3833 * array-notation-common.c: Use VAR_P throughout.
3834 * c-ada-spec.c: Likewise.
3835 * c-common.c: Likewise.
3836 * c-format.c: Likewise.
3837 * c-gimplify.c: Likewise.
3838 * c-omp.c: Likewise.
3839 * c-pragma.c: Likewise.
3840 * c-pretty-print.c: Likewise.
3843 2015-06-25 Marek Polacek <polacek@redhat.com>
3845 * cilk.c (extract_free_variables): Use is_global_var.
3847 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3849 * c-common.c: Don't include target-def.h.
3851 2015-06-23 Marek Polacek <polacek@redhat.com>
3853 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3854 when comparing INTEGER_CSTs.
3856 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3858 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3859 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3860 (dump_ada_template): Skip partially specialized types.
3862 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3864 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3867 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3869 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3870 * c-ada-spec.c: Likewise.
3871 * c-cilkplus.c: Likewise.
3872 * c-common.c: Likewise.
3873 * c-common.h: Likewise.
3874 * c-cppbuiltin.c: Likewise.
3875 * c-dump.c: Likewise.
3876 * c-format.c: Likewise.
3877 * c-gimplify.c: Likewise.
3878 * c-indentation.c: Likewise.
3879 * c-lex.c: Likewise.
3880 * c-omp.c: Likewise.
3881 * c-opts.c: Likewise.
3882 * c-pch.c: Likewise.
3883 * c-ppoutput.c: Likewise.
3884 * c-pragma.c: Likewise.
3885 * c-pretty-print.c: Likewise.
3886 * c-semantics.c: Likewise.
3887 * c-ubsan.c: Likewise.
3889 * stub-objc.c: Likewise.
3891 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3894 * c-common.c (c_common_truthvalue_conversion): Warn when
3895 converting an address of a reference to a truth value.
3897 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
3899 * array-notation-common.c : Adjust include files.
3900 * c-ada-spec.c : Likewise.
3901 * c-cilkplus.c : Likewise.
3902 * c-common.c : Likewise.
3903 * c-common.h : Likewise.
3904 * c-cppbuiltin.c : Likewise.
3905 * c-dump.c : Likewise.
3906 * c-format.c : Likewise.
3907 * c-gimplify.c : Likewise.
3908 * c-indentation.c : Likewise.
3909 * c-lex.c : Likewise.
3910 * c-omp.c : Likewise.
3911 * c-opts.c : Likewise.
3912 * c-pch.c : Likewise.
3913 * c-ppoutput.c : Likewise.
3914 * c-pragma.c : Likewise.
3915 * c-pretty-print.c : Likewise.
3916 * c-semantics.c : Likewise.
3917 * c-ubsan.c : Likewise.
3918 * cilk.c : Likewise.
3919 * stub-objc.c : Likewise.
3921 2015-06-08 Marek Polacek <polacek@redhat.com>
3924 * c-format.c (location_from_offset): Return LOC if LINE is null.
3926 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3928 * c-common.h (c_parse_final_cleanups): New prototype.
3929 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3931 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3933 * c-common.c (noplt): New attribute.
3934 (handle_noplt_attribute): New handler.
3936 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3938 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3939 * c-ada-spec.c: Likewise.
3940 * c-cilkplus.c: Likewise.
3941 * c-common.c: Likewise.
3942 * c-common.h: Likewise.
3943 * c-cppbuiltin.c: Likewise.
3944 * c-dump.c: Likewise.
3945 * c-format.c: Likewise.
3946 * c-gimplify.c: Likewise.
3947 * c-indentation.c: Likewise.
3948 * c-lex.c: Likewise.
3949 * c-omp.c: Likewise.
3950 * c-opts.c: Likewise.
3951 * c-pch.c: Likewise.
3952 * c-ppoutput.c: Likewise.
3953 * c-pragma.c: Likewise.
3954 * c-pretty-print.c: Likewise.
3955 * c-semantics.c: Likewise.
3956 * c-ubsan.c: Likewise.
3958 * stub-objc.c: Likewise.
3960 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3963 * c-indentation.c (should_warn_for_misleading_indentation): Use
3964 expand_location rather than expand_location_to_spelling_point.
3965 Don't warn if the guarding statement is more indented than the
3968 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3970 * c-indentation.c (warn_for_misleading_indentation): Bail out
3971 immediately if -Wmisleading-indentation isn't enabled.
3973 2015-06-01 Martin Liska <mliska@suse.cz>
3975 * c-format.c (check_format_arg):Use new type-based pool allocator.
3976 (check_format_info_main) Likewise.
3978 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3980 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3981 (has_nontrivial_methods): Likewise.
3983 2015-05-25 Marek Polacek <polacek@redhat.com>
3985 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3987 2015-05-22 Marek Polacek <polacek@redhat.com>
3990 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3992 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3994 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3995 STACK_GROWS_DOWNWARD.
3997 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3999 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4000 STACK_GROWS_DOWNWARD rather than if it is defined.
4002 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4005 * c-format.c (location_column_from_byte_offset): New.
4006 (location_from_offset): New.
4007 (struct format_wanted_type): Add offset_loc field.
4008 (check_format_info): Move handling of location for extra arguments
4009 closer to the point of warning.
4010 (check_format_info_main): Pass the result of location_from_offset
4012 (format_type_warning): Pass the result of location_from_offset
4015 2015-05-20 Marek Polacek <polacek@redhat.com>
4017 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4019 2015-05-20 Marek Polacek <polacek@redhat.com>
4021 * c-ada-spec.c (dump_sloc): Use DECL_P.
4023 2015-05-20 Marek Polacek <polacek@redhat.com>
4025 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4026 * c-common.c: Likewise.
4028 2015-05-19 David Malcolm <dmalcolm@redhat.com>
4030 * c-common.h (fe_file_change): Strengthen param from
4031 const line_map * to const line_map_ordinary *.
4032 (pp_file_change): Likewise.
4033 * c-lex.c (fe_file_change): Likewise.
4034 (cb_define): Use linemap_check_ordinary when invoking
4036 (cb_undef): Likewise.
4037 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4038 invoking cb_file_change.
4039 (c_finish_options): Likewise.
4040 (push_command_line_include): Likewise.
4041 (cb_file_change): Strengthen param "new_map" from
4042 const line_map * to const line_map_ordinary *.
4043 * c-ppoutput.c (cb_define): Likewise for local "map".
4044 (pp_file_change): Likewise for param "map" and local "from".
4046 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4048 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4050 2015-05-18 Tom de Vries <tom@codesourcery.com>
4052 * c-common.c (build_va_arg_1): New function.
4053 (build_va_arg): Add address operator to va_list operand if necessary.
4055 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4058 * c-common.c (int_safely_convertible_to_real_p): Define.
4059 (unsafe_conversion_p): Check conversions involving complex types.
4060 (conversion_warning): Add new warning message for conversions which
4061 discard imaginary component.
4062 * c-common.h: (enum conversion_safety): Add new enumerator for such
4065 2015-05-14 Marek Polacek <polacek@redhat.com>
4069 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4070 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4071 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4072 use it. If FOR_INT_CONST, require that all evaluated operands be
4075 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4077 * c-common.h (warn_for_misleading_indentation): New prototype.
4078 * c-indentation.c: New file.
4079 * c.opt (Wmisleading-indentation): New option.
4081 2015-05-12 Tom de Vries <tom@codesourcery.com>
4083 PR tree-optimization/66010
4084 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4086 2015-05-09 Jason Merrill <jason@redhat.com>
4088 * c-opts.c (c_common_post_options): Also clear
4089 cpp_opts->cpp_warn_cxx11_compat.
4091 * c-common.h (enum cxx_dialect): Add cxx_unset.
4092 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4093 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4095 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4096 (std=gnu++0x): Mark as Undocumented.
4097 (std=gnu++1y): Add deprecated message.
4099 2015-05-08 Jason Merrill <jason@redhat.com>
4101 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4104 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4106 2015-05-08 Marek Polacek <polacek@redhat.com>
4109 * c.opt (Woverride-init-side-effects): New option.
4111 2015-05-07 Marek Polacek <polacek@redhat.com>
4114 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4116 * c.opt (Wshift-negative-value): New option.
4117 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4118 when -Wextra and C99/C++11 mode.
4120 2015-05-07 Marek Polacek <polacek@redhat.com>
4121 Martin Uecker <uecker@eecs.berkeley.edu>
4123 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4124 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4126 2015-05-05 Jason Merrill <jason@redhat.com>
4128 * c.opt (Wterminate): New.
4130 2015-04-30 Marek Polacek <polacek@redhat.com>
4132 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4133 require that the non-constant be of a boolean type.
4135 2015-04-29 Josh Triplett <josh@joshtriplett.org>
4137 * c-common.c (handle_section_attribute): Refactor to reduce
4138 nesting and distinguish between error cases.
4140 2015-04-29 Marek Polacek <polacek@redhat.com>
4143 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4146 2015-04-29 Jakub Jelinek <jakub@redhat.com>
4148 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4149 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4150 HOST_BITS_PER_WIDE_INT.
4152 2015-04-28 Tom de Vries <tom@codesourcery.com>
4154 PR tree-optimization/65887
4155 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4157 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
4158 Pierre-Marie de Rodat <derodat@adacore.com>
4160 * c-ada-spec.c (in_function): Delete.
4161 (dump_generic_ada_node): Do not change in_function and remove the
4162 redundant code dealing with it.
4163 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4164 (print_ada_methods): Output the static member functions in a nested
4165 package after the regular methods as well as associated renamings.
4167 2015-04-24 Marek Polacek <polacek@redhat.com>
4170 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4171 and OPT_Wshift_count_overflow.
4174 * c-common.c (warn_logical_operator): Warn if the operands have the
4177 2015-04-24 Marek Polacek <polacek@redhat.com>
4180 * c-common.c (warn_logical_operator): Bail if either operand comes
4181 from a macro expansion.
4183 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4186 * c-common.c (c_default_pointer_mode): Add definition.
4187 * c-common.h (c_default_pointer_mode): Add declaration.
4189 2015-03-11 Jakub Jelinek <jakub@redhat.com>
4191 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4192 on record_builtin_type argument.
4194 2015-03-10 Jakub Jelinek <jakub@redhat.com>
4197 * c-common.c (warn_logical_not_parentheses): Don't warn for
4200 2015-03-07 Marek Polacek <polacek@redhat.com>
4203 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4204 before trying to figure out whether we have a flexible array member.
4206 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
4207 Jonathan Wakely <jwakely.gcc@gmail.com>
4209 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4211 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4214 * c-ada-spec.c (print_destructor): Remove obsolete code.
4216 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4218 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4219 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4220 DECL_TEMPLATE_RESULT emulations.
4221 (dump_ada_template)): Add guard for TYPE_METHODS.
4223 2015-02-27 Marek Polacek <polacek@redhat.com>
4226 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4228 2015-02-27 Kai Tietz <ktietz@redhat.com>
4231 * c-pragma.c (handle_pragma_weak): Do not try to create
4232 weak/alias of declarations not being function, or variable
4235 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4238 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4240 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4242 2015-02-16 Marek Polacek <polacek@redhat.com>
4245 * c-format.c (check_format_types): Handle null param.
4247 2015-02-13 Marek Polacek <polacek@redhat.com>
4250 * c-format.c (check_format_types): Don't warn about different
4251 signedness if the original value is in the range of WANTED_TYPE.
4253 2015-02-12 Jason Merrill <jason@redhat.com>
4256 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4257 to the current highest version.
4258 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4260 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4264 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4265 instead of RDIV_EXPR. Use build_binary_op instead of
4268 2015-01-30 Joseph Myers <joseph@codesourcery.com>
4270 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4271 to pass input_location as first argument.
4273 2015-01-23 Tom de Vries <tom@codesourcery.com>
4276 * c.opt (fopenacc): Mark as LTO option.
4278 2015-01-23 Tom de Vries <tom@codesourcery.com>
4281 * c.opt (fopenmp): Mark as LTO option.
4283 2015-01-21 Jakub Jelinek <jakub@redhat.com>
4286 * cilk.c (fill_decls_vec): Only put decls into vector v.
4287 (compare_decls): Fix up formatting.
4289 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4292 * cilk.c: Include vec.h.
4293 (struct cilk_decls): New structure.
4294 (wrapper_parm_cb): Split this function to...
4295 (fill_decls_vec): ...this...
4296 (create_parm_list): ...and this.
4297 (compare_decls): New function.
4298 (for_local_cb): Remove.
4299 (wrapper_local_cb): Ditto.
4300 (build_wrapper_type): For now first traverse and fill vector of
4301 declarations then sort it and then deal with sorted vector.
4302 (cilk_outline): Ditto.
4303 (declare_one_free_variable): Ditto.
4305 2015-01-21 Jason Merrill <jason@redhat.com>
4308 * c-format.c (check_format_arg): Call decl_constant_value.
4310 2015-01-19 Martin Liska <mliska@suse.cz>
4312 * c-common.c (handle_noicf_attribute): New function.
4314 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4315 Bernd Schmidt <bernds@codesourcery.com>
4316 James Norris <jnorris@codesourcery.com>
4317 Cesar Philippidis <cesar@codesourcery.com>
4318 Ilmir Usmanov <i.usmanov@samsung.com>
4319 Jakub Jelinek <jakub@redhat.com>
4321 * c.opt (fopenacc): New option.
4322 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4323 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4325 * c-common.h (c_finish_oacc_wait): New prototype.
4326 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4327 (c_finish_oacc_wait): New function.
4328 * c-pragma.c (oacc_pragmas): New variable.
4329 (c_pp_lookup_pragma, init_pragma): Handle it.
4330 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4331 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4332 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4333 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4334 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4335 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4336 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4337 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4338 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4339 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4340 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4341 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4342 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4343 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4344 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4345 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4346 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4347 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4348 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4349 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4350 PRAGMA_OACC_CLAUSE_WORKER.
4352 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4354 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4355 for the new option fstack-protector_explicit.
4356 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4357 (handle_stack_protect_attribute): New function.
4359 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
4361 * c.opt: New option -Warray-bounds=.
4363 2015-01-09 Michael Collison <michael.collison@linaro.org>
4365 * array-notation-common.c: Include hash-set.h, machmode.h,
4366 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4367 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4368 * c-ada-spec.c: Ditto.
4369 * c-cilkplus.c: Ditto.
4370 * c-common.c: Include input.h due to flattening of tree.h.
4371 Define macro GCC_C_COMMON_C.
4372 * c-common.h: Flatten tree.h header files into c-common.h.
4373 Remove include of tree-core.h.
4374 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4375 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4376 fold-const.h, wide-int.h, and inchash.h due to
4377 flattening of tree.h.
4379 * c-format.c: Flatten tree.h header files into c-common.h.
4380 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4381 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4382 fold-const.h, wide-int.h, and inchash.h due to
4383 flattening of tree.h.
4384 * c-dump.c: Include hash-set.h, machmode.h,
4385 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4386 fold-const.h, wide-int.h, and inchash.h due to
4387 flattening of tree.h.
4388 * c-format.c: Include hash-set.h, machmode.h,
4389 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4390 fold-const.h, wide-int.h, inchash.h and real.h due to
4391 flattening of tree.h.
4392 * c-gimplify.c: Include hash-set.h, machmode.h,
4393 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4394 fold-const.h, wide-int.h, and inchash.h due to
4395 flattening of tree.h.
4401 * c-ppoutput.c: Ditto.
4402 * c-pragma.c: Ditto.
4403 * c-pretty-print.c: Ditto.
4404 * c-semantics.c: Ditto.
4406 * stub-objc.c: Ditto.
4408 2015-01-08 Jason Merrill <jason@redhat.com>
4410 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4411 do_ubsan_in_current_function.
4412 (ubsan_maybe_instrument_reference_or_call): Likewise.
4413 * c-ubsan.h: Declare it.
4415 2015-01-08 Mike Stump <mikestump@comcast.net>
4417 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4419 2015-01-07 Marek Polacek <polacek@redhat.com>
4422 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4423 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4425 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4428 * c.opt (Wsuggest-override): New option.
4430 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4432 Update copyright years.
4434 2015-01-05 Marek Polacek <polacek@redhat.com>
4437 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4439 * c-common.h (warn_array_subscript_with_type_char): Update
4442 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4444 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4445 Control macro with flag_sized_deallocation.
4447 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
4449 * c.opt (Wdiscarded-array-qualifiers): New option.
4451 2014-12-19 Jakub Jelinek <jakub@redhat.com>
4453 PR preprocessor/63831
4454 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4455 and __has_cpp_attribute here.
4456 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4457 c_common_has_attribute.
4458 * c-common.h (c_common_has_attribute): New prototype.
4459 * c-lex.c (init_c_lex): Set cb->has_attribute to
4460 c_common_has_attribute instead of cb_has_attribute.
4461 (get_token_no_padding): New function.
4462 (cb_has_attribute): Renamed to ...
4463 (c_common_has_attribute): ... this. No longer static. Use
4464 get_token_no_padding, require ()s, don't build TREE_LIST
4465 unnecessarily, fix up formatting, adjust diagnostics, call
4468 2014-12-15 Jason Merrill <jason@redhat.com>
4470 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4471 (-Wsized-deallocation): New.
4472 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4473 to on in C++14 and up.
4475 2014-12-11 Jason Merrill <jason@redhat.com>
4477 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4479 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4480 we aren't complaining about VLAs.
4482 2014-12-06 Marek Polacek <polacek@redhat.com>
4484 PR tree-optimization/64183
4485 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4486 shift-expression if it is integer_type_node. Use types_compatible_p.
4488 2014-11-29 Jakub Jelinek <jakub@redhat.com>
4490 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4491 last argument from create_tmp_var_raw and create_tmp_var calls.
4492 * cilk.c (gimplify_cilk_spawn): Likewise.
4493 * c-omp.c (c_finish_omp_atomic): Likewise.
4495 2014-11-28 Marek Polacek <polacek@redhat.com>
4497 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4498 instead of unsigned_type_node.
4500 2014-11-28 Marek Polacek <polacek@redhat.com>
4503 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4505 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4506 expression to unsigned_type_node.
4508 2014-11-20 Mark Wielaard <mjw@redhat.com>
4511 * c-opts.c (set_std_c89): Set lang_hooks.name.
4512 (set_std_c99): Likewise.
4513 (set_std_c11): Likewise.
4514 (set_std_cxx98): Likewise.
4515 (set_std_cxx11): Likewise.
4516 (set_std_cxx14): Likewise.
4517 (set_std_cxx1z): Likewise.
4519 2014-11-21 Jakub Jelinek <jakub@redhat.com>
4522 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4523 return type to bool.
4524 * c-common.c: Include gimple-expr.h.
4525 (convert_vector_to_pointer_for_subscript): Change return type to
4526 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4527 and copy it into a TARGET_EXPR and use that instead of *vecp
4530 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4532 Merger of git branch "gimple-classes-v2-option-3".
4533 * ChangeLog.gimple-classes: New.
4534 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4535 from being just a vec<gimple> to a vec<gbind *>.
4537 2014-11-18 Jakub Jelinek <jakub@redhat.com>
4540 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4541 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4542 get_pointer_alignment for non-pointers. Use ptype, or if it is
4543 reference type, corresponding pointer type, as type of kind
4545 (ubsan_maybe_instrument_reference,
4546 ubsan_maybe_instrument_member_call): Adjust callers.
4548 2014-11-15 Marek Polacek <polacek@redhat.com>
4551 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4553 (extract_array_notation_exprs): Return for NULL node.
4555 2014-11-12 Joseph Myers <joseph@codesourcery.com>
4557 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4558 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4560 2014-11-12 Jakub Jelinek <jakub@redhat.com>
4563 * c-common.c (check_builtin_function_arguments): Handle
4564 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4566 2014-11-10 Andi Kleen <ak@linux.intel.com>
4569 * c-common.h (check_no_cilk): Declare.
4570 * cilk.c (get_error_location): New function.
4571 (check_no_cilk): Dito.
4573 2014-11-10 Andi Kleen <ak@linux.intel.com>
4575 * cilk.c (recognize_spawn): Use expression location
4578 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4580 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4582 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4584 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4585 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4586 (__cpp_range_based_for, __cpp_initializer_lists,
4587 __cpp_delegating_constructors, __cpp_nsdmi,
4588 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4589 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4590 __has_cpp_attribute.
4591 * c-lex.c (cb_has_attribute): New callback CPP function;
4592 (init_c_lex): Set has_attribute callback.
4594 2014-11-04 Richard Biener <rguenther@suse.de>
4596 * c-common.c (shorten_compare): Do not shorten mixed
4597 DFP and non-DFP compares.
4599 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4601 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4602 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4603 Commentary and rearrangement of tests.
4604 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4605 Commentary and rearrangement of tests.
4606 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4607 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4609 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4611 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4612 enum from machine_mode.
4614 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
4616 * c-common.c: Adjust include files.
4617 * c-gimplify.c: Ditto.
4619 * c-pragma.c: Ditto.
4622 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
4624 * c-gimplify.c: Adjust include files.
4626 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4629 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4630 c_common_initialize_diagnostics.
4631 * c-common.h: Likewise.
4633 2014-10-24 Marek Polacek <polacek@redhat.com>
4636 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4637 print "struct"/"union"/"enum" for typedefed names.
4639 2014-10-23 Marek Polacek <polacek@redhat.com>
4641 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4644 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4645 Yury Gribov <y.gribov@samsung.com>
4647 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4648 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4649 instead of flag_sanitize_recover as bool flag.
4651 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4653 * cilk.c: Revert previous change.
4655 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4658 * cilk.c: Include vec.h.
4659 (struct cilk_decls): New structure.
4660 (wrapper_parm_cb): Split this function to...
4661 (fill_decls_vec): ...this...
4662 (create_parm_list): ...and this.
4663 (compare_decls): New function.
4664 (for_local_cb): Remove.
4665 (wrapper_local_cb): Ditto.
4666 (build_wrapper_type): For now first traverse and fill vector of
4667 declarations then sort it and then deal with sorted vector.
4668 (cilk_outline): Ditto.
4669 (declare_one_free_variable): Ditto.
4671 2014-10-17 Marek Polacek <polacek@redhat.com>
4673 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4674 * c.opt (Wimplicit-int): Initialize to -1.
4676 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
4678 * c-pragma.c: Adjust include files.
4679 * c-semantics.c: Likewise.
4681 2014-10-16 DJ Delorie <dj@redhat.com>
4683 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4686 2014-10-14 Jason Merrill <jason@redhat.com>
4689 * c-common.h (CPP_PREPARSED_EXPR): New.
4690 (N_CP_TTYPES): Adjust.
4692 2014-10-15 Marek Polacek <polacek@redhat.com>
4694 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4696 2014-10-14 DJ Delorie <dj@redhat.com>
4698 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4699 types, not just __int128.
4700 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4701 types, not just __int128.
4702 (cpp_atomic_builtins): Round pointer sizes up.
4703 (type_suffix): Use type precision, not specific types.
4704 * c-common.c (c_common_reswords): Remove __int128 special case.
4705 (c_common_type_for_size): Check for all __intN types, not just
4707 (c_common_type_for_mode): Likewise.
4708 (c_common_signed_or_unsigned_type): Likewise.
4709 (c_build_bitfield_integer_type): Likewise.
4710 (c_common_nodes_and_builtins): Likewise.
4711 (keyword_begins_type_specifier): Likewise.
4712 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4715 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4717 * c-common.c: Use hash_table instead of hashtab.
4719 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4721 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4724 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
4729 * c-common.c (warn_logical_operator): Punt for vectors.
4731 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4733 Implement SD-6: SG10 Feature Test Recommendations
4734 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4735 macros and the __has_header macro.
4737 2014-09-30 Jason Merrill <jason@redhat.com>
4739 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4740 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4741 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4743 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4744 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4746 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4747 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4749 2014-09-24 Marek Polacek <polacek@redhat.com>
4753 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4755 2014-09-23 Andi Kleen <ak@linux.intel.com>
4757 * c-common.c (handle_no_reorder_attribute): New function.
4758 (c_common_attribute_table): Add no_reorder attribute.
4760 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4762 * c-cppbuiltin.c (c_cpp_builtins): Define
4763 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4766 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4768 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4769 for supported floating-point modes.
4771 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4773 * c.opt (Wpsabi): Use LangEnabledBy.
4774 * c-opts.c (c_common_handle_option): Do not handle here.
4776 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4778 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4779 macros for floating-point modes.
4781 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4784 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4785 __*_DENORM_MIN__ without denormals.
4787 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4789 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4790 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4791 ubsan_create_data callers.
4792 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4793 index is constant or BIT_AND_EXPR with constant mask and is
4794 small enough for the bound.
4795 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4796 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4798 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4800 * c.opt: Add CppReason to various flags.
4801 (Wdate-time): Re-sort.
4802 * c-common.c: Include c-common.h earlier.
4803 (struct reason_option_codes_t): Delete.
4804 (c_option_controlling_cpp_error): Prefix global type and struct
4807 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4809 * c.opt (Wnormalized): New.
4810 (Wnormalized=): Use Enum and Reject Negative.
4811 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4813 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4815 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4816 digits of floating-point modes if -fbuilding-libgcc.
4818 2014-09-05 Joseph Myers <joseph@codesourcery.com>
4820 * c-cppbuiltin.c (c_cpp_builtins): Also define
4821 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4822 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4823 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4824 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4825 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4826 __LIBGCC_STACK_GROWS_DOWNWARD__,
4827 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4828 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4829 __LIBGCC_DWARF_FRAME_REGISTERS__,
4830 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4831 __LIBGCC_STACK_POINTER_REGNUM__ and
4832 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4833 (builtin_define_with_value): Handle backslash-escaping in string
4836 2014-09-05 Richard Biener <rguenther@suse.de>
4839 * c-format.c (check_format_arg): Properly handle
4840 effectively signed POINTER_PLUS_EXPR offset.
4842 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4844 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4845 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4846 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4848 * c-opts.c (c_common_handle_option): Do not handle here.
4849 (sanitize_cpp_opts): Likewise.
4850 * c-common.c (struct reason_option_codes_t): Handle
4851 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4853 2014-09-03 Marek Polacek <polacek@redhat.com>
4855 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4857 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4858 Balaji V. Iyer <balaji.v.iyer@intel.com>
4859 Igor Zamyatin <igor.zamyatin@intel.com>
4861 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4862 * c-common.c (c_common_reswords): Added _Cilk_for.
4863 * c-common.h (enum rid): Added RID_CILK_FOR.
4864 (cilk_for_number_of_iterations): Add declaration.
4865 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4867 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4868 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4870 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4872 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4873 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4874 Wundef): Use CPP, Var and Init.
4875 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4877 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4879 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4880 * c-opts.c (c_common_handle_option): Do not handle here.
4882 2014-08-25 Jason Merrill <jason@redhat.com>
4884 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4885 -std=c++14 and -std=gnu++14, rather than the reverse.
4886 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4887 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4888 * c-common.h (cxx_dialect): Remove cxx1y.
4890 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4892 * c-common.h (enum cxx_dialect): Add cxx14.
4893 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4894 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4895 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4897 2014-08-22 Jason Merrill <jason@redhat.com>
4899 * c.opt (std=gnu++17): Fix alias.
4901 2014-08-22 Marek Polacek <polacek@redhat.com>
4904 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4905 check for vector types. Drop LHS argument.
4906 * c-common.h (warn_logical_not_parentheses): Adjust.
4908 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4910 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4911 (Wmultichar): Likewise.
4912 (Wdate-time): Use C-family languages instead of Common. Use CPP
4914 * c-opts.c (c_common_handle_option): Do not handle the above
4916 (sanitize_cpp_opts): Likewise.
4918 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4921 * c-opts.c: Include tree-diagnostics.h.
4922 (c_diagnostic_finalizer): New.
4923 (c_common_initialize_diagnostics): Use it.
4925 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4927 PR preprocessor/51303
4928 * c-common.c (struct reason_option_codes_t option_codes):
4929 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4931 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4935 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4936 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4937 (c_common_post_options): Call init_global_opts_from_cpp.
4938 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4940 2014-08-19 Marek Polacek <polacek@redhat.com>
4943 * c-common.c (maybe_warn_bool_compare): New function.
4944 * c-common.h (maybe_warn_bool_compare): Declare.
4945 * c.opt (Wbool-compare): New option.
4947 2014-08-19 Marek Polacek <polacek@redhat.com>
4949 * c.opt (Wc99-c11-compat): New option.
4951 2014-08-19 Marek Polacek <polacek@redhat.com>
4953 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4954 to warn_c90_c99_compat.
4955 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4958 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4959 Steven Bosscher <steven@gcc.gnu.org>
4962 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4963 format_check_results.
4964 (check_function_format): Use true and add comment for boolean
4966 (finish_dollar_format_checking): Use explicit location when warning.
4967 (check_format_info): Likewise.
4968 (check_format_arg): Set extra_arg_loc and format_string_loc.
4969 (check_format_info_main): Use explicit location when warning.
4970 (check_format_types): Pass explicit location.
4971 (format_type_warning): Likewise.
4973 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4976 * c-format.c: Handle Fortran flags.
4978 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4981 * array-notation-common.c (find_rank): Added handling for other
4982 types of references.
4984 2014-08-10 Marek Polacek <polacek@redhat.com>
4987 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4988 * c.opt (Wc90-c99-compat): Add option.
4990 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4992 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4994 2014-08-03 Marek Polacek <polacek@redhat.com>
4996 * c-common.c (check_case_value): Add location_t parameter. Use it.
4997 (c_add_case_label): Pass loc to check_case_value.
4999 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5001 * cilk.c: Use hash_map instead of pointer_map.
5003 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5005 * c-gimplify.c: Use hash_set instead of pointer_set.
5007 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5010 * array-notation-common.c (extract_array_notation_exprs): Handling
5013 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5015 * c-common.h (min_align_of_type): Removed prototype.
5016 * c-common.c (min_align_of_type): Removed.
5017 * c-ubsan.h (ubsan_maybe_instrument_reference,
5018 ubsan_maybe_instrument_member_call): New prototypes.
5019 * c-ubsan.c: Include stor-layout.h and builtins.h.
5020 (ubsan_maybe_instrument_reference_or_call,
5021 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5024 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
5027 * c.opt (-Wreturn-local-addr): Move to common.opt.
5029 2014-07-30 Jason Merrill <jason@redhat.com>
5034 * c.opt (-fuse-all-virtuals): New.
5036 2014-07-30 Tom Tromey <tromey@redhat.com>
5039 * c.opt (Wdesignated-init): New option.
5040 * c-common.c (c_common_attribute_table): Add "designated_init".
5041 (handle_designated_init): New function.
5043 2014-07-24 Marek Polacek <polacek@redhat.com>
5046 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5048 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5050 PR preprocessor/60723 - missing system-ness marks for macro tokens
5051 * c-ppoutput.c (struct print::prev_was_system_token): New data
5053 (init_pp_output): Initialize it.
5054 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5055 (do_line_change): Return a flag saying if a line marker was
5057 (scan_translation_unit): Detect if the system-ness of the token we
5058 are about to emit is different from the one of the previously
5059 emitted token. If so, emit a line marker. Avoid emitting useless
5060 adjacent line markers. Avoid emitting line markers for tokens
5061 originating from the expansion of built-in macros.
5062 (scan_translation_unit_directives_only): Adjust.
5064 2014-07-15 Marek Polacek <polacek@redhat.com>
5066 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5067 TYPE_MAX_VALUE is NULL.
5069 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5072 * c.opt (Wmemset-transposed-args): New warning.
5074 2014-07-10 Jason Merrill <jason@redhat.com>
5078 * c.opt (-fuse-all-virtuals): New.
5080 2014-07-09 Richard Biener <rguenther@suse.de>
5083 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5084 using unsigned arithmetic if overflow does not wrap instead of
5085 if overflow is undefined.
5087 2014-07-06 Marek Polacek <polacek@redhat.com>
5090 * c.opt (Wsizeof-array-argument): New option.
5092 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5094 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
5095 comments->count <= 1, as comments->entries might be NULL.
5097 2014-07-01 Marek Polacek <polacek@redhat.com>
5099 * c.opt (Wint-conversion): New option.
5101 2014-07-01 Marek Polacek <polacek@redhat.com>
5104 * c.opt (Wincompatible-pointer-types): New option.
5106 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5109 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5110 Do not discard TYPE_QUALS of type.
5112 2014-06-26 Jason Merrill <jason@redhat.com>
5114 * c-common.h (enum cxx_dialect): Add cxx1z.
5115 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5116 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5118 2014-06-26 Teresa Johnson <tejohnson@google.com>
5120 * c-common.h (get_dump_info): Declare.
5121 * c-gimplify.c (c_genericize): Use saved dump files.
5122 * c-opts.c (c_common_parse_file): Begin and end dumps
5123 once around parsing invocation.
5124 (get_dump_info): New function.
5126 2014-06-23 Marek Polacek <polacek@redhat.com>
5127 Andrew MacLeod <amacleod@redhat.com>
5130 * c-common.c (get_atomic_generic_size): Don't segfault if the
5131 type doesn't have a size.
5133 2014-06-20 Marek Polacek <polacek@redhat.com>
5135 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5136 (ubsan_walk_array_refs_r): New function.
5137 (c_genericize): Instrument array bounds.
5138 * c-ubsan.c: Include "internal-fn.h".
5139 (ubsan_instrument_division): Mark instrumented arrays as having
5140 side effects. Adjust ubsan_type_descriptor call.
5141 (ubsan_instrument_shift): Likewise.
5142 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5143 (ubsan_instrument_bounds): New function.
5144 (ubsan_array_ref_instrumented_p): New function.
5145 (ubsan_maybe_instrument_array_ref): New function.
5146 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5147 (ubsan_array_ref_instrumented_p): Declare.
5148 (ubsan_maybe_instrument_array_ref): Declare.
5150 2014-06-20 Hale Wang <hale.wang@arm.com>
5153 * c.opt (fshort-enums): Add to LTO.
5154 * c.opt (fshort-wchar): Likewise.
5156 2014-06-16 Marek Polacek <polacek@redhat.com>
5159 * c.opt (Wswitch-bool): Add Var.
5161 2014-06-12 Jakub Jelinek <jakub@redhat.com>
5164 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5165 #pragma omp target teams or
5166 #pragma omp {,target }teams distribute simd.
5168 2014-06-12 Jason Merrill <jason@redhat.com>
5170 * c.opt (Wabi=, fabi-compat-version): New.
5171 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5172 (c_common_post_options): Handle flag_abi_compat_version default.
5173 Disallow -fabi-compat-version=1.
5174 * c-common.h (abi_version_crosses): New.
5176 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
5178 * c-common.c (handle_section_attribute): Update handling for
5179 section names that are no longer trees.
5181 2014-06-10 Jakub Jelinek <jakub@redhat.com>
5184 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5185 (omp_pragmas): ... back here.
5187 2014-06-05 Marek Polacek <polacek@redhat.com>
5190 * c-common.c (warn_logical_not_parentheses): New function.
5191 * c-common.h (warn_logical_not_parentheses): Declare.
5192 * c.opt (Wlogical-not-parentheses): New option.
5194 2014-06-04 Marek Polacek <polacek@redhat.com>
5197 * c-common.c (check_case_bounds): Add location parameter.
5199 (c_add_case_label): Pass loc to check_case_bounds.
5201 2014-06-03 Marek Polacek <polacek@redhat.com>
5204 * c.opt (Wswitch-bool): New option.
5206 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5208 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5210 (record_types_used_by_current_var_decl): Move prototype to where
5213 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5214 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5215 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5217 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5219 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5220 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5222 * c-pretty-print.c (pp_c_void_constant): New function.
5223 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5224 (c_pretty_printer::expression): Handle VOID_CST.
5225 * cilk.c (extract_free_variables): Likewise.
5226 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5227 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5229 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5231 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5232 * c-pragma.c (push_alignment): Adjust.
5233 (handle_pragma_push_options): Likewise.
5235 2014-05-09 Marek Polacek <polacek@redhat.com>
5238 * c-common.c (check_user_alignment): Return -1 if alignment is error
5240 (handle_aligned_attribute): Don't call default_conversion on
5242 (handle_vector_size_attribute): Likewise.
5243 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5244 (handle_sentinel_attribute): Call default_conversion and allow even
5245 integral types as an argument.
5247 2014-05-08 Marek Polacek <polacek@redhat.com>
5250 * c-common.c (min_align_of_type): New function factored out from...
5251 (c_sizeof_or_alignof_type): ...here.
5252 * c-common.h (min_align_of_type): Declare.
5254 2014-05-08 Marek Polacek <polacek@redhat.com>
5257 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5258 parameter type of main.
5260 2014-05-07 DJ Delorie <dj@redhat.com>
5262 * c-cppbuiltin.c (print_bits_of_hex): New.
5263 (builtin_define_type_minmax): Print values using hex so as not to
5264 require a pre-computed list of string values.
5266 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5267 Mike Stump <mikestump@comcast.net>
5268 Richard Sandiford <rdsandiford@googlemail.com>
5270 * c-ada-spec.c: Include wide-int.h.
5271 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5272 (dump_generic_ada_node): Use wide-int interfaces.
5273 * c-common.c: Include wide-int-print.h.
5274 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5275 (pointer_int_sum): Use wide-int interfaces.
5276 (c_common_nodes_and_builtins): Use make_int_cst.
5277 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5278 (handle_alloc_size_attribute): Use wide-int interfaces.
5279 (get_nonnull_operand): Likewise.
5280 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5281 * c-lex.c: Include wide-int.h.
5282 (narrowest_unsigned_type): Take a widest_int rather than two
5284 (narrowest_signed_type): Likewise.
5285 (interpret_integer): Update accordingly. Use wide-int interfaces.
5286 (lex_charconst): Use wide-int interfaces.
5287 * c-pretty-print.c: Include wide-int.h.
5288 (pp_c_integer_constant): Use wide-int interfaces.
5289 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5290 INT_CST_LT_UNSIGNED.
5292 2014-05-06 Richard Biener <rguenther@suse.de>
5294 * c-opts.c (c_common_post_options): For -freestanding,
5295 -fno-hosted and -fno-builtin disable pattern recognition
5296 if not enabled explicitely.
5298 2014-05-02 Marek Polacek <polacek@redhat.com>
5300 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5302 2014-05-01 Marek Polacek <polacek@redhat.com>
5305 * c.opt (Wdiscarded-qualifiers): Add.
5307 2014-04-30 Marek Polacek <polacek@redhat.com>
5309 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5310 INT_MIN / -1 sanitization only for integer types.
5312 2014-04-25 Marek Polacek <polacek@redhat.com>
5315 * c-common.c (handle_noinline_attribute): Warn if the attribute
5316 conflicts with always_inline attribute.
5317 (handle_always_inline_attribute): Warn if the attribute conflicts
5318 with noinline attribute.
5320 2014-04-25 Marek Polacek <polacek@redhat.com>
5323 * c-common.c (check_main_parameter_types): Warn about variadic main.
5325 2014-04-24 Mike Stump <mikestump@comcast.net>
5327 * c.opt (Wshadow-ivar): Default to on.
5329 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5331 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5333 2014-04-23 Marek Polacek <polacek@redhat.com>
5335 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5337 2014-04-22 Jakub Jelinek <jakub@redhat.com>
5340 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5341 if flag_sanitize_undefined_trap_on_error.
5342 (ubsan_instrument_division, ubsan_instrument_shift,
5343 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5344 if !flag_sanitize_recover.
5346 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
5349 * c-common.c (registered_builtin_types): Make non-static.
5350 * c-common.h (registered_builtin_types): Declare.
5352 2014-04-14 Richard Biener <rguenther@suse.de>
5353 Marc Glisse <marc.glisse@inria.fr>
5356 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5357 apply may-alias the scalar pointer type when applicable.
5359 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5362 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5363 as possible argument for Cilk_spawn.
5365 2014-04-11 Tobias Burnus <burnus@net-b.de>
5368 * c.opt (Wformat-signedness): Add
5369 * c-format.c(check_format_types): Use it.
5371 2014-04-11 Jason Merrill <jason@redhat.com>
5374 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5375 default_conversion for an array argument.
5377 2014-04-08 Marek Polacek <polacek@redhat.com>
5380 * c-ubsan.c: Include asan.h.
5381 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5383 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5385 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5387 2014-04-02 Marek Polacek <polacek@redhat.com>
5389 * c-common.h (c_expand_expr): Remove declaration.
5391 2014-03-28 Jakub Jelinek <jakub@redhat.com>
5394 * c-common.c (add_atomic_size_parameter): When creating new
5395 params vector, push the size argument first.
5397 2014-03-26 Jakub Jelinek <jakub@redhat.com>
5399 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5400 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5401 ubsan_create_data callers.
5403 2014-03-22 Jakub Jelinek <jakub@redhat.com>
5406 * c-opts.c (c_finish_options): Restore cb_file_change call to
5409 2014-03-13 Jakub Jelinek <jakub@redhat.com>
5412 * c-pragma.c (apply_pragma_weak): Only look at
5413 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5414 DECL_ASSEMBLER_NAME_SET_P (decl).
5415 (maybe_apply_pending_pragma_weaks): Exit early if
5416 vec_safe_is_empty (pending_weaks) rather than only when
5418 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5419 set assembler name back to NULL afterwards.
5421 2014-03-11 Jason Merrill <jason@redhat.com>
5423 * c.opt: Add -std=gnu++14.
5425 2014-03-11 Ian Bolton <ian.bolton@arm.com>
5427 * c-opts.c (c_common_post_options): Don't override
5428 -ffp-contract=fast if unsafe-math-optimizations is on.
5430 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
5432 * c.opt: Enable LTO FE for fshort-double.
5434 2014-03-07 Jason Merrill <jason@redhat.com>
5436 * c.opt: Add -std=c++14.
5438 2014-03-06 Marek Polacek <polacek@redhat.com>
5441 * cilk.c (contains_cilk_spawn_stmt): New function.
5442 (contains_cilk_spawn_stmt_walker): Likewise.
5443 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5444 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5446 2014-03-03 Jakub Jelinek <jakub@redhat.com>
5448 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5449 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5450 even when flag_preprocess_only.
5452 2014-02-26 Jason Merrill <jason@redhat.com>
5456 * c-common.c (shorten_compare): Don't check
5457 c_inhibit_evaluation_warnings.
5459 2014-02-19 Jakub Jelinek <jakub@redhat.com>
5462 * c-common.c (c_common_nodes_and_builtins): When initializing
5463 c_uint{16,32,64}_type_node, also set corresponding
5464 uint{16,32,64}_type_node to the same value.
5467 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5468 for PRAGMA_IVDEP if flag_preprocess_only.
5470 2014-02-12 Jakub Jelinek <jakub@redhat.com>
5473 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5474 if false, add ADD itself, rather than vice versa.
5475 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5476 copy. For SAVE_EXPR, only call merge_tlist once.
5478 2014-02-08 Jakub Jelinek <jakub@redhat.com>
5481 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5483 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5485 (c_common_attribute_table): Add alloc_align and assume_aligned
5488 2014-02-06 Marek Polacek <polacek@redhat.com>
5491 * c-common.c (warn_for_sign_compare): Call warning_at with location
5494 2014-02-05 Marek Polacek <polacek@redhat.com>
5497 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5500 2014-02-04 Marek Polacek <polacek@redhat.com>
5503 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5506 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
5510 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5511 handle_vector_size_attribute, handle_nonnull_attribute): Call
5512 default_conversion on the attribute argument.
5513 (handle_nonnull_attribute): Increment the argument number.
5515 2014-01-31 Marek Polacek <polacek@redhat.com>
5518 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5519 build_function_call_vec.
5520 (resolve_overloaded_builtin): Likewise.
5521 * c-common.h (build_function_call_vec): Adjust declaration.
5523 2014-01-30 Marek Polacek <polacek@redhat.com>
5526 * c-common.h (unsafe_conversion_p): Adjust declaration.
5527 (warnings_for_convert_and_check): Likewise.
5528 (convert_and_check): Likewise.
5529 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5530 expansion_point_location_if_in_system_header on it.
5531 (warnings_for_convert_and_check): Add location parameter. Call
5532 expansion_point_location_if_in_system_header on it. Use it.
5533 (convert_and_check): Add location parameter. Use it.
5534 (conversion_warning): Likewise.
5535 (c_add_case_label): Adjust convert_and_check calls.
5536 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5538 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5540 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5542 * c-pragma.c (init_pragma): Likewise.
5545 2014-01-23 Marek Polacek <polacek@redhat.com>
5548 * c-common.c (shorten_compare): Add location_t parameter.
5549 * c-common.h (shorten_binary_op): Adjust declaration.
5551 2014-01-23 Marek Polacek <polacek@redhat.com>
5554 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5555 * c-common.h: Declare it.
5557 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5559 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5560 * c-ada-spec.c (dump_ads): Likewise.
5561 (cpp_check): Likewise.
5562 (dump_ada_specs): Likewise.
5564 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
5567 * c-common.c (handle_no_instrument_function_attribute): Allow
5568 no_instrument_function attribute in class member
5569 definition/declaration.
5571 2014-01-15 Jakub Jelinek <jakub@redhat.com>
5574 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5575 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5576 being COMPOUND_EXPR.
5577 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5578 operand a SAVE_EXPR and second MODIFY_EXPR.
5580 2014-01-09 Jakub Jelinek <jakub@redhat.com>
5583 * c-pch.c (c_common_write_pch): Call
5584 prepare_target_option_nodes_for_pch.
5586 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5588 Update copyright years
5590 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5592 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5593 the copyright notice.
5595 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5597 * c-ada-spec.c (print_constructor): New function.
5598 (print_destructor): Retrieve the origin of the destructor.
5599 (print_ada_declaration): Revamp handling of constructors/destructors.
5601 2013-12-23 Stuart Hastings <stuart@apple.com>
5602 Bill Maddox <maddox@google.com>
5603 Jason Merrill <jason@redhat.com>
5605 * c.opt: Add -fdeclone-ctor-dtor.
5606 * c-opts.c (c_common_post_options): Default to on iff -Os.
5608 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5610 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5612 * c-pragma.h (enum pragma_cilk_clause): Remove.
5613 (enum pragma_omp_clause): Added the following fields:
5614 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5615 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5616 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5617 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5618 PRAGMA_CILK_CLAUSE_UNIFORM.
5621 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5623 * cilk.c (cilk_outline): Made this function non-static.
5624 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5625 (create_cilk_wrapper): Added a new parameter: a function pointer.
5626 (c_install_body_w_frame_cleanup): Remove
5627 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5628 * c-common.h (cilk_outline): New prototype.
5629 (gimplify_cilk_spawn): Removed two parameters.
5630 (cilk_install_body_with_frame_cleanup): New prototype.
5631 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5632 CILK_SPAWN_STMT case.
5634 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5636 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5638 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5639 (int_array_type_node): Remove.
5640 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5642 2013-12-05 Marek Polacek <polacek@redhat.com>
5645 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5646 [ADJUST_FIELD_ALIGN].
5648 2013-12-04 Joseph Myers <joseph@codesourcery.com>
5651 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5652 and check field alignment if set.
5653 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5654 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5656 2013-12-04 Jakub Jelinek <jakub@redhat.com>
5657 Marek Polacek <polacek@redhat.com>
5659 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5660 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5662 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5665 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5668 2013-11-29 Jakub Jelinek <jakub@redhat.com>
5671 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5672 goto invalid. If it is error_mark_node, don't issue further
5675 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5677 * c.opt (Wopenmp-simd): New.
5679 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5681 * c-ubsan.h (ubsan_instrument_return): New prototype.
5682 * c-ubsan.c (ubsan_instrument_return): New function.
5684 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5686 * c-common.c: Add required include files from gimple.h.
5687 * c-gimplify.c: Likewise
5690 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5692 * c-common.c (unsafe_conversion_p): Remove use of
5693 EXPR_LOC_OR_HERE macro.
5694 (conversion_warning): Likewise.
5695 (warnings_for_convert_and_check): Likewise.
5696 (warn_for_collisions_1): Likewise.
5697 (shorten_compare): Likewise, and remove use of in_system_header
5698 macro, using the location from the former.
5699 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5700 (cb_def_pragma): Remove use of in_system_header macro.
5701 (lex_string): Likewise.
5702 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5704 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5705 Mike Stump <mikestump@comcast.net>
5706 Richard Sandiford <rdsandiford@googlemail.com>
5708 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5709 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5710 tree_fits_shwi_p or tree_fits_uhwi_p.
5711 (dump_generic_ada_node): Likewise.
5712 * c-format.c (check_format_arg): Likewise.
5713 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5715 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5717 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5719 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5722 * c-common.c (unsafe_conversion_p): Make this function
5723 return an enumeration with more detail.
5724 (conversion_warning): Use the new return type of
5725 unsafe_conversion_p to separately warn either about conversions
5726 that lower floating point number precision or about the other
5727 kinds of conversions.
5728 * c-common.h (enum conversion_safety): New enumeration.
5729 (unsafe_conversion_p): switching return type to
5730 conversion_safety enumeration.
5731 * c.opt: Adding new warning -Wfloat-conversion and
5732 enabling it with -Wconversion.
5734 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5736 * c-opts.c: Include plugin.h.
5737 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5739 2013-11-19 Marek Polacek <polacek@redhat.com>
5741 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5743 (ubsan_instrument_shift): Likewise.
5744 (ubsan_instrument_vla): Likewise.
5746 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5748 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5749 cast to unsigned type.
5751 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5753 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5755 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5756 rather than tree_low_cst.
5758 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5760 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5761 tree_to_uhwi throughout.
5763 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5765 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5766 tree_low_cst (..., 0) with tree_to_shwi throughout.
5768 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5770 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5771 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5773 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5775 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5776 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5778 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5780 * c-cilkplus.c: New file.
5781 * c-common.c (readonly_error): Add location argument.
5782 * c-common.h (readonly_error): Same.
5783 (c_finish_cilk_clauses): Protoize.
5784 (c_check_cilk_loop): Same.
5785 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5786 Do not fail on error_mark_node.
5787 Abstract increment canonicalization to here...
5788 (c_omp_for_incr_canonicalize_ptr): New.
5789 c-pragma.c (init_pragma): Register "simd" pragma.
5790 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5791 (enum pragma_cilk_clause): New.
5793 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5795 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5796 wchar_type and host_integerp checks.
5798 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5800 * c-common.c: Likewise.
5801 * c-gimplify.c: Likewise.
5804 2013-11-14 Diego Novillo <dnovillo@google.com>
5806 * c-common.c: Include fold-const.h.
5807 Include stor-layout.h.
5809 Include stringpool.h.
5812 Include trans-mem.h.
5813 * c-cppbuiltin.c: Include stor-layout.h.
5814 Include stringpool.h.
5815 * c-format.c: Include stringpool.h.
5816 * c-lex.c: Include stringpool.h.
5817 Include stor-layout.h.
5818 * c-pragma.c: Include stringpool.h.
5821 Include gcc-symtab.h.
5822 * c-pretty-print.c: Include stor-layout.h.
5824 * cilk.c: Include stringpool.h.
5827 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5829 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5830 * c-common.c (c_common_reswords): Add __auto_type.
5831 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5833 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5835 * c-common.c: Include gimplify.h.
5836 * c-gimplify.c: Likewise.
5838 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5839 * c-ubsan.c: Don't include gimple.h.
5841 2013-11-12 Joseph Myers <joseph@codesourcery.com>
5843 * c-common.c (c_common_reswords): Add _Thread_local.
5845 2013-11-09 Joseph Myers <joseph@codesourcery.com>
5847 * c-common.c (atomic_size_supported_p): New function.
5848 (resolve_overloaded_atomic_exchange)
5849 (resolve_overloaded_atomic_compare_exchange)
5850 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5851 Use it instead of comparing size with a local list of sizes.
5853 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5854 Joseph Myers <joseph@codesourcery.com>
5856 * c-common.h (enum rid): Add RID_ATOMIC.
5857 * c-common.c (c_common_reswords): Add _Atomic.
5858 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5859 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5860 * c-format.c (check_format_types): Check for extra _Atomic
5861 qualifiers in format argument.
5862 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5863 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5865 2013-11-06 Tobias Burnus <burnus@net-b.de>
5867 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5869 2013-11-06 Joseph Myers <joseph@codesourcery.com>
5871 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5873 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5874 to mean lack of IEEE 754 support.
5876 2013-11-05 Tobias Burnus <burnus@net-b.de>
5878 * c.opt (-Wdate-time): New option
5879 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5881 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5883 * c-cppbuiltin.c (cpp_iec_559_value): Test
5884 flag_excess_precision_cmdline not flag_excess_precision.
5886 2013-11-05 Tobias Burnus <burnus@net-b.de>
5888 * c.opt (fopenmp-simd): New option.
5889 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5890 (omp_pragmas): ... this new struct.
5891 (c_pp_lookup_pragma): Also walk omp_pragmas.
5892 (init_pragma): Init pragmas for -fopenmp-simd.
5894 2013-11-04 Marek Polacek <polacek@redhat.com>
5897 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5899 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5901 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5903 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5905 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5907 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5908 (dump_ada_specs): Adjust prototype of second callback.
5909 * c-ada-spec.c (cpp_check): New global variable.
5910 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5911 (print_generic_ada_decl): Likewise.
5912 (has_static_fields): Change return type to bool and add guard.
5913 (has_nontrivial_methods): New predicate.
5914 (is_tagged_type): Change return type to bool.
5915 (separate_class_package): Call has_nontrivial_methods.
5916 (pp_ada_tree_identifier): Minor tweaks.
5917 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5918 (dump_ada_array_domains): Likewise.
5919 (dump_ada_array_type): Likewise.
5920 (dump_template_types): Remove cpp_check parameter and do not pass it to
5921 dump_generic_ada_node.
5922 (dump_ada_template): Likewise.
5923 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5925 (print_ada_methods): Change return type to integer. Remove cpp_check
5926 parameter and do not pass it down.
5927 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5928 dump_generic_ada_node.
5929 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5931 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5932 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5933 value of print_ada_methods.
5934 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5935 Set cpp_check to it before invoking dump_ada_nodes.
5936 (dump_ada_specs): Likewise.
5938 2013-11-03 Marek Polacek <polacek@redhat.com>
5940 * c-ubsan.c: Don't include hash-table.h.
5941 (ubsan_instrument_vla): New function.
5942 * c-ubsan.h: Declare it.
5944 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5946 Automated part of renaming of symtab_node_base to symtab_node.
5948 Patch autogenerated by rename_symtab.py from
5949 https://github.com/davidmalcolm/gcc-refactoring-scripts
5950 revision 58bb219cc090b2f4516a9297d868c245495ee622
5952 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5953 symtab_node_base to symtab_node.
5955 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5957 Implement C++14 digit separators.
5958 * c-lex.c (interpret_float): Remove digit separators from scratch string
5959 before building real literal.
5961 2013-10-30 Jakub Jelinek <jakub@redhat.com>
5963 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5965 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5967 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5969 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5971 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5972 (insert_cilk_frame): New prototype.
5973 (cilk_init_builtins): Likewise.
5974 (gimplify_cilk_spawn): Likewise.
5975 (c_cilk_install_body_w_frame_cleanup): Likewise.
5976 (cilk_detect_spawn_and_unwrap): Likewise.
5977 (cilk_set_spawn_marker): Likewise.
5978 (build_cilk_sync): Likewise.
5979 (build_cilk_spawn): Likewise.
5982 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5984 Patch autogenerated by refactor_symtab.py from
5985 https://github.com/davidmalcolm/gcc-refactoring-scripts
5986 revision 58bb219cc090b2f4516a9297d868c245495ee622
5988 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5989 to a true class hierarchy.
5990 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5992 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5994 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5996 2013-10-26 Jeff Law <law@redhat.com>
5998 * c-common.c (c_define_builtins): Remove mudflap support.
5999 * c.opt: Ignore and warn for mudflap options.
6001 2013-10-24 Tobias Burnus <burnus@net-b.de>
6004 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6005 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6007 2013-10-23 Jason Merrill <jason@redhat.com>
6009 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6011 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6013 * c-common.h (omp_clause_mask::operator !=): New method.
6014 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6015 instead of if (mask & something) tests everywhere.
6017 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6018 201307 instead of 201107.
6019 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6020 (c_common_attribute_table): Add "omp declare target" and
6021 "omp declare simd" attributes.
6022 (handle_omp_declare_target_attribute,
6023 handle_omp_declare_simd_attribute): New functions.
6024 * c-omp.c: Include c-pragma.h.
6025 (c_finish_omp_taskgroup): New function.
6026 (c_finish_omp_atomic): Add swapped argument, if true,
6027 build the operation first with rhs, lhs arguments and use NOP_EXPR
6029 (c_finish_omp_for): Add code argument, pass it down to make_code.
6030 (c_omp_split_clauses): New function.
6031 (c_split_parallel_clauses): Removed.
6032 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6033 c_omp_declare_simd_clauses_to_decls): New functions.
6034 * c-common.h (omp_clause_mask): New type.
6035 (OMP_CLAUSE_MASK_1): Define.
6036 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6037 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6038 omp_clause_mask::operator |, omp_clause_mask::operator &,
6039 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6040 omp_clause_mask::operator ==): New methods.
6041 (enum c_omp_clause_split): New.
6042 (c_finish_omp_taskgroup): New prototype.
6043 (c_finish_omp_atomic): Add swapped argument.
6044 (c_finish_omp_for): Add code argument.
6045 (c_omp_split_clauses): New prototype.
6046 (c_split_parallel_clauses): Removed.
6047 (c_omp_declare_simd_clauses_to_numbers,
6048 c_omp_declare_simd_clauses_to_decls): New prototypes.
6049 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6050 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6051 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6052 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6053 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6054 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6055 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6056 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6057 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6058 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6059 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6060 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6061 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6062 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6063 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6064 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6065 PRAGMA_OMP_CLAUSE_UNIFORM.
6067 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
6069 PR tree-optimization/20318
6070 * c-common.c (handle_returns_nonnull_attribute): New function.
6071 (c_common_attribute_table): Add returns_nonnull.
6073 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
6076 * c.opt (fcheck-new): Move to common.opt.
6078 2013-09-25 Marek Polacek <polacek@redhat.com>
6079 Jakub Jelinek <jakub@redhat.com>
6082 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6083 an expression if we can prove it is correct.
6084 (ubsan_instrument_division): Likewise. Remove unnecessary
6087 2013-09-18 Marek Polacek <polacek@redhat.com>
6090 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6092 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6094 2013-09-14 Iain Sandoe <iain@codesourcery.com>
6097 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6098 fobjc-gc, freplace-objc-classes): Accept for LTO.
6100 2013-09-13 Jacek Caban <jacek@codeweavers.com>
6102 * c-target.def: New hook
6104 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6107 * c.opt (Wdelete-incomplete): Add.
6109 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6111 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6112 (vector_types_compatible_elements_p): New function.
6113 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6115 (vector_types_compatible_elements_p): Declare.
6117 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6119 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6120 a virtual member function.
6121 (pp_simple_type_specifier): Remove.
6122 (pp_c_type_specifier): Likewise.
6123 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6124 Rename from pp_c_type_specifier. Adjust.
6125 (c_pretty_printer::c_pretty_printer): Do not assign to
6126 simple_type_specifier.
6128 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6130 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6132 (c_pretty_printer::storage_class_specifier): Likewise.
6133 (c_pretty_printer::initializer): Likewise.
6134 (pp_declaration): Remove.
6135 (pp_declaration_specifiers): Likewise.
6136 (pp_abstract_declarator): Likewise.
6137 (pp_declarator): Likewise.
6138 (pp_type_id): Likewise.
6139 (pp_statement): Likewise.
6140 (pp_constant): Likewise.
6141 (pp_id_expression): Likewise.
6142 (pp_primary_expression): Likewise.
6143 (pp_unary_expression): Likewise.
6144 (pp_multiplicative_expression): Likewise.
6145 (pp_conditional_expression): Likewise.
6146 (pp_assignment_expression): Likewise.
6147 (pp_expression): Likewise.
6148 (pp_c_type_id): Likewise.
6149 (pp_c_storage_class_specifier): Likewise.
6150 * c-pretty-print.c (pp_c_type_cast): Tidy.
6151 (pp_c_pointer): Likewise.
6152 (pp_c_type_specifier): Likewise.
6153 (pp_c_parameter_type_list): Likewise.
6154 (pp_c_function_definition): Likewise.
6155 (pp_c_init_declarator): Likewise.
6156 (pp_c_initializer_list): Likewise.
6157 (pp_c_constructor_elts): Likewise.
6158 (c_pretty_printer::direct_abstract_declarator): Likewise.
6159 (c_pretty_printer::declaration_specifiers): Likewise.
6160 (c_pretty_printer::primary_expression): Likewise.
6161 (c_pretty_printer::postfix_expression): Likewise.
6162 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6163 (c_pretty_printer::storage_class_specifier): Rename from
6164 pp_c_storage_class_specifier.
6165 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6166 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6167 storage_class_specifier, initializer, offset_list, flags.
6169 2013-08-30 Marek Polacek <polacek@redhat.com>
6171 * c-ubsan.c: New file.
6172 * c-ubsan.h: New file.
6174 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6176 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6178 (c_pretty_printer::declaration_specifiers): Likewise.
6179 (c_pretty_printer::declarator): Likewise.
6180 (c_pretty_printer::abstract_declarator): Likewise.
6181 (c_pretty_printer::direct_abstract_declarator): Likewise.
6182 (c_pretty_printer::direct_declarator): Likewise.
6183 (c_pretty_printer::function_specifier): Likewise.
6184 (pp_declaration): Adjust.
6185 (pp_declaration_specifiers): Likewise.
6186 (pp_abstract_declarator): Likewise.
6187 (pp_direct_declarator): Likewise.
6188 (pp_function_specifier): Likewise.
6189 (pp_direct_abstract_declarator): Remove as unused.
6190 (pp_c_declaration): Remove.
6191 (pp_c_declaration_specifiers): Likewise.
6192 (pp_c_declarator): Likewise.
6193 (pp_c_direct_declarator): Likewise.
6194 (pp_c_function_specifier): Likewise.
6195 (pp_c_direct_abstract_declarator): Likewise.
6196 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6197 from pp_c_abstract_declarator. Adjust.
6198 (c_pretty_printer::direct_abstract_declarator): Rename from
6199 pp_c_direct_abstract_declarator. Adjust.
6200 (c_pretty_printer::function_specifier): Rename from
6201 pp_c_function_specifier. Adjust.
6202 (c_pretty_printer::declaration_specifiers): Rename from
6203 pp_c_declaration_specifiers. Adjust.
6204 (c_pretty_printer::direct_declarator): Rename from
6205 pp_c_direct_declarator. Adjust.
6206 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6207 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6208 (c_pretty_printer::c_pretty_printer): Do not assign to
6209 declaration, declaration_specifiers, declarator,
6210 direct_declarator, direct_abstract_declarator, function_specifier.
6212 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6214 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6215 virtual member function.
6216 (c_pretty_printer::multiplicative_expression): Likewise.
6217 (c_pretty_printer::conditional_expression): Likewise.
6218 (c_pretty_printer::assignment_expression): Likewise.
6219 (c_pretty_printer::expression): Likewise.
6220 (pp_unary_expression): Adjust.
6221 (pp_multiplicative_expression): Likewise.
6222 (pp_assignment_expression): Likewise.
6223 (pp_conditional_expression): Likewise.
6224 (pp_expression): Likewise.
6225 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6226 from pp_c_unary_expression. Adjust.
6227 (c_pretty_printer::multiplicative_expression): Rename from
6228 pp_c_multiplicative_expression. Adjust.
6229 (c_pretty_printer::conditional_expression): Rename from
6230 pp_c_conditional_expression. Adjust.
6231 (c_pretty_printer::assignment_expression): Rename from
6232 pp_c_assignment_expression. Adjust.
6233 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6234 (c_pretty_printer::c_pretty_printer): Do not assign to
6235 unary_expression, multiplicative_expression,
6236 conditional_expression, expression.
6238 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6240 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6241 virtual member function.
6242 (pp_postfix_expression): Adjust.
6243 (pp_c_postfix_expression): Remove.
6244 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6245 from pp_c_postfix_expression. Adjust.
6246 (c_pretty_printer::c_pretty_printer): Do not assign to
6249 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6251 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6252 virtua member function.
6253 (pp_primary_expression): Adjust.
6254 (pp_c_primary_expression): Remove.
6255 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6256 from pp_c_primary_expression. Adjust.
6257 (pp_c_initializer_list): Use pp_primary_expression.
6258 (c_pretty_printer::c_pretty_printer): Do not assign to
6261 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6263 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6264 * c-pretty-print.c (M_): Remove.
6265 (c_pretty_printer::translate_string): Define.
6266 (pp_c_type_specifier): Use it.
6267 (pp_c_primary_expression): Likewise.
6268 (pp_c_expression): Likewise.
6270 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6272 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6274 (pp_c_id_expression): Remove.
6275 (pp_id_expression): Adjust.
6276 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6277 pp_c_id_expression. Adjust.
6278 (pp_c_postfix_expression): Use pp_id_expression.
6279 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6281 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6283 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6285 (pp_constant): Adjust.
6286 (pp_c_constant): Remove.
6287 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6288 pp_c_constant. Adjust.
6290 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6291 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6293 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6295 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6296 (c_pretty_printer::c_pretty_printer): Declare.
6297 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6298 c_pretty_printer_init. Adjust.
6299 (print_c_tree): Do not call c_pretty_printer_init.
6300 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6302 2013-08-09 Arnaud Charlet <charlet@adacore.com>
6304 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6306 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6309 * c-common.c (pointer_int_sum): Add bool parameter.
6310 * c-common.h (pointer_int_sum): Adjust declaration.
6312 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6314 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6315 c_pretty_printer variable.
6317 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6319 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6321 (pp_c_base): Likewise. Adjust users.
6322 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6323 (pp_c_whitespace): Do not call pp_base.
6324 (pp_c_left_paren): Likewise.
6325 (pp_c_right_paren): Likewise.
6326 (pp_c_left_brace): Likewise.
6327 (pp_c_right_brace): Likewise.
6328 (pp_c_left_bracket): Likewise.
6329 (pp_c_right_bracket): Likewise.
6330 (pp_c_dot): Likewise.
6331 (pp_c_ampersand): Likewise.
6332 (pp_c_star): Likewise.
6333 (pp_c_arrow): Likewise.
6334 (pp_c_semicolon): Likewise.
6335 (pp_c_complement): Likewise.
6336 (pp_c_exclamation): Likewise.
6337 (pp_c_direct_declarator): Likewise.
6338 (pp_c_ws_string): Likewise.
6339 (pp_c_identifier): Likewise.
6340 (pp_c_statement): Likewise.
6341 (print_c_tree): Likewise.
6343 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6346 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6347 provide useful error strings.
6349 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6351 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6352 printer functions instead of pp_string or operators and punctuators.
6353 (dump_generic_ada_node): Likewise.
6354 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6355 (pp_c_relational_expression): Likewise.
6356 (pp_c_logical_or_expression): Likewise.
6358 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6360 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6361 functions instead of pp_character.
6362 (pp_ada_tree_identifier): Likewise.
6363 (dump_ada_double_name): Likewise.
6364 (dump_ada_function_declaration): Likewise.
6365 (dump_ada_array_domains): Likewise.
6366 (dump_template_types): Likewise.
6367 (dump_generic_ada_node): Likewise.
6368 (print_ada_declaration): Likewise.
6369 (print_ada_struct_decl): Likewise.
6370 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6372 2013-07-23 Tom Tromey <tromey@redhat.com>
6374 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6375 * c-common.c (c_common_reswords): Add _Generic.
6377 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
6379 * c-common.c: Fix typos.
6380 * c-common.h: Likewise.
6382 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
6385 * c-common.c (c_common_attribute_table): Add warn_unused.
6386 (handle_warn_unused_attribute): New.
6388 2013-07-10 Jakub Jelinek <jakub@redhat.com>
6390 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6391 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6393 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6396 * c.opt: Add Wconditionally-supported.
6398 2013-07-08 Graham Stott <graham.stott@btinternet.com>
6400 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6401 unused variables l_length and l_node.
6403 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
6406 * c-common.c (complete_array_type): Delay folding first index
6407 like other indices. When folding, check for index overflow.
6409 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
6412 * c-common.h (c_build_vec_perm_expr): New complain argument.
6413 * c-common.c (c_build_vec_perm_expr): Likewise.
6414 Use save_expr also in C++.
6416 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6418 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6419 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6420 * c-opts.c (c_common_post_options): Likewise.
6422 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6424 * array-notation-common.c (length_mismatch_in_expr): Changed the
6425 parameter type's from a dynamic array to a vec_tree. Also removed
6426 the size parameters.
6427 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6430 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6432 * c-common.h (struct cilkplus_an_parts): New structure.
6433 (struct cilkplus_an_loop_parts): Likewise.
6434 (cilkplus_extract_an_triplets): New prototype.
6435 (fix_sec_implicit_args): Likewise.
6436 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6437 (fix_sec_implicit_args): Likewise.
6439 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6441 * array-notation-common.c (find_inv_trees): Removed an unwanted
6443 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6444 enum rid to enum tree_code.
6446 2013-06-11 Jan Hubicka <jh@suse.cz>
6448 * c-common.c (handle_alias_ifunc_attribute): Do not set
6449 DECL_EXTERNAL for weakref variables.
6450 * c-pragma.c (handle_pragma_weak): Make sure aliases
6451 are not declared as external.
6453 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6455 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6456 function from c/c-array-notation.c.
6457 (is_cilkplus_reduce_builtin): Likewise.
6458 (find_rank): Likewise.
6459 (extract_array_notation_exprs): Likewise.
6460 (replace_array_notations): Likewise.
6461 (find_inv_trees): Likewise.
6462 (replace_inv_trees): Likewise.
6463 (contains_array_notation_expr): Likewise.
6464 (find_correct_array_notation_type): Likewise.
6465 * c-common.h (struct inv_list): Moved this struct from the file
6466 c/c-array-notation.c and added a new field called additional tcodes.
6467 (length_mismatch_in_expr_p): New prototype.
6468 (is_cilkplus_reduce_builtin): Likewise.
6469 (find_rank): Likewise.
6470 (extract_array_notation_exprs): Likewise.
6471 (replace_array_notation): Likewise.
6472 (find_inv_trees): Likewise.
6473 (replace_inv_trees): Likewise.
6474 (find_correct_array_notation_type): Likewise.
6476 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6478 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6479 function array_notation_init_builtins is called.
6480 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6481 * c-common.def (ARRAY_NOTATION_REF): New tree.
6482 * c-common.h (build_array_notation_expr): New function declaration.
6483 (build_array_notation_ref): Likewise.
6484 (extract_sec_implicit_index_arg): New extern declaration.
6485 (is_sec_implicit_index_fn): Likewise.
6486 (ARRAY_NOTATION_CHECK): New define.
6487 (ARRAY_NOTATION_ARRAY): Likewise.
6488 (ARRAY_NOTATION_START): Likewise.
6489 (ARRAY_NOTATION_LENGTH): Likewise.
6490 (ARRAY_NOTATION_STRIDE): Likewise.
6491 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6493 (pp_c_expression): Likewise.
6494 * c.opt (flag_enable_cilkplus): New flag.
6495 * array-notation-common.c: New file.
6497 2013-05-14 Jakub Jelinek <jakub@redhat.com>
6500 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6502 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
6504 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6507 2013-05-07 Han Shen <shenhan@google.com>
6509 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6511 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6513 * c-common.c (check_user_alignment): Emit error for negative values.
6515 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6517 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6519 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6521 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6522 __GXX_EXPERIMENTAL_CXX1Y__.
6524 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6525 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6527 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6528 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6529 to simply use OPT_Wpointer_arith.
6530 (c_sizeof_or_alignof_type): Likewise.
6532 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6534 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6536 2013-04-12 Jakub Jelinek <jakub@redhat.com>
6538 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6539 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6542 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6544 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6546 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6548 * c-common.c (pointer_int_sum): Remove dead code.
6550 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6553 * c-common.c (handle_optimize_attribute): Don't call
6554 save_optabs_if_changed.
6556 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6559 * c-pch.c (pch_init): Free target_validity at the end.
6561 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6563 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6565 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6566 Jakub Jelinek <jakub@redhat.com>
6569 * c-common.c (handle_no_sanitize_address_attribute): New function.
6570 (c_common_attribute_table): Add no_sanitize_address attribute.
6571 (handle_no_address_safety_analysis_attribute): Add
6572 no_sanitize_address attribute, not no_address_safety_analysis
6575 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6578 * c-common.c (handle_optimize_attribute): Call
6579 save_optabs_if_changed.
6581 2013-02-18 Jakub Jelinek <jakub@redhat.com>
6582 Steven Bosscher <steven@gcc.gnu.org>
6585 * c-opts.c (c_common_post_options): If debug info is enabled
6586 and non-dwarf*, refuse to load PCH files and when writing PCH
6589 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6592 * c-common.c (handle_error_attribute): Fix condition.
6594 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6597 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6599 2013-01-18 Jason Merrill <jason@redhat.com>
6602 * c.opt (-fextern-tls-init): New.
6603 * c-opts.c (c_common_post_options): Handle it.
6605 2013-01-09 Jakub Jelinek <jakub@redhat.com>
6608 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6609 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6610 and is either negative or bigger or equal to type precision
6611 of the first operand.
6613 2012-12-03 Marek Polacek <polacek@redhat.com>
6616 * c-common.c (check_user_alignment): Swap order of tests,
6617 check TREE_CODE first.
6619 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6622 * c-common.h (overflow_type): New enum.
6623 (build_userdef_literal): Add overflow_type argument.
6624 (tree_userdef_literal): Add overflow_type.
6625 (USERDEF_LITERAL_OVERFLOW): New access macro.
6626 * c-common.c (build_userdef_literal): Add overflow_type
6628 * c-lex.c (c_lex_with_flags): Add overflow_type to
6629 build_userdef_literal calls.
6630 (interpret_integer, interpret_float): Add overflow_type argument.
6632 2012-11-28 Richard Biener <rguenther@suse.de>
6635 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6636 here and use a type with proper overflow behavior for types that would
6637 need to be promoted for the arithmetic.
6639 2012-11-23 Jakub Jelinek <jakub@redhat.com>
6642 * c-common.c (handle_no_address_safety_analysis_attribute): New
6644 (c_common_attribute_table): Add no_address_safety_analysis.
6646 2012-11-16 Simon Baldwin <simonb@google.com>
6648 * c.opt: Add f[no-]canonical-system-headers.
6649 * c-opts.c (c_common_handle_option): Handle
6650 OPT_fcanonical_system_headers.
6652 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6655 * c-opts.c (c_common_handle_option): Set new flags.
6656 * c.opt: Describe new flags.
6658 2012-11-09 Jason Merrill <jason@redhat.com>
6660 * c.opt (Wabi-tag): New.
6662 2012-11-09 Andi Kleen <ak@linux.intel.com>
6665 * c-common.c (get_atomic_generic_size): Mask with
6668 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6671 * c.opt (Wformat): Make it Alias Wformat=1.
6672 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6673 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6675 (Wformat=): RejectNegative. Use LangEnabledBy.
6676 (Wnonnull): Use LangEnabledBy.
6677 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6678 * c-format.c (set_Wformat): Delete.
6679 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6680 (maybe_read_dollar_number): Likewise.
6681 (avoid_dollar_number): Likewise.
6682 (finish_dollar_format_checking): Likewise.
6683 (check_format_info): Likewise.
6684 (check_format_info_main): Likewise.
6685 (check_format_types): Likewise.
6686 (format_type_warning): Likewise.
6687 * c-common.c (int): Likewise.
6688 (check_function_sentinel): Likewise.
6689 * c-common.h (warn_format,set_Wformat): Do not declare here.
6691 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6694 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6695 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6697 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6699 (Wvariadic-macros): Init(1).
6700 * c-opts.c (c_common_handle_option): Do not handle them
6702 (c_common_post_options): Likewise.
6703 (sanitize_cpp_opts): warn_unused_macros is now
6704 cpp_warn_unused_macros.
6705 (push_command_line_include): Likewise.
6706 * c-common.c (warn_unknown_pragmas): Do not define.
6707 * c-common.h (warn_unknown_pragmas): Do not declare.
6709 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6712 * c-common.c (conversion_warning): Handle conditional expressions.
6714 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6717 * c.opt (Wreturn_local_addr): Define new option.
6719 2012-10-25 Jason Merrill <jason@redhat.com>
6721 * c.opt (Wvirtual-move-assign): New.
6723 * c.opt (Winherited-variadic-ctor): New.
6725 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6728 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6730 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6732 * c-common.h (pch_cpp_save_state): Declare.
6733 * c-target.def (c_preinclude): New hook.
6734 * c-opts.c (done_preinclude): New.
6735 (push_command_line_include): Handle default preincluded header.
6736 (cb_file_change): Call pch_cpp_save_state when calling
6737 push_command_line_include.
6738 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6739 (pch_cpp_save_state): New.
6740 (pch_init): Call pch_cpp_save_state conditionally, instead of
6741 calling cpp_save_state.
6743 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6747 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6748 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6749 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6750 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6751 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6752 * c-opts.c (c_common_handle_option): Remove explicit handling from
6754 (c_common_post_options): Likewise.
6756 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6758 * c-ada-spec.c (LOCATION_COL): Delete.
6759 (compare_location): New function.
6760 (compare_node): Use it.
6761 (compare_comment): Likewise.
6763 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6767 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6768 * c-opts.c (c_common_handle_option): Do not set them here. Add
6770 (c_common_post_options): Likewise.
6772 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6774 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6775 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6776 Remove POINTER_TYPE handling, add large unsigned handling and use
6777 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6779 2012-10-12 Jakub Jelinek <jakub@redhat.com>
6782 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6783 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6784 locs and array of 3 trees instead of just single loc and single
6785 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6786 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6787 For *cmp* builtins that take two sources strings report warnings
6788 about first and second source, not about destination and source.
6790 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
6793 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6795 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6797 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6798 declaring something coming from another file.
6800 2012-10-10 Arnaud Charlet <charlet@adacore.com>
6803 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6805 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6808 * c-common.c (warn_about_parentheses): Add location_t parameter;
6809 use EXPR_LOC_OR_LOC.
6810 * c-common.h: Update declaration.
6812 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
6815 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6816 more operations. Make error messages optional.
6817 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6818 (scalar_to_vector): Declare.
6820 2012-10-08 Jason Merrill <jason@redhat.com>
6822 * c-common.c (c_common_reswords): Add thread_local.
6824 2012-10-08 Dodji Seketeli <dodji@redhat.com>
6826 PR c++/53528 C++11 attribute support
6827 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6829 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6831 (handle_aligned_attribute): In choose strictest alignment
6832 among many. Use new check_cxx_fundamental_alignment_constraints.
6833 (handle_transparent_union_attribute): In c++11 attribute syntax,
6834 don't look through typedefs.
6836 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6838 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6839 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6842 2012-09-25 Dehao Chen <dehao@google.com>
6845 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6846 map when read in the pch.
6848 2012-09-18 Arnaud Charlet <charlet@adacore.com>
6850 * c-ada-spec.c: Style fixes.
6852 2012-09-18 Thomas Quinot <quinot@adacore.com>
6854 * c.opt (-fada-spec-parent): Define new command line switch.
6855 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6856 is specified, generate binding spec as a child of the specified unit.
6858 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6859 Manuel López-Ibáñez <manu@gcc.gnu.org>
6862 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6864 2012-08-23 Arnaud Charlet <charlet@adacore.com>
6866 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6867 for pointers, and add missing Convention C pragma.
6868 (print_ada_struct_decl): Add missing aliased keyword.
6869 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6871 2012-08-17 Jakub Jelinek <jakub@redhat.com>
6873 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6874 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6875 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6876 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6877 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6879 2012-08-10 Richard Guenther <rguenther@suse.de>
6881 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6883 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6885 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6886 instead of separate pp_newline and pp_flush.
6887 (print_c_tree): Likewise.
6889 2012-07-26 Richard Henderson <rth@redhat.com>
6891 * c-common.c (handle_hot_attribute): Allow labels.
6892 (handle_cold_attribute): Likewise.
6894 2012-07-20 Jakub Jelinek <jakub@redhat.com>
6897 * c-common.c (check_function_nonnull): Handle multiple nonnull
6898 attributes properly.
6900 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6902 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6903 * c-ada-spec.c: Likewise.
6904 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6906 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6908 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6909 Remove code conditional on it.
6911 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6913 * c-gimplify.c: Do not include basic-block.h.
6914 * c-common.c: Do not include linfuncs.h.
6916 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6918 * c-common.h: Include tree.h.
6920 2012-07-02 Jason Merrill <jason@redhat.com>
6923 * c-common.c (get_priority): Call default_conversion.
6925 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
6927 * c-pch.c (c_common_write_pch): Remove unused variables.
6929 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6931 * cppspec.c: Moved from gcc/ to here.
6933 2012-06-27 Kai Tietz <ktietz@redhat.com>
6935 PR preprocessor/37215
6936 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6938 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6940 * c-common.h (c_common_print_pch_checksum): Remove.
6941 * c-pch.c: Do not include output.h.
6942 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6943 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6944 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6945 (struct c_pch_header): Remove.
6946 (get_ident): Update gpch version.
6947 (pch_init): Do not print executable_checksum to asm_out_file.
6948 Do not fail if there is no asm_out_file to read back from. Set
6949 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6950 (c_common_write_pch): Verify that nothing was written to asm_out_file
6951 since pch_init was called. Do not write a c_pch_header, and do not
6952 copy from asm_out_file to the PCH.
6953 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6954 the content of asm_out_file from the PCH.
6955 (c_common_print_pch_checksum): Remove.
6956 * c-opts.c (c_common_init): Print out executable_checksum directly.
6958 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6960 * c-target.def (objc_declare_unresolved_class_reference,
6961 objc_declare_class_definition): Add new hooks.
6963 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6965 * c-lex.c: Do not include output.h.
6966 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6967 Remove uses of ASM_OUTPUT_IDENT.
6969 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
6972 * c-common.h (c_build_vec_perm_expr): Move decl here.
6973 * c-common.c (c_build_vec_perm_expr): Move definition
6976 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6978 * c.opt (fconserve-space): Turn into a no-op.
6980 2012-06-04 Sterling Augustine <saugustine@google.com>
6982 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6983 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6984 both the start and end of the function.
6986 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6988 * c-common.c: Do not include output.h.
6989 * c-pragma.c: Likewise.
6991 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6993 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6994 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6995 (lang_decl_name): Handle namespace decls.
6997 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6999 * c-ada-spec.c: Do not include output.h.
7000 * c-semantics.c: Likewise.
7002 2012-05-29 Joseph Myers <joseph@codesourcery.com>
7004 * c-common.c: Fix typo.
7006 2012-05-29 Michael Matz <matz@suse.de>
7008 * c-common.h (c_expand_decl): Remove prototype.
7010 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7012 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7013 * c-opts.c (c_common_handle_option): Remove code handling
7014 warn_missing_braces.
7016 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7019 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7022 2012-05-22 Dodji Seketeli <dodji@redhat.com>
7025 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7027 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7029 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7030 * c-opts.c (c_common_handle_option): Do not handle explicitly
7031 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7033 2012-05-16 Dodji Seketeli <dodji@redhat.com>
7035 PR preprocessor/7263
7036 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7037 to cpp_classify_number. For diagnostics, use the precise location
7038 instead of the global input_location.
7040 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7043 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7045 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7047 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
7049 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7052 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7053 Wreorder): Use LangEnabledBy.
7054 * c-opts.c (c_common_handle_option): Do not enable them
7055 explicitly. Call lang-specific generated functions.
7056 (c_common_post_options): Do not set them here.
7058 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7060 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7061 Wmissing-field-initializers,Wmissing-parameter-type,
7062 Wold-style-declaration,Woverride-init): Use EnabledBy.
7063 * c-opts.c (c_common_post_options): Do not set here explicitly.
7065 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7068 * c-opts.c (c_common_handle_option): Use handle_generated_option
7069 to enable sub-options.
7071 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7074 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7076 2012-05-10 Richard Guenther <rguenther@suse.de>
7078 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7079 adjust commentary about TYPE_IS_SIZETYPE types.
7081 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7084 * c-common.c (warn_logical_operator): Check that argument of
7085 integer_zerop is not NULL.
7087 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7090 * c-common.c (warn_logical_operator): Do not warn if either side
7091 is already true or false.
7093 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7096 * c-common.c (expr_original_type): New.
7097 (shorten_compare): Do not warn for enumeration types.
7099 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7101 * c.opt (fpermissive): Add Var(flag_permissive).
7103 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
7106 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7107 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7109 2012-04-30 Dodji Seketeli <dodji@redhat.com>
7111 Add -Wvarargs option
7112 * c.opt (Wvarargs): Define new option.
7114 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7116 * c-common.c (check_function_arguments): Replace
7117 Wmissing-format-attribute with Wsuggest-attribute=format.
7119 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7121 * c.opt (Wsuggest-attribute=format): New. Alias of
7122 Wmissing-format-attribute.
7123 * c-format.c (decode_format_type): Replace
7124 Wmissing-format-attribute with Wsuggest-attribute=format.
7125 (check_function_format): Likewise.
7127 2012-04-27 Ollie Wild <aaw@google.com>
7129 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7130 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7131 * c.opt: Add Wliteral-suffix.
7133 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7136 * c.opt (Wpedantic): New.
7137 (pedantic): Alias Wpedantic.
7138 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7139 (c_common_post_options): Likewise.
7140 (sanitize_cpp_opts): Likewise.
7141 * c-lex.c (interpret_float): Likewise.
7142 * c-format.c (check_format_types): Likewise.
7143 * c-common.c (pointer_int_sum): Likewise.
7144 (c_sizeof_or_alignof_type): Likewise.
7145 (c_add_case_label): Likewise.
7146 (c_do_switch_warnings): Likewise.
7147 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7149 2012-04-15 Jason Merrill <jason@redhat.com>
7152 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7153 (C_STD_NAME): Distinguish between C++98 and C++11.
7155 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7158 * c-common.h (uint16_type_node): Rename into...
7159 (c_uint16_type_node): ...this.
7160 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7161 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7163 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7165 * c-common.c (warn_if_unused_value): Move definition to here.
7166 * c-common.h (warn_if_unused_value): Move declaration to here.
7168 2012-03-23 William Bader <williambader@hotmail.com>
7170 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7172 2012-03-20 Jason Merrill <jason@redhat.com>
7174 * c-common.h (enum cxx_dialect): Add cxx1y.
7175 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7177 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7178 * c-opts.c (c_common_post_options): Likewise.
7179 (set_std_cxx1y): New.
7180 (c_common_handle_option): Call it.
7181 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7183 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7186 * c.opt ([Wuseless-cast]): Add.
7188 2012-03-16 Richard Guenther <rguenther@suse.de>
7190 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7192 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7195 * c.opt (ftemplate-backtrace-limit) Add.
7197 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7201 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7202 (init_pragma): Don't register extern_prefix.
7204 2012-03-12 Richard Guenther <rguenther@suse.de>
7206 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7207 (builtin_type_for_size): Likewise.
7209 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7212 * c-common.c (sync_resolve_params): Don't decide whether to convert
7213 or not based on TYPE_SIZE comparison, convert whenever arg_type
7214 is unsigned INTEGER_TYPE.
7216 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7219 * c.opt ([Wunused-local-typedefs]): Fix description.
7221 2012-01-24 Mike Stump <mikestump@comcast.net>
7223 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7226 2012-01-18 Richard Guenther <rguenther@suse.de>
7228 * c-opts.c (c_common_post_options): Reset LTO flags if
7229 we are about to generate a PCH.
7231 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7234 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7235 use pp_unsigned_wide_integer.
7237 2012-01-10 Richard Guenther <rguenther@suse.de>
7240 * c-opts.c (c_common_handle_option): Move -Werror handling
7241 to language independent code.
7243 2012-01-05 Richard Guenther <rguenther@suse.de>
7246 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7249 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7252 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7253 of array types with an unknown bound.
7255 2011-12-20 Joseph Myers <joseph@codesourcery.com>
7257 * c-common.c (flag_isoc99): Update comment to refer to C11.
7258 (flag_isoc1x): Change to flag_isoc11.
7259 * c-common.h (flag_isoc99): Update comment to refer to C11.
7260 (flag_isoc1x): Change to flag_isoc11.
7261 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7263 * c-opts.c (set_std_c1x): Change to set_std_c11.
7264 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7266 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7267 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7268 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7270 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7271 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7272 (std=gnu1x): Make alias of std=gnu11.
7274 2011-12-19 Jason Merrill <jason@redhat.com>
7277 * c-common.c (handle_transparent_union_attribute): Check the first
7278 field if the type is complete.
7280 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7283 * c-common.c (RID_IS_FINAL): Add.
7284 * c-common.h (RID_IS_FINAL): Add.
7286 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7288 * c.opt (fgnu-runtime): Provide full description.
7289 (fnext-runtime): Likewise.
7290 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7292 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
7294 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7295 predefines in one place. Add LOCK_FREE predefines.
7296 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7299 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
7302 * c-common.c (get_atomic_generic_size): Check for various error
7304 (resolve_overloaded_atomic_exchange,
7305 resolve_overloaded_atomic_compare_exchange,
7306 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7307 error_mark_node for error conditions.
7309 2011-11-08 Richard Guenther <rguenther@suse.de>
7314 2011-11-07 Richard Henderson <rth@redhat.com>
7315 Aldy Hernandez <aldyh@redhat.com>
7316 Torvald Riegel <triegel@redhat.com>
7318 Merged from transactional-memory.
7320 * c-common.c (handle_tm_wrap_attribute,
7321 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7322 (struct c_common_reswords): Added __transaction* keywords.
7323 (struct c_common_attribute_table): Added transaction* and tm_regparm
7325 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7327 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7328 find_tm_attribute): Declare.
7330 2011-11-07 Jason Merrill <jason@redhat.com>
7333 * c-common.c, c-common.h: Revert yesterday's changes.
7335 2011-11-06 Jason Merrill <jason@redhat.com>
7338 * c-common.c (decl_has_visibility_attr): Split out from...
7339 (c_determine_visibility): ...here.
7340 * c-common.h: Declare it.
7342 2011-11-06 Joseph Myers <joseph@codesourcery.com>
7344 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7345 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7347 (check_user_alignment): New. Split out of
7348 handle_aligned_attribute. Disallow integer constants with
7349 noninteger types. Conditionally allow zero.
7350 (handle_aligned_attribute): Use check_user_alignment.
7351 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7353 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
7354 Richard Henderson <rth@redhat.com>
7356 Merged from cxx-mem-model.
7358 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7359 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7360 parameters that are the same type size.
7361 (get_atomic_generic_size): New. Find size of generic
7362 atomic function parameters and do typechecking.
7363 (add_atomic_size_parameter): New. Insert size into parameter list.
7364 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7365 either __atomic_exchange_n or external library call.
7366 (resolve_overloaded_atomic_compare_exchange): Restructure
7367 __atomic_compare_exchange to either _n variant or external library call.
7368 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7369 __atomic_load_n or an external library call.
7370 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7371 __atomic_store_n or an external library call.
7372 (resolve_overloaded_builtin): Handle new __atomic builtins.
7374 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7377 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7378 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7379 <INDIRECT_REF>: Return the argument.
7380 <ARRAY_REF>: Remove special code for negative offset.
7381 Call fold_build_pointer_plus instead of size_binop.
7382 (fold_offsetof): Remove STOP_REF argument and adjust.
7383 * c-common.h (fold_offsetof_1): Declare.
7384 (fold_offsetof): Remove STOP_REF argument.
7386 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7389 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7390 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7391 Wnarrowing for C++0x and C++98.
7392 * c.opt ([Wnarrowing]): Update.
7394 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7397 * c.opt: Add Wzero-as-null-pointer-constant.
7399 2011-10-31 Jason Merrill <jason@redhat.com>
7401 * c.opt (-fdeduce-init-list): Off by default.
7404 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7405 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7407 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7409 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7412 * c.opt (fvisibility-inlines-hidden): Description change.
7414 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7416 Implement C++11 user-defined literals.
7417 * c-common.c (build_userdef_literal): New.
7418 * c-common.def: New tree code.
7419 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7420 * c-lex.c (interpret_float): Add suffix parm.
7421 (c_lex_with_flags): Build literal tokens.
7423 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7427 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7430 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7431 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7432 Wnarrowing for C++0x and C++98.
7433 * c.opt ([Wnarrowing]): Update.
7435 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7438 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7439 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7440 Wnarrowing for C++0x and C++98.
7441 * c.opt ([Wnarrowing]): Update.
7443 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7446 * c-common.c (conversion_warning): Remove code looking for
7447 artificial operands.
7449 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7452 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7453 !NO_IMPLICIT_EXTERN_C.
7455 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
7457 * c-common.c (c_common_reswords): Add __bases,
7459 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7461 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7464 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7466 2011-10-15 Tom Tromey <tromey@redhat.com>
7467 Dodji Seketeli <dodji@redhat.com>
7469 * c.opt (fdebug-cpp): New option.
7470 * c-opts.c (c_common_handle_option): Handle the option.
7471 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7472 output stream in parameter. Factorized from ...
7473 (maybe_print_line): ... this. Dump location debug information when
7474 -fdebug-cpp is in effect.
7475 (print_line_1): New static function. Takes an output stream in
7476 parameter. Factorized from ...
7477 (print_line): ... here. Dump location information when -fdebug-cpp
7479 (scan_translation_unit): Dump location information when
7480 -fdebug-cpp is in effect.
7482 2011-10-15 Tom Tromey <tromey@redhat.com>
7483 Dodji Seketeli <dodji@redhat.com>
7485 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7487 * c-opts.c (c_common_handle_option)<case
7488 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7489 cases. Handle -ftrack-macro-expansion with and without argument.
7491 2011-10-15 Tom Tromey <tromey@redhat.com>
7492 Dodji Seketeli <dodji@redhat.com>
7494 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7495 (print_line, cb_define, do_line_change): Adjust to avoid touching
7496 the internals of struct line_map. Use the public API instead.
7497 * c-pch.c (c_common_read_pch): Likewise.
7498 * c-lex.c (fe_file_change): Likewise.
7500 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7503 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7505 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7508 * c-pretty-print.c (pp_c_floating_constant): Output
7509 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7511 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7513 * c-common.c (def_builtin_1): Delete old interface with two
7514 parallel arrays to hold standard builtin declarations, and replace
7515 it with a function based interface that can support creating
7516 builtins on the fly in the future. Change all uses, and poison
7517 the old names. Make sure 0 is not a legitimate builtin index.
7518 * c-omp.c (c_finish_omp_barrier): Ditto.
7519 (c_finish_omp_taskwait): Ditto.
7520 (c_finish_omp_flush): Ditto.
7522 2011-10-11 Tristan Gingold <gingold@adacore.com>
7524 * c.opt: (fallow-parameterless-variadic-functions): New.
7526 2011-09-08 Dodji Seketeli <dodji@redhat.com>
7528 PR c++/33255 - Support -Wunused-local-typedefs warning
7529 * c-common.h (struct c_language_function::local_typedefs): New
7531 (record_locally_defined_typedef, maybe_record_typedef_use)
7532 (maybe_warn_unused_local_typedefs): Declare new functions.
7533 * c-common.c (record_locally_defined_typedef)
7534 (maybe_record_typedef_use)
7535 (maybe_warn_unused_local_typedefs): Define new functions.
7536 * c.opt: Declare new -Wunused-local-typedefs flag.
7538 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7541 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7544 2011-09-05 Richard Guenther <rguenther@suse.de>
7546 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7547 of integer_minus_one_node for empty array upper bounds.
7549 2011-08-28 Dodji Seketeli <dodji@redhat.com>
7551 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7552 it's the first time it's being called on this main TU.
7554 2011-08-24 Richard Guenther <rguenther@suse.de>
7557 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7559 2011-08-22 Gabriel Charette <gchare@google.com>
7561 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7562 defined in cpp_init_builtins and c_cpp_builtins.
7564 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7566 * c-common.c (c_common_reswords): Add __builtin_complex.
7567 * c-common.h (RID_BUILTIN_COMPLEX): New.
7569 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7571 * c-common.c (c_common_reswords): Add _Noreturn.
7572 (keyword_is_function_specifier): Handle RID_NORETURN.
7573 * c-common.h (RID_NORETURN): New.
7575 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7577 * c-common.c (unsafe_conversion_p): New function. Check if it is
7578 unsafe to convert an expression to the type.
7579 (conversion_warning): Adjust, use unsafe_conversion_p.
7580 * c-common.h (unsafe_conversion_p): New function declaration.
7582 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7584 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7585 (c_finish_omp_taskyield): New prototype.
7586 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7587 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7588 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7589 or RHS1 have side-effects, evaluate those too in the right spot,
7590 if it is a decl and LHS is also a decl, error out if they
7592 (c_finish_omp_taskyield): New function.
7593 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7594 * c-pragma.c (omp_pragmas): Add taskyield.
7595 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7596 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7597 PRAGMA_OMP_CLAUSE_MERGEABLE.
7599 2011-07-25 Dodji Seketeli <dodji@redhat.com>
7601 * c-common.h (set_underlying_type): Remove parm name from
7604 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
7606 * c-pretty-print.h: Search c-common.h in c-family.
7608 2011-07-22 Jason Merrill <jason@redhat.com>
7611 * c.opt (Wnarrowing): New.
7614 * c-common.h: Declare c_linkage_bindings.
7615 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7618 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7619 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7620 as flag_isoc99 for 'restrict'.
7621 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7623 2011-07-21 Ian Lance Taylor <iant@google.com>
7626 * c-common.c (c_disable_warnings): New static function.
7627 (c_enable_warnings): New static function.
7628 (c_fully_fold_internal): Change local unused_p to bool. Call
7629 c_disable_warnings and c_enable_warnings rather than change
7630 c_inhibit_evaluation_warnings.
7632 2011-07-20 Jason Merrill <jason@redhat.com>
7634 PR c++/6709 (DR 743)
7635 PR c++/42603 (DR 950)
7636 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7637 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7638 (CPP_DECLTYPE): New.
7639 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7641 2011-07-19 Richard Guenther <rguenther@suse.de>
7643 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7644 * c-omp.c (c_finish_omp_for): Likewise.
7646 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7648 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7649 body on the next line.
7651 2011-07-08 Jason Merrill <jason@redhat.com>
7654 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7657 * c-common.c (c_apply_type_quals_to_decl): Don't check
7658 TYPE_NEEDS_CONSTRUCTING.
7660 2011-07-06 Richard Guenther <rguenther@suse.de>
7662 * c-common.c (c_common_nodes_and_builtins):
7663 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7665 2011-07-05 Richard Guenther <rguenther@suse.de>
7667 * c-common.c (c_common_nodes_and_builtins): Build all common
7670 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7672 * c-common.h (c_tree_chain_next): New static inline function.
7674 * c-common.c (check_builtin_function_arguments): Handle
7675 BUILT_IN_ASSUME_ALIGNED.
7677 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7679 * c-common.c: Add sync_ or SYNC__ to builtin names.
7680 * c-omp.c: Add sync_ or SYNC__ to builtin names.
7682 2011-06-20 Pierre Vittet <piervit@pvittet.com>
7684 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7686 (gen_pragma_handler): New union.
7687 (internal_pragma_handler): New type.
7688 (c_register_pragma_with_data)
7689 (c_register_pragma_with_expansion_and_data): New functions.
7691 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7692 (c_register_pragma, c_register_pragma_with_expansion)
7693 (c_invoke_pragma_handler): Changed to work with
7694 internal_pragma_handler.
7695 (c_register_pragma_with_data)
7696 (c_register_pragma_with_expansion_and_data): New functions.
7698 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7700 * c-common.c: Include common/common-target.h.
7701 (handle_section_attribute): Use
7702 targetm_common.have_named_sections.
7703 * c-cppbuiltin.c: Include common/common-target.h.
7704 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7706 2011-06-10 Richard Guenther <rguenther@suse.de>
7708 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7709 to print a IDENTIFIER_NODE.
7711 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7712 Joseph Myers <joseph@codesourcery.com>
7714 * c.opt (fbuilding-libgcc): New option.
7715 * c-cppbuiltin.c (c_cpp_builtins): Define
7716 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7718 2011-06-07 Jason Merrill <jason@redhat.com>
7720 * c-common.c (max_tinst_depth): Lower default to 900.
7722 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7724 2011-06-07 Richard Guenther <rguenther@suse.de>
7726 * c-common.c (c_common_nodes_and_builtins): Do not set
7727 size_type_node or call set_sizetype.
7729 2011-06-07 Dodji Seketeli <dodji@redhat.com>
7732 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7733 type when using pointer comparison to compare types.
7735 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7737 * c.opt: Add -Wdelete-non-virtual-dtor.
7738 * c-opts.c (c_common_handle_option): Include it in -Wall.
7740 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7745 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7747 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7750 2011-05-27 Jakub Jelinek <jakub@redhat.com>
7753 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7754 C++ don't call c_common_truthvalue_conversion on void type arms.
7756 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7758 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7759 (stmt_list_stack): Define.
7760 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7761 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7763 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7765 * c-common.c (warning_candidate_p): Check for BLOCKs.
7767 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7769 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7772 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7774 * c-common.c (def_fn_type): Remove extra va_end.
7776 2011-05-23 Jason Merrill <jason@redhat.com>
7779 * c-common.c (c_common_get_narrower): New.
7780 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7782 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7784 * c-common.h (check_function_arguments): Tweak prototype of
7785 check_function_arguments.
7786 * c-common.c (check_function_arguments): Likewise. Adjust
7787 calls to check_function_nonnull, check_function_format, and
7788 check_function_sentinel.
7789 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7790 separate attributes and typelist arguments. Use
7791 FOREACH_FUNCTION_ARGS to iterate over argument types.
7793 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7795 * c-common.c (c_common_reswords): Reorder.
7796 * c-common.h (rid): Likewise.
7798 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7800 * c-common.c (def_fn_type): Don't call build_function_type, call
7801 build_function_type_array or build_varargs_function_type_array
7803 (c_common_nodes_and_builtins): Likewise.
7805 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7807 * c-common.c (c_add_case_label): Omit the loc argument to
7809 * c-common.h (build_case_label): Remove.
7810 * c-semantics.c (build_case_label): Remove.
7812 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7814 * c-objc.h (objc_start_method_definition): Update prototype.
7815 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7817 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7819 * c-common.c (check_main_parameter_types): Reindent. Don't use
7820 TYPE_ARG_TYPES directly.
7821 (handle_nonnull_attribute): Likewise.
7822 (sync_resolve_params): Likewise.
7823 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7824 to check_format_string.
7825 (handle_format_attribute): Likewise.
7826 (check_format_string): Take a function type to examine instead of
7827 a type list. Use a function_arg_iterator to step through argument
7830 2011-05-04 Richard Guenther <rguenther@suse.de>
7832 * c-common.c (fix_string_type): Use size_int for index type bounds.
7833 (start_fname_decls): Do not pass NULL to build_int_cst.
7834 (c_init_attributes): Likewise.
7835 * c-lex.c (c_lex_with_flags): Likewise.
7837 2011-04-27 Jason Merrill <jason@redhat.com>
7839 * c-common.c (make_tree_vector_from_list): New.
7840 * c-common.h: Declare it.
7842 2011-04-26 Richard Guenther <rguenther@suse.de>
7844 PR preprocessor/48248
7845 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7846 for output size with -P.
7848 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7850 * c-common.c (struct c_common_resword): Add __underlying_type.
7851 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7853 2011-04-20 Jim Meyering <meyering@redhat.com>
7855 * c-format.c (init_dollar_format_checking): Remove useless
7858 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7860 * c-objc.h (objc_get_interface_ivars): Removed.
7861 (objc_detect_field_duplicates): New.
7862 * stub-objc.c: Likewise.
7864 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7866 * stub-objc.c (objc_declare_protocols): Renamed to
7867 objc_declare_protocol.
7868 * c-objc.h: Likewise.
7870 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7872 * stub-objc.c (objc_declare_class): Updated argument name.
7874 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7876 * c-common.h (c_common_init_ts): Declare.
7877 * c-common.c (c_common_init_ts): Define.
7879 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7881 * c-objc.h (objc_build_message_expr): Updated prototype.
7882 * stub-objc.c (objc_build_message_expr): Likewise.
7884 2011-04-12 Martin Jambor <mjambor@suse.cz>
7886 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7889 2011-04-11 Richard Guenther <rguenther@suse.de>
7891 * c-common.c (complete_array_type): Build a range type of
7894 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7896 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7897 (handle_type_generic_attribute): Likewise.
7899 2011-04-07 Jason Merrill <jason@redhat.com>
7902 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7903 conversion from C++0x scoped enum.
7905 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7907 * c-target-def.h: New file.
7908 * c-target.def: New file.
7909 * c-target.h: New file.
7910 * c-common.c (targetcm): Don't define here.
7911 * c-common.h (default_handle_c_option): Declare.
7912 * c-format.c: Include c-target.h instead of target.h.
7913 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7915 (default_handle_c_option): Move from targhooks.c.
7917 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7919 PR preprocessor/48248
7920 * c-ppoutput.c (print): Add src_file field.
7921 (init_pp_output): Initialize it.
7922 (maybe_print_line): Don't optimize by adding up to 8 newlines
7923 if map->to_file and print.src_file are different file.
7924 (print_line): Update print.src_file.
7926 2011-03-25 Kai Tietz <ktietz@redhat.com>
7928 * c-ada-spec.c (compare_comment): Use filename_cmp
7929 instead of strcmp for filename.
7931 2011-03-25 Jeff Law <law@redhat.com>
7933 * c-common.c (def_fn_type): Add missing va_end.
7935 2011-03-25 Jason Merrill <jason@redhat.com>
7937 * c.opt: Add -std=c++03.
7939 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7941 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7943 2011-03-17 Kai Tietz <ktietz@redhat.com>
7946 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7947 Display allowed attributes for function pointer types.
7948 (pp_c_attributes_display): New function to display
7949 attributes having affects_type_identity flag set to true.
7950 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7952 * c-common.c (c_common_attribute_table):
7954 (c_common_format_attribute_table): Likewise.
7956 2011-03-18 Jason Merrill <jason@redhat.com>
7958 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7959 * c-common.h: Don't declare it here.
7960 * c-common.c: Or define it here.
7961 * c-opts.c (c_common_handle_option): Or set it here.
7964 * c-common.c (handle_transparent_union_attribute): Don't
7965 make a duplicate type in C++.
7967 2011-03-15 Jason Merrill <jason@redhat.com>
7969 * c-common.c (max_constexpr_depth): New.
7970 * c-common.h: Declare it.
7971 * c-opts.c (c_common_handle_option): Set it.
7972 * c.opt (fconstexpr-depth): New option.
7974 2011-03-11 Jason Merrill <jason@redhat.com>
7976 * c-common.c (attribute_takes_identifier_p): Add missing const.
7979 * c-common.c (attribute_takes_identifier_p): Assume that an
7980 unknown attribute takes an identifier.
7982 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7985 * c-common.c (c_type_hash): Call list_length instead of iterating
7986 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7988 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7991 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7993 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7995 * c.opt (fobjc-abi-version=) New.
7996 (fobjc-nilcheck): New.
7998 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8001 * c-common.h (keyword_is_decl_specifier): Declare.
8002 * c-common.c (keyword_is_decl_specifier): Define.
8003 (keyword_is_function_specifier): New function.
8005 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8008 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8009 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8012 2011-01-26 Arnaud Charlet <charlet@adacore.com>
8014 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8016 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8019 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8020 after init_c_lex if pch_file is set.
8022 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8025 * c.opt (-fkeep-inline-dllexport): New switch.
8027 2011-01-12 Richard Guenther <rguenther@suse.de>
8030 * c-common.c (handle_weak_attribute): Warn instead of error
8031 on declaring an inline function weak.
8033 2011-01-05 Tom Tromey <tromey@redhat.com>
8035 * c-common.h (lvalue_error): Update.
8036 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8039 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
8042 * c-objc.h (objc_finish_message_expr): Added argument to
8045 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8047 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8050 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8052 * c-objc.h (objc_maybe_warn_exceptions): New.
8053 * stub-objc.c (objc_maybe_warn_exceptions): New.
8055 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8057 * c-common.h (readonly_error): Declare.
8058 * c-common.c (readonly_error): Define.
8060 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8062 * c-common.h (invalid_indirection_error): Declare.
8063 * c-common.c (invalid_indirection_error): Define.
8065 2010-12-03 Richard Guenther <rguenther@suse.de>
8068 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8069 (pp_c_unary_expression): Likewise.
8070 (pp_c_expression): Likewise.
8072 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8074 * c-common.h (objc_finish_function): New.
8075 (objc_non_volatilized_type): Removed.
8076 (objc_type_quals_match): Removed.
8077 * stub-objc.c (objc_finish_function): New.
8078 (objc_non_volatilized_type): Removed.
8079 (objc_type_quals_match): Removed.
8081 2010-11-30 Joseph Myers <joseph@codesourcery.com>
8083 * c-common.h (parse_optimize_options): Declare.
8084 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8085 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8087 2010-11-29 Joseph Myers <joseph@codesourcery.com>
8089 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8091 * c-pch.c (O_BINARY): Don't define here.
8092 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8094 2010-11-25 Joseph Myers <joseph@codesourcery.com>
8096 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8097 targetm.except_unwind_info.
8099 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8101 * c-opts.c (c_common_handle_option): Pass location to
8102 set_struct_debug_option.
8104 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8106 * c-common.c (visibility_options): Move from ../opts.c.
8107 * c-common.h (struct visibility_flags, visibility_options):
8109 * c-opts.c (finish_options): Rename to c_finish_options.
8110 (c_common_init): Update call to finish_options.
8112 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8115 * c-lex.c (lex_string): Check that each string in an Objective-C
8116 string concat sequence starts with either one or zero '@', and
8117 that there are no spurious '@' signs at the end.
8119 2010-11-20 Joseph Myers <joseph@codesourcery.com>
8121 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8122 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8123 HANDLE_PRAGMA_VISIBILITY.
8124 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8125 HANDLE_PRAGMA_VISIBILITY): Don't define.
8126 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8128 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8133 * c-common.h (keyword_begins_type_specifier): Declare.
8134 (keyword_is_storage_class_specifier): Declare.
8135 (keyword_is_type_qualifier): Declare.
8136 * c-common.c (keyword_begins_type_specifier): New function.
8137 (keyword_is_storage_class_specifier): New function.
8138 (keyword_is_type_qualifier): Declare.
8140 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8143 * c-common.c (in_late_binary_op): Define.
8144 (c_common_truthvalue_conversion): Check in_late_binary_op before
8145 calling c_save_expr.
8146 * c-common.h (in_late_binary_op): Declare.
8148 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8150 * c-opts.c (c_common_handle_option): Update calls to
8151 set_struct_debug_option.
8153 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8155 * c-common.h (objc_declare_protocols): Added additional argument.
8156 * stub-objc.c (objc_declare_protocol): Same change.
8158 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8161 * c-common.h (build_real_imag_expr): Declare.
8162 * c-semantics.c (build_real_imag_expr): Define.
8164 2010-11-17 Joseph Myers <joseph@codesourcery.com>
8166 * c-opts.c (c_common_parse_file): Take no arguments.
8167 * c-common.h (c_common_parse_file): Update prototype.
8169 2010-11-16 Jakub Jelinek <jakub@redhat.com>
8172 * c-common.c (warning_candidate_p): Don't track non-const calls
8175 2010-11-15 Ian Lance Taylor <iant@google.com>
8177 * c-lex.c (init_c_lex): Set macro debug callbacks if
8178 flag_dump_go_spec is set.
8180 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8182 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8183 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8185 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8187 PR preprocessor/45038
8188 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8191 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8193 * c-common.h (c_family_lang_mask): Declare.
8194 * c-opts.c (c_family_lang_mask): Make extern.
8195 * c-pragma.c (handle_pragma_diagnostic): Use
8196 control_warning_option.
8198 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8200 * c-common.c (parse_optimize_options): Update call to
8202 * c-common.h (c_common_handle_option): Update prototype.
8203 * c-opts.c (c_common_handle_option): Take location_t parameter and
8204 pass it to other functions.
8206 2010-11-11 Joseph Myers <joseph@codesourcery.com>
8208 * c-opts.c (warning_as_error_callback): Remove.
8209 (c_common_initialize_diagnostics): Don't call
8210 register_warning_as_error_callback.
8211 (c_common_handle_option): Handle -Werror=normalized= here.
8213 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8215 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8217 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8219 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8220 Remove trailing '.' from diagnostics.
8221 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8223 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8225 * c-common.c (parse_optimize_options): Pass global_dc to
8227 * c-opts.c (c_common_handle_option): Pass &global_options to
8228 set_Wstrict_aliasing.
8229 * c.opt (v): Don't mark Common or document here.
8231 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8234 * c-format.c (format_type): New type gcc_objc_string_format_type.
8235 (valid_stringptr_type_p): New.
8236 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8237 (check_format_string): Pass expected type, use
8238 valid_stringptr_type_p (), check that the format string types are
8239 consistent with the format specification.
8240 (decode_format_attr): Warn if NSString is used outside objective-c.
8241 (format_types_orig): Add NSString.
8243 (format_flags): New.
8244 (check_format_arg): Handle format strings requiring an external parser.
8245 first_target_format_type: New variable.
8246 (handle_format_attribute): Set up first_target_format_type, pass the
8247 expected format arg string type to check_format_string().
8248 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8249 * stub-objc.c (objc_string_ref_type_p): New.
8250 (objc_check_format_arg): New.
8252 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8254 Fixed using the Objective-C 2.0 dot-syntax with class names.
8255 * c-common.h (objc_build_class_component_ref): New.
8256 * stub-objc.c (objc_build_class_component_ref): New.
8258 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8260 * c.opt (Wproperty-assign-default): New option.
8262 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8264 Implemented -fobjc-std=objc1 flag.
8265 * c.opt (fobjc-std=objc1): New option.
8267 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8269 Implemented format and noreturn attributes for Objective-C methods.
8270 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8271 attribute for Objective-C methods.
8273 2010-10-31 Jason Merrill <jason@redhat.com>
8275 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8278 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8280 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8281 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8282 (objc_add_property_declaration): Removed arguments for copies and
8284 (objc_build_getter_call): Renamed to
8285 objc_maybe_build_component_ref.
8286 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8287 (objc_is_property_ref): New.
8288 * c-common.c (c_common_reswords): Removed copies and ivar.
8289 * stub-objc.c (objc_add_property_declaration): Removed arguments
8290 for copies and ivar.
8291 (objc_build_getter_call): Renamed to
8292 objc_maybe_build_component_ref.
8293 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8294 (objc_is_property_ref): New.
8296 2010-10-29 Arnaud Charlet <charlet@adacore.com>
8297 Matthew Gingell <gingell@adacore.com>
8299 * c-ada-spec.c (separate_class_package): New function.
8300 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8301 name of their enclosing package.
8302 (print_ada_declaration): Use separate_class_package.
8304 2010-10-27 Jason Merrill <jason@redhat.com>
8306 * c-common.c (c_common_reswords): Add __is_literal_type.
8307 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8309 * c-common.c (check_case_value): Remove special C++ code.
8311 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8313 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8314 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8316 (objc_add_property_declaration): Added additional arguments.
8317 (objc_property_attribute_kind): Removed.
8318 (objc_set_property_attr): Removed.
8319 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8321 * stub-objc.c (objc_add_property_declaration): Added additional
8323 (objc_set_property_attr): Removed.
8325 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8327 * c-common.h (objc_add_property_variable): Renamed to
8328 objc_add_property_declaration. Added location argument.
8329 * stub-objc.c (objc_add_property_variable): Same change.
8331 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8333 * c-common.h (objc_maybe_printable_name): New.
8334 * stub-objc.c (objc_maybe_printable_name): New.
8336 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8337 Andrew Pinski <pinskia@gmail.com>
8339 * c-common.h (c_common_mark_addressable_vec): Declare.
8340 * c-common.c (c_common_mark_addressable_vec): New function.
8342 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8344 * c-common.h (objc_set_method_type): Removed.
8345 (objc_add_method_declaration): Added boolean argument.
8346 (objc_start_method_definition): Same change.
8347 (objc_build_method_signature): Same change.
8348 * stub-objc.c (objc_set_method_type): Removed.
8349 (objc_add_method_declaration): Added boolean argument.
8350 (objc_start_method_definition): Same change.
8351 (objc_build_method_signature): Same change.
8353 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8355 * c-common.h (finish_file): Removed.
8356 (objc_write_global_declarations): New.
8357 * c-opts.c (c_common_parse_file): Do not call finish_file.
8358 * stub-objc.c (objc_write_global_declarations): New.
8360 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8362 Implemented parsing @synthesize and @dynamic for
8363 Objective-C/Objective-C++.
8364 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8365 (objc_add_synthesize_declaration): New.
8366 (objc_add_dynamic_declaration): New.
8367 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8368 * stub-objc.c (objc_add_synthesize_declaration): New.
8369 (objc_add_dynamic_declaration): New.
8371 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8374 * c-cppbuiltin.c (mode_has_fma): Move function here from
8375 builtins.c. Don't use the fma optab, instead just use the
8376 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8379 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8381 Merge from 'apple/trunk' branch on FSF servers.
8383 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
8386 * c-common.h (objc_non_volatilized_type): New declaration
8387 * stub-objc.c (objc_non_volatilized_type): New stub.
8389 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8391 Merge from 'apple/trunk' branch on FSF servers.
8393 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8396 * c-common.h (objc_diagnose_private_ivar): New decl.
8397 * stub-objc.c (objc_diagnose_private_ivar): New stub.
8399 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8401 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8402 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8403 (objc_ivar_visibility_kind): New enum.
8404 (objc_set_visibility): Adjust prototype to use visibility enum.
8405 * stub-objc.c (objc_set_visibility): Adjust stub to use
8408 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8410 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8411 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8412 has the appropriate fma builtins.
8413 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8415 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8417 merge from FSF apple 'trunk' branch.
8418 2006 Fariborz Jahanian <fjahanian@apple.com>
8420 Radars 4436866, 4505126, 4506903, 4517826
8421 * c-common.c (c_common_resword): Define @property and its attributes.
8422 * c-common.h: Define property attribute enum entries.
8423 (OBJC_IS_PATTR_KEYWORD): New.
8424 (objc_property_attribute_kind): New enum.
8425 Declare objc_set_property_attr (), objc_add_property_variable (),
8426 objc_build_getter_call () and objc_build_setter_call ().
8427 * stub-objc.c (objc_set_property_attr): New stub.
8428 (objc_add_property_variable): Likewise.
8429 (objc_build_getter_call): Likewise.
8430 (objc_build_setter_call) Likewise.
8432 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8434 merge from FSF apple 'trunk' branch.
8435 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
8437 Radar 3803157 (method attributes)
8438 * c-common.c (handle_deprecated_attribute): Recognize
8439 objc methods as valid declarations.
8440 * c-common.h: Declare objc_method_decl ().
8441 * stub-objc.c (objc_method_decl): New stub.
8443 2010-10-08 Joseph Myers <joseph@codesourcery.com>
8445 * c-common.c (parse_optimize_options): Call
8446 decode_cmdline_options_to_array_default_mask before
8447 decode_options. Update arguments to decode_options.
8448 * c-common.h (c_common_init_options_struct): Declare.
8449 * c-opts.c (c_common_init_options_struct): New. Split out from
8450 c_common_init_options.
8452 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8454 Implemented fast enumeration for Objective-C.
8455 * c-common.h (objc_finish_foreach_loop): New.
8456 * stub-objc.c (objc_finish_foreach_loop): New.
8458 2010-10-05 Joseph Myers <joseph@codesourcery.com>
8460 * c-common.h (struct diagnostic_context): Don't declare here.
8461 (c_common_initialize_diagnostics): Declare using
8462 diagnostic_context typedef.
8463 * c-opts.c (c_common_handle_option): Pass global_dc to
8464 handle_generated_option.
8466 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8468 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8469 handle_generated_option.
8471 2010-10-03 Ian Lance Taylor <iant@google.com>
8473 * c.opt (-fplan9-extensions): New option.
8475 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8477 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8479 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8480 of duplicating code.
8482 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8484 * c-common.c: Add two new entries for @optional
8485 and @required keywords.
8487 merge from FSF 'apple/trunk' branch.
8488 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
8491 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8492 objective-c keywords.
8493 (objc_set_method_opt): New declaration.
8494 * stub-objc.c (objc_set_method_opt): New stub.
8496 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8498 * c-common.c (handle_optimize_attribute): Pass &global_options to
8499 cl_optimization_save and cl_optimization_restore.
8500 * c-opts.c (c_common_handle_option): Pass &global_options to
8501 handle_generated_option.
8502 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8503 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8504 &global_options to cl_optimization_restore.
8506 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8508 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8509 Objective-C/Objective-C++ keywords.
8511 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8513 Merge from 'apple/trunk' branch on FSF servers.
8515 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8518 * c-common.h (objc_check_global_decl): New declaration.
8519 * stub-objc.c (objc_check_global_decl): New stub.
8521 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8523 * c.opt: Don't use VarExists.
8525 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8527 * c-common.c (c_cpp_error): Update names of diagnostic_context
8529 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8530 cl_optimization members.
8531 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8532 sanitize_cpp_opts, finish_options): Update names of cpp_options
8535 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8537 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8538 (objc_is_reserved_word): Removed.
8539 * c-common.c: Updated comments.
8540 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8541 objc_is_reserved_word.
8542 * stub-objc.c (objc_is_reserved_word): Removed.
8544 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8546 * c-common.h (objc_add_method_declaration): Adjust prototype to
8548 (objc_start_method_definition): Likewise.
8549 (objc_build_keyword_decl): Likewise.
8550 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8551 (objc_start_method_definition): Likewise.
8552 (objc_build_keyword_decl): Likewise.
8554 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8556 * c-common.h (objc_start_class_interface): Adjust prototype.
8557 (objc_start_category_interface): Likewise.
8558 (objc_start_protocol): Likewise.
8559 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8560 (objc_start_class_interface): Likewise.
8561 (objc_start_category_interface): Likewise.
8563 2010-09-27 Ian Lance Taylor <iant@google.com>
8565 * c-common.c (c_common_attribute_table): Add no_split_stack.
8566 (handle_no_split_stack_attribute): New static function.
8568 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8570 Merge from 'apple/trunk' branch on FSF servers.
8572 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8575 * c-common.h (objc_have_common_type): New declaration.
8576 * stub-objc.c (objc_have_common_type): New stub.
8578 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8581 * c-common.h (objc_common_type): New prototype.
8582 * stub-objc.c (objc_common_type): New stub.
8584 2010-09-24 Jan Hubicka <jh@suse.cz>
8586 * c-common.c (handle_leaf_attribute): New function.
8587 (struct attribute_spec c_common_att): Add leaf.
8589 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8591 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8592 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8593 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8594 -include-barrier, -include-directory, -include-directory=,
8595 -include-directory-after, -include-directory-after=,
8596 -include-prefix, -include-prefix=, -include-with-prefix,
8597 -include-with-prefix=, -include-with-prefix-after,
8598 -include-with-prefix-after=, -include-with-prefix-before,
8599 -include-with-prefix-before=, -no-integrated-cpp,
8600 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8601 -output=, -pedantic, -pedantic-errors, -preprocess,
8602 -print-missing-file-dependencies, -trace-includes, -traditional,
8603 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8604 -user-dependencies, -verbose, -write-dependencies,
8605 -write-user-dependencies, no-integrated-cpp, traditional): New.
8607 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8610 * c-common.h (objc_start_method_definition): Return bool instead
8612 * stub-objc.c (objc_start_method_definition): Return bool instead
8615 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8618 * c-common.h (objc_get_interface_ivars): New declaration.
8619 * stub-objc.c (objc_get_interface_ivars): New stub.
8621 2010-09-15 Ian Lance Taylor <iant@google.com>
8623 * c-common.c (parse_optimize_options): Do not capitalize warning
8624 messages. Remove period at end of warning message.
8626 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8628 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8629 (handle_alias_attribute): ... here.
8630 (handle_ifunc_attribute): New.
8632 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8634 * c-common.h (do_warn_double_promotion): Declare.
8635 * c-common.c (do_warn_double_promotion): Define.
8637 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8639 * c.opt (Wdouble-promotion): New.
8641 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8643 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8644 fvtable-thunks, fxref): Mark no longer supported in help text.
8646 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8648 * c.opt (Wimport, fall-virtual, falt-external-templates,
8649 fdefault-inline, fenum-int-equiv, fexternal-templates,
8650 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8651 fname-mangling-version-, fnew-abi, fnonnull-objects,
8652 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8653 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8655 (fhandle-exceptions): Mark with Alias and Warn.
8656 * c-opts.c (c_common_handle_option): Don't handle options marked
8659 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8661 * c.opt (Wcomments, Werror-implicit-function-declaration,
8662 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8663 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8665 * c-common.c (option_codes): Use OPT_Wcomment instead of
8667 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8668 Don't handle options marked as aliases.
8670 2010-08-25 Richard Guenther <rguenther@suse.de>
8672 * c-common.c (c_common_get_alias_set): Remove special
8673 handling for pointers.
8675 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8677 * c-common.c: Use FOR_EACH_VEC_ELT.
8678 * c-gimplify.c: Likewise.
8679 * c-pragma.c: Likewise.
8681 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8683 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8685 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8687 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8688 instead of OPT_MDX and OPT_MMDX.
8690 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8692 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8694 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8696 * c.opt (MD, MMD): Change to MDX and MMDX.
8697 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8699 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8701 * c-opts.c (c_common_handle_option): Call handle_generated_option
8702 instead of handle_option.
8704 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8706 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8707 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8709 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8711 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8712 (pending_redefine_extname): Change type to a VEC.
8713 (add_to_renaming_pragma_list): Update for new type of
8714 pending_redefine_extname.
8715 (maybe_apply_renaming_pragma): Likewise.
8717 2010-08-04 Arnaud Charlet <charlet@adacore.com>
8719 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8721 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8722 decide whether a type has already been declared/seen.
8723 Do not go to the original type.
8724 (dump_nested_types): New parameter forward.
8725 Generate forward declaration if needed and mark type as visited.
8726 (print_ada_declaration): Call dump_nested_types if not already done.
8727 Mark types as visited.
8729 2010-08-03 Joseph Myers <joseph@codesourcery.com>
8731 * c.opt (-print-pch-checksum): Remove option.
8732 * c-opts.c (c_common_handle_option): Don't handle
8733 OPT_print_pch_checksum.
8735 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8737 * c-common.h (c_common_handle_option): Update prototype and return
8739 * c-opts.c (c_common_handle_option): Update prototype and return
8740 value type. Update calls to handle_option and
8741 enable_warning_as_error.
8743 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8746 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8748 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8750 * c-common.h (c_common_missing_argument): Remove.
8751 * c-opts.c (c_common_missing_argument): Remove.
8752 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8753 idirafter, imacros, include, isysroot, isystem, iquote): Add
8755 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8757 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8759 * c-common.h (c_common_option_lang_mask,
8760 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8762 (c_common_init_options): Update prototype.
8763 * c-opts.c (c_common_option_lang_mask): New.
8764 (c_common_initialize_diagnostics): Split out of
8765 c_common_init_options.
8766 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8768 (c_common_init_options): Update prototype. Use decoded options in
8769 search for -lang-asm.
8771 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8773 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8774 * c-format.c: Likewise.
8776 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8778 * c-common.h: Include diagnostic-core.h. Error if already
8780 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8782 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8784 * c-common.c (IN_GCC_FRONTEND): Do not undef.
8785 Do not include expr.h
8786 (vector_mode_valid_p): Move here.
8788 2010-06-21 DJ Delorie <dj@redhat.com>
8790 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8791 allow these pragmas anywhere.
8793 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8796 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8797 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8798 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8799 ggc_strdup instead of xstrdup.
8801 2010-06-10 Jakub Jelinek <jakub@redhat.com>
8803 * c-cppbuiltin.c: Include cpp-id-data.h.
8804 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8805 (lazy_hex_fp_value): New function.
8806 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8808 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8810 * c-gimplify.c: Do not include tree-flow.h
8812 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8815 * c-common.c: Rename targetm member:
8816 targetm.enum_va_list -> targetm.enum_va_list_p
8818 2010-06-28 Anatoly Sokolov <aesok@post.ru>
8820 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8822 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8824 * c-cppbuiltin.c: Do not include except.h.
8826 2010-06-24 Andi Kleen <ak@linux.intel.com>
8828 * c-common.c (warn_for_omitted_condop): New.
8829 * c-common.h (warn_for_omitted_condop): Add prototype.
8831 2010-06-21 Joseph Myers <joseph@codesourcery.com>
8833 * c.opt (lang-objc): Remove.
8834 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8836 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8838 * c-opts.c: Include "tm_p.h".
8840 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8842 * c-common.c (parse_optimize_options): Update call to
8845 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8847 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8848 new type of types_used_by_cur_var_decl.
8850 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8853 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8854 for C++ standard compliance.
8856 2010-06-16 Jason Merrill <jason@redhat.com>
8858 * c.opt: Add -Wnoexcept.
8860 2010-06-16 Richard Guenther <rguenther@suse.de>
8863 * c-common.c (c_common_truthvalue_conversion): Remove
8864 premature and wrong optimization concering ADDR_EXPRs.
8866 2010-06-15 Arnaud Charlet <charlet@adacore.com>
8868 * c-ada-spec.c (dump_sloc): Remove column info.
8869 (is_simple_enum): New function.
8870 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8871 enum types when relevant.
8873 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8875 * c-common.c (conversion_warning): Warn at expression
8878 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8880 * c-opts.c (c_common_handle_option): Don't handle
8883 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8885 * c-pragma.c (push_alignment): Use typed GC allocation.
8886 (handle_pragma_push_options): Likewise.
8888 * c-common.c (parse_optimize_options): Likewise.
8890 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8893 2010-06-07 Joseph Myers <joseph@codesourcery.com>
8895 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8896 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8897 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8898 flag_signed_bitfields, warn_strict_null_sentinel,
8899 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8900 flag_gen_declaration, flag_no_gnu_keywords,
8901 flag_implement_inlines, flag_implicit_templates,
8902 flag_implicit_inline_templates, flag_optional_diags,
8903 flag_elide_constructors, flag_default_inline, flag_rtti,
8904 flag_conserve_space, flag_access_control, flag_check_new,
8905 flag_new_for_scope, flag_weak, flag_working_directory,
8906 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8907 flag_enforce_eh_specs, flag_threadsafe_statics,
8908 flag_pretty_templates): Remove.
8909 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8910 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8911 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8912 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8913 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8914 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8915 flag_no_gnu_keywords, flag_implement_inlines,
8916 flag_implicit_templates, flag_implicit_inline_templates,
8917 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8918 flag_rtti, flag_conserve_space, flag_access_control,
8919 flag_check_new, flag_new_for_scope, flag_weak,
8920 flag_working_directory, flag_use_cxa_atexit,
8921 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8922 flag_threadsafe_statics, flag_pretty_templates,
8923 warn_strict_null_sentinel): Remove.
8924 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8925 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8926 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8927 fimplicit-inline-templates, fimplicit-templates,
8928 flax-vector-conversions, fms-extensions, fnil-receivers,
8929 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8930 frtti, fshort-double, fshort-enums, fshort-wchar,
8931 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8932 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8933 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8934 gen-decls, undef): Use Var.
8935 (fdefault-inline, foptional-diags): Document as doing nothing.
8936 * c-opts.c (c_common_handle_option): Remove cases for options now
8937 using Var. Mark ignored options as such.
8939 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8941 * c-common.c: Moved to here from parent directory.
8942 * c-common.def: Likewise.
8943 * c-common.h: Likewise.
8944 * c-cppbuiltin.c: Likewise.
8945 * c-dump.c: Likewise.
8946 * c-format.c: Likewise.
8947 * c-format.h : Likewise.
8948 * c-gimplify.c: Likewise.
8949 * c-lex.c: Likewise.
8950 * c-omp.c: Likewise.
8952 * c-opts.c: Likewise.
8953 * c-pch.c: Likewise.
8954 * c-ppoutput.c: Likewise.
8955 * c-pragma.c: Likewise.
8956 * c-pragma.h: Likewise.
8957 * c-pretty-print.c: Likewise.
8958 * c-pretty-print.h: Likewise.
8959 * c-semantics.c: Likewise.
8960 * stub-objc.c: Likewise.
8962 * c-common.c: Include gt-c-family-c-common.h.
8963 * c-pragma.c: Include gt-c-family-c-pragma.h.
8965 Copyright (C) 2010-2018 Free Software Foundation, Inc.
8967 Copying and distribution of this file, with or without modification,
8968 are permitted in any medium without royalty provided the copyright
8969 notice and this notice are preserved.