1 2015-09-25 Marek Polacek <polacek@redhat.com>
3 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
4 (ubsan_instrument_shift): Likewise.
6 2015-09-25 Marek Polacek <polacek@redhat.com>
9 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
11 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
13 * c-indentation.c (should_warn_for_misleading_indentation):
14 Compare next_stmt_vis_column with guard_line_first_nws instead
15 of with guard_line_vis_column.
17 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
21 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
22 options and options not valid for the current language.
24 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
26 * c-indentation.c (should_warn_for_misleading_indentation):
27 Float out and consolidate the calls to get_visual_column that
28 are passed guard_exploc as an argument. Compare
29 next_stmt_vis_column with guard_line_first_nws instead of with
32 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
34 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
35 Wnamespaces): New C++ warnings.
37 2015-09-22 Jason Merrill <jason@redhat.com>
39 * c-common.h (abi_compat_version_crosses): New.
40 (warn_abi_version): Declare.
41 * c-common.c: Define it.
42 * c-opts.c (c_common_post_options): Handle it.
43 flag_abi_compat_version defaults to 8.
45 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
47 Complete the implementation of N4230, Nested namespace definition.
48 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
49 __cpp_nested_namespace_definitions.
51 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
53 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
55 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
57 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
59 * c-pragma.h (pragma_lex): Add optional loc argument.
61 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
63 * c-format.c (check_format_arg): Adjust to use common block size in all
66 2015-09-15 David Malcolm <dmalcolm@redhat.com>
68 * c-format.c (location_from_offset): Update for change in
69 signature of location_get_source_line.
70 * c-indentation.c (get_visual_column): Likewise.
71 (line_contains_hash_if): Likewise.
73 2015-09-14 Marek Polacek <polacek@redhat.com>
75 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
76 setting various warnings.
78 2015-09-14 Marek Polacek <polacek@redhat.com>
80 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
83 2015-09-11 Mark Wielaard <mjw@redhat.com>
86 * c.opt (Wunused-variable): Option from common.opt.
87 (Wunused-const-variable): New option.
89 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
92 * c.opt ([Wsubobject-linkage]): Add.
94 2015-09-03 Martin Sebor <msebor@redhat.com>
97 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
99 * c-common.c (reject_gcc_builtin): Define.
101 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
104 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
106 * c-gimplify.c (c_gimplify_expr): Added a call to the function
107 cilk_gimplify_call_params_in_spawned_fn.
108 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
109 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
112 2015-08-25 Marek Polacek <polacek@redhat.com>
115 * c-common.c (handle_weak_attribute): Don't check whether the
116 visibility can be changed here.
118 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
120 * c-lex.c (c_lex_with_flags): Use explicit locations.
122 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
124 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
125 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
127 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
130 * c-common.c (check_builtin_function_arguments): Add check
131 for BUILT_IN_SIGNBIT argument.
133 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
136 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
139 2015-08-17 Marek Polacek <polacek@redhat.com>
141 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
142 with whitespaces before qualifier names.
144 2015-08-12 Marek Polacek <polacek@redhat.com>
147 * c-common.c (maybe_warn_shift_overflow): Properly handle
148 left-shifting 1 into the sign bit.
150 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
152 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
154 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
155 Braden Obrzut <admin@maniacsvault.net>
156 Jason Merrill <jason@redhat.com>
158 Add C++ Concepts TS support.
159 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
160 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
161 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
162 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
163 * c-opts.c (set_std_cxx1z): Set flag_concepts.
164 * c.opt (fconcepts): New.
166 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
168 * c-indentation.c (should_warn_for_misleading_indentation):
171 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
173 * c-indentation.c (get_visual_column): Add parameter first_nws,
174 use it. Update comment documenting the function.
175 (is_first_nonwhitespace_on_line): Remove.
176 (should_warn_for_misleading_indentation): Replace usage of
177 of is_first_nonwhitespace_on_line with get_visual_column.
179 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
181 * c-indentation.h (struct token_indent_info): Define.
182 (get_token_indent_info): Define.
183 (warn_for_misleading_information): Declare.
184 * c-common.h (warn_for_misleading_information): Remove.
185 * c-identation.c (warn_for_misleading_indentation):
186 Change declaration to take three token_indent_infos. Adjust
188 * c-identation.c (should_warn_for_misleading_indentation):
189 Likewise. Bail out early if the body is a compound statement.
190 (guard_tinfo_to_string): Define.
192 2015-07-30 Jason Merrill <jason@redhat.com>
194 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
195 '*' for reference decay.
197 2015-07-30 Marek Polacek <polacek@redhat.com>
199 * c-common.c (warn_tautological_cmp): Bail for float types.
201 2015-07-27 Marek Polacek <polacek@redhat.com>
204 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
206 2015-07-27 Marek Polacek <polacek@redhat.com>
210 * c-common.c (find_array_ref_with_const_idx_r): New function.
211 (warn_tautological_cmp): New function.
212 * c-common.h (warn_tautological_cmp): Declare.
213 * c.opt (Wtautological-compare): New option.
215 2015-07-23 Marek Polacek <polacek@redhat.com>
217 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
218 (ubsan_instrument_shift): Likewise.
220 2015-07-23 Marek Polacek <polacek@redhat.com>
223 * c-ubsan.c: Include gimplify.h.
224 (ubsan_instrument_division): Unshare OP0 and OP1.
225 (ubsan_instrument_shift): Likewise.
227 2015-07-20 Marek Polacek <polacek@redhat.com>
228 Richard Sandiford <richard.sandiford@arm.com>
231 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
233 (maybe_warn_shift_overflow): New function.
234 * c-common.h (maybe_warn_shift_overflow): Declare.
235 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
236 * c.opt (Wshift-overflow): New option.
238 2015-07-16 Martin Liska <mliska@suse.cz>
240 * c-format.c (static void check_format_info_main): Use
241 object_allocator instead of pool_allocator.
242 (check_format_arg): Likewise.
243 (check_format_info_main): Likewise.
245 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
247 * c-opts.c: Remove multiline #include comment.
249 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
251 * c-common.c: Fix double word typos.
253 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
255 * c-ada-spec.h (cpp_operation): Revert latest change.
256 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
257 constructors and destructors.
259 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
261 * c-common.h: Adjust includes for flags.h changes.
262 * stub-objc.c: Likewise.
264 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
266 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
267 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
269 2015-07-08 Jakub Jelinek <jakub@redhat.com>
271 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
272 are to be removed, return NULL rather than original clauses list.
274 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
276 * array-notation-common.c: Adjust includes.
277 * c-ada-spec.c: Likewise.
278 * c-cilkplus.c: Likewise.
279 * c-common.h: Likewise.
280 * c-cppbuiltin.c: Likewise.
281 * c-dump.c: Likewise.
282 * c-format.c: Likewise.
283 * c-gimplify.c: Likewise.
284 * c-indentation.c: Likewise.
287 * c-opts.c: Likewise.
289 * c-ppoutput.c: Likewise.
290 * c-pragma.c: Likewise.
291 * c-pretty-print.c: Likewise.
292 * c-semantics.c: Likewise.
293 * c-ubsan.c: Likewise.
295 * stub-objc.c: Likewise.
297 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
299 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
300 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
302 2015-07-01 Jason Merrill <jason@redhat.com>
304 * c-common.h (D_CXX11): Rename from D_CXX0X.
305 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
306 * c-common.c: Adjust.
308 * c-opts.c (c_common_post_options): Default to C++14.
310 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
312 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
314 Implement N4197 - Adding u8 character literals
315 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
317 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
318 CPP_UTF8CHAR_USERDEF tokens.
319 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
320 and CPP_UTF8CHAR tokens.
321 (lex_charconst): Treat CPP_UTF8CHAR token.
323 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
326 * c-common.c (do_warn_unused_parameter): Move here.
327 * c-common.h (do_warn_unused_parameter): Declare.
329 2015-06-29 Marek Polacek <polacek@redhat.com>
332 * c-common.c (check_case_bounds): Add bool * parameter. Set
334 (c_add_case_label): Add bool * parameter. Pass it down to
336 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
338 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
341 2015-06-27 Marek Polacek <polacek@redhat.com>
343 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
344 or VECTOR_INTEGER_TYPE_P throughout.
345 * c-gimplify.c: Likewise.
347 2015-06-26 Marek Polacek <polacek@redhat.com>
349 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
350 * c-common.c (c_fully_fold_internal): Likewise.
351 (c_alignof_expr): Likewise.
352 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
353 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
354 * cilk.c (create_parm_list): Likewise.
356 2015-06-26 Marek Polacek <polacek@redhat.com>
358 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
360 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
362 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
363 * c-gimplify.c: Likewise.
364 * c-pragma.c: Likewise.
365 * c-ubsan.c: Likewise.
368 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
370 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
373 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
375 * cilk.c: Move calls.h after tm.h in the include chain.
377 2015-06-25 Marek Polacek <polacek@redhat.com>
379 * array-notation-common.c: Use VAR_P throughout.
380 * c-ada-spec.c: Likewise.
381 * c-common.c: Likewise.
382 * c-format.c: Likewise.
383 * c-gimplify.c: Likewise.
385 * c-pragma.c: Likewise.
386 * c-pretty-print.c: Likewise.
389 2015-06-25 Marek Polacek <polacek@redhat.com>
391 * cilk.c (extract_free_variables): Use is_global_var.
393 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
395 * c-common.c: Don't include target-def.h.
397 2015-06-23 Marek Polacek <polacek@redhat.com>
399 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
400 when comparing INTEGER_CSTs.
402 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
404 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
405 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
406 (dump_ada_template): Skip partially specialized types.
408 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
410 * c-common.c (scalar_to_vector): Use std::swap instead of manually
413 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
415 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
416 * c-ada-spec.c: Likewise.
417 * c-cilkplus.c: Likewise.
418 * c-common.c: Likewise.
419 * c-common.h: Likewise.
420 * c-cppbuiltin.c: Likewise.
421 * c-dump.c: Likewise.
422 * c-format.c: Likewise.
423 * c-gimplify.c: Likewise.
424 * c-indentation.c: Likewise.
427 * c-opts.c: Likewise.
429 * c-ppoutput.c: Likewise.
430 * c-pragma.c: Likewise.
431 * c-pretty-print.c: Likewise.
432 * c-semantics.c: Likewise.
433 * c-ubsan.c: Likewise.
435 * stub-objc.c: Likewise.
437 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
440 * c-common.c (c_common_truthvalue_conversion): Warn when
441 converting an address of a reference to a truth value.
443 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
445 * array-notation-common.c : Adjust include files.
446 * c-ada-spec.c : Likewise.
447 * c-cilkplus.c : Likewise.
448 * c-common.c : Likewise.
449 * c-common.h : Likewise.
450 * c-cppbuiltin.c : Likewise.
451 * c-dump.c : Likewise.
452 * c-format.c : Likewise.
453 * c-gimplify.c : Likewise.
454 * c-indentation.c : Likewise.
455 * c-lex.c : Likewise.
456 * c-omp.c : Likewise.
457 * c-opts.c : Likewise.
458 * c-pch.c : Likewise.
459 * c-ppoutput.c : Likewise.
460 * c-pragma.c : Likewise.
461 * c-pretty-print.c : Likewise.
462 * c-semantics.c : Likewise.
463 * c-ubsan.c : Likewise.
465 * stub-objc.c : Likewise.
467 2015-06-08 Marek Polacek <polacek@redhat.com>
470 * c-format.c (location_from_offset): Return LOC if LINE is null.
472 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
474 * c-common.h (c_parse_final_cleanups): New prototype.
475 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
477 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
479 * array-notation-common.c: Adjust includes for restructured coretypes.h.
480 * c-ada-spec.c: Likewise.
481 * c-cilkplus.c: Likewise.
482 * c-common.c: Likewise.
483 * c-common.h: Likewise.
484 * c-cppbuiltin.c: Likewise.
485 * c-dump.c: Likewise.
486 * c-format.c: Likewise.
487 * c-gimplify.c: Likewise.
488 * c-indentation.c: Likewise.
491 * c-opts.c: Likewise.
493 * c-ppoutput.c: Likewise.
494 * c-pragma.c: Likewise.
495 * c-pretty-print.c: Likewise.
496 * c-semantics.c: Likewise.
497 * c-ubsan.c: Likewise.
499 * stub-objc.c: Likewise.
501 2015-06-02 David Malcolm <dmalcolm@redhat.com>
504 * c-indentation.c (should_warn_for_misleading_indentation): Use
505 expand_location rather than expand_location_to_spelling_point.
506 Don't warn if the guarding statement is more indented than the
509 2015-06-02 David Malcolm <dmalcolm@redhat.com>
511 * c-indentation.c (warn_for_misleading_indentation): Bail out
512 immediately if -Wmisleading-indentation isn't enabled.
514 2015-06-01 Martin Liska <mliska@suse.cz>
516 * c-format.c (check_format_arg):Use new type-based pool allocator.
517 (check_format_info_main) Likewise.
519 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
521 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
522 (has_nontrivial_methods): Likewise.
524 2015-05-25 Marek Polacek <polacek@redhat.com>
526 * c-ubsan.c (ubsan_instrument_shift): Use type0.
528 2015-05-22 Marek Polacek <polacek@redhat.com>
531 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
533 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
535 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
536 STACK_GROWS_DOWNWARD.
538 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
540 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
541 STACK_GROWS_DOWNWARD rather than if it is defined.
543 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
546 * c-format.c (location_column_from_byte_offset): New.
547 (location_from_offset): New.
548 (struct format_wanted_type): Add offset_loc field.
549 (check_format_info): Move handling of location for extra arguments
550 closer to the point of warning.
551 (check_format_info_main): Pass the result of location_from_offset
553 (format_type_warning): Pass the result of location_from_offset
556 2015-05-20 Marek Polacek <polacek@redhat.com>
558 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
560 2015-05-20 Marek Polacek <polacek@redhat.com>
562 * c-ada-spec.c (dump_sloc): Use DECL_P.
564 2015-05-20 Marek Polacek <polacek@redhat.com>
566 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
567 * c-common.c: Likewise.
569 2015-05-19 David Malcolm <dmalcolm@redhat.com>
571 * c-common.h (fe_file_change): Strengthen param from
572 const line_map * to const line_map_ordinary *.
573 (pp_file_change): Likewise.
574 * c-lex.c (fe_file_change): Likewise.
575 (cb_define): Use linemap_check_ordinary when invoking
577 (cb_undef): Likewise.
578 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
579 invoking cb_file_change.
580 (c_finish_options): Likewise.
581 (push_command_line_include): Likewise.
582 (cb_file_change): Strengthen param "new_map" from
583 const line_map * to const line_map_ordinary *.
584 * c-ppoutput.c (cb_define): Likewise for local "map".
585 (pp_file_change): Likewise for param "map" and local "from".
587 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
589 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
591 2015-05-18 Tom de Vries <tom@codesourcery.com>
593 * c-common.c (build_va_arg_1): New function.
594 (build_va_arg): Add address operator to va_list operand if necessary.
596 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
599 * c-common.c (int_safely_convertible_to_real_p): Define.
600 (unsafe_conversion_p): Check conversions involving complex types.
601 (conversion_warning): Add new warning message for conversions which
602 discard imaginary component.
603 * c-common.h: (enum conversion_safety): Add new enumerator for such
606 2015-05-14 Marek Polacek <polacek@redhat.com>
610 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
611 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
612 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
613 use it. If FOR_INT_CONST, require that all evaluated operands be
616 2015-05-12 David Malcolm <dmalcolm@redhat.com>
618 * c-common.h (warn_for_misleading_indentation): New prototype.
619 * c-indentation.c: New file.
620 * c.opt (Wmisleading-indentation): New option.
622 2015-05-12 Tom de Vries <tom@codesourcery.com>
624 PR tree-optimization/66010
625 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
627 2015-05-09 Jason Merrill <jason@redhat.com>
629 * c-opts.c (c_common_post_options): Also clear
630 cpp_opts->cpp_warn_cxx11_compat.
632 * c-common.h (enum cxx_dialect): Add cxx_unset.
633 * c-common.c (cxx_dialect): Initialize to cxx_unset.
634 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
636 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
637 (std=gnu++0x): Mark as Undocumented.
638 (std=gnu++1y): Add deprecated message.
640 2015-05-08 Jason Merrill <jason@redhat.com>
642 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
645 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
647 2015-05-08 Marek Polacek <polacek@redhat.com>
650 * c.opt (Woverride-init-side-effects): New option.
652 2015-05-07 Marek Polacek <polacek@redhat.com>
655 * c-common.c (c_fully_fold_internal): Warn when left shifting a
657 * c.opt (Wshift-negative-value): New option.
658 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
659 when -Wextra and C99/C++11 mode.
661 2015-05-07 Marek Polacek <polacek@redhat.com>
662 Martin Uecker <uecker@eecs.berkeley.edu>
664 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
665 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
667 2015-05-05 Jason Merrill <jason@redhat.com>
669 * c.opt (Wterminate): New.
671 2015-04-30 Marek Polacek <polacek@redhat.com>
673 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
674 require that the non-constant be of a boolean type.
676 2015-04-29 Josh Triplett <josh@joshtriplett.org>
678 * c-common.c (handle_section_attribute): Refactor to reduce
679 nesting and distinguish between error cases.
681 2015-04-29 Marek Polacek <polacek@redhat.com>
684 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
687 2015-04-29 Jakub Jelinek <jakub@redhat.com>
689 * c-common.h (omp_clause_mask): Unconditionally define as a class.
690 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
691 HOST_BITS_PER_WIDE_INT.
693 2015-04-28 Tom de Vries <tom@codesourcery.com>
695 PR tree-optimization/65887
696 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
698 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
699 Pierre-Marie de Rodat <derodat@adacore.com>
701 * c-ada-spec.c (in_function): Delete.
702 (dump_generic_ada_node): Do not change in_function and remove the
703 redundant code dealing with it.
704 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
705 (print_ada_methods): Output the static member functions in a nested
706 package after the regular methods as well as associated renamings.
708 2015-04-24 Marek Polacek <polacek@redhat.com>
711 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
712 and OPT_Wshift_count_overflow.
715 * c-common.c (warn_logical_operator): Warn if the operands have the
718 2015-04-24 Marek Polacek <polacek@redhat.com>
721 * c-common.c (warn_logical_operator): Bail if either operand comes
722 from a macro expansion.
724 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
727 * c-common.c (c_default_pointer_mode): Add definition.
728 * c-common.h (c_default_pointer_mode): Add declaration.
730 2015-03-11 Jakub Jelinek <jakub@redhat.com>
732 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
733 on record_builtin_type argument.
735 2015-03-10 Jakub Jelinek <jakub@redhat.com>
738 * c-common.c (warn_logical_not_parentheses): Don't warn for
741 2015-03-07 Marek Polacek <polacek@redhat.com>
744 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
745 before trying to figure out whether we have a flexible array member.
747 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
748 Jonathan Wakely <jwakely.gcc@gmail.com>
750 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
752 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
755 * c-ada-spec.c (print_destructor): Remove obsolete code.
757 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
759 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
760 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
761 DECL_TEMPLATE_RESULT emulations.
762 (dump_ada_template)): Add guard for TYPE_METHODS.
764 2015-02-27 Marek Polacek <polacek@redhat.com>
767 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
769 2015-02-27 Kai Tietz <ktietz@redhat.com>
772 * c-pragma.c (handle_pragma_weak): Do not try to create
773 weak/alias of declarations not being function, or variable
776 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
779 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
781 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
783 2015-02-16 Marek Polacek <polacek@redhat.com>
786 * c-format.c (check_format_types): Handle null param.
788 2015-02-13 Marek Polacek <polacek@redhat.com>
791 * c-format.c (check_format_types): Don't warn about different
792 signedness if the original value is in the range of WANTED_TYPE.
794 2015-02-12 Jason Merrill <jason@redhat.com>
797 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
798 to the current highest version.
799 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
801 2015-02-04 Jakub Jelinek <jakub@redhat.com>
805 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
806 instead of RDIV_EXPR. Use build_binary_op instead of
809 2015-01-30 Joseph Myers <joseph@codesourcery.com>
811 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
812 to pass input_location as first argument.
814 2015-01-23 Tom de Vries <tom@codesourcery.com>
817 * c.opt (fopenacc): Mark as LTO option.
819 2015-01-23 Tom de Vries <tom@codesourcery.com>
822 * c.opt (fopenmp): Mark as LTO option.
824 2015-01-21 Jakub Jelinek <jakub@redhat.com>
827 * cilk.c (fill_decls_vec): Only put decls into vector v.
828 (compare_decls): Fix up formatting.
830 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
833 * cilk.c: Include vec.h.
834 (struct cilk_decls): New structure.
835 (wrapper_parm_cb): Split this function to...
836 (fill_decls_vec): ...this...
837 (create_parm_list): ...and this.
838 (compare_decls): New function.
839 (for_local_cb): Remove.
840 (wrapper_local_cb): Ditto.
841 (build_wrapper_type): For now first traverse and fill vector of
842 declarations then sort it and then deal with sorted vector.
843 (cilk_outline): Ditto.
844 (declare_one_free_variable): Ditto.
846 2015-01-21 Jason Merrill <jason@redhat.com>
849 * c-format.c (check_format_arg): Call decl_constant_value.
851 2015-01-19 Martin Liska <mliska@suse.cz>
853 * c-common.c (handle_noicf_attribute): New function.
855 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
856 Bernd Schmidt <bernds@codesourcery.com>
857 James Norris <jnorris@codesourcery.com>
858 Cesar Philippidis <cesar@codesourcery.com>
859 Ilmir Usmanov <i.usmanov@samsung.com>
860 Jakub Jelinek <jakub@redhat.com>
862 * c.opt (fopenacc): New option.
863 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
864 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
866 * c-common.h (c_finish_oacc_wait): New prototype.
867 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
868 (c_finish_oacc_wait): New function.
869 * c-pragma.c (oacc_pragmas): New variable.
870 (c_pp_lookup_pragma, init_pragma): Handle it.
871 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
872 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
873 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
874 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
875 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
876 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
877 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
878 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
879 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
880 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
881 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
882 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
883 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
884 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
885 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
886 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
887 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
888 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
889 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
890 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
891 PRAGMA_OACC_CLAUSE_WORKER.
893 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
895 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
896 for the new option fstack-protector_explicit.
897 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
898 (handle_stack_protect_attribute): New function.
900 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
902 * c.opt: New option -Warray-bounds=.
904 2015-01-09 Michael Collison <michael.collison@linaro.org>
906 * array-notation-common.c: Include hash-set.h, machmode.h,
907 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
908 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
909 * c-ada-spec.c: Ditto.
910 * c-cilkplus.c: Ditto.
911 * c-common.c: Include input.h due to flattening of tree.h.
912 Define macro GCC_C_COMMON_C.
913 * c-common.h: Flatten tree.h header files into c-common.h.
914 Remove include of tree-core.h.
915 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
916 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
917 fold-const.h, wide-int.h, and inchash.h due to
918 flattening of tree.h.
920 * c-format.c: Flatten tree.h header files into c-common.h.
921 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
922 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
923 fold-const.h, wide-int.h, and inchash.h due to
924 flattening of tree.h.
925 * c-dump.c: Include hash-set.h, machmode.h,
926 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
927 fold-const.h, wide-int.h, and inchash.h due to
928 flattening of tree.h.
929 * c-format.c: Include hash-set.h, machmode.h,
930 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
931 fold-const.h, wide-int.h, inchash.h and real.h due to
932 flattening of tree.h.
933 * c-gimplify.c: Include hash-set.h, machmode.h,
934 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
935 fold-const.h, wide-int.h, and inchash.h due to
936 flattening of tree.h.
942 * c-ppoutput.c: Ditto.
944 * c-pretty-print.c: Ditto.
945 * c-semantics.c: Ditto.
947 * stub-objc.c: Ditto.
949 2015-01-08 Jason Merrill <jason@redhat.com>
951 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
952 do_ubsan_in_current_function.
953 (ubsan_maybe_instrument_reference_or_call): Likewise.
954 * c-ubsan.h: Declare it.
956 2015-01-08 Mike Stump <mikestump@comcast.net>
958 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
960 2015-01-07 Marek Polacek <polacek@redhat.com>
963 * c-common.c (c_fully_fold_internal): Warn for division and modulo
964 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
966 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
969 * c.opt (Wsuggest-override): New option.
971 2015-01-05 Jakub Jelinek <jakub@redhat.com>
973 Update copyright years.
975 2015-01-05 Marek Polacek <polacek@redhat.com>
978 * c-common.c (warn_array_subscript_with_type_char): Add location_t
980 * c-common.h (warn_array_subscript_with_type_char): Update
983 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
985 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
986 Control macro with flag_sized_deallocation.
988 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
990 * c.opt (Wdiscarded-array-qualifiers): New option.
992 2014-12-19 Jakub Jelinek <jakub@redhat.com>
994 PR preprocessor/63831
995 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
996 and __has_cpp_attribute here.
997 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
998 c_common_has_attribute.
999 * c-common.h (c_common_has_attribute): New prototype.
1000 * c-lex.c (init_c_lex): Set cb->has_attribute to
1001 c_common_has_attribute instead of cb_has_attribute.
1002 (get_token_no_padding): New function.
1003 (cb_has_attribute): Renamed to ...
1004 (c_common_has_attribute): ... this. No longer static. Use
1005 get_token_no_padding, require ()s, don't build TREE_LIST
1006 unnecessarily, fix up formatting, adjust diagnostics, call
1009 2014-12-15 Jason Merrill <jason@redhat.com>
1011 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1012 (-Wsized-deallocation): New.
1013 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1014 to on in C++14 and up.
1016 2014-12-11 Jason Merrill <jason@redhat.com>
1018 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1020 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1021 we aren't complaining about VLAs.
1023 2014-12-06 Marek Polacek <polacek@redhat.com>
1025 PR tree-optimization/64183
1026 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1027 shift-expression if it is integer_type_node. Use types_compatible_p.
1029 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1031 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1032 last argument from create_tmp_var_raw and create_tmp_var calls.
1033 * cilk.c (gimplify_cilk_spawn): Likewise.
1034 * c-omp.c (c_finish_omp_atomic): Likewise.
1036 2014-11-28 Marek Polacek <polacek@redhat.com>
1038 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1039 instead of unsigned_type_node.
1041 2014-11-28 Marek Polacek <polacek@redhat.com>
1044 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1046 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1047 expression to unsigned_type_node.
1049 2014-11-20 Mark Wielaard <mjw@redhat.com>
1052 * c-opts.c (set_std_c89): Set lang_hooks.name.
1053 (set_std_c99): Likewise.
1054 (set_std_c11): Likewise.
1055 (set_std_cxx98): Likewise.
1056 (set_std_cxx11): Likewise.
1057 (set_std_cxx14): Likewise.
1058 (set_std_cxx1z): Likewise.
1060 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1063 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1064 return type to bool.
1065 * c-common.c: Include gimple-expr.h.
1066 (convert_vector_to_pointer_for_subscript): Change return type to
1067 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1068 and copy it into a TARGET_EXPR and use that instead of *vecp
1071 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1073 Merger of git branch "gimple-classes-v2-option-3".
1074 * ChangeLog.gimple-classes: New.
1075 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1076 from being just a vec<gimple> to a vec<gbind *>.
1078 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1081 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1082 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1083 get_pointer_alignment for non-pointers. Use ptype, or if it is
1084 reference type, corresponding pointer type, as type of kind
1086 (ubsan_maybe_instrument_reference,
1087 ubsan_maybe_instrument_member_call): Adjust callers.
1089 2014-11-15 Marek Polacek <polacek@redhat.com>
1092 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1094 (extract_array_notation_exprs): Return for NULL node.
1096 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1098 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1099 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1101 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1104 * c-common.c (check_builtin_function_arguments): Handle
1105 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1107 2014-11-10 Andi Kleen <ak@linux.intel.com>
1110 * c-common.h (check_no_cilk): Declare.
1111 * cilk.c (get_error_location): New function.
1112 (check_no_cilk): Dito.
1114 2014-11-10 Andi Kleen <ak@linux.intel.com>
1116 * cilk.c (recognize_spawn): Use expression location
1119 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1121 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1123 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1125 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1126 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1127 (__cpp_range_based_for, __cpp_initializer_lists,
1128 __cpp_delegating_constructors, __cpp_nsdmi,
1129 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1130 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1131 __has_cpp_attribute.
1132 * c-lex.c (cb_has_attribute): New callback CPP function;
1133 (init_c_lex): Set has_attribute callback.
1135 2014-11-04 Richard Biener <rguenther@suse.de>
1137 * c-common.c (shorten_compare): Do not shorten mixed
1138 DFP and non-DFP compares.
1140 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1142 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1143 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1144 Commentary and rearrangement of tests.
1145 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1146 Commentary and rearrangement of tests.
1147 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1148 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1150 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1152 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1153 enum from machine_mode.
1155 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1157 * c-common.c: Adjust include files.
1158 * c-gimplify.c: Ditto.
1160 * c-pragma.c: Ditto.
1163 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1165 * c-gimplify.c: Adjust include files.
1167 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1170 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1171 c_common_initialize_diagnostics.
1172 * c-common.h: Likewise.
1174 2014-10-24 Marek Polacek <polacek@redhat.com>
1177 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1178 print "struct"/"union"/"enum" for typedefed names.
1180 2014-10-23 Marek Polacek <polacek@redhat.com>
1182 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1185 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1186 Yury Gribov <y.gribov@samsung.com>
1188 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1189 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1190 instead of flag_sanitize_recover as bool flag.
1192 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1194 * cilk.c: Revert previous change.
1196 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1199 * cilk.c: Include vec.h.
1200 (struct cilk_decls): New structure.
1201 (wrapper_parm_cb): Split this function to...
1202 (fill_decls_vec): ...this...
1203 (create_parm_list): ...and this.
1204 (compare_decls): New function.
1205 (for_local_cb): Remove.
1206 (wrapper_local_cb): Ditto.
1207 (build_wrapper_type): For now first traverse and fill vector of
1208 declarations then sort it and then deal with sorted vector.
1209 (cilk_outline): Ditto.
1210 (declare_one_free_variable): Ditto.
1212 2014-10-17 Marek Polacek <polacek@redhat.com>
1214 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1215 * c.opt (Wimplicit-int): Initialize to -1.
1217 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1219 * c-pragma.c: Adjust include files.
1220 * c-semantics.c: Likewise.
1222 2014-10-16 DJ Delorie <dj@redhat.com>
1224 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1227 2014-10-14 Jason Merrill <jason@redhat.com>
1230 * c-common.h (CPP_PREPARSED_EXPR): New.
1231 (N_CP_TTYPES): Adjust.
1233 2014-10-15 Marek Polacek <polacek@redhat.com>
1235 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1237 2014-10-14 DJ Delorie <dj@redhat.com>
1239 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1240 types, not just __int128.
1241 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1242 types, not just __int128.
1243 (cpp_atomic_builtins): Round pointer sizes up.
1244 (type_suffix): Use type precision, not specific types.
1245 * c-common.c (c_common_reswords): Remove __int128 special case.
1246 (c_common_type_for_size): Check for all __intN types, not just
1248 (c_common_type_for_mode): Likewise.
1249 (c_common_signed_or_unsigned_type): Likewise.
1250 (c_build_bitfield_integer_type): Likewise.
1251 (c_common_nodes_and_builtins): Likewise.
1252 (keyword_begins_type_specifier): Likewise.
1253 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1256 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1258 * c-common.c: Use hash_table instead of hashtab.
1260 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1262 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1265 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1270 * c-common.c (warn_logical_operator): Punt for vectors.
1272 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1274 Implement SD-6: SG10 Feature Test Recommendations
1275 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1276 macros and the __has_header macro.
1278 2014-09-30 Jason Merrill <jason@redhat.com>
1280 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1281 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1282 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1284 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1285 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1287 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1288 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1290 2014-09-24 Marek Polacek <polacek@redhat.com>
1294 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1296 2014-09-23 Andi Kleen <ak@linux.intel.com>
1298 * c-common.c (handle_no_reorder_attribute): New function.
1299 (c_common_attribute_table): Add no_reorder attribute.
1301 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1303 * c-cppbuiltin.c (c_cpp_builtins): Define
1304 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1307 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1309 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1310 for supported floating-point modes.
1312 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1314 * c.opt (Wpsabi): Use LangEnabledBy.
1315 * c-opts.c (c_common_handle_option): Do not handle here.
1317 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1319 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1320 macros for floating-point modes.
1322 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1325 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1326 __*_DENORM_MIN__ without denormals.
1328 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1330 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1331 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1332 ubsan_create_data callers.
1333 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1334 index is constant or BIT_AND_EXPR with constant mask and is
1335 small enough for the bound.
1336 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1337 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1339 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1341 * c.opt: Add CppReason to various flags.
1342 (Wdate-time): Re-sort.
1343 * c-common.c: Include c-common.h earlier.
1344 (struct reason_option_codes_t): Delete.
1345 (c_option_controlling_cpp_error): Prefix global type and struct
1348 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1350 * c.opt (Wnormalized): New.
1351 (Wnormalized=): Use Enum and Reject Negative.
1352 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1354 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1356 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1357 digits of floating-point modes if -fbuilding-libgcc.
1359 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1361 * c-cppbuiltin.c (c_cpp_builtins): Also define
1362 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1363 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1364 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1365 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1366 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1367 __LIBGCC_STACK_GROWS_DOWNWARD__,
1368 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1369 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1370 __LIBGCC_DWARF_FRAME_REGISTERS__,
1371 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1372 __LIBGCC_STACK_POINTER_REGNUM__ and
1373 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1374 (builtin_define_with_value): Handle backslash-escaping in string
1377 2014-09-05 Richard Biener <rguenther@suse.de>
1380 * c-format.c (check_format_arg): Properly handle
1381 effectively signed POINTER_PLUS_EXPR offset.
1383 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1385 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1386 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1387 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1389 * c-opts.c (c_common_handle_option): Do not handle here.
1390 (sanitize_cpp_opts): Likewise.
1391 * c-common.c (struct reason_option_codes_t): Handle
1392 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1394 2014-09-03 Marek Polacek <polacek@redhat.com>
1396 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1398 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1399 Balaji V. Iyer <balaji.v.iyer@intel.com>
1400 Igor Zamyatin <igor.zamyatin@intel.com>
1402 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1403 * c-common.c (c_common_reswords): Added _Cilk_for.
1404 * c-common.h (enum rid): Added RID_CILK_FOR.
1405 (cilk_for_number_of_iterations): Add declaration.
1406 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1408 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1409 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1411 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1413 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1414 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1415 Wundef): Use CPP, Var and Init.
1416 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1418 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1420 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1421 * c-opts.c (c_common_handle_option): Do not handle here.
1423 2014-08-25 Jason Merrill <jason@redhat.com>
1425 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1426 -std=c++14 and -std=gnu++14, rather than the reverse.
1427 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1428 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1429 * c-common.h (cxx_dialect): Remove cxx1y.
1431 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1433 * c-common.h (enum cxx_dialect): Add cxx14.
1434 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1435 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1436 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1438 2014-08-22 Jason Merrill <jason@redhat.com>
1440 * c.opt (std=gnu++17): Fix alias.
1442 2014-08-22 Marek Polacek <polacek@redhat.com>
1445 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1446 check for vector types. Drop LHS argument.
1447 * c-common.h (warn_logical_not_parentheses): Adjust.
1449 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1451 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1452 (Wmultichar): Likewise.
1453 (Wdate-time): Use C-family languages instead of Common. Use CPP
1455 * c-opts.c (c_common_handle_option): Do not handle the above
1457 (sanitize_cpp_opts): Likewise.
1459 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1462 * c-opts.c: Include tree-diagnostics.h.
1463 (c_diagnostic_finalizer): New.
1464 (c_common_initialize_diagnostics): Use it.
1466 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1468 PR preprocessor/51303
1469 * c-common.c (struct reason_option_codes_t option_codes):
1470 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1472 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1476 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1477 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1478 (c_common_post_options): Call init_global_opts_from_cpp.
1479 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1481 2014-08-19 Marek Polacek <polacek@redhat.com>
1484 * c-common.c (maybe_warn_bool_compare): New function.
1485 * c-common.h (maybe_warn_bool_compare): Declare.
1486 * c.opt (Wbool-compare): New option.
1488 2014-08-19 Marek Polacek <polacek@redhat.com>
1490 * c.opt (Wc99-c11-compat): New option.
1492 2014-08-19 Marek Polacek <polacek@redhat.com>
1494 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1495 to warn_c90_c99_compat.
1496 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1499 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1500 Steven Bosscher <steven@gcc.gnu.org>
1503 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1504 format_check_results.
1505 (check_function_format): Use true and add comment for boolean
1507 (finish_dollar_format_checking): Use explicit location when warning.
1508 (check_format_info): Likewise.
1509 (check_format_arg): Set extra_arg_loc and format_string_loc.
1510 (check_format_info_main): Use explicit location when warning.
1511 (check_format_types): Pass explicit location.
1512 (format_type_warning): Likewise.
1514 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1517 * c-format.c: Handle Fortran flags.
1519 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1522 * array-notation-common.c (find_rank): Added handling for other
1523 types of references.
1525 2014-08-10 Marek Polacek <polacek@redhat.com>
1528 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1529 * c.opt (Wc90-c99-compat): Add option.
1531 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1533 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1535 2014-08-03 Marek Polacek <polacek@redhat.com>
1537 * c-common.c (check_case_value): Add location_t parameter. Use it.
1538 (c_add_case_label): Pass loc to check_case_value.
1540 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1542 * cilk.c: Use hash_map instead of pointer_map.
1544 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1546 * c-gimplify.c: Use hash_set instead of pointer_set.
1548 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1551 * array-notation-common.c (extract_array_notation_exprs): Handling
1554 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1556 * c-common.h (min_align_of_type): Removed prototype.
1557 * c-common.c (min_align_of_type): Removed.
1558 * c-ubsan.h (ubsan_maybe_instrument_reference,
1559 ubsan_maybe_instrument_member_call): New prototypes.
1560 * c-ubsan.c: Include stor-layout.h and builtins.h.
1561 (ubsan_maybe_instrument_reference_or_call,
1562 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1565 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1568 * c.opt (-Wreturn-local-addr): Move to common.opt.
1570 2014-07-30 Jason Merrill <jason@redhat.com>
1575 * c.opt (-fuse-all-virtuals): New.
1577 2014-07-30 Tom Tromey <tromey@redhat.com>
1580 * c.opt (Wdesignated-init): New option.
1581 * c-common.c (c_common_attribute_table): Add "designated_init".
1582 (handle_designated_init): New function.
1584 2014-07-24 Marek Polacek <polacek@redhat.com>
1587 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1589 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1591 PR preprocessor/60723 - missing system-ness marks for macro tokens
1592 * c-ppoutput.c (struct print::prev_was_system_token): New data
1594 (init_pp_output): Initialize it.
1595 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1596 (do_line_change): Return a flag saying if a line marker was
1598 (scan_translation_unit): Detect if the system-ness of the token we
1599 are about to emit is different from the one of the previously
1600 emitted token. If so, emit a line marker. Avoid emitting useless
1601 adjacent line markers. Avoid emitting line markers for tokens
1602 originating from the expansion of built-in macros.
1603 (scan_translation_unit_directives_only): Adjust.
1605 2014-07-15 Marek Polacek <polacek@redhat.com>
1607 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1608 TYPE_MAX_VALUE is NULL.
1610 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1613 * c.opt (Wmemset-transposed-args): New warning.
1615 2014-07-10 Jason Merrill <jason@redhat.com>
1619 * c.opt (-fuse-all-virtuals): New.
1621 2014-07-09 Richard Biener <rguenther@suse.de>
1624 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1625 using unsigned arithmetic if overflow does not wrap instead of
1626 if overflow is undefined.
1628 2014-07-06 Marek Polacek <polacek@redhat.com>
1631 * c.opt (Wsizeof-array-argument): New option.
1633 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1635 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1636 comments->count <= 1, as comments->entries might be NULL.
1638 2014-07-01 Marek Polacek <polacek@redhat.com>
1640 * c.opt (Wint-conversion): New option.
1642 2014-07-01 Marek Polacek <polacek@redhat.com>
1645 * c.opt (Wincompatible-pointer-types): New option.
1647 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1650 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1651 Do not discard TYPE_QUALS of type.
1653 2014-06-26 Jason Merrill <jason@redhat.com>
1655 * c-common.h (enum cxx_dialect): Add cxx1z.
1656 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1657 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1659 2014-06-26 Teresa Johnson <tejohnson@google.com>
1661 * c-common.h (get_dump_info): Declare.
1662 * c-gimplify.c (c_genericize): Use saved dump files.
1663 * c-opts.c (c_common_parse_file): Begin and end dumps
1664 once around parsing invocation.
1665 (get_dump_info): New function.
1667 2014-06-23 Marek Polacek <polacek@redhat.com>
1668 Andrew MacLeod <amacleod@redhat.com>
1671 * c-common.c (get_atomic_generic_size): Don't segfault if the
1672 type doesn't have a size.
1674 2014-06-20 Marek Polacek <polacek@redhat.com>
1676 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1677 (ubsan_walk_array_refs_r): New function.
1678 (c_genericize): Instrument array bounds.
1679 * c-ubsan.c: Include "internal-fn.h".
1680 (ubsan_instrument_division): Mark instrumented arrays as having
1681 side effects. Adjust ubsan_type_descriptor call.
1682 (ubsan_instrument_shift): Likewise.
1683 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1684 (ubsan_instrument_bounds): New function.
1685 (ubsan_array_ref_instrumented_p): New function.
1686 (ubsan_maybe_instrument_array_ref): New function.
1687 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1688 (ubsan_array_ref_instrumented_p): Declare.
1689 (ubsan_maybe_instrument_array_ref): Declare.
1691 2014-06-20 Hale Wang <hale.wang@arm.com>
1694 * c.opt (fshort-enums): Add to LTO.
1695 * c.opt (fshort-wchar): Likewise.
1697 2014-06-16 Marek Polacek <polacek@redhat.com>
1700 * c.opt (Wswitch-bool): Add Var.
1702 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1705 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1706 #pragma omp target teams or
1707 #pragma omp {,target }teams distribute simd.
1709 2014-06-12 Jason Merrill <jason@redhat.com>
1711 * c.opt (Wabi=, fabi-compat-version): New.
1712 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1713 (c_common_post_options): Handle flag_abi_compat_version default.
1714 Disallow -fabi-compat-version=1.
1715 * c-common.h (abi_version_crosses): New.
1717 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1719 * c-common.c (handle_section_attribute): Update handling for
1720 section names that are no longer trees.
1722 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1725 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1726 (omp_pragmas): ... back here.
1728 2014-06-05 Marek Polacek <polacek@redhat.com>
1731 * c-common.c (warn_logical_not_parentheses): New function.
1732 * c-common.h (warn_logical_not_parentheses): Declare.
1733 * c.opt (Wlogical-not-parentheses): New option.
1735 2014-06-04 Marek Polacek <polacek@redhat.com>
1738 * c-common.c (check_case_bounds): Add location parameter.
1740 (c_add_case_label): Pass loc to check_case_bounds.
1742 2014-06-03 Marek Polacek <polacek@redhat.com>
1745 * c.opt (Wswitch-bool): New option.
1747 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1749 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1751 (record_types_used_by_current_var_decl): Move prototype to where
1754 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1755 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1756 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1758 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1760 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1761 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1763 * c-pretty-print.c (pp_c_void_constant): New function.
1764 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1765 (c_pretty_printer::expression): Handle VOID_CST.
1766 * cilk.c (extract_free_variables): Likewise.
1767 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1768 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1770 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1772 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1773 * c-pragma.c (push_alignment): Adjust.
1774 (handle_pragma_push_options): Likewise.
1776 2014-05-09 Marek Polacek <polacek@redhat.com>
1779 * c-common.c (check_user_alignment): Return -1 if alignment is error
1781 (handle_aligned_attribute): Don't call default_conversion on
1783 (handle_vector_size_attribute): Likewise.
1784 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1785 (handle_sentinel_attribute): Call default_conversion and allow even
1786 integral types as an argument.
1788 2014-05-08 Marek Polacek <polacek@redhat.com>
1791 * c-common.c (min_align_of_type): New function factored out from...
1792 (c_sizeof_or_alignof_type): ...here.
1793 * c-common.h (min_align_of_type): Declare.
1795 2014-05-08 Marek Polacek <polacek@redhat.com>
1798 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1799 parameter type of main.
1801 2014-05-07 DJ Delorie <dj@redhat.com>
1803 * c-cppbuiltin.c (print_bits_of_hex): New.
1804 (builtin_define_type_minmax): Print values using hex so as not to
1805 require a pre-computed list of string values.
1807 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1808 Mike Stump <mikestump@comcast.net>
1809 Richard Sandiford <rdsandiford@googlemail.com>
1811 * c-ada-spec.c: Include wide-int.h.
1812 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1813 (dump_generic_ada_node): Use wide-int interfaces.
1814 * c-common.c: Include wide-int-print.h.
1815 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1816 (pointer_int_sum): Use wide-int interfaces.
1817 (c_common_nodes_and_builtins): Use make_int_cst.
1818 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1819 (handle_alloc_size_attribute): Use wide-int interfaces.
1820 (get_nonnull_operand): Likewise.
1821 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1822 * c-lex.c: Include wide-int.h.
1823 (narrowest_unsigned_type): Take a widest_int rather than two
1825 (narrowest_signed_type): Likewise.
1826 (interpret_integer): Update accordingly. Use wide-int interfaces.
1827 (lex_charconst): Use wide-int interfaces.
1828 * c-pretty-print.c: Include wide-int.h.
1829 (pp_c_integer_constant): Use wide-int interfaces.
1830 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1831 INT_CST_LT_UNSIGNED.
1833 2014-05-06 Richard Biener <rguenther@suse.de>
1835 * c-opts.c (c_common_post_options): For -freestanding,
1836 -fno-hosted and -fno-builtin disable pattern recognition
1837 if not enabled explicitely.
1839 2014-05-02 Marek Polacek <polacek@redhat.com>
1841 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1843 2014-05-01 Marek Polacek <polacek@redhat.com>
1846 * c.opt (Wdiscarded-qualifiers): Add.
1848 2014-04-30 Marek Polacek <polacek@redhat.com>
1850 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1851 INT_MIN / -1 sanitization only for integer types.
1853 2014-04-25 Marek Polacek <polacek@redhat.com>
1856 * c-common.c (handle_noinline_attribute): Warn if the attribute
1857 conflicts with always_inline attribute.
1858 (handle_always_inline_attribute): Warn if the attribute conflicts
1859 with noinline attribute.
1861 2014-04-25 Marek Polacek <polacek@redhat.com>
1864 * c-common.c (check_main_parameter_types): Warn about variadic main.
1866 2014-04-24 Mike Stump <mikestump@comcast.net>
1868 * c.opt (Wshadow-ivar): Default to on.
1870 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1872 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1874 2014-04-23 Marek Polacek <polacek@redhat.com>
1876 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1878 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1881 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1882 if flag_sanitize_undefined_trap_on_error.
1883 (ubsan_instrument_division, ubsan_instrument_shift,
1884 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1885 if !flag_sanitize_recover.
1887 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1890 * c-common.c (registered_builtin_types): Make non-static.
1891 * c-common.h (registered_builtin_types): Declare.
1893 2014-04-14 Richard Biener <rguenther@suse.de>
1894 Marc Glisse <marc.glisse@inria.fr>
1897 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1898 apply may-alias the scalar pointer type when applicable.
1900 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1903 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1904 as possible argument for Cilk_spawn.
1906 2014-04-11 Tobias Burnus <burnus@net-b.de>
1909 * c.opt (Wformat-signedness): Add
1910 * c-format.c(check_format_types): Use it.
1912 2014-04-11 Jason Merrill <jason@redhat.com>
1915 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1916 default_conversion for an array argument.
1918 2014-04-08 Marek Polacek <polacek@redhat.com>
1921 * c-ubsan.c: Include asan.h.
1922 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1924 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1926 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1928 2014-04-02 Marek Polacek <polacek@redhat.com>
1930 * c-common.h (c_expand_expr): Remove declaration.
1932 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1935 * c-common.c (add_atomic_size_parameter): When creating new
1936 params vector, push the size argument first.
1938 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1940 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1941 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1942 ubsan_create_data callers.
1944 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1947 * c-opts.c (c_finish_options): Restore cb_file_change call to
1950 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1953 * c-pragma.c (apply_pragma_weak): Only look at
1954 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1955 DECL_ASSEMBLER_NAME_SET_P (decl).
1956 (maybe_apply_pending_pragma_weaks): Exit early if
1957 vec_safe_is_empty (pending_weaks) rather than only when
1959 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1960 set assembler name back to NULL afterwards.
1962 2014-03-11 Jason Merrill <jason@redhat.com>
1964 * c.opt: Add -std=gnu++14.
1966 2014-03-11 Ian Bolton <ian.bolton@arm.com>
1968 * c-opts.c (c_common_post_options): Don't override
1969 -ffp-contract=fast if unsafe-math-optimizations is on.
1971 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1973 * c.opt: Enable LTO FE for fshort-double.
1975 2014-03-07 Jason Merrill <jason@redhat.com>
1977 * c.opt: Add -std=c++14.
1979 2014-03-06 Marek Polacek <polacek@redhat.com>
1982 * cilk.c (contains_cilk_spawn_stmt): New function.
1983 (contains_cilk_spawn_stmt_walker): Likewise.
1984 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1985 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1987 2014-03-03 Jakub Jelinek <jakub@redhat.com>
1989 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1990 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1991 even when flag_preprocess_only.
1993 2014-02-26 Jason Merrill <jason@redhat.com>
1997 * c-common.c (shorten_compare): Don't check
1998 c_inhibit_evaluation_warnings.
2000 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2003 * c-common.c (c_common_nodes_and_builtins): When initializing
2004 c_uint{16,32,64}_type_node, also set corresponding
2005 uint{16,32,64}_type_node to the same value.
2008 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2009 for PRAGMA_IVDEP if flag_preprocess_only.
2011 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2014 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2015 if false, add ADD itself, rather than vice versa.
2016 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2017 copy. For SAVE_EXPR, only call merge_tlist once.
2019 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2022 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2024 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2026 (c_common_attribute_table): Add alloc_align and assume_aligned
2029 2014-02-06 Marek Polacek <polacek@redhat.com>
2032 * c-common.c (warn_for_sign_compare): Call warning_at with location
2035 2014-02-05 Marek Polacek <polacek@redhat.com>
2038 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2041 2014-02-04 Marek Polacek <polacek@redhat.com>
2044 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2047 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2051 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2052 handle_vector_size_attribute, handle_nonnull_attribute): Call
2053 default_conversion on the attribute argument.
2054 (handle_nonnull_attribute): Increment the argument number.
2056 2014-01-31 Marek Polacek <polacek@redhat.com>
2059 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2060 build_function_call_vec.
2061 (resolve_overloaded_builtin): Likewise.
2062 * c-common.h (build_function_call_vec): Adjust declaration.
2064 2014-01-30 Marek Polacek <polacek@redhat.com>
2067 * c-common.h (unsafe_conversion_p): Adjust declaration.
2068 (warnings_for_convert_and_check): Likewise.
2069 (convert_and_check): Likewise.
2070 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2071 expansion_point_location_if_in_system_header on it.
2072 (warnings_for_convert_and_check): Add location parameter. Call
2073 expansion_point_location_if_in_system_header on it. Use it.
2074 (convert_and_check): Add location parameter. Use it.
2075 (conversion_warning): Likewise.
2076 (c_add_case_label): Adjust convert_and_check calls.
2077 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2079 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2081 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2083 * c-pragma.c (init_pragma): Likewise.
2086 2014-01-23 Marek Polacek <polacek@redhat.com>
2089 * c-common.c (shorten_compare): Add location_t parameter.
2090 * c-common.h (shorten_binary_op): Adjust declaration.
2092 2014-01-23 Marek Polacek <polacek@redhat.com>
2095 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2096 * c-common.h: Declare it.
2098 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2100 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2101 * c-ada-spec.c (dump_ads): Likewise.
2102 (cpp_check): Likewise.
2103 (dump_ada_specs): Likewise.
2105 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2108 * c-common.c (handle_no_instrument_function_attribute): Allow
2109 no_instrument_function attribute in class member
2110 definition/declaration.
2112 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2115 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2116 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2117 being COMPOUND_EXPR.
2118 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2119 operand a SAVE_EXPR and second MODIFY_EXPR.
2121 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2124 * c-pch.c (c_common_write_pch): Call
2125 prepare_target_option_nodes_for_pch.
2127 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2129 Update copyright years
2131 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2133 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2134 the copyright notice.
2136 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2138 * c-ada-spec.c (print_constructor): New function.
2139 (print_destructor): Retrieve the origin of the destructor.
2140 (print_ada_declaration): Revamp handling of constructors/destructors.
2142 2013-12-23 Stuart Hastings <stuart@apple.com>
2143 Bill Maddox <maddox@google.com>
2144 Jason Merrill <jason@redhat.com>
2146 * c.opt: Add -fdeclone-ctor-dtor.
2147 * c-opts.c (c_common_post_options): Default to on iff -Os.
2149 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2151 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2153 * c-pragma.h (enum pragma_cilk_clause): Remove.
2154 (enum pragma_omp_clause): Added the following fields:
2155 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2156 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2157 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2158 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2159 PRAGMA_CILK_CLAUSE_UNIFORM.
2162 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2164 * cilk.c (cilk_outline): Made this function non-static.
2165 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2166 (create_cilk_wrapper): Added a new parameter: a function pointer.
2167 (c_install_body_w_frame_cleanup): Remove
2168 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2169 * c-common.h (cilk_outline): New prototype.
2170 (gimplify_cilk_spawn): Removed two parameters.
2171 (cilk_install_body_with_frame_cleanup): New prototype.
2172 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2173 CILK_SPAWN_STMT case.
2175 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2177 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2179 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2180 (int_array_type_node): Remove.
2181 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2183 2013-12-05 Marek Polacek <polacek@redhat.com>
2186 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2187 [ADJUST_FIELD_ALIGN].
2189 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2192 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2193 and check field alignment if set.
2194 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2195 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2197 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2198 Marek Polacek <polacek@redhat.com>
2200 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2201 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2203 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2206 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2209 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2212 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2213 goto invalid. If it is error_mark_node, don't issue further
2216 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2218 * c.opt (Wopenmp-simd): New.
2220 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2222 * c-ubsan.h (ubsan_instrument_return): New prototype.
2223 * c-ubsan.c (ubsan_instrument_return): New function.
2225 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2227 * c-common.c: Add required include files from gimple.h.
2228 * c-gimplify.c: Likewise
2231 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2233 * c-common.c (unsafe_conversion_p): Remove use of
2234 EXPR_LOC_OR_HERE macro.
2235 (conversion_warning): Likewise.
2236 (warnings_for_convert_and_check): Likewise.
2237 (warn_for_collisions_1): Likewise.
2238 (shorten_compare): Likewise, and remove use of in_system_header
2239 macro, using the location from the former.
2240 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2241 (cb_def_pragma): Remove use of in_system_header macro.
2242 (lex_string): Likewise.
2243 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2245 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2246 Mike Stump <mikestump@comcast.net>
2247 Richard Sandiford <rdsandiford@googlemail.com>
2249 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2250 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2251 tree_fits_shwi_p or tree_fits_uhwi_p.
2252 (dump_generic_ada_node): Likewise.
2253 * c-format.c (check_format_arg): Likewise.
2254 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2256 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2258 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2260 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2263 * c-common.c (unsafe_conversion_p): Make this function
2264 return an enumeration with more detail.
2265 (conversion_warning): Use the new return type of
2266 unsafe_conversion_p to separately warn either about conversions
2267 that lower floating point number precision or about the other
2268 kinds of conversions.
2269 * c-common.h (enum conversion_safety): New enumeration.
2270 (unsafe_conversion_p): switching return type to
2271 conversion_safety enumeration.
2272 * c.opt: Adding new warning -Wfloat-conversion and
2273 enabling it with -Wconversion.
2275 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2277 * c-opts.c: Include plugin.h.
2278 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2280 2013-11-19 Marek Polacek <polacek@redhat.com>
2282 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2284 (ubsan_instrument_shift): Likewise.
2285 (ubsan_instrument_vla): Likewise.
2287 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2289 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2290 cast to unsigned type.
2292 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2294 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2296 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2297 rather than tree_low_cst.
2299 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2301 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2302 tree_to_uhwi throughout.
2304 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2306 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2307 tree_low_cst (..., 0) with tree_to_shwi throughout.
2309 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2311 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2312 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2314 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2316 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2317 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2319 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2321 * c-cilkplus.c: New file.
2322 * c-common.c (readonly_error): Add location argument.
2323 * c-common.h (readonly_error): Same.
2324 (c_finish_cilk_clauses): Protoize.
2325 (c_check_cilk_loop): Same.
2326 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2327 Do not fail on error_mark_node.
2328 Abstract increment canonicalization to here...
2329 (c_omp_for_incr_canonicalize_ptr): New.
2330 c-pragma.c (init_pragma): Register "simd" pragma.
2331 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2332 (enum pragma_cilk_clause): New.
2334 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2336 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2337 wchar_type and host_integerp checks.
2339 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2341 * c-common.c: Likewise.
2342 * c-gimplify.c: Likewise.
2345 2013-11-14 Diego Novillo <dnovillo@google.com>
2347 * c-common.c: Include fold-const.h.
2348 Include stor-layout.h.
2350 Include stringpool.h.
2353 Include trans-mem.h.
2354 * c-cppbuiltin.c: Include stor-layout.h.
2355 Include stringpool.h.
2356 * c-format.c: Include stringpool.h.
2357 * c-lex.c: Include stringpool.h.
2358 Include stor-layout.h.
2359 * c-pragma.c: Include stringpool.h.
2362 Include gcc-symtab.h.
2363 * c-pretty-print.c: Include stor-layout.h.
2365 * cilk.c: Include stringpool.h.
2368 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2370 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2371 * c-common.c (c_common_reswords): Add __auto_type.
2372 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2374 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2376 * c-common.c: Include gimplify.h.
2377 * c-gimplify.c: Likewise.
2379 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2380 * c-ubsan.c: Don't include gimple.h.
2382 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2384 * c-common.c (c_common_reswords): Add _Thread_local.
2386 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2388 * c-common.c (atomic_size_supported_p): New function.
2389 (resolve_overloaded_atomic_exchange)
2390 (resolve_overloaded_atomic_compare_exchange)
2391 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2392 Use it instead of comparing size with a local list of sizes.
2394 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2395 Joseph Myers <joseph@codesourcery.com>
2397 * c-common.h (enum rid): Add RID_ATOMIC.
2398 * c-common.c (c_common_reswords): Add _Atomic.
2399 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2400 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2401 * c-format.c (check_format_types): Check for extra _Atomic
2402 qualifiers in format argument.
2403 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2404 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2406 2013-11-06 Tobias Burnus <burnus@net-b.de>
2408 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2410 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2412 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2414 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2415 to mean lack of IEEE 754 support.
2417 2013-11-05 Tobias Burnus <burnus@net-b.de>
2419 * c.opt (-Wdate-time): New option
2420 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2422 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2424 * c-cppbuiltin.c (cpp_iec_559_value): Test
2425 flag_excess_precision_cmdline not flag_excess_precision.
2427 2013-11-05 Tobias Burnus <burnus@net-b.de>
2429 * c.opt (fopenmp-simd): New option.
2430 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2431 (omp_pragmas): ... this new struct.
2432 (c_pp_lookup_pragma): Also walk omp_pragmas.
2433 (init_pragma): Init pragmas for -fopenmp-simd.
2435 2013-11-04 Marek Polacek <polacek@redhat.com>
2438 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2440 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2442 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2444 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2446 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2448 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2449 (dump_ada_specs): Adjust prototype of second callback.
2450 * c-ada-spec.c (cpp_check): New global variable.
2451 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2452 (print_generic_ada_decl): Likewise.
2453 (has_static_fields): Change return type to bool and add guard.
2454 (has_nontrivial_methods): New predicate.
2455 (is_tagged_type): Change return type to bool.
2456 (separate_class_package): Call has_nontrivial_methods.
2457 (pp_ada_tree_identifier): Minor tweaks.
2458 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2459 (dump_ada_array_domains): Likewise.
2460 (dump_ada_array_type): Likewise.
2461 (dump_template_types): Remove cpp_check parameter and do not pass it to
2462 dump_generic_ada_node.
2463 (dump_ada_template): Likewise.
2464 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2466 (print_ada_methods): Change return type to integer. Remove cpp_check
2467 parameter and do not pass it down.
2468 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2469 dump_generic_ada_node.
2470 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2472 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2473 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2474 value of print_ada_methods.
2475 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2476 Set cpp_check to it before invoking dump_ada_nodes.
2477 (dump_ada_specs): Likewise.
2479 2013-11-03 Marek Polacek <polacek@redhat.com>
2481 * c-ubsan.c: Don't include hash-table.h.
2482 (ubsan_instrument_vla): New function.
2483 * c-ubsan.h: Declare it.
2485 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2487 Automated part of renaming of symtab_node_base to symtab_node.
2489 Patch autogenerated by rename_symtab.py from
2490 https://github.com/davidmalcolm/gcc-refactoring-scripts
2491 revision 58bb219cc090b2f4516a9297d868c245495ee622
2493 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2494 symtab_node_base to symtab_node.
2496 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2498 Implement C++14 digit separators.
2499 * c-lex.c (interpret_float): Remove digit separators from scratch string
2500 before building real literal.
2502 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2504 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2506 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2508 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2510 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2512 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2513 (insert_cilk_frame): New prototype.
2514 (cilk_init_builtins): Likewise.
2515 (gimplify_cilk_spawn): Likewise.
2516 (c_cilk_install_body_w_frame_cleanup): Likewise.
2517 (cilk_detect_spawn_and_unwrap): Likewise.
2518 (cilk_set_spawn_marker): Likewise.
2519 (build_cilk_sync): Likewise.
2520 (build_cilk_spawn): Likewise.
2523 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2525 Patch autogenerated by refactor_symtab.py from
2526 https://github.com/davidmalcolm/gcc-refactoring-scripts
2527 revision 58bb219cc090b2f4516a9297d868c245495ee622
2529 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2530 to a true class hierarchy.
2531 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2533 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2535 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2537 2013-10-26 Jeff Law <law@redhat.com>
2539 * c-common.c (c_define_builtins): Remove mudflap support.
2540 * c.opt: Ignore and warn for mudflap options.
2542 2013-10-24 Tobias Burnus <burnus@net-b.de>
2545 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2546 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2548 2013-10-23 Jason Merrill <jason@redhat.com>
2550 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2552 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2554 * c-common.h (omp_clause_mask::operator !=): New method.
2555 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2556 instead of if (mask & something) tests everywhere.
2558 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2559 201307 instead of 201107.
2560 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2561 (c_common_attribute_table): Add "omp declare target" and
2562 "omp declare simd" attributes.
2563 (handle_omp_declare_target_attribute,
2564 handle_omp_declare_simd_attribute): New functions.
2565 * c-omp.c: Include c-pragma.h.
2566 (c_finish_omp_taskgroup): New function.
2567 (c_finish_omp_atomic): Add swapped argument, if true,
2568 build the operation first with rhs, lhs arguments and use NOP_EXPR
2570 (c_finish_omp_for): Add code argument, pass it down to make_code.
2571 (c_omp_split_clauses): New function.
2572 (c_split_parallel_clauses): Removed.
2573 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2574 c_omp_declare_simd_clauses_to_decls): New functions.
2575 * c-common.h (omp_clause_mask): New type.
2576 (OMP_CLAUSE_MASK_1): Define.
2577 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2578 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2579 omp_clause_mask::operator |, omp_clause_mask::operator &,
2580 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2581 omp_clause_mask::operator ==): New methods.
2582 (enum c_omp_clause_split): New.
2583 (c_finish_omp_taskgroup): New prototype.
2584 (c_finish_omp_atomic): Add swapped argument.
2585 (c_finish_omp_for): Add code argument.
2586 (c_omp_split_clauses): New prototype.
2587 (c_split_parallel_clauses): Removed.
2588 (c_omp_declare_simd_clauses_to_numbers,
2589 c_omp_declare_simd_clauses_to_decls): New prototypes.
2590 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2591 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2592 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2593 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2594 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2595 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2596 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2597 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2598 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2599 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2600 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2601 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2602 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2603 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2604 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2605 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2606 PRAGMA_OMP_CLAUSE_UNIFORM.
2608 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2610 PR tree-optimization/20318
2611 * c-common.c (handle_returns_nonnull_attribute): New function.
2612 (c_common_attribute_table): Add returns_nonnull.
2614 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2617 * c.opt (fcheck-new): Move to common.opt.
2619 2013-09-25 Marek Polacek <polacek@redhat.com>
2620 Jakub Jelinek <jakub@redhat.com>
2623 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2624 an expression if we can prove it is correct.
2625 (ubsan_instrument_division): Likewise. Remove unnecessary
2628 2013-09-18 Marek Polacek <polacek@redhat.com>
2631 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2633 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2635 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2638 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2639 fobjc-gc, freplace-objc-classes): Accept for LTO.
2641 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2643 * c-target.def: New hook
2645 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2648 * c.opt (Wdelete-incomplete): Add.
2650 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2652 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2653 (vector_types_compatible_elements_p): New function.
2654 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2656 (vector_types_compatible_elements_p): Declare.
2658 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2660 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2661 a virtual member function.
2662 (pp_simple_type_specifier): Remove.
2663 (pp_c_type_specifier): Likewise.
2664 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2665 Rename from pp_c_type_specifier. Adjust.
2666 (c_pretty_printer::c_pretty_printer): Do not assign to
2667 simple_type_specifier.
2669 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2671 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2673 (c_pretty_printer::storage_class_specifier): Likewise.
2674 (c_pretty_printer::initializer): Likewise.
2675 (pp_declaration): Remove.
2676 (pp_declaration_specifiers): Likewise.
2677 (pp_abstract_declarator): Likewise.
2678 (pp_declarator): Likewise.
2679 (pp_type_id): Likewise.
2680 (pp_statement): Likewise.
2681 (pp_constant): Likewise.
2682 (pp_id_expression): Likewise.
2683 (pp_primary_expression): Likewise.
2684 (pp_unary_expression): Likewise.
2685 (pp_multiplicative_expression): Likewise.
2686 (pp_conditional_expression): Likewise.
2687 (pp_assignment_expression): Likewise.
2688 (pp_expression): Likewise.
2689 (pp_c_type_id): Likewise.
2690 (pp_c_storage_class_specifier): Likewise.
2691 * c-pretty-print.c (pp_c_type_cast): Tidy.
2692 (pp_c_pointer): Likewise.
2693 (pp_c_type_specifier): Likewise.
2694 (pp_c_parameter_type_list): Likewise.
2695 (pp_c_function_definition): Likewise.
2696 (pp_c_init_declarator): Likewise.
2697 (pp_c_initializer_list): Likewise.
2698 (pp_c_constructor_elts): Likewise.
2699 (c_pretty_printer::direct_abstract_declarator): Likewise.
2700 (c_pretty_printer::declaration_specifiers): Likewise.
2701 (c_pretty_printer::primary_expression): Likewise.
2702 (c_pretty_printer::postfix_expression): Likewise.
2703 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2704 (c_pretty_printer::storage_class_specifier): Rename from
2705 pp_c_storage_class_specifier.
2706 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2707 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2708 storage_class_specifier, initializer, offset_list, flags.
2710 2013-08-30 Marek Polacek <polacek@redhat.com>
2712 * c-ubsan.c: New file.
2713 * c-ubsan.h: New file.
2715 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2717 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2719 (c_pretty_printer::declaration_specifiers): Likewise.
2720 (c_pretty_printer::declarator): Likewise.
2721 (c_pretty_printer::abstract_declarator): Likewise.
2722 (c_pretty_printer::direct_abstract_declarator): Likewise.
2723 (c_pretty_printer::direct_declarator): Likewise.
2724 (c_pretty_printer::function_specifier): Likewise.
2725 (pp_declaration): Adjust.
2726 (pp_declaration_specifiers): Likewise.
2727 (pp_abstract_declarator): Likewise.
2728 (pp_direct_declarator): Likewise.
2729 (pp_function_specifier): Likewise.
2730 (pp_direct_abstract_declarator): Remove as unused.
2731 (pp_c_declaration): Remove.
2732 (pp_c_declaration_specifiers): Likewise.
2733 (pp_c_declarator): Likewise.
2734 (pp_c_direct_declarator): Likewise.
2735 (pp_c_function_specifier): Likewise.
2736 (pp_c_direct_abstract_declarator): Likewise.
2737 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2738 from pp_c_abstract_declarator. Adjust.
2739 (c_pretty_printer::direct_abstract_declarator): Rename from
2740 pp_c_direct_abstract_declarator. Adjust.
2741 (c_pretty_printer::function_specifier): Rename from
2742 pp_c_function_specifier. Adjust.
2743 (c_pretty_printer::declaration_specifiers): Rename from
2744 pp_c_declaration_specifiers. Adjust.
2745 (c_pretty_printer::direct_declarator): Rename from
2746 pp_c_direct_declarator. Adjust.
2747 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2748 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2749 (c_pretty_printer::c_pretty_printer): Do not assign to
2750 declaration, declaration_specifiers, declarator,
2751 direct_declarator, direct_abstract_declarator, function_specifier.
2753 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2755 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2756 virtual member function.
2757 (c_pretty_printer::multiplicative_expression): Likewise.
2758 (c_pretty_printer::conditional_expression): Likewise.
2759 (c_pretty_printer::assignment_expression): Likewise.
2760 (c_pretty_printer::expression): Likewise.
2761 (pp_unary_expression): Adjust.
2762 (pp_multiplicative_expression): Likewise.
2763 (pp_assignment_expression): Likewise.
2764 (pp_conditional_expression): Likewise.
2765 (pp_expression): Likewise.
2766 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2767 from pp_c_unary_expression. Adjust.
2768 (c_pretty_printer::multiplicative_expression): Rename from
2769 pp_c_multiplicative_expression. Adjust.
2770 (c_pretty_printer::conditional_expression): Rename from
2771 pp_c_conditional_expression. Adjust.
2772 (c_pretty_printer::assignment_expression): Rename from
2773 pp_c_assignment_expression. Adjust.
2774 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2775 (c_pretty_printer::c_pretty_printer): Do not assign to
2776 unary_expression, multiplicative_expression,
2777 conditional_expression, expression.
2779 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2781 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2782 virtual member function.
2783 (pp_postfix_expression): Adjust.
2784 (pp_c_postfix_expression): Remove.
2785 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2786 from pp_c_postfix_expression. Adjust.
2787 (c_pretty_printer::c_pretty_printer): Do not assign to
2790 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2792 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2793 virtua member function.
2794 (pp_primary_expression): Adjust.
2795 (pp_c_primary_expression): Remove.
2796 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2797 from pp_c_primary_expression. Adjust.
2798 (pp_c_initializer_list): Use pp_primary_expression.
2799 (c_pretty_printer::c_pretty_printer): Do not assign to
2802 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2804 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2805 * c-pretty-print.c (M_): Remove.
2806 (c_pretty_printer::translate_string): Define.
2807 (pp_c_type_specifier): Use it.
2808 (pp_c_primary_expression): Likewise.
2809 (pp_c_expression): Likewise.
2811 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2813 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2815 (pp_c_id_expression): Remove.
2816 (pp_id_expression): Adjust.
2817 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2818 pp_c_id_expression. Adjust.
2819 (pp_c_postfix_expression): Use pp_id_expression.
2820 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2822 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2824 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2826 (pp_constant): Adjust.
2827 (pp_c_constant): Remove.
2828 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2829 pp_c_constant. Adjust.
2831 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2832 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2834 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2836 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2837 (c_pretty_printer::c_pretty_printer): Declare.
2838 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2839 c_pretty_printer_init. Adjust.
2840 (print_c_tree): Do not call c_pretty_printer_init.
2841 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2843 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2845 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2847 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2850 * c-common.c (pointer_int_sum): Add bool parameter.
2851 * c-common.h (pointer_int_sum): Adjust declaration.
2853 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2855 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2856 c_pretty_printer variable.
2858 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2860 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2862 (pp_c_base): Likewise. Adjust users.
2863 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2864 (pp_c_whitespace): Do not call pp_base.
2865 (pp_c_left_paren): Likewise.
2866 (pp_c_right_paren): Likewise.
2867 (pp_c_left_brace): Likewise.
2868 (pp_c_right_brace): Likewise.
2869 (pp_c_left_bracket): Likewise.
2870 (pp_c_right_bracket): Likewise.
2871 (pp_c_dot): Likewise.
2872 (pp_c_ampersand): Likewise.
2873 (pp_c_star): Likewise.
2874 (pp_c_arrow): Likewise.
2875 (pp_c_semicolon): Likewise.
2876 (pp_c_complement): Likewise.
2877 (pp_c_exclamation): Likewise.
2878 (pp_c_direct_declarator): Likewise.
2879 (pp_c_ws_string): Likewise.
2880 (pp_c_identifier): Likewise.
2881 (pp_c_statement): Likewise.
2882 (print_c_tree): Likewise.
2884 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2887 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2888 provide useful error strings.
2890 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2892 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2893 printer functions instead of pp_string or operators and punctuators.
2894 (dump_generic_ada_node): Likewise.
2895 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2896 (pp_c_relational_expression): Likewise.
2897 (pp_c_logical_or_expression): Likewise.
2899 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2901 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2902 functions instead of pp_character.
2903 (pp_ada_tree_identifier): Likewise.
2904 (dump_ada_double_name): Likewise.
2905 (dump_ada_function_declaration): Likewise.
2906 (dump_ada_array_domains): Likewise.
2907 (dump_template_types): Likewise.
2908 (dump_generic_ada_node): Likewise.
2909 (print_ada_declaration): Likewise.
2910 (print_ada_struct_decl): Likewise.
2911 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2913 2013-07-23 Tom Tromey <tromey@redhat.com>
2915 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2916 * c-common.c (c_common_reswords): Add _Generic.
2918 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2920 * c-common.c: Fix typos.
2921 * c-common.h: Likewise.
2923 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2926 * c-common.c (c_common_attribute_table): Add warn_unused.
2927 (handle_warn_unused_attribute): New.
2929 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2931 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2932 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2934 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2937 * c.opt: Add Wconditionally-supported.
2939 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2941 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2942 unused variables l_length and l_node.
2944 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2947 * c-common.c (complete_array_type): Delay folding first index
2948 like other indices. When folding, check for index overflow.
2950 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2953 * c-common.h (c_build_vec_perm_expr): New complain argument.
2954 * c-common.c (c_build_vec_perm_expr): Likewise.
2955 Use save_expr also in C++.
2957 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2959 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2960 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2961 * c-opts.c (c_common_post_options): Likewise.
2963 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2965 * array-notation-common.c (length_mismatch_in_expr): Changed the
2966 parameter type's from a dynamic array to a vec_tree. Also removed
2967 the size parameters.
2968 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2971 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2973 * c-common.h (struct cilkplus_an_parts): New structure.
2974 (struct cilkplus_an_loop_parts): Likewise.
2975 (cilkplus_extract_an_triplets): New prototype.
2976 (fix_sec_implicit_args): Likewise.
2977 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2978 (fix_sec_implicit_args): Likewise.
2980 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2982 * array-notation-common.c (find_inv_trees): Removed an unwanted
2984 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2985 enum rid to enum tree_code.
2987 2013-06-11 Jan Hubicka <jh@suse.cz>
2989 * c-common.c (handle_alias_ifunc_attribute): Do not set
2990 DECL_EXTERNAL for weakref variables.
2991 * c-pragma.c (handle_pragma_weak): Make sure aliases
2992 are not declared as external.
2994 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2996 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2997 function from c/c-array-notation.c.
2998 (is_cilkplus_reduce_builtin): Likewise.
2999 (find_rank): Likewise.
3000 (extract_array_notation_exprs): Likewise.
3001 (replace_array_notations): Likewise.
3002 (find_inv_trees): Likewise.
3003 (replace_inv_trees): Likewise.
3004 (contains_array_notation_expr): Likewise.
3005 (find_correct_array_notation_type): Likewise.
3006 * c-common.h (struct inv_list): Moved this struct from the file
3007 c/c-array-notation.c and added a new field called additional tcodes.
3008 (length_mismatch_in_expr_p): New prototype.
3009 (is_cilkplus_reduce_builtin): Likewise.
3010 (find_rank): Likewise.
3011 (extract_array_notation_exprs): Likewise.
3012 (replace_array_notation): Likewise.
3013 (find_inv_trees): Likewise.
3014 (replace_inv_trees): Likewise.
3015 (find_correct_array_notation_type): Likewise.
3017 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3019 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3020 function array_notation_init_builtins is called.
3021 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3022 * c-common.def (ARRAY_NOTATION_REF): New tree.
3023 * c-common.h (build_array_notation_expr): New function declaration.
3024 (build_array_notation_ref): Likewise.
3025 (extract_sec_implicit_index_arg): New extern declaration.
3026 (is_sec_implicit_index_fn): Likewise.
3027 (ARRAY_NOTATION_CHECK): New define.
3028 (ARRAY_NOTATION_ARRAY): Likewise.
3029 (ARRAY_NOTATION_START): Likewise.
3030 (ARRAY_NOTATION_LENGTH): Likewise.
3031 (ARRAY_NOTATION_STRIDE): Likewise.
3032 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3034 (pp_c_expression): Likewise.
3035 * c.opt (flag_enable_cilkplus): New flag.
3036 * array-notation-common.c: New file.
3038 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3041 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3043 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3045 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3048 2013-05-07 Han Shen <shenhan@google.com>
3050 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3052 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3054 * c-common.c (check_user_alignment): Emit error for negative values.
3056 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3058 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3060 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3062 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3063 __GXX_EXPERIMENTAL_CXX1Y__.
3065 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3066 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3068 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3069 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3070 to simply use OPT_Wpointer_arith.
3071 (c_sizeof_or_alignof_type): Likewise.
3073 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3075 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3077 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3079 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3080 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3083 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3085 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3087 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3089 * c-common.c (pointer_int_sum): Remove dead code.
3091 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3094 * c-common.c (handle_optimize_attribute): Don't call
3095 save_optabs_if_changed.
3097 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3100 * c-pch.c (pch_init): Free target_validity at the end.
3102 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3104 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3106 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3107 Jakub Jelinek <jakub@redhat.com>
3110 * c-common.c (handle_no_sanitize_address_attribute): New function.
3111 (c_common_attribute_table): Add no_sanitize_address attribute.
3112 (handle_no_address_safety_analysis_attribute): Add
3113 no_sanitize_address attribute, not no_address_safety_analysis
3116 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3119 * c-common.c (handle_optimize_attribute): Call
3120 save_optabs_if_changed.
3122 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3123 Steven Bosscher <steven@gcc.gnu.org>
3126 * c-opts.c (c_common_post_options): If debug info is enabled
3127 and non-dwarf*, refuse to load PCH files and when writing PCH
3130 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3133 * c-common.c (handle_error_attribute): Fix condition.
3135 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3138 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3140 2013-01-18 Jason Merrill <jason@redhat.com>
3143 * c.opt (-fextern-tls-init): New.
3144 * c-opts.c (c_common_post_options): Handle it.
3146 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3149 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3150 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3151 and is either negative or bigger or equal to type precision
3152 of the first operand.
3154 2012-12-03 Marek Polacek <polacek@redhat.com>
3157 * c-common.c (check_user_alignment): Swap order of tests,
3158 check TREE_CODE first.
3160 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3163 * c-common.h (overflow_type): New enum.
3164 (build_userdef_literal): Add overflow_type argument.
3165 (tree_userdef_literal): Add overflow_type.
3166 (USERDEF_LITERAL_OVERFLOW): New access macro.
3167 * c-common.c (build_userdef_literal): Add overflow_type
3169 * c-lex.c (c_lex_with_flags): Add overflow_type to
3170 build_userdef_literal calls.
3171 (interpret_integer, interpret_float): Add overflow_type argument.
3173 2012-11-28 Richard Biener <rguenther@suse.de>
3176 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3177 here and use a type with proper overflow behavior for types that would
3178 need to be promoted for the arithmetic.
3180 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3183 * c-common.c (handle_no_address_safety_analysis_attribute): New
3185 (c_common_attribute_table): Add no_address_safety_analysis.
3187 2012-11-16 Simon Baldwin <simonb@google.com>
3189 * c.opt: Add f[no-]canonical-system-headers.
3190 * c-opts.c (c_common_handle_option): Handle
3191 OPT_fcanonical_system_headers.
3193 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3196 * c-opts.c (c_common_handle_option): Set new flags.
3197 * c.opt: Describe new flags.
3199 2012-11-09 Jason Merrill <jason@redhat.com>
3201 * c.opt (Wabi-tag): New.
3203 2012-11-09 Andi Kleen <ak@linux.intel.com>
3206 * c-common.c (get_atomic_generic_size): Mask with
3209 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3212 * c.opt (Wformat): Make it Alias Wformat=1.
3213 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3214 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3216 (Wformat=): RejectNegative. Use LangEnabledBy.
3217 (Wnonnull): Use LangEnabledBy.
3218 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3219 * c-format.c (set_Wformat): Delete.
3220 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3221 (maybe_read_dollar_number): Likewise.
3222 (avoid_dollar_number): Likewise.
3223 (finish_dollar_format_checking): Likewise.
3224 (check_format_info): Likewise.
3225 (check_format_info_main): Likewise.
3226 (check_format_types): Likewise.
3227 (format_type_warning): Likewise.
3228 * c-common.c (int): Likewise.
3229 (check_function_sentinel): Likewise.
3230 * c-common.h (warn_format,set_Wformat): Do not declare here.
3232 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3235 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3236 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3238 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3240 (Wvariadic-macros): Init(1).
3241 * c-opts.c (c_common_handle_option): Do not handle them
3243 (c_common_post_options): Likewise.
3244 (sanitize_cpp_opts): warn_unused_macros is now
3245 cpp_warn_unused_macros.
3246 (push_command_line_include): Likewise.
3247 * c-common.c (warn_unknown_pragmas): Do not define.
3248 * c-common.h (warn_unknown_pragmas): Do not declare.
3250 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3253 * c-common.c (conversion_warning): Handle conditional expressions.
3255 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3258 * c.opt (Wreturn_local_addr): Define new option.
3260 2012-10-25 Jason Merrill <jason@redhat.com>
3262 * c.opt (Wvirtual-move-assign): New.
3264 * c.opt (Winherited-variadic-ctor): New.
3266 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3269 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3271 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3273 * c-common.h (pch_cpp_save_state): Declare.
3274 * c-target.def (c_preinclude): New hook.
3275 * c-opts.c (done_preinclude): New.
3276 (push_command_line_include): Handle default preincluded header.
3277 (cb_file_change): Call pch_cpp_save_state when calling
3278 push_command_line_include.
3279 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3280 (pch_cpp_save_state): New.
3281 (pch_init): Call pch_cpp_save_state conditionally, instead of
3282 calling cpp_save_state.
3284 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3288 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3289 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3290 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3291 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3292 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3293 * c-opts.c (c_common_handle_option): Remove explicit handling from
3295 (c_common_post_options): Likewise.
3297 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3299 * c-ada-spec.c (LOCATION_COL): Delete.
3300 (compare_location): New function.
3301 (compare_node): Use it.
3302 (compare_comment): Likewise.
3304 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3308 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3309 * c-opts.c (c_common_handle_option): Do not set them here. Add
3311 (c_common_post_options): Likewise.
3313 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3315 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3316 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3317 Remove POINTER_TYPE handling, add large unsigned handling and use
3318 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3320 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3323 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3324 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3325 locs and array of 3 trees instead of just single loc and single
3326 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3327 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3328 For *cmp* builtins that take two sources strings report warnings
3329 about first and second source, not about destination and source.
3331 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3334 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3336 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3338 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3339 declaring something coming from another file.
3341 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3344 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3346 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3349 * c-common.c (warn_about_parentheses): Add location_t parameter;
3350 use EXPR_LOC_OR_LOC.
3351 * c-common.h: Update declaration.
3353 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3356 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3357 more operations. Make error messages optional.
3358 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3359 (scalar_to_vector): Declare.
3361 2012-10-08 Jason Merrill <jason@redhat.com>
3363 * c-common.c (c_common_reswords): Add thread_local.
3365 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3367 PR c++/53528 C++11 attribute support
3368 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3370 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3372 (handle_aligned_attribute): In choose strictest alignment
3373 among many. Use new check_cxx_fundamental_alignment_constraints.
3374 (handle_transparent_union_attribute): In c++11 attribute syntax,
3375 don't look through typedefs.
3377 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3379 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3380 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3383 2012-09-25 Dehao Chen <dehao@google.com>
3386 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3387 map when read in the pch.
3389 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3391 * c-ada-spec.c: Style fixes.
3393 2012-09-18 Thomas Quinot <quinot@adacore.com>
3395 * c.opt (-fada-spec-parent): Define new command line switch.
3396 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3397 is specified, generate binding spec as a child of the specified unit.
3399 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3400 Manuel López-Ibáñez <manu@gcc.gnu.org>
3403 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3405 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3407 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3408 for pointers, and add missing Convention C pragma.
3409 (print_ada_struct_decl): Add missing aliased keyword.
3410 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3412 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3414 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3415 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3416 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3417 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3418 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3420 2012-08-10 Richard Guenther <rguenther@suse.de>
3422 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3424 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3426 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3427 instead of separate pp_newline and pp_flush.
3428 (print_c_tree): Likewise.
3430 2012-07-26 Richard Henderson <rth@redhat.com>
3432 * c-common.c (handle_hot_attribute): Allow labels.
3433 (handle_cold_attribute): Likewise.
3435 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3438 * c-common.c (check_function_nonnull): Handle multiple nonnull
3439 attributes properly.
3441 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3443 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3444 * c-ada-spec.c: Likewise.
3445 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3447 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3449 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3450 Remove code conditional on it.
3452 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3454 * c-gimplify.c: Do not include basic-block.h.
3455 * c-common.c: Do not include linfuncs.h.
3457 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3459 * c-common.h: Include tree.h.
3461 2012-07-02 Jason Merrill <jason@redhat.com>
3464 * c-common.c (get_priority): Call default_conversion.
3466 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3468 * c-pch.c (c_common_write_pch): Remove unused variables.
3470 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3472 * cppspec.c: Moved from gcc/ to here.
3474 2012-06-27 Kai Tietz <ktietz@redhat.com>
3476 PR preprocessor/37215
3477 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3479 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3481 * c-common.h (c_common_print_pch_checksum): Remove.
3482 * c-pch.c: Do not include output.h.
3483 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3484 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3485 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3486 (struct c_pch_header): Remove.
3487 (get_ident): Update gpch version.
3488 (pch_init): Do not print executable_checksum to asm_out_file.
3489 Do not fail if there is no asm_out_file to read back from. Set
3490 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3491 (c_common_write_pch): Verify that nothing was written to asm_out_file
3492 since pch_init was called. Do not write a c_pch_header, and do not
3493 copy from asm_out_file to the PCH.
3494 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3495 the content of asm_out_file from the PCH.
3496 (c_common_print_pch_checksum): Remove.
3497 * c-opts.c (c_common_init): Print out executable_checksum directly.
3499 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3501 * c-target.def (objc_declare_unresolved_class_reference,
3502 objc_declare_class_definition): Add new hooks.
3504 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3506 * c-lex.c: Do not include output.h.
3507 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3508 Remove uses of ASM_OUTPUT_IDENT.
3510 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3513 * c-common.h (c_build_vec_perm_expr): Move decl here.
3514 * c-common.c (c_build_vec_perm_expr): Move definition
3517 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3519 * c.opt (fconserve-space): Turn into a no-op.
3521 2012-06-04 Sterling Augustine <saugustine@google.com>
3523 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3524 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3525 both the start and end of the function.
3527 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3529 * c-common.c: Do not include output.h.
3530 * c-pragma.c: Likewise.
3532 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3534 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3535 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3536 (lang_decl_name): Handle namespace decls.
3538 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3540 * c-ada-spec.c: Do not include output.h.
3541 * c-semantics.c: Likewise.
3543 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3545 * c-common.c: Fix typo.
3547 2012-05-29 Michael Matz <matz@suse.de>
3549 * c-common.h (c_expand_decl): Remove prototype.
3551 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3553 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3554 * c-opts.c (c_common_handle_option): Remove code handling
3555 warn_missing_braces.
3557 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3560 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3563 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3566 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3568 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3570 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3571 * c-opts.c (c_common_handle_option): Do not handle explicitly
3572 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3574 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3576 PR preprocessor/7263
3577 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3578 to cpp_classify_number. For diagnostics, use the precise location
3579 instead of the global input_location.
3581 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3584 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3586 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3588 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3590 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3593 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3594 Wreorder): Use LangEnabledBy.
3595 * c-opts.c (c_common_handle_option): Do not enable them
3596 explicitly. Call lang-specific generated functions.
3597 (c_common_post_options): Do not set them here.
3599 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3601 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3602 Wmissing-field-initializers,Wmissing-parameter-type,
3603 Wold-style-declaration,Woverride-init): Use EnabledBy.
3604 * c-opts.c (c_common_post_options): Do not set here explicitly.
3606 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3609 * c-opts.c (c_common_handle_option): Use handle_generated_option
3610 to enable sub-options.
3612 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3615 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3617 2012-05-10 Richard Guenther <rguenther@suse.de>
3619 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3620 adjust commentary about TYPE_IS_SIZETYPE types.
3622 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3625 * c-common.c (warn_logical_operator): Check that argument of
3626 integer_zerop is not NULL.
3628 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3631 * c-common.c (warn_logical_operator): Do not warn if either side
3632 is already true or false.
3634 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3637 * c-common.c (expr_original_type): New.
3638 (shorten_compare): Do not warn for enumeration types.
3640 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3642 * c.opt (fpermissive): Add Var(flag_permissive).
3644 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3647 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3648 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3650 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3652 Add -Wvarargs option
3653 * c.opt (Wvarargs): Define new option.
3655 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3657 * c-common.c (check_function_arguments): Replace
3658 Wmissing-format-attribute with Wsuggest-attribute=format.
3660 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3662 * c.opt (Wsuggest-attribute=format): New. Alias of
3663 Wmissing-format-attribute.
3664 * c-format.c (decode_format_type): Replace
3665 Wmissing-format-attribute with Wsuggest-attribute=format.
3666 (check_function_format): Likewise.
3668 2012-04-27 Ollie Wild <aaw@google.com>
3670 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3671 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3672 * c.opt: Add Wliteral-suffix.
3674 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3677 * c.opt (Wpedantic): New.
3678 (pedantic): Alias Wpedantic.
3679 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3680 (c_common_post_options): Likewise.
3681 (sanitize_cpp_opts): Likewise.
3682 * c-lex.c (interpret_float): Likewise.
3683 * c-format.c (check_format_types): Likewise.
3684 * c-common.c (pointer_int_sum): Likewise.
3685 (c_sizeof_or_alignof_type): Likewise.
3686 (c_add_case_label): Likewise.
3687 (c_do_switch_warnings): Likewise.
3688 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3690 2012-04-15 Jason Merrill <jason@redhat.com>
3693 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3694 (C_STD_NAME): Distinguish between C++98 and C++11.
3696 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3699 * c-common.h (uint16_type_node): Rename into...
3700 (c_uint16_type_node): ...this.
3701 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3702 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3704 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3706 * c-common.c (warn_if_unused_value): Move definition to here.
3707 * c-common.h (warn_if_unused_value): Move declaration to here.
3709 2012-03-23 William Bader <williambader@hotmail.com>
3711 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3713 2012-03-20 Jason Merrill <jason@redhat.com>
3715 * c-common.h (enum cxx_dialect): Add cxx1y.
3716 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3718 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3719 * c-opts.c (c_common_post_options): Likewise.
3720 (set_std_cxx1y): New.
3721 (c_common_handle_option): Call it.
3722 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3724 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3727 * c.opt ([Wuseless-cast]): Add.
3729 2012-03-16 Richard Guenther <rguenther@suse.de>
3731 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3733 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3736 * c.opt (ftemplate-backtrace-limit) Add.
3738 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3740 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3742 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3743 (init_pragma): Don't register extern_prefix.
3745 2012-03-12 Richard Guenther <rguenther@suse.de>
3747 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3748 (builtin_type_for_size): Likewise.
3750 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3753 * c-common.c (sync_resolve_params): Don't decide whether to convert
3754 or not based on TYPE_SIZE comparison, convert whenever arg_type
3755 is unsigned INTEGER_TYPE.
3757 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3760 * c.opt ([Wunused-local-typedefs]): Fix description.
3762 2012-01-24 Mike Stump <mikestump@comcast.net>
3764 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3767 2012-01-18 Richard Guenther <rguenther@suse.de>
3769 * c-opts.c (c_common_post_options): Reset LTO flags if
3770 we are about to generate a PCH.
3772 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3775 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3776 use pp_unsigned_wide_integer.
3778 2012-01-10 Richard Guenther <rguenther@suse.de>
3781 * c-opts.c (c_common_handle_option): Move -Werror handling
3782 to language independent code.
3784 2012-01-05 Richard Guenther <rguenther@suse.de>
3787 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3790 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3793 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3794 of array types with an unknown bound.
3796 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3798 * c-common.c (flag_isoc99): Update comment to refer to C11.
3799 (flag_isoc1x): Change to flag_isoc11.
3800 * c-common.h (flag_isoc99): Update comment to refer to C11.
3801 (flag_isoc1x): Change to flag_isoc11.
3802 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3804 * c-opts.c (set_std_c1x): Change to set_std_c11.
3805 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3807 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3808 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3809 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3811 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3812 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3813 (std=gnu1x): Make alias of std=gnu11.
3815 2011-12-19 Jason Merrill <jason@redhat.com>
3818 * c-common.c (handle_transparent_union_attribute): Check the first
3819 field if the type is complete.
3821 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3824 * c-common.c (RID_IS_FINAL): Add.
3825 * c-common.h (RID_IS_FINAL): Add.
3827 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3829 * c.opt (fgnu-runtime): Provide full description.
3830 (fnext-runtime): Likewise.
3831 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3833 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3835 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3836 predefines in one place. Add LOCK_FREE predefines.
3837 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3840 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3843 * c-common.c (get_atomic_generic_size): Check for various error
3845 (resolve_overloaded_atomic_exchange,
3846 resolve_overloaded_atomic_compare_exchange,
3847 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3848 error_mark_node for error conditions.
3850 2011-11-08 Richard Guenther <rguenther@suse.de>
3855 2011-11-07 Richard Henderson <rth@redhat.com>
3856 Aldy Hernandez <aldyh@redhat.com>
3857 Torvald Riegel <triegel@redhat.com>
3859 Merged from transactional-memory.
3861 * c-common.c (handle_tm_wrap_attribute,
3862 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3863 (struct c_common_reswords): Added __transaction* keywords.
3864 (struct c_common_attribute_table): Added transaction* and tm_regparm
3866 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3868 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3869 find_tm_attribute): Declare.
3871 2011-11-07 Jason Merrill <jason@redhat.com>
3874 * c-common.c, c-common.h: Revert yesterday's changes.
3876 2011-11-06 Jason Merrill <jason@redhat.com>
3879 * c-common.c (decl_has_visibility_attr): Split out from...
3880 (c_determine_visibility): ...here.
3881 * c-common.h: Declare it.
3883 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3885 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3886 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3888 (check_user_alignment): New. Split out of
3889 handle_aligned_attribute. Disallow integer constants with
3890 noninteger types. Conditionally allow zero.
3891 (handle_aligned_attribute): Use check_user_alignment.
3892 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3894 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3895 Richard Henderson <rth@redhat.com>
3897 Merged from cxx-mem-model.
3899 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3900 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3901 parameters that are the same type size.
3902 (get_atomic_generic_size): New. Find size of generic
3903 atomic function parameters and do typechecking.
3904 (add_atomic_size_parameter): New. Insert size into parameter list.
3905 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3906 either __atomic_exchange_n or external library call.
3907 (resolve_overloaded_atomic_compare_exchange): Restructure
3908 __atomic_compare_exchange to either _n variant or external library call.
3909 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3910 __atomic_load_n or an external library call.
3911 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3912 __atomic_store_n or an external library call.
3913 (resolve_overloaded_builtin): Handle new __atomic builtins.
3915 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3918 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3919 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3920 <INDIRECT_REF>: Return the argument.
3921 <ARRAY_REF>: Remove special code for negative offset.
3922 Call fold_build_pointer_plus instead of size_binop.
3923 (fold_offsetof): Remove STOP_REF argument and adjust.
3924 * c-common.h (fold_offsetof_1): Declare.
3925 (fold_offsetof): Remove STOP_REF argument.
3927 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3930 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3931 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3932 Wnarrowing for C++0x and C++98.
3933 * c.opt ([Wnarrowing]): Update.
3935 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3938 * c.opt: Add Wzero-as-null-pointer-constant.
3940 2011-10-31 Jason Merrill <jason@redhat.com>
3942 * c.opt (-fdeduce-init-list): Off by default.
3945 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3946 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3948 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3950 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3953 * c.opt (fvisibility-inlines-hidden): Description change.
3955 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3957 Implement C++11 user-defined literals.
3958 * c-common.c (build_userdef_literal): New.
3959 * c-common.def: New tree code.
3960 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3961 * c-lex.c (interpret_float): Add suffix parm.
3962 (c_lex_with_flags): Build literal tokens.
3964 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3968 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3971 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3972 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3973 Wnarrowing for C++0x and C++98.
3974 * c.opt ([Wnarrowing]): Update.
3976 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3979 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3980 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3981 Wnarrowing for C++0x and C++98.
3982 * c.opt ([Wnarrowing]): Update.
3984 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3987 * c-common.c (conversion_warning): Remove code looking for
3988 artificial operands.
3990 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3993 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3994 !NO_IMPLICIT_EXTERN_C.
3996 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
3998 * c-common.c (c_common_reswords): Add __bases,
4000 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4002 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4005 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4007 2011-10-15 Tom Tromey <tromey@redhat.com>
4008 Dodji Seketeli <dodji@redhat.com>
4010 * c.opt (fdebug-cpp): New option.
4011 * c-opts.c (c_common_handle_option): Handle the option.
4012 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4013 output stream in parameter. Factorized from ...
4014 (maybe_print_line): ... this. Dump location debug information when
4015 -fdebug-cpp is in effect.
4016 (print_line_1): New static function. Takes an output stream in
4017 parameter. Factorized from ...
4018 (print_line): ... here. Dump location information when -fdebug-cpp
4020 (scan_translation_unit): Dump location information when
4021 -fdebug-cpp is in effect.
4023 2011-10-15 Tom Tromey <tromey@redhat.com>
4024 Dodji Seketeli <dodji@redhat.com>
4026 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4028 * c-opts.c (c_common_handle_option)<case
4029 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4030 cases. Handle -ftrack-macro-expansion with and without argument.
4032 2011-10-15 Tom Tromey <tromey@redhat.com>
4033 Dodji Seketeli <dodji@redhat.com>
4035 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4036 (print_line, cb_define, do_line_change): Adjust to avoid touching
4037 the internals of struct line_map. Use the public API instead.
4038 * c-pch.c (c_common_read_pch): Likewise.
4039 * c-lex.c (fe_file_change): Likewise.
4041 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4044 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4046 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4049 * c-pretty-print.c (pp_c_floating_constant): Output
4050 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4052 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4054 * c-common.c (def_builtin_1): Delete old interface with two
4055 parallel arrays to hold standard builtin declarations, and replace
4056 it with a function based interface that can support creating
4057 builtins on the fly in the future. Change all uses, and poison
4058 the old names. Make sure 0 is not a legitimate builtin index.
4059 * c-omp.c (c_finish_omp_barrier): Ditto.
4060 (c_finish_omp_taskwait): Ditto.
4061 (c_finish_omp_flush): Ditto.
4063 2011-10-11 Tristan Gingold <gingold@adacore.com>
4065 * c.opt: (fallow-parameterless-variadic-functions): New.
4067 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4069 PR c++/33255 - Support -Wunused-local-typedefs warning
4070 * c-common.h (struct c_language_function::local_typedefs): New
4072 (record_locally_defined_typedef, maybe_record_typedef_use)
4073 (maybe_warn_unused_local_typedefs): Declare new functions.
4074 * c-common.c (record_locally_defined_typedef)
4075 (maybe_record_typedef_use)
4076 (maybe_warn_unused_local_typedefs): Define new functions.
4077 * c.opt: Declare new -Wunused-local-typedefs flag.
4079 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4082 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4085 2011-09-05 Richard Guenther <rguenther@suse.de>
4087 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4088 of integer_minus_one_node for empty array upper bounds.
4090 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4092 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4093 it's the first time it's being called on this main TU.
4095 2011-08-24 Richard Guenther <rguenther@suse.de>
4098 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4100 2011-08-22 Gabriel Charette <gchare@google.com>
4102 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4103 defined in cpp_init_builtins and c_cpp_builtins.
4105 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4107 * c-common.c (c_common_reswords): Add __builtin_complex.
4108 * c-common.h (RID_BUILTIN_COMPLEX): New.
4110 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4112 * c-common.c (c_common_reswords): Add _Noreturn.
4113 (keyword_is_function_specifier): Handle RID_NORETURN.
4114 * c-common.h (RID_NORETURN): New.
4116 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4118 * c-common.c (unsafe_conversion_p): New function. Check if it is
4119 unsafe to convert an expression to the type.
4120 (conversion_warning): Adjust, use unsafe_conversion_p.
4121 * c-common.h (unsafe_conversion_p): New function declaration.
4123 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4125 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4126 (c_finish_omp_taskyield): New prototype.
4127 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4128 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4129 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4130 or RHS1 have side-effects, evaluate those too in the right spot,
4131 if it is a decl and LHS is also a decl, error out if they
4133 (c_finish_omp_taskyield): New function.
4134 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4135 * c-pragma.c (omp_pragmas): Add taskyield.
4136 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4137 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4138 PRAGMA_OMP_CLAUSE_MERGEABLE.
4140 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4142 * c-common.h (set_underlying_type): Remove parm name from
4145 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4147 * c-pretty-print.h: Search c-common.h in c-family.
4149 2011-07-22 Jason Merrill <jason@redhat.com>
4152 * c.opt (Wnarrowing): New.
4155 * c-common.h: Declare c_linkage_bindings.
4156 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4159 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4160 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4161 as flag_isoc99 for 'restrict'.
4162 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4164 2011-07-21 Ian Lance Taylor <iant@google.com>
4167 * c-common.c (c_disable_warnings): New static function.
4168 (c_enable_warnings): New static function.
4169 (c_fully_fold_internal): Change local unused_p to bool. Call
4170 c_disable_warnings and c_enable_warnings rather than change
4171 c_inhibit_evaluation_warnings.
4173 2011-07-20 Jason Merrill <jason@redhat.com>
4175 PR c++/6709 (DR 743)
4176 PR c++/42603 (DR 950)
4177 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4178 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4179 (CPP_DECLTYPE): New.
4180 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4182 2011-07-19 Richard Guenther <rguenther@suse.de>
4184 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4185 * c-omp.c (c_finish_omp_for): Likewise.
4187 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4189 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4190 body on the next line.
4192 2011-07-08 Jason Merrill <jason@redhat.com>
4195 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4198 * c-common.c (c_apply_type_quals_to_decl): Don't check
4199 TYPE_NEEDS_CONSTRUCTING.
4201 2011-07-06 Richard Guenther <rguenther@suse.de>
4203 * c-common.c (c_common_nodes_and_builtins):
4204 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4206 2011-07-05 Richard Guenther <rguenther@suse.de>
4208 * c-common.c (c_common_nodes_and_builtins): Build all common
4211 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4213 * c-common.h (c_tree_chain_next): New static inline function.
4215 * c-common.c (check_builtin_function_arguments): Handle
4216 BUILT_IN_ASSUME_ALIGNED.
4218 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4220 * c-common.c: Add sync_ or SYNC__ to builtin names.
4221 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4223 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4225 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4227 (gen_pragma_handler): New union.
4228 (internal_pragma_handler): New type.
4229 (c_register_pragma_with_data)
4230 (c_register_pragma_with_expansion_and_data): New functions.
4232 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4233 (c_register_pragma, c_register_pragma_with_expansion)
4234 (c_invoke_pragma_handler): Changed to work with
4235 internal_pragma_handler.
4236 (c_register_pragma_with_data)
4237 (c_register_pragma_with_expansion_and_data): New functions.
4239 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4241 * c-common.c: Include common/common-target.h.
4242 (handle_section_attribute): Use
4243 targetm_common.have_named_sections.
4244 * c-cppbuiltin.c: Include common/common-target.h.
4245 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4247 2011-06-10 Richard Guenther <rguenther@suse.de>
4249 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4250 to print a IDENTIFIER_NODE.
4252 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4253 Joseph Myers <joseph@codesourcery.com>
4255 * c.opt (fbuilding-libgcc): New option.
4256 * c-cppbuiltin.c (c_cpp_builtins): Define
4257 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4259 2011-06-07 Jason Merrill <jason@redhat.com>
4261 * c-common.c (max_tinst_depth): Lower default to 900.
4263 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4265 2011-06-07 Richard Guenther <rguenther@suse.de>
4267 * c-common.c (c_common_nodes_and_builtins): Do not set
4268 size_type_node or call set_sizetype.
4270 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4273 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4274 type when using pointer comparison to compare types.
4276 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4278 * c.opt: Add -Wdelete-non-virtual-dtor.
4279 * c-opts.c (c_common_handle_option): Include it in -Wall.
4281 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4286 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4288 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4291 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4294 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4295 C++ don't call c_common_truthvalue_conversion on void type arms.
4297 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4299 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4300 (stmt_list_stack): Define.
4301 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4302 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4304 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4306 * c-common.c (warning_candidate_p): Check for BLOCKs.
4308 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4310 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4313 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4315 * c-common.c (def_fn_type): Remove extra va_end.
4317 2011-05-23 Jason Merrill <jason@redhat.com>
4320 * c-common.c (c_common_get_narrower): New.
4321 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4323 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4325 * c-common.h (check_function_arguments): Tweak prototype of
4326 check_function_arguments.
4327 * c-common.c (check_function_arguments): Likewise. Adjust
4328 calls to check_function_nonnull, check_function_format, and
4329 check_function_sentinel.
4330 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4331 separate attributes and typelist arguments. Use
4332 FOREACH_FUNCTION_ARGS to iterate over argument types.
4334 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4336 * c-common.c (c_common_reswords): Reorder.
4337 * c-common.h (rid): Likewise.
4339 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4341 * c-common.c (def_fn_type): Don't call build_function_type, call
4342 build_function_type_array or build_varargs_function_type_array
4344 (c_common_nodes_and_builtins): Likewise.
4346 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4348 * c-common.c (c_add_case_label): Omit the loc argument to
4350 * c-common.h (build_case_label): Remove.
4351 * c-semantics.c (build_case_label): Remove.
4353 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4355 * c-objc.h (objc_start_method_definition): Update prototype.
4356 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4358 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4360 * c-common.c (check_main_parameter_types): Reindent. Don't use
4361 TYPE_ARG_TYPES directly.
4362 (handle_nonnull_attribute): Likewise.
4363 (sync_resolve_params): Likewise.
4364 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4365 to check_format_string.
4366 (handle_format_attribute): Likewise.
4367 (check_format_string): Take a function type to examine instead of
4368 a type list. Use a function_arg_iterator to step through argument
4371 2011-05-04 Richard Guenther <rguenther@suse.de>
4373 * c-common.c (fix_string_type): Use size_int for index type bounds.
4374 (start_fname_decls): Do not pass NULL to build_int_cst.
4375 (c_init_attributes): Likewise.
4376 * c-lex.c (c_lex_with_flags): Likewise.
4378 2011-04-27 Jason Merrill <jason@redhat.com>
4380 * c-common.c (make_tree_vector_from_list): New.
4381 * c-common.h: Declare it.
4383 2011-04-26 Richard Guenther <rguenther@suse.de>
4385 PR preprocessor/48248
4386 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4387 for output size with -P.
4389 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4391 * c-common.c (struct c_common_resword): Add __underlying_type.
4392 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4394 2011-04-20 Jim Meyering <meyering@redhat.com>
4396 * c-format.c (init_dollar_format_checking): Remove useless
4399 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4401 * c-objc.h (objc_get_interface_ivars): Removed.
4402 (objc_detect_field_duplicates): New.
4403 * stub-objc.c: Likewise.
4405 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4407 * stub-objc.c (objc_declare_protocols): Renamed to
4408 objc_declare_protocol.
4409 * c-objc.h: Likewise.
4411 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4413 * stub-objc.c (objc_declare_class): Updated argument name.
4415 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4417 * c-common.h (c_common_init_ts): Declare.
4418 * c-common.c (c_common_init_ts): Define.
4420 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4422 * c-objc.h (objc_build_message_expr): Updated prototype.
4423 * stub-objc.c (objc_build_message_expr): Likewise.
4425 2011-04-12 Martin Jambor <mjambor@suse.cz>
4427 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4430 2011-04-11 Richard Guenther <rguenther@suse.de>
4432 * c-common.c (complete_array_type): Build a range type of
4435 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4437 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4438 (handle_type_generic_attribute): Likewise.
4440 2011-04-07 Jason Merrill <jason@redhat.com>
4443 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4444 conversion from C++0x scoped enum.
4446 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4448 * c-target-def.h: New file.
4449 * c-target.def: New file.
4450 * c-target.h: New file.
4451 * c-common.c (targetcm): Don't define here.
4452 * c-common.h (default_handle_c_option): Declare.
4453 * c-format.c: Include c-target.h instead of target.h.
4454 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4456 (default_handle_c_option): Move from targhooks.c.
4458 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4460 PR preprocessor/48248
4461 * c-ppoutput.c (print): Add src_file field.
4462 (init_pp_output): Initialize it.
4463 (maybe_print_line): Don't optimize by adding up to 8 newlines
4464 if map->to_file and print.src_file are different file.
4465 (print_line): Update print.src_file.
4467 2011-03-25 Kai Tietz <ktietz@redhat.com>
4469 * c-ada-spec.c (compare_comment): Use filename_cmp
4470 instead of strcmp for filename.
4472 2011-03-25 Jeff Law <law@redhat.com>
4474 * c-common.c (def_fn_type): Add missing va_end.
4476 2011-03-25 Jason Merrill <jason@redhat.com>
4478 * c.opt: Add -std=c++03.
4480 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4482 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4484 2011-03-17 Kai Tietz
4487 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4488 Display allowed attributes for function pointer types.
4489 (pp_c_attributes_display): New function to display
4490 attributes having affects_type_identity flag set to true.
4491 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4493 * c-common.c (c_common_attribute_table):
4495 (c_common_format_attribute_table): Likewise.
4497 2011-03-18 Jason Merrill <jason@redhat.com>
4499 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4500 * c-common.h: Don't declare it here.
4501 * c-common.c: Or define it here.
4502 * c-opts.c (c_common_handle_option): Or set it here.
4505 * c-common.c (handle_transparent_union_attribute): Don't
4506 make a duplicate type in C++.
4508 2011-03-15 Jason Merrill <jason@redhat.com>
4510 * c-common.c (max_constexpr_depth): New.
4511 * c-common.h: Declare it.
4512 * c-opts.c (c_common_handle_option): Set it.
4513 * c.opt (fconstexpr-depth): New option.
4515 2011-03-11 Jason Merrill <jason@redhat.com>
4517 * c-common.c (attribute_takes_identifier_p): Add missing const.
4520 * c-common.c (attribute_takes_identifier_p): Assume that an
4521 unknown attribute takes an identifier.
4523 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4526 * c-common.c (c_type_hash): Call list_length instead of iterating
4527 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4529 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4532 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4534 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4536 * c.opt (fobjc-abi-version=) New.
4537 (fobjc-nilcheck): New.
4539 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4542 * c-common.h (keyword_is_decl_specifier): Declare.
4543 * c-common.c (keyword_is_decl_specifier): Define.
4544 (keyword_is_function_specifier): New function.
4546 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4549 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4550 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4553 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4555 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4557 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4560 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4561 after init_c_lex if pch_file is set.
4563 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4566 * c.opt (-fkeep-inline-dllexport): New switch.
4568 2011-01-12 Richard Guenther <rguenther@suse.de>
4571 * c-common.c (handle_weak_attribute): Warn instead of error
4572 on declaring an inline function weak.
4574 2011-01-05 Tom Tromey <tromey@redhat.com>
4576 * c-common.h (lvalue_error): Update.
4577 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4580 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4583 * c-objc.h (objc_finish_message_expr): Added argument to
4586 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4588 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4591 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4593 * c-objc.h (objc_maybe_warn_exceptions): New.
4594 * stub-objc.c (objc_maybe_warn_exceptions): New.
4596 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4598 * c-common.h (readonly_error): Declare.
4599 * c-common.c (readonly_error): Define.
4601 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4603 * c-common.h (invalid_indirection_error): Declare.
4604 * c-common.c (invalid_indirection_error): Define.
4606 2010-12-03 Richard Guenther <rguenther@suse.de>
4609 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4610 (pp_c_unary_expression): Likewise.
4611 (pp_c_expression): Likewise.
4613 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4615 * c-common.h (objc_finish_function): New.
4616 (objc_non_volatilized_type): Removed.
4617 (objc_type_quals_match): Removed.
4618 * stub-objc.c (objc_finish_function): New.
4619 (objc_non_volatilized_type): Removed.
4620 (objc_type_quals_match): Removed.
4622 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4624 * c-common.h (parse_optimize_options): Declare.
4625 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4626 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4628 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4630 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4632 * c-pch.c (O_BINARY): Don't define here.
4633 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4635 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4637 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4638 targetm.except_unwind_info.
4640 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4642 * c-opts.c (c_common_handle_option): Pass location to
4643 set_struct_debug_option.
4645 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4647 * c-common.c (visibility_options): Move from ../opts.c.
4648 * c-common.h (struct visibility_flags, visibility_options):
4650 * c-opts.c (finish_options): Rename to c_finish_options.
4651 (c_common_init): Update call to finish_options.
4653 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4656 * c-lex.c (lex_string): Check that each string in an Objective-C
4657 string concat sequence starts with either one or zero '@', and
4658 that there are no spurious '@' signs at the end.
4660 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4662 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4663 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4664 HANDLE_PRAGMA_VISIBILITY.
4665 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4666 HANDLE_PRAGMA_VISIBILITY): Don't define.
4667 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4669 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4674 * c-common.h (keyword_begins_type_specifier): Declare.
4675 (keyword_is_storage_class_specifier): Declare.
4676 (keyword_is_type_qualifier): Declare.
4677 * c-common.c (keyword_begins_type_specifier): New function.
4678 (keyword_is_storage_class_specifier): New function.
4679 (keyword_is_type_qualifier): Declare.
4681 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4684 * c-common.c (in_late_binary_op): Define.
4685 (c_common_truthvalue_conversion): Check in_late_binary_op before
4686 calling c_save_expr.
4687 * c-common.h (in_late_binary_op): Declare.
4689 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4691 * c-opts.c (c_common_handle_option): Update calls to
4692 set_struct_debug_option.
4694 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4696 * c-common.h (objc_declare_protocols): Added additional argument.
4697 * stub-objc.c (objc_declare_protocol): Same change.
4699 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4702 * c-common.h (build_real_imag_expr): Declare.
4703 * c-semantics.c (build_real_imag_expr): Define.
4705 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4707 * c-opts.c (c_common_parse_file): Take no arguments.
4708 * c-common.h (c_common_parse_file): Update prototype.
4710 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4713 * c-common.c (warning_candidate_p): Don't track non-const calls
4716 2010-11-15 Ian Lance Taylor <iant@google.com>
4718 * c-lex.c (init_c_lex): Set macro debug callbacks if
4719 flag_dump_go_spec is set.
4721 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4723 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4724 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4726 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4728 PR preprocessor/45038
4729 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4732 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4734 * c-common.h (c_family_lang_mask): Declare.
4735 * c-opts.c (c_family_lang_mask): Make extern.
4736 * c-pragma.c (handle_pragma_diagnostic): Use
4737 control_warning_option.
4739 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4741 * c-common.c (parse_optimize_options): Update call to
4743 * c-common.h (c_common_handle_option): Update prototype.
4744 * c-opts.c (c_common_handle_option): Take location_t parameter and
4745 pass it to other functions.
4747 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4749 * c-opts.c (warning_as_error_callback): Remove.
4750 (c_common_initialize_diagnostics): Don't call
4751 register_warning_as_error_callback.
4752 (c_common_handle_option): Handle -Werror=normalized= here.
4754 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4756 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4758 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4760 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4761 Remove trailing '.' from diagnostics.
4762 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4764 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4766 * c-common.c (parse_optimize_options): Pass global_dc to
4768 * c-opts.c (c_common_handle_option): Pass &global_options to
4769 set_Wstrict_aliasing.
4770 * c.opt (v): Don't mark Common or document here.
4772 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4775 * c-format.c (format_type): New type gcc_objc_string_format_type.
4776 (valid_stringptr_type_p): New.
4777 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4778 (check_format_string): Pass expected type, use
4779 valid_stringptr_type_p (), check that the format string types are
4780 consistent with the format specification.
4781 (decode_format_attr): Warn if NSString is used outside objective-c.
4782 (format_types_orig): Add NSString.
4784 (format_flags): New.
4785 (check_format_arg): Handle format strings requiring an external parser.
4786 first_target_format_type: New variable.
4787 (handle_format_attribute): Set up first_target_format_type, pass the
4788 expected format arg string type to check_format_string().
4789 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4790 * stub-objc.c (objc_string_ref_type_p): New.
4791 (objc_check_format_arg): New.
4793 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4795 Fixed using the Objective-C 2.0 dot-syntax with class names.
4796 * c-common.h (objc_build_class_component_ref): New.
4797 * stub-objc.c (objc_build_class_component_ref): New.
4799 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4801 * c.opt (Wproperty-assign-default): New option.
4803 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4805 Implemented -fobjc-std=objc1 flag.
4806 * c.opt (fobjc-std=objc1): New option.
4808 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4810 Implemented format and noreturn attributes for Objective-C methods.
4811 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4812 attribute for Objective-C methods.
4814 2010-10-31 Jason Merrill <jason@redhat.com>
4816 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4819 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4821 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4822 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4823 (objc_add_property_declaration): Removed arguments for copies and
4825 (objc_build_getter_call): Renamed to
4826 objc_maybe_build_component_ref.
4827 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4828 (objc_is_property_ref): New.
4829 * c-common.c (c_common_reswords): Removed copies and ivar.
4830 * stub-objc.c (objc_add_property_declaration): Removed arguments
4831 for copies and ivar.
4832 (objc_build_getter_call): Renamed to
4833 objc_maybe_build_component_ref.
4834 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4835 (objc_is_property_ref): New.
4837 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4838 Matthew Gingell <gingell@adacore.com>
4840 * c-ada-spec.c (separate_class_package): New function.
4841 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4842 name of their enclosing package.
4843 (print_ada_declaration): Use separate_class_package.
4845 2010-10-27 Jason Merrill <jason@redhat.com>
4847 * c-common.c (c_common_reswords): Add __is_literal_type.
4848 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4850 * c-common.c (check_case_value): Remove special C++ code.
4852 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4854 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4855 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4857 (objc_add_property_declaration): Added additional arguments.
4858 (objc_property_attribute_kind): Removed.
4859 (objc_set_property_attr): Removed.
4860 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4862 * stub-objc.c (objc_add_property_declaration): Added additional
4864 (objc_set_property_attr): Removed.
4866 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4868 * c-common.h (objc_add_property_variable): Renamed to
4869 objc_add_property_declaration. Added location argument.
4870 * stub-objc.c (objc_add_property_variable): Same change.
4872 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4874 * c-common.h (objc_maybe_printable_name): New.
4875 * stub-objc.c (objc_maybe_printable_name): New.
4877 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4878 Andrew Pinski <pinskia@gmail.com>
4880 * c-common.h (c_common_mark_addressable_vec): Declare.
4881 * c-common.c (c_common_mark_addressable_vec): New function.
4883 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4885 * c-common.h (objc_set_method_type): Removed.
4886 (objc_add_method_declaration): Added boolean argument.
4887 (objc_start_method_definition): Same change.
4888 (objc_build_method_signature): Same change.
4889 * stub-objc.c (objc_set_method_type): Removed.
4890 (objc_add_method_declaration): Added boolean argument.
4891 (objc_start_method_definition): Same change.
4892 (objc_build_method_signature): Same change.
4894 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4896 * c-common.h (finish_file): Removed.
4897 (objc_write_global_declarations): New.
4898 * c-opts.c (c_common_parse_file): Do not call finish_file.
4899 * stub-objc.c (objc_write_global_declarations): New.
4901 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4903 Implemented parsing @synthesize and @dynamic for
4904 Objective-C/Objective-C++.
4905 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4906 (objc_add_synthesize_declaration): New.
4907 (objc_add_dynamic_declaration): New.
4908 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4909 * stub-objc.c (objc_add_synthesize_declaration): New.
4910 (objc_add_dynamic_declaration): New.
4912 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4915 * c-cppbuiltin.c (mode_has_fma): Move function here from
4916 builtins.c. Don't use the fma optab, instead just use the
4917 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4920 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4922 Merge from 'apple/trunk' branch on FSF servers.
4924 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4927 * c-common.h (objc_non_volatilized_type): New declaration
4928 * stub-objc.c (objc_non_volatilized_type): New stub.
4930 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4932 Merge from 'apple/trunk' branch on FSF servers.
4934 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4937 * c-common.h (objc_diagnose_private_ivar): New decl.
4938 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4940 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4942 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4943 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4944 (objc_ivar_visibility_kind): New enum.
4945 (objc_set_visibility): Adjust prototype to use visibility enum.
4946 * stub-objc.c (objc_set_visibility): Adjust stub to use
4949 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4951 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4952 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4953 has the appropriate fma builtins.
4954 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4956 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4958 merge from FSF apple 'trunk' branch.
4959 2006 Fariborz Jahanian <fjahanian@apple.com>
4961 Radars 4436866, 4505126, 4506903, 4517826
4962 * c-common.c (c_common_resword): Define @property and its attributes.
4963 * c-common.h: Define property attribute enum entries.
4964 (OBJC_IS_PATTR_KEYWORD): New.
4965 (objc_property_attribute_kind): New enum.
4966 Declare objc_set_property_attr (), objc_add_property_variable (),
4967 objc_build_getter_call () and objc_build_setter_call ().
4968 * stub-objc.c (objc_set_property_attr): New stub.
4969 (objc_add_property_variable): Likewise.
4970 (objc_build_getter_call): Likewise.
4971 (objc_build_setter_call) Likewise.
4973 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4975 merge from FSF apple 'trunk' branch.
4976 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4978 Radar 3803157 (method attributes)
4979 * c-common.c (handle_deprecated_attribute): Recognize
4980 objc methods as valid declarations.
4981 * c-common.h: Declare objc_method_decl ().
4982 * stub-objc.c (objc_method_decl): New stub.
4984 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4986 * c-common.c (parse_optimize_options): Call
4987 decode_cmdline_options_to_array_default_mask before
4988 decode_options. Update arguments to decode_options.
4989 * c-common.h (c_common_init_options_struct): Declare.
4990 * c-opts.c (c_common_init_options_struct): New. Split out from
4991 c_common_init_options.
4993 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4995 Implemented fast enumeration for Objective-C.
4996 * c-common.h (objc_finish_foreach_loop): New.
4997 * stub-objc.c (objc_finish_foreach_loop): New.
4999 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5001 * c-common.h (struct diagnostic_context): Don't declare here.
5002 (c_common_initialize_diagnostics): Declare using
5003 diagnostic_context typedef.
5004 * c-opts.c (c_common_handle_option): Pass global_dc to
5005 handle_generated_option.
5007 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5009 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5010 handle_generated_option.
5012 2010-10-03 Ian Lance Taylor <iant@google.com>
5014 * c.opt (-fplan9-extensions): New option.
5016 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5018 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5020 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5021 of duplicating code.
5023 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5025 * c-common.c: Add two new entries for @optional
5026 and @required keywords.
5028 merge from FSF 'apple/trunk' branch.
5029 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5032 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5033 objective-c keywords.
5034 (objc_set_method_opt): New declaration.
5035 * stub-objc.c (objc_set_method_opt): New stub.
5037 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5039 * c-common.c (handle_optimize_attribute): Pass &global_options to
5040 cl_optimization_save and cl_optimization_restore.
5041 * c-opts.c (c_common_handle_option): Pass &global_options to
5042 handle_generated_option.
5043 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5044 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5045 &global_options to cl_optimization_restore.
5047 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5049 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5050 Objective-C/Objective-C++ keywords.
5052 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5054 Merge from 'apple/trunk' branch on FSF servers.
5056 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5059 * c-common.h (objc_check_global_decl): New declaration.
5060 * stub-objc.c (objc_check_global_decl): New stub.
5062 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5064 * c.opt: Don't use VarExists.
5066 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5068 * c-common.c (c_cpp_error): Update names of diagnostic_context
5070 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5071 cl_optimization members.
5072 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5073 sanitize_cpp_opts, finish_options): Update names of cpp_options
5076 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5078 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5079 (objc_is_reserved_word): Removed.
5080 * c-common.c: Updated comments.
5081 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5082 objc_is_reserved_word.
5083 * stub-objc.c (objc_is_reserved_word): Removed.
5085 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5087 * c-common.h (objc_add_method_declaration): Adjust prototype to
5089 (objc_start_method_definition): Likewise.
5090 (objc_build_keyword_decl): Likewise.
5091 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5092 (objc_start_method_definition): Likewise.
5093 (objc_build_keyword_decl): Likewise.
5095 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5097 * c-common.h (objc_start_class_interface): Adjust prototype.
5098 (objc_start_category_interface): Likewise.
5099 (objc_start_protocol): Likewise.
5100 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5101 (objc_start_class_interface): Likewise.
5102 (objc_start_category_interface): Likewise.
5104 2010-09-27 Ian Lance Taylor <iant@google.com>
5106 * c-common.c (c_common_attribute_table): Add no_split_stack.
5107 (handle_no_split_stack_attribute): New static function.
5109 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5111 Merge from 'apple/trunk' branch on FSF servers.
5113 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5116 * c-common.h (objc_have_common_type): New declaration.
5117 * stub-objc.c (objc_have_common_type): New stub.
5119 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5122 * c-common.h (objc_common_type): New prototype.
5123 * stub-objc.c (objc_common_type): New stub.
5125 2010-09-24 Jan Hubicka <jh@suse.cz>
5127 * c-common.c (handle_leaf_attribute): New function.
5128 (struct attribute_spec c_common_att): Add leaf.
5130 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5132 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5133 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5134 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5135 -include-barrier, -include-directory, -include-directory=,
5136 -include-directory-after, -include-directory-after=,
5137 -include-prefix, -include-prefix=, -include-with-prefix,
5138 -include-with-prefix=, -include-with-prefix-after,
5139 -include-with-prefix-after=, -include-with-prefix-before,
5140 -include-with-prefix-before=, -no-integrated-cpp,
5141 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5142 -output=, -pedantic, -pedantic-errors, -preprocess,
5143 -print-missing-file-dependencies, -trace-includes, -traditional,
5144 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5145 -user-dependencies, -verbose, -write-dependencies,
5146 -write-user-dependencies, no-integrated-cpp, traditional): New.
5148 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5151 * c-common.h (objc_start_method_definition): Return bool instead
5153 * stub-objc.c (objc_start_method_definition): Return bool instead
5156 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5159 * c-common.h (objc_get_interface_ivars): New declaration.
5160 * stub-objc.c (objc_get_interface_ivars): New stub.
5162 2010-09-15 Ian Lance Taylor <iant@google.com>
5164 * c-common.c (parse_optimize_options): Do not capitalize warning
5165 messages. Remove period at end of warning message.
5167 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5169 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5170 (handle_alias_attribute): ... here.
5171 (handle_ifunc_attribute): New.
5173 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5175 * c-common.h (do_warn_double_promotion): Declare.
5176 * c-common.c (do_warn_double_promotion): Define.
5178 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5180 * c.opt (Wdouble-promotion): New.
5182 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5184 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5185 fvtable-thunks, fxref): Mark no longer supported in help text.
5187 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5189 * c.opt (Wimport, fall-virtual, falt-external-templates,
5190 fdefault-inline, fenum-int-equiv, fexternal-templates,
5191 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5192 fname-mangling-version-, fnew-abi, fnonnull-objects,
5193 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5194 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5196 (fhandle-exceptions): Mark with Alias and Warn.
5197 * c-opts.c (c_common_handle_option): Don't handle options marked
5200 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5202 * c.opt (Wcomments, Werror-implicit-function-declaration,
5203 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5204 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5206 * c-common.c (option_codes): Use OPT_Wcomment instead of
5208 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5209 Don't handle options marked as aliases.
5211 2010-08-25 Richard Guenther <rguenther@suse.de>
5213 * c-common.c (c_common_get_alias_set): Remove special
5214 handling for pointers.
5216 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5218 * c-common.c: Use FOR_EACH_VEC_ELT.
5219 * c-gimplify.c: Likewise.
5220 * c-pragma.c: Likewise.
5222 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5224 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5226 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5228 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5229 instead of OPT_MDX and OPT_MMDX.
5231 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5233 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5235 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5237 * c.opt (MD, MMD): Change to MDX and MMDX.
5238 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5240 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5242 * c-opts.c (c_common_handle_option): Call handle_generated_option
5243 instead of handle_option.
5245 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5247 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5248 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5250 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5252 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5253 (pending_redefine_extname): Change type to a VEC.
5254 (add_to_renaming_pragma_list): Update for new type of
5255 pending_redefine_extname.
5256 (maybe_apply_renaming_pragma): Likewise.
5258 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5260 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5262 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5263 decide whether a type has already been declared/seen.
5264 Do not go to the original type.
5265 (dump_nested_types): New parameter forward.
5266 Generate forward declaration if needed and mark type as visited.
5267 (print_ada_declaration): Call dump_nested_types if not already done.
5268 Mark types as visited.
5270 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5272 * c.opt (-print-pch-checksum): Remove option.
5273 * c-opts.c (c_common_handle_option): Don't handle
5274 OPT_print_pch_checksum.
5276 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5278 * c-common.h (c_common_handle_option): Update prototype and return
5280 * c-opts.c (c_common_handle_option): Update prototype and return
5281 value type. Update calls to handle_option and
5282 enable_warning_as_error.
5284 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5287 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5289 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5291 * c-common.h (c_common_missing_argument): Remove.
5292 * c-opts.c (c_common_missing_argument): Remove.
5293 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5294 idirafter, imacros, include, isysroot, isystem, iquote): Add
5296 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5298 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5300 * c-common.h (c_common_option_lang_mask,
5301 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5303 (c_common_init_options): Update prototype.
5304 * c-opts.c (c_common_option_lang_mask): New.
5305 (c_common_initialize_diagnostics): Split out of
5306 c_common_init_options.
5307 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5309 (c_common_init_options): Update prototype. Use decoded options in
5310 search for -lang-asm.
5312 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5314 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5315 * c-format.c: Likewise.
5317 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5319 * c-common.h: Include diagnostic-core.h. Error if already
5321 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5323 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5325 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5326 Do not include expr.h
5327 (vector_mode_valid_p): Move here.
5329 2010-06-21 DJ Delorie <dj@redhat.com>
5331 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5332 allow these pragmas anywhere.
5334 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5337 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5338 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5339 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5340 ggc_strdup instead of xstrdup.
5342 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5344 * c-cppbuiltin.c: Include cpp-id-data.h.
5345 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5346 (lazy_hex_fp_value): New function.
5347 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5349 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5351 * c-gimplify.c: Do not include tree-flow.h
5353 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5356 * c-common.c: Rename targetm member:
5357 targetm.enum_va_list -> targetm.enum_va_list_p
5359 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5361 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5363 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5365 * c-cppbuiltin.c: Do not include except.h.
5367 2010-06-24 Andi Kleen <ak@linux.intel.com>
5369 * c-common.c (warn_for_omitted_condop): New.
5370 * c-common.h (warn_for_omitted_condop): Add prototype.
5372 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5374 * c.opt (lang-objc): Remove.
5375 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5377 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5379 * c-opts.c: Include "tm_p.h".
5381 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5383 * c-common.c (parse_optimize_options): Update call to
5386 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5388 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5389 new type of types_used_by_cur_var_decl.
5391 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5394 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5395 for C++ standard compliance.
5397 2010-06-16 Jason Merrill <jason@redhat.com>
5399 * c.opt: Add -Wnoexcept.
5401 2010-06-16 Richard Guenther <rguenther@suse.de>
5404 * c-common.c (c_common_truthvalue_conversion): Remove
5405 premature and wrong optimization concering ADDR_EXPRs.
5407 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5409 * c-ada-spec.c (dump_sloc): Remove column info.
5410 (is_simple_enum): New function.
5411 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5412 enum types when relevant.
5414 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5416 * c-common.c (conversion_warning): Warn at expression
5419 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5421 * c-opts.c (c_common_handle_option): Don't handle
5424 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5426 * c-pragma.c (push_alignment): Use typed GC allocation.
5427 (handle_pragma_push_options): Likewise.
5429 * c-common.c (parse_optimize_options): Likewise.
5431 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5434 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5436 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5437 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5438 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5439 flag_signed_bitfields, warn_strict_null_sentinel,
5440 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5441 flag_gen_declaration, flag_no_gnu_keywords,
5442 flag_implement_inlines, flag_implicit_templates,
5443 flag_implicit_inline_templates, flag_optional_diags,
5444 flag_elide_constructors, flag_default_inline, flag_rtti,
5445 flag_conserve_space, flag_access_control, flag_check_new,
5446 flag_new_for_scope, flag_weak, flag_working_directory,
5447 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5448 flag_enforce_eh_specs, flag_threadsafe_statics,
5449 flag_pretty_templates): Remove.
5450 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5451 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5452 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5453 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5454 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5455 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5456 flag_no_gnu_keywords, flag_implement_inlines,
5457 flag_implicit_templates, flag_implicit_inline_templates,
5458 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5459 flag_rtti, flag_conserve_space, flag_access_control,
5460 flag_check_new, flag_new_for_scope, flag_weak,
5461 flag_working_directory, flag_use_cxa_atexit,
5462 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5463 flag_threadsafe_statics, flag_pretty_templates,
5464 warn_strict_null_sentinel): Remove.
5465 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5466 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5467 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5468 fimplicit-inline-templates, fimplicit-templates,
5469 flax-vector-conversions, fms-extensions, fnil-receivers,
5470 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5471 frtti, fshort-double, fshort-enums, fshort-wchar,
5472 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5473 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5474 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5475 gen-decls, undef): Use Var.
5476 (fdefault-inline, foptional-diags): Document as doing nothing.
5477 * c-opts.c (c_common_handle_option): Remove cases for options now
5478 using Var. Mark ignored options as such.
5480 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5482 * c-common.c: Moved to here from parent directory.
5483 * c-common.def: Likewise.
5484 * c-common.h: Likewise.
5485 * c-cppbuiltin.c: Likewise.
5486 * c-dump.c: Likewise.
5487 * c-format.c: Likewise.
5488 * c-format.h : Likewise.
5489 * c-gimplify.c: Likewise.
5490 * c-lex.c: Likewise.
5491 * c-omp.c: Likewise.
5493 * c-opts.c: Likewise.
5494 * c-pch.c: Likewise.
5495 * c-ppoutput.c: Likewise.
5496 * c-pragma.c: Likewise.
5497 * c-pragma.h: Likewise.
5498 * c-pretty-print.c: Likewise.
5499 * c-pretty-print.h: Likewise.
5500 * c-semantics.c: Likewise.
5501 * stub-objc.c: Likewise.
5503 * c-common.c: Include gt-c-family-c-common.h.
5504 * c-pragma.c: Include gt-c-family-c-pragma.h.
5506 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5508 Copying and distribution of this file, with or without modification,
5509 are permitted in any medium without royalty provided the copyright
5510 notice and this notice are preserved.