1 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2 James Norris <jnorris@codesourcery.com>
3 Cesar Philippidis <cesar@codesourcery.com>
7 * c-common.h (c_oacc_split_loop_clauses): Declare function.
8 * c-omp.c (c_oacc_split_loop_clauses): New function.
10 2015-10-21 Martin Sebor <msebor@redhat.com>
13 * c.opt: End each sentence that describes an option with a period.
15 2015-10-20 Marek Polacek <polacek@redhat.com>
17 * array-notation-common.c (is_cilkplus_vector_p): Define.
18 * c-common.h (is_cilkplus_vector_p): Declare.
20 2015-10-20 Marek Polacek <polacek@redhat.com>
22 * c.opt (std=gnu++11): Do not describe as experimental.
23 (std=gnu++14): Likewise.
25 2015-10-19 Jason Merrill <jason@redhat.com>
27 * c-cppbuiltin.c (c_cpp_builtins): Define
28 __cpp_nontype_template_args.
30 2015-10-19 Jason Merrill <jason@redhat.com>
32 * c-cppbuiltin.c (c_cpp_builtins): Define
33 __cpp_enumerator_attributes, __cpp_fold_expressions,
34 __cpp_unicode_characters.
36 2015-10-13 Jakub Jelinek <jakub@redhat.com>
37 Aldy Hernandez <aldyh@redhat.com>
39 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
40 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
41 (c_define_builtins): Likewise.
42 * c-common.h (enum c_omp_clause_split): Add
43 C_OMP_CLAUSE_SPLIT_TASKLOOP.
44 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
45 (c_finish_omp_for): Add ORIG_DECLV argument.
46 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
47 201511 instead of 201307.
48 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
49 OMP_CRITICAL_CLAUSES to it.
50 (c_finish_omp_ordered): Add CLAUSES argument, set
51 OMP_ORDERED_CLAUSES to it.
52 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
53 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
54 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
55 constructs and new OpenMP 4.5 clauses. Clear
56 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
58 * c-pragma.c (omp_pragmas_simd): Add taskloop.
59 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
60 (enum pragma_omp_clause): Add
61 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
62 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
64 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
66 * c-lex.c (interpret_float): Use real_equal instead of
69 2015-10-04 Jason Merrill <jason@redhat.com>
71 Implement N4514, C++ Extensions for Transactional Memory.
72 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
73 (c_common_attribute_table): Add transaction_safe_dynamic.
74 transaction_safe now affects type identity.
75 (handle_tm_attribute): Handle transaction_safe_dynamic.
76 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
77 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
78 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
80 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
81 * c-pretty-print.c (pp_c_attributes_display): Don't print
82 transaction_safe in C++.
84 2015-10-02 Marek Polacek <polacek@redhat.com>
86 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
88 2015-10-02 Marek Polacek <polacek@redhat.com>
91 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
92 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
93 * c.opt (Wduplicated-cond): New option.
95 2015-10-01 Joseph Myers <joseph@codesourcery.com>
97 * c.opt (std=c11): Do not describe as experimental.
98 (std=gnu11): Likewise.
99 (std=iso9899:2011): Likewise.
101 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
103 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
104 (DEF_FUNCTION_TYPE_VAR_11): Delete.
106 2015-09-25 Marek Polacek <polacek@redhat.com>
108 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
109 (ubsan_instrument_shift): Likewise.
111 2015-09-25 Marek Polacek <polacek@redhat.com>
114 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
116 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
118 * c-indentation.c (should_warn_for_misleading_indentation):
119 Compare next_stmt_vis_column with guard_line_first_nws instead
120 of with guard_line_vis_column.
122 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
126 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
127 options and options not valid for the current language.
129 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
131 * c-indentation.c (should_warn_for_misleading_indentation):
132 Float out and consolidate the calls to get_visual_column that
133 are passed guard_exploc as an argument. Compare
134 next_stmt_vis_column with guard_line_first_nws instead of with
137 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
139 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
140 Wnamespaces): New C++ warnings.
142 2015-09-22 Jason Merrill <jason@redhat.com>
144 * c-common.h (abi_compat_version_crosses): New.
145 (warn_abi_version): Declare.
146 * c-common.c: Define it.
147 * c-opts.c (c_common_post_options): Handle it.
148 flag_abi_compat_version defaults to 8.
150 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
152 Complete the implementation of N4230, Nested namespace definition.
153 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
154 __cpp_nested_namespace_definitions.
156 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
158 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
160 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
162 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
164 * c-pragma.h (pragma_lex): Add optional loc argument.
166 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
168 * c-format.c (check_format_arg): Adjust to use common block size in all
171 2015-09-15 David Malcolm <dmalcolm@redhat.com>
173 * c-format.c (location_from_offset): Update for change in
174 signature of location_get_source_line.
175 * c-indentation.c (get_visual_column): Likewise.
176 (line_contains_hash_if): Likewise.
178 2015-09-14 Marek Polacek <polacek@redhat.com>
180 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
181 setting various warnings.
183 2015-09-14 Marek Polacek <polacek@redhat.com>
185 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
188 2015-09-11 Mark Wielaard <mjw@redhat.com>
191 * c.opt (Wunused-variable): Option from common.opt.
192 (Wunused-const-variable): New option.
194 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
197 * c.opt ([Wsubobject-linkage]): Add.
199 2015-09-03 Martin Sebor <msebor@redhat.com>
202 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
204 * c-common.c (reject_gcc_builtin): Define.
206 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
209 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
211 * c-gimplify.c (c_gimplify_expr): Added a call to the function
212 cilk_gimplify_call_params_in_spawned_fn.
213 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
214 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
217 2015-08-25 Marek Polacek <polacek@redhat.com>
220 * c-common.c (handle_weak_attribute): Don't check whether the
221 visibility can be changed here.
223 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
225 * c-lex.c (c_lex_with_flags): Use explicit locations.
227 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
229 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
230 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
232 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
235 * c-common.c (check_builtin_function_arguments): Add check
236 for BUILT_IN_SIGNBIT argument.
238 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
241 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
244 2015-08-17 Marek Polacek <polacek@redhat.com>
246 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
247 with whitespaces before qualifier names.
249 2015-08-12 Marek Polacek <polacek@redhat.com>
252 * c-common.c (maybe_warn_shift_overflow): Properly handle
253 left-shifting 1 into the sign bit.
255 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
257 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
259 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
260 Braden Obrzut <admin@maniacsvault.net>
261 Jason Merrill <jason@redhat.com>
263 Add C++ Concepts TS support.
264 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
265 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
266 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
267 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
268 * c-opts.c (set_std_cxx1z): Set flag_concepts.
269 * c.opt (fconcepts): New.
271 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
273 * c-indentation.c (should_warn_for_misleading_indentation):
276 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
278 * c-indentation.c (get_visual_column): Add parameter first_nws,
279 use it. Update comment documenting the function.
280 (is_first_nonwhitespace_on_line): Remove.
281 (should_warn_for_misleading_indentation): Replace usage of
282 of is_first_nonwhitespace_on_line with get_visual_column.
284 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
286 * c-indentation.h (struct token_indent_info): Define.
287 (get_token_indent_info): Define.
288 (warn_for_misleading_information): Declare.
289 * c-common.h (warn_for_misleading_information): Remove.
290 * c-identation.c (warn_for_misleading_indentation):
291 Change declaration to take three token_indent_infos. Adjust
293 * c-identation.c (should_warn_for_misleading_indentation):
294 Likewise. Bail out early if the body is a compound statement.
295 (guard_tinfo_to_string): Define.
297 2015-07-30 Jason Merrill <jason@redhat.com>
299 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
300 '*' for reference decay.
302 2015-07-30 Marek Polacek <polacek@redhat.com>
304 * c-common.c (warn_tautological_cmp): Bail for float types.
306 2015-07-27 Marek Polacek <polacek@redhat.com>
309 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
311 2015-07-27 Marek Polacek <polacek@redhat.com>
315 * c-common.c (find_array_ref_with_const_idx_r): New function.
316 (warn_tautological_cmp): New function.
317 * c-common.h (warn_tautological_cmp): Declare.
318 * c.opt (Wtautological-compare): New option.
320 2015-07-23 Marek Polacek <polacek@redhat.com>
322 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
323 (ubsan_instrument_shift): Likewise.
325 2015-07-23 Marek Polacek <polacek@redhat.com>
328 * c-ubsan.c: Include gimplify.h.
329 (ubsan_instrument_division): Unshare OP0 and OP1.
330 (ubsan_instrument_shift): Likewise.
332 2015-07-20 Marek Polacek <polacek@redhat.com>
333 Richard Sandiford <richard.sandiford@arm.com>
336 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
338 (maybe_warn_shift_overflow): New function.
339 * c-common.h (maybe_warn_shift_overflow): Declare.
340 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
341 * c.opt (Wshift-overflow): New option.
343 2015-07-16 Martin Liska <mliska@suse.cz>
345 * c-format.c (static void check_format_info_main): Use
346 object_allocator instead of pool_allocator.
347 (check_format_arg): Likewise.
348 (check_format_info_main): Likewise.
350 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
352 * c-opts.c: Remove multiline #include comment.
354 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
356 * c-common.c: Fix double word typos.
358 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
360 * c-ada-spec.h (cpp_operation): Revert latest change.
361 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
362 constructors and destructors.
364 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
366 * c-common.h: Adjust includes for flags.h changes.
367 * stub-objc.c: Likewise.
369 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
371 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
372 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
374 2015-07-08 Jakub Jelinek <jakub@redhat.com>
376 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
377 are to be removed, return NULL rather than original clauses list.
379 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
381 * array-notation-common.c: Adjust includes.
382 * c-ada-spec.c: Likewise.
383 * c-cilkplus.c: Likewise.
384 * c-common.h: Likewise.
385 * c-cppbuiltin.c: Likewise.
386 * c-dump.c: Likewise.
387 * c-format.c: Likewise.
388 * c-gimplify.c: Likewise.
389 * c-indentation.c: Likewise.
392 * c-opts.c: Likewise.
394 * c-ppoutput.c: Likewise.
395 * c-pragma.c: Likewise.
396 * c-pretty-print.c: Likewise.
397 * c-semantics.c: Likewise.
398 * c-ubsan.c: Likewise.
400 * stub-objc.c: Likewise.
402 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
404 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
405 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
407 2015-07-01 Jason Merrill <jason@redhat.com>
409 * c-common.h (D_CXX11): Rename from D_CXX0X.
410 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
411 * c-common.c: Adjust.
413 * c-opts.c (c_common_post_options): Default to C++14.
415 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
417 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
419 Implement N4197 - Adding u8 character literals
420 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
422 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
423 CPP_UTF8CHAR_USERDEF tokens.
424 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
425 and CPP_UTF8CHAR tokens.
426 (lex_charconst): Treat CPP_UTF8CHAR token.
428 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
431 * c-common.c (do_warn_unused_parameter): Move here.
432 * c-common.h (do_warn_unused_parameter): Declare.
434 2015-06-29 Marek Polacek <polacek@redhat.com>
437 * c-common.c (check_case_bounds): Add bool * parameter. Set
439 (c_add_case_label): Add bool * parameter. Pass it down to
441 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
443 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
446 2015-06-27 Marek Polacek <polacek@redhat.com>
448 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
449 or VECTOR_INTEGER_TYPE_P throughout.
450 * c-gimplify.c: Likewise.
452 2015-06-26 Marek Polacek <polacek@redhat.com>
454 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
455 * c-common.c (c_fully_fold_internal): Likewise.
456 (c_alignof_expr): Likewise.
457 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
458 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
459 * cilk.c (create_parm_list): Likewise.
461 2015-06-26 Marek Polacek <polacek@redhat.com>
463 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
465 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
467 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
468 * c-gimplify.c: Likewise.
469 * c-pragma.c: Likewise.
470 * c-ubsan.c: Likewise.
473 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
475 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
478 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
480 * cilk.c: Move calls.h after tm.h in the include chain.
482 2015-06-25 Marek Polacek <polacek@redhat.com>
484 * array-notation-common.c: Use VAR_P throughout.
485 * c-ada-spec.c: Likewise.
486 * c-common.c: Likewise.
487 * c-format.c: Likewise.
488 * c-gimplify.c: Likewise.
490 * c-pragma.c: Likewise.
491 * c-pretty-print.c: Likewise.
494 2015-06-25 Marek Polacek <polacek@redhat.com>
496 * cilk.c (extract_free_variables): Use is_global_var.
498 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
500 * c-common.c: Don't include target-def.h.
502 2015-06-23 Marek Polacek <polacek@redhat.com>
504 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
505 when comparing INTEGER_CSTs.
507 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
509 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
510 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
511 (dump_ada_template): Skip partially specialized types.
513 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
515 * c-common.c (scalar_to_vector): Use std::swap instead of manually
518 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
520 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
521 * c-ada-spec.c: Likewise.
522 * c-cilkplus.c: Likewise.
523 * c-common.c: Likewise.
524 * c-common.h: Likewise.
525 * c-cppbuiltin.c: Likewise.
526 * c-dump.c: Likewise.
527 * c-format.c: Likewise.
528 * c-gimplify.c: Likewise.
529 * c-indentation.c: Likewise.
532 * c-opts.c: Likewise.
534 * c-ppoutput.c: Likewise.
535 * c-pragma.c: Likewise.
536 * c-pretty-print.c: Likewise.
537 * c-semantics.c: Likewise.
538 * c-ubsan.c: Likewise.
540 * stub-objc.c: Likewise.
542 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
545 * c-common.c (c_common_truthvalue_conversion): Warn when
546 converting an address of a reference to a truth value.
548 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
550 * array-notation-common.c : Adjust include files.
551 * c-ada-spec.c : Likewise.
552 * c-cilkplus.c : Likewise.
553 * c-common.c : Likewise.
554 * c-common.h : Likewise.
555 * c-cppbuiltin.c : Likewise.
556 * c-dump.c : Likewise.
557 * c-format.c : Likewise.
558 * c-gimplify.c : Likewise.
559 * c-indentation.c : Likewise.
560 * c-lex.c : Likewise.
561 * c-omp.c : Likewise.
562 * c-opts.c : Likewise.
563 * c-pch.c : Likewise.
564 * c-ppoutput.c : Likewise.
565 * c-pragma.c : Likewise.
566 * c-pretty-print.c : Likewise.
567 * c-semantics.c : Likewise.
568 * c-ubsan.c : Likewise.
570 * stub-objc.c : Likewise.
572 2015-06-08 Marek Polacek <polacek@redhat.com>
575 * c-format.c (location_from_offset): Return LOC if LINE is null.
577 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
579 * c-common.h (c_parse_final_cleanups): New prototype.
580 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
582 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
584 * array-notation-common.c: Adjust includes for restructured coretypes.h.
585 * c-ada-spec.c: Likewise.
586 * c-cilkplus.c: Likewise.
587 * c-common.c: Likewise.
588 * c-common.h: Likewise.
589 * c-cppbuiltin.c: Likewise.
590 * c-dump.c: Likewise.
591 * c-format.c: Likewise.
592 * c-gimplify.c: Likewise.
593 * c-indentation.c: Likewise.
596 * c-opts.c: Likewise.
598 * c-ppoutput.c: Likewise.
599 * c-pragma.c: Likewise.
600 * c-pretty-print.c: Likewise.
601 * c-semantics.c: Likewise.
602 * c-ubsan.c: Likewise.
604 * stub-objc.c: Likewise.
606 2015-06-02 David Malcolm <dmalcolm@redhat.com>
609 * c-indentation.c (should_warn_for_misleading_indentation): Use
610 expand_location rather than expand_location_to_spelling_point.
611 Don't warn if the guarding statement is more indented than the
614 2015-06-02 David Malcolm <dmalcolm@redhat.com>
616 * c-indentation.c (warn_for_misleading_indentation): Bail out
617 immediately if -Wmisleading-indentation isn't enabled.
619 2015-06-01 Martin Liska <mliska@suse.cz>
621 * c-format.c (check_format_arg):Use new type-based pool allocator.
622 (check_format_info_main) Likewise.
624 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
626 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
627 (has_nontrivial_methods): Likewise.
629 2015-05-25 Marek Polacek <polacek@redhat.com>
631 * c-ubsan.c (ubsan_instrument_shift): Use type0.
633 2015-05-22 Marek Polacek <polacek@redhat.com>
636 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
638 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
640 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
641 STACK_GROWS_DOWNWARD.
643 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
645 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
646 STACK_GROWS_DOWNWARD rather than if it is defined.
648 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
651 * c-format.c (location_column_from_byte_offset): New.
652 (location_from_offset): New.
653 (struct format_wanted_type): Add offset_loc field.
654 (check_format_info): Move handling of location for extra arguments
655 closer to the point of warning.
656 (check_format_info_main): Pass the result of location_from_offset
658 (format_type_warning): Pass the result of location_from_offset
661 2015-05-20 Marek Polacek <polacek@redhat.com>
663 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
665 2015-05-20 Marek Polacek <polacek@redhat.com>
667 * c-ada-spec.c (dump_sloc): Use DECL_P.
669 2015-05-20 Marek Polacek <polacek@redhat.com>
671 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
672 * c-common.c: Likewise.
674 2015-05-19 David Malcolm <dmalcolm@redhat.com>
676 * c-common.h (fe_file_change): Strengthen param from
677 const line_map * to const line_map_ordinary *.
678 (pp_file_change): Likewise.
679 * c-lex.c (fe_file_change): Likewise.
680 (cb_define): Use linemap_check_ordinary when invoking
682 (cb_undef): Likewise.
683 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
684 invoking cb_file_change.
685 (c_finish_options): Likewise.
686 (push_command_line_include): Likewise.
687 (cb_file_change): Strengthen param "new_map" from
688 const line_map * to const line_map_ordinary *.
689 * c-ppoutput.c (cb_define): Likewise for local "map".
690 (pp_file_change): Likewise for param "map" and local "from".
692 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
694 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
696 2015-05-18 Tom de Vries <tom@codesourcery.com>
698 * c-common.c (build_va_arg_1): New function.
699 (build_va_arg): Add address operator to va_list operand if necessary.
701 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
704 * c-common.c (int_safely_convertible_to_real_p): Define.
705 (unsafe_conversion_p): Check conversions involving complex types.
706 (conversion_warning): Add new warning message for conversions which
707 discard imaginary component.
708 * c-common.h: (enum conversion_safety): Add new enumerator for such
711 2015-05-14 Marek Polacek <polacek@redhat.com>
715 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
716 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
717 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
718 use it. If FOR_INT_CONST, require that all evaluated operands be
721 2015-05-12 David Malcolm <dmalcolm@redhat.com>
723 * c-common.h (warn_for_misleading_indentation): New prototype.
724 * c-indentation.c: New file.
725 * c.opt (Wmisleading-indentation): New option.
727 2015-05-12 Tom de Vries <tom@codesourcery.com>
729 PR tree-optimization/66010
730 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
732 2015-05-09 Jason Merrill <jason@redhat.com>
734 * c-opts.c (c_common_post_options): Also clear
735 cpp_opts->cpp_warn_cxx11_compat.
737 * c-common.h (enum cxx_dialect): Add cxx_unset.
738 * c-common.c (cxx_dialect): Initialize to cxx_unset.
739 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
741 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
742 (std=gnu++0x): Mark as Undocumented.
743 (std=gnu++1y): Add deprecated message.
745 2015-05-08 Jason Merrill <jason@redhat.com>
747 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
750 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
752 2015-05-08 Marek Polacek <polacek@redhat.com>
755 * c.opt (Woverride-init-side-effects): New option.
757 2015-05-07 Marek Polacek <polacek@redhat.com>
760 * c-common.c (c_fully_fold_internal): Warn when left shifting a
762 * c.opt (Wshift-negative-value): New option.
763 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
764 when -Wextra and C99/C++11 mode.
766 2015-05-07 Marek Polacek <polacek@redhat.com>
767 Martin Uecker <uecker@eecs.berkeley.edu>
769 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
770 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
772 2015-05-05 Jason Merrill <jason@redhat.com>
774 * c.opt (Wterminate): New.
776 2015-04-30 Marek Polacek <polacek@redhat.com>
778 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
779 require that the non-constant be of a boolean type.
781 2015-04-29 Josh Triplett <josh@joshtriplett.org>
783 * c-common.c (handle_section_attribute): Refactor to reduce
784 nesting and distinguish between error cases.
786 2015-04-29 Marek Polacek <polacek@redhat.com>
789 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
792 2015-04-29 Jakub Jelinek <jakub@redhat.com>
794 * c-common.h (omp_clause_mask): Unconditionally define as a class.
795 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
796 HOST_BITS_PER_WIDE_INT.
798 2015-04-28 Tom de Vries <tom@codesourcery.com>
800 PR tree-optimization/65887
801 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
803 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
804 Pierre-Marie de Rodat <derodat@adacore.com>
806 * c-ada-spec.c (in_function): Delete.
807 (dump_generic_ada_node): Do not change in_function and remove the
808 redundant code dealing with it.
809 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
810 (print_ada_methods): Output the static member functions in a nested
811 package after the regular methods as well as associated renamings.
813 2015-04-24 Marek Polacek <polacek@redhat.com>
816 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
817 and OPT_Wshift_count_overflow.
820 * c-common.c (warn_logical_operator): Warn if the operands have the
823 2015-04-24 Marek Polacek <polacek@redhat.com>
826 * c-common.c (warn_logical_operator): Bail if either operand comes
827 from a macro expansion.
829 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
832 * c-common.c (c_default_pointer_mode): Add definition.
833 * c-common.h (c_default_pointer_mode): Add declaration.
835 2015-03-11 Jakub Jelinek <jakub@redhat.com>
837 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
838 on record_builtin_type argument.
840 2015-03-10 Jakub Jelinek <jakub@redhat.com>
843 * c-common.c (warn_logical_not_parentheses): Don't warn for
846 2015-03-07 Marek Polacek <polacek@redhat.com>
849 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
850 before trying to figure out whether we have a flexible array member.
852 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
853 Jonathan Wakely <jwakely.gcc@gmail.com>
855 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
857 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
860 * c-ada-spec.c (print_destructor): Remove obsolete code.
862 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
864 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
865 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
866 DECL_TEMPLATE_RESULT emulations.
867 (dump_ada_template)): Add guard for TYPE_METHODS.
869 2015-02-27 Marek Polacek <polacek@redhat.com>
872 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
874 2015-02-27 Kai Tietz <ktietz@redhat.com>
877 * c-pragma.c (handle_pragma_weak): Do not try to create
878 weak/alias of declarations not being function, or variable
881 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
884 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
886 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
888 2015-02-16 Marek Polacek <polacek@redhat.com>
891 * c-format.c (check_format_types): Handle null param.
893 2015-02-13 Marek Polacek <polacek@redhat.com>
896 * c-format.c (check_format_types): Don't warn about different
897 signedness if the original value is in the range of WANTED_TYPE.
899 2015-02-12 Jason Merrill <jason@redhat.com>
902 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
903 to the current highest version.
904 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
906 2015-02-04 Jakub Jelinek <jakub@redhat.com>
910 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
911 instead of RDIV_EXPR. Use build_binary_op instead of
914 2015-01-30 Joseph Myers <joseph@codesourcery.com>
916 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
917 to pass input_location as first argument.
919 2015-01-23 Tom de Vries <tom@codesourcery.com>
922 * c.opt (fopenacc): Mark as LTO option.
924 2015-01-23 Tom de Vries <tom@codesourcery.com>
927 * c.opt (fopenmp): Mark as LTO option.
929 2015-01-21 Jakub Jelinek <jakub@redhat.com>
932 * cilk.c (fill_decls_vec): Only put decls into vector v.
933 (compare_decls): Fix up formatting.
935 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
938 * cilk.c: Include vec.h.
939 (struct cilk_decls): New structure.
940 (wrapper_parm_cb): Split this function to...
941 (fill_decls_vec): ...this...
942 (create_parm_list): ...and this.
943 (compare_decls): New function.
944 (for_local_cb): Remove.
945 (wrapper_local_cb): Ditto.
946 (build_wrapper_type): For now first traverse and fill vector of
947 declarations then sort it and then deal with sorted vector.
948 (cilk_outline): Ditto.
949 (declare_one_free_variable): Ditto.
951 2015-01-21 Jason Merrill <jason@redhat.com>
954 * c-format.c (check_format_arg): Call decl_constant_value.
956 2015-01-19 Martin Liska <mliska@suse.cz>
958 * c-common.c (handle_noicf_attribute): New function.
960 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
961 Bernd Schmidt <bernds@codesourcery.com>
962 James Norris <jnorris@codesourcery.com>
963 Cesar Philippidis <cesar@codesourcery.com>
964 Ilmir Usmanov <i.usmanov@samsung.com>
965 Jakub Jelinek <jakub@redhat.com>
967 * c.opt (fopenacc): New option.
968 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
969 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
971 * c-common.h (c_finish_oacc_wait): New prototype.
972 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
973 (c_finish_oacc_wait): New function.
974 * c-pragma.c (oacc_pragmas): New variable.
975 (c_pp_lookup_pragma, init_pragma): Handle it.
976 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
977 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
978 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
979 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
980 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
981 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
982 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
983 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
984 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
985 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
986 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
987 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
988 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
989 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
990 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
991 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
992 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
993 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
994 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
995 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
996 PRAGMA_OACC_CLAUSE_WORKER.
998 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1000 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1001 for the new option fstack-protector_explicit.
1002 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1003 (handle_stack_protect_attribute): New function.
1005 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1007 * c.opt: New option -Warray-bounds=.
1009 2015-01-09 Michael Collison <michael.collison@linaro.org>
1011 * array-notation-common.c: Include hash-set.h, machmode.h,
1012 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1013 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1014 * c-ada-spec.c: Ditto.
1015 * c-cilkplus.c: Ditto.
1016 * c-common.c: Include input.h due to flattening of tree.h.
1017 Define macro GCC_C_COMMON_C.
1018 * c-common.h: Flatten tree.h header files into c-common.h.
1019 Remove include of tree-core.h.
1020 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1021 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1022 fold-const.h, wide-int.h, and inchash.h due to
1023 flattening of tree.h.
1025 * c-format.c: Flatten tree.h header files into c-common.h.
1026 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1027 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1028 fold-const.h, wide-int.h, and inchash.h due to
1029 flattening of tree.h.
1030 * c-dump.c: Include hash-set.h, machmode.h,
1031 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1032 fold-const.h, wide-int.h, and inchash.h due to
1033 flattening of tree.h.
1034 * c-format.c: Include hash-set.h, machmode.h,
1035 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1036 fold-const.h, wide-int.h, inchash.h and real.h due to
1037 flattening of tree.h.
1038 * c-gimplify.c: Include hash-set.h, machmode.h,
1039 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1040 fold-const.h, wide-int.h, and inchash.h due to
1041 flattening of tree.h.
1047 * c-ppoutput.c: Ditto.
1048 * c-pragma.c: Ditto.
1049 * c-pretty-print.c: Ditto.
1050 * c-semantics.c: Ditto.
1052 * stub-objc.c: Ditto.
1054 2015-01-08 Jason Merrill <jason@redhat.com>
1056 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1057 do_ubsan_in_current_function.
1058 (ubsan_maybe_instrument_reference_or_call): Likewise.
1059 * c-ubsan.h: Declare it.
1061 2015-01-08 Mike Stump <mikestump@comcast.net>
1063 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1065 2015-01-07 Marek Polacek <polacek@redhat.com>
1068 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1069 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1071 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1074 * c.opt (Wsuggest-override): New option.
1076 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1078 Update copyright years.
1080 2015-01-05 Marek Polacek <polacek@redhat.com>
1083 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1085 * c-common.h (warn_array_subscript_with_type_char): Update
1088 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1090 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1091 Control macro with flag_sized_deallocation.
1093 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1095 * c.opt (Wdiscarded-array-qualifiers): New option.
1097 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1099 PR preprocessor/63831
1100 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1101 and __has_cpp_attribute here.
1102 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1103 c_common_has_attribute.
1104 * c-common.h (c_common_has_attribute): New prototype.
1105 * c-lex.c (init_c_lex): Set cb->has_attribute to
1106 c_common_has_attribute instead of cb_has_attribute.
1107 (get_token_no_padding): New function.
1108 (cb_has_attribute): Renamed to ...
1109 (c_common_has_attribute): ... this. No longer static. Use
1110 get_token_no_padding, require ()s, don't build TREE_LIST
1111 unnecessarily, fix up formatting, adjust diagnostics, call
1114 2014-12-15 Jason Merrill <jason@redhat.com>
1116 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1117 (-Wsized-deallocation): New.
1118 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1119 to on in C++14 and up.
1121 2014-12-11 Jason Merrill <jason@redhat.com>
1123 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1125 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1126 we aren't complaining about VLAs.
1128 2014-12-06 Marek Polacek <polacek@redhat.com>
1130 PR tree-optimization/64183
1131 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1132 shift-expression if it is integer_type_node. Use types_compatible_p.
1134 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1136 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1137 last argument from create_tmp_var_raw and create_tmp_var calls.
1138 * cilk.c (gimplify_cilk_spawn): Likewise.
1139 * c-omp.c (c_finish_omp_atomic): Likewise.
1141 2014-11-28 Marek Polacek <polacek@redhat.com>
1143 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1144 instead of unsigned_type_node.
1146 2014-11-28 Marek Polacek <polacek@redhat.com>
1149 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1151 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1152 expression to unsigned_type_node.
1154 2014-11-20 Mark Wielaard <mjw@redhat.com>
1157 * c-opts.c (set_std_c89): Set lang_hooks.name.
1158 (set_std_c99): Likewise.
1159 (set_std_c11): Likewise.
1160 (set_std_cxx98): Likewise.
1161 (set_std_cxx11): Likewise.
1162 (set_std_cxx14): Likewise.
1163 (set_std_cxx1z): Likewise.
1165 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1168 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1169 return type to bool.
1170 * c-common.c: Include gimple-expr.h.
1171 (convert_vector_to_pointer_for_subscript): Change return type to
1172 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1173 and copy it into a TARGET_EXPR and use that instead of *vecp
1176 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1178 Merger of git branch "gimple-classes-v2-option-3".
1179 * ChangeLog.gimple-classes: New.
1180 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1181 from being just a vec<gimple> to a vec<gbind *>.
1183 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1186 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1187 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1188 get_pointer_alignment for non-pointers. Use ptype, or if it is
1189 reference type, corresponding pointer type, as type of kind
1191 (ubsan_maybe_instrument_reference,
1192 ubsan_maybe_instrument_member_call): Adjust callers.
1194 2014-11-15 Marek Polacek <polacek@redhat.com>
1197 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1199 (extract_array_notation_exprs): Return for NULL node.
1201 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1203 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1204 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1206 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1209 * c-common.c (check_builtin_function_arguments): Handle
1210 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1212 2014-11-10 Andi Kleen <ak@linux.intel.com>
1215 * c-common.h (check_no_cilk): Declare.
1216 * cilk.c (get_error_location): New function.
1217 (check_no_cilk): Dito.
1219 2014-11-10 Andi Kleen <ak@linux.intel.com>
1221 * cilk.c (recognize_spawn): Use expression location
1224 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1226 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1228 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1230 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1231 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1232 (__cpp_range_based_for, __cpp_initializer_lists,
1233 __cpp_delegating_constructors, __cpp_nsdmi,
1234 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1235 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1236 __has_cpp_attribute.
1237 * c-lex.c (cb_has_attribute): New callback CPP function;
1238 (init_c_lex): Set has_attribute callback.
1240 2014-11-04 Richard Biener <rguenther@suse.de>
1242 * c-common.c (shorten_compare): Do not shorten mixed
1243 DFP and non-DFP compares.
1245 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1247 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1248 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1249 Commentary and rearrangement of tests.
1250 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1251 Commentary and rearrangement of tests.
1252 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1253 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1255 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1257 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1258 enum from machine_mode.
1260 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1262 * c-common.c: Adjust include files.
1263 * c-gimplify.c: Ditto.
1265 * c-pragma.c: Ditto.
1268 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1270 * c-gimplify.c: Adjust include files.
1272 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1275 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1276 c_common_initialize_diagnostics.
1277 * c-common.h: Likewise.
1279 2014-10-24 Marek Polacek <polacek@redhat.com>
1282 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1283 print "struct"/"union"/"enum" for typedefed names.
1285 2014-10-23 Marek Polacek <polacek@redhat.com>
1287 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1290 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1291 Yury Gribov <y.gribov@samsung.com>
1293 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1294 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1295 instead of flag_sanitize_recover as bool flag.
1297 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1299 * cilk.c: Revert previous change.
1301 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1304 * cilk.c: Include vec.h.
1305 (struct cilk_decls): New structure.
1306 (wrapper_parm_cb): Split this function to...
1307 (fill_decls_vec): ...this...
1308 (create_parm_list): ...and this.
1309 (compare_decls): New function.
1310 (for_local_cb): Remove.
1311 (wrapper_local_cb): Ditto.
1312 (build_wrapper_type): For now first traverse and fill vector of
1313 declarations then sort it and then deal with sorted vector.
1314 (cilk_outline): Ditto.
1315 (declare_one_free_variable): Ditto.
1317 2014-10-17 Marek Polacek <polacek@redhat.com>
1319 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1320 * c.opt (Wimplicit-int): Initialize to -1.
1322 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1324 * c-pragma.c: Adjust include files.
1325 * c-semantics.c: Likewise.
1327 2014-10-16 DJ Delorie <dj@redhat.com>
1329 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1332 2014-10-14 Jason Merrill <jason@redhat.com>
1335 * c-common.h (CPP_PREPARSED_EXPR): New.
1336 (N_CP_TTYPES): Adjust.
1338 2014-10-15 Marek Polacek <polacek@redhat.com>
1340 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1342 2014-10-14 DJ Delorie <dj@redhat.com>
1344 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1345 types, not just __int128.
1346 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1347 types, not just __int128.
1348 (cpp_atomic_builtins): Round pointer sizes up.
1349 (type_suffix): Use type precision, not specific types.
1350 * c-common.c (c_common_reswords): Remove __int128 special case.
1351 (c_common_type_for_size): Check for all __intN types, not just
1353 (c_common_type_for_mode): Likewise.
1354 (c_common_signed_or_unsigned_type): Likewise.
1355 (c_build_bitfield_integer_type): Likewise.
1356 (c_common_nodes_and_builtins): Likewise.
1357 (keyword_begins_type_specifier): Likewise.
1358 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1361 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1363 * c-common.c: Use hash_table instead of hashtab.
1365 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1367 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1370 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1375 * c-common.c (warn_logical_operator): Punt for vectors.
1377 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1379 Implement SD-6: SG10 Feature Test Recommendations
1380 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1381 macros and the __has_header macro.
1383 2014-09-30 Jason Merrill <jason@redhat.com>
1385 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1386 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1387 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1389 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1390 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1392 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1393 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1395 2014-09-24 Marek Polacek <polacek@redhat.com>
1399 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1401 2014-09-23 Andi Kleen <ak@linux.intel.com>
1403 * c-common.c (handle_no_reorder_attribute): New function.
1404 (c_common_attribute_table): Add no_reorder attribute.
1406 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1408 * c-cppbuiltin.c (c_cpp_builtins): Define
1409 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1412 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1414 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1415 for supported floating-point modes.
1417 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1419 * c.opt (Wpsabi): Use LangEnabledBy.
1420 * c-opts.c (c_common_handle_option): Do not handle here.
1422 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1424 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1425 macros for floating-point modes.
1427 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1430 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1431 __*_DENORM_MIN__ without denormals.
1433 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1435 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1436 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1437 ubsan_create_data callers.
1438 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1439 index is constant or BIT_AND_EXPR with constant mask and is
1440 small enough for the bound.
1441 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1442 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1444 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1446 * c.opt: Add CppReason to various flags.
1447 (Wdate-time): Re-sort.
1448 * c-common.c: Include c-common.h earlier.
1449 (struct reason_option_codes_t): Delete.
1450 (c_option_controlling_cpp_error): Prefix global type and struct
1453 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1455 * c.opt (Wnormalized): New.
1456 (Wnormalized=): Use Enum and Reject Negative.
1457 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1459 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1461 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1462 digits of floating-point modes if -fbuilding-libgcc.
1464 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1466 * c-cppbuiltin.c (c_cpp_builtins): Also define
1467 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1468 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1469 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1470 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1471 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1472 __LIBGCC_STACK_GROWS_DOWNWARD__,
1473 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1474 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1475 __LIBGCC_DWARF_FRAME_REGISTERS__,
1476 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1477 __LIBGCC_STACK_POINTER_REGNUM__ and
1478 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1479 (builtin_define_with_value): Handle backslash-escaping in string
1482 2014-09-05 Richard Biener <rguenther@suse.de>
1485 * c-format.c (check_format_arg): Properly handle
1486 effectively signed POINTER_PLUS_EXPR offset.
1488 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1490 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1491 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1492 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1494 * c-opts.c (c_common_handle_option): Do not handle here.
1495 (sanitize_cpp_opts): Likewise.
1496 * c-common.c (struct reason_option_codes_t): Handle
1497 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1499 2014-09-03 Marek Polacek <polacek@redhat.com>
1501 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1503 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1504 Balaji V. Iyer <balaji.v.iyer@intel.com>
1505 Igor Zamyatin <igor.zamyatin@intel.com>
1507 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1508 * c-common.c (c_common_reswords): Added _Cilk_for.
1509 * c-common.h (enum rid): Added RID_CILK_FOR.
1510 (cilk_for_number_of_iterations): Add declaration.
1511 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1513 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1514 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1516 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1518 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1519 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1520 Wundef): Use CPP, Var and Init.
1521 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1523 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1525 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1526 * c-opts.c (c_common_handle_option): Do not handle here.
1528 2014-08-25 Jason Merrill <jason@redhat.com>
1530 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1531 -std=c++14 and -std=gnu++14, rather than the reverse.
1532 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1533 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1534 * c-common.h (cxx_dialect): Remove cxx1y.
1536 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1538 * c-common.h (enum cxx_dialect): Add cxx14.
1539 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1540 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1541 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1543 2014-08-22 Jason Merrill <jason@redhat.com>
1545 * c.opt (std=gnu++17): Fix alias.
1547 2014-08-22 Marek Polacek <polacek@redhat.com>
1550 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1551 check for vector types. Drop LHS argument.
1552 * c-common.h (warn_logical_not_parentheses): Adjust.
1554 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1556 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1557 (Wmultichar): Likewise.
1558 (Wdate-time): Use C-family languages instead of Common. Use CPP
1560 * c-opts.c (c_common_handle_option): Do not handle the above
1562 (sanitize_cpp_opts): Likewise.
1564 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1567 * c-opts.c: Include tree-diagnostics.h.
1568 (c_diagnostic_finalizer): New.
1569 (c_common_initialize_diagnostics): Use it.
1571 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1573 PR preprocessor/51303
1574 * c-common.c (struct reason_option_codes_t option_codes):
1575 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1577 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1581 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1582 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1583 (c_common_post_options): Call init_global_opts_from_cpp.
1584 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1586 2014-08-19 Marek Polacek <polacek@redhat.com>
1589 * c-common.c (maybe_warn_bool_compare): New function.
1590 * c-common.h (maybe_warn_bool_compare): Declare.
1591 * c.opt (Wbool-compare): New option.
1593 2014-08-19 Marek Polacek <polacek@redhat.com>
1595 * c.opt (Wc99-c11-compat): New option.
1597 2014-08-19 Marek Polacek <polacek@redhat.com>
1599 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1600 to warn_c90_c99_compat.
1601 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1604 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1605 Steven Bosscher <steven@gcc.gnu.org>
1608 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1609 format_check_results.
1610 (check_function_format): Use true and add comment for boolean
1612 (finish_dollar_format_checking): Use explicit location when warning.
1613 (check_format_info): Likewise.
1614 (check_format_arg): Set extra_arg_loc and format_string_loc.
1615 (check_format_info_main): Use explicit location when warning.
1616 (check_format_types): Pass explicit location.
1617 (format_type_warning): Likewise.
1619 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1622 * c-format.c: Handle Fortran flags.
1624 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1627 * array-notation-common.c (find_rank): Added handling for other
1628 types of references.
1630 2014-08-10 Marek Polacek <polacek@redhat.com>
1633 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1634 * c.opt (Wc90-c99-compat): Add option.
1636 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1638 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1640 2014-08-03 Marek Polacek <polacek@redhat.com>
1642 * c-common.c (check_case_value): Add location_t parameter. Use it.
1643 (c_add_case_label): Pass loc to check_case_value.
1645 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1647 * cilk.c: Use hash_map instead of pointer_map.
1649 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1651 * c-gimplify.c: Use hash_set instead of pointer_set.
1653 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1656 * array-notation-common.c (extract_array_notation_exprs): Handling
1659 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1661 * c-common.h (min_align_of_type): Removed prototype.
1662 * c-common.c (min_align_of_type): Removed.
1663 * c-ubsan.h (ubsan_maybe_instrument_reference,
1664 ubsan_maybe_instrument_member_call): New prototypes.
1665 * c-ubsan.c: Include stor-layout.h and builtins.h.
1666 (ubsan_maybe_instrument_reference_or_call,
1667 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1670 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1673 * c.opt (-Wreturn-local-addr): Move to common.opt.
1675 2014-07-30 Jason Merrill <jason@redhat.com>
1680 * c.opt (-fuse-all-virtuals): New.
1682 2014-07-30 Tom Tromey <tromey@redhat.com>
1685 * c.opt (Wdesignated-init): New option.
1686 * c-common.c (c_common_attribute_table): Add "designated_init".
1687 (handle_designated_init): New function.
1689 2014-07-24 Marek Polacek <polacek@redhat.com>
1692 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1694 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1696 PR preprocessor/60723 - missing system-ness marks for macro tokens
1697 * c-ppoutput.c (struct print::prev_was_system_token): New data
1699 (init_pp_output): Initialize it.
1700 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1701 (do_line_change): Return a flag saying if a line marker was
1703 (scan_translation_unit): Detect if the system-ness of the token we
1704 are about to emit is different from the one of the previously
1705 emitted token. If so, emit a line marker. Avoid emitting useless
1706 adjacent line markers. Avoid emitting line markers for tokens
1707 originating from the expansion of built-in macros.
1708 (scan_translation_unit_directives_only): Adjust.
1710 2014-07-15 Marek Polacek <polacek@redhat.com>
1712 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1713 TYPE_MAX_VALUE is NULL.
1715 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1718 * c.opt (Wmemset-transposed-args): New warning.
1720 2014-07-10 Jason Merrill <jason@redhat.com>
1724 * c.opt (-fuse-all-virtuals): New.
1726 2014-07-09 Richard Biener <rguenther@suse.de>
1729 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1730 using unsigned arithmetic if overflow does not wrap instead of
1731 if overflow is undefined.
1733 2014-07-06 Marek Polacek <polacek@redhat.com>
1736 * c.opt (Wsizeof-array-argument): New option.
1738 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1740 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1741 comments->count <= 1, as comments->entries might be NULL.
1743 2014-07-01 Marek Polacek <polacek@redhat.com>
1745 * c.opt (Wint-conversion): New option.
1747 2014-07-01 Marek Polacek <polacek@redhat.com>
1750 * c.opt (Wincompatible-pointer-types): New option.
1752 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1755 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1756 Do not discard TYPE_QUALS of type.
1758 2014-06-26 Jason Merrill <jason@redhat.com>
1760 * c-common.h (enum cxx_dialect): Add cxx1z.
1761 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1762 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1764 2014-06-26 Teresa Johnson <tejohnson@google.com>
1766 * c-common.h (get_dump_info): Declare.
1767 * c-gimplify.c (c_genericize): Use saved dump files.
1768 * c-opts.c (c_common_parse_file): Begin and end dumps
1769 once around parsing invocation.
1770 (get_dump_info): New function.
1772 2014-06-23 Marek Polacek <polacek@redhat.com>
1773 Andrew MacLeod <amacleod@redhat.com>
1776 * c-common.c (get_atomic_generic_size): Don't segfault if the
1777 type doesn't have a size.
1779 2014-06-20 Marek Polacek <polacek@redhat.com>
1781 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1782 (ubsan_walk_array_refs_r): New function.
1783 (c_genericize): Instrument array bounds.
1784 * c-ubsan.c: Include "internal-fn.h".
1785 (ubsan_instrument_division): Mark instrumented arrays as having
1786 side effects. Adjust ubsan_type_descriptor call.
1787 (ubsan_instrument_shift): Likewise.
1788 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1789 (ubsan_instrument_bounds): New function.
1790 (ubsan_array_ref_instrumented_p): New function.
1791 (ubsan_maybe_instrument_array_ref): New function.
1792 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1793 (ubsan_array_ref_instrumented_p): Declare.
1794 (ubsan_maybe_instrument_array_ref): Declare.
1796 2014-06-20 Hale Wang <hale.wang@arm.com>
1799 * c.opt (fshort-enums): Add to LTO.
1800 * c.opt (fshort-wchar): Likewise.
1802 2014-06-16 Marek Polacek <polacek@redhat.com>
1805 * c.opt (Wswitch-bool): Add Var.
1807 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1810 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1811 #pragma omp target teams or
1812 #pragma omp {,target }teams distribute simd.
1814 2014-06-12 Jason Merrill <jason@redhat.com>
1816 * c.opt (Wabi=, fabi-compat-version): New.
1817 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1818 (c_common_post_options): Handle flag_abi_compat_version default.
1819 Disallow -fabi-compat-version=1.
1820 * c-common.h (abi_version_crosses): New.
1822 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1824 * c-common.c (handle_section_attribute): Update handling for
1825 section names that are no longer trees.
1827 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1830 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1831 (omp_pragmas): ... back here.
1833 2014-06-05 Marek Polacek <polacek@redhat.com>
1836 * c-common.c (warn_logical_not_parentheses): New function.
1837 * c-common.h (warn_logical_not_parentheses): Declare.
1838 * c.opt (Wlogical-not-parentheses): New option.
1840 2014-06-04 Marek Polacek <polacek@redhat.com>
1843 * c-common.c (check_case_bounds): Add location parameter.
1845 (c_add_case_label): Pass loc to check_case_bounds.
1847 2014-06-03 Marek Polacek <polacek@redhat.com>
1850 * c.opt (Wswitch-bool): New option.
1852 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1854 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1856 (record_types_used_by_current_var_decl): Move prototype to where
1859 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1860 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1861 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1863 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1865 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1866 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1868 * c-pretty-print.c (pp_c_void_constant): New function.
1869 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1870 (c_pretty_printer::expression): Handle VOID_CST.
1871 * cilk.c (extract_free_variables): Likewise.
1872 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1873 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1875 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1877 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1878 * c-pragma.c (push_alignment): Adjust.
1879 (handle_pragma_push_options): Likewise.
1881 2014-05-09 Marek Polacek <polacek@redhat.com>
1884 * c-common.c (check_user_alignment): Return -1 if alignment is error
1886 (handle_aligned_attribute): Don't call default_conversion on
1888 (handle_vector_size_attribute): Likewise.
1889 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1890 (handle_sentinel_attribute): Call default_conversion and allow even
1891 integral types as an argument.
1893 2014-05-08 Marek Polacek <polacek@redhat.com>
1896 * c-common.c (min_align_of_type): New function factored out from...
1897 (c_sizeof_or_alignof_type): ...here.
1898 * c-common.h (min_align_of_type): Declare.
1900 2014-05-08 Marek Polacek <polacek@redhat.com>
1903 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1904 parameter type of main.
1906 2014-05-07 DJ Delorie <dj@redhat.com>
1908 * c-cppbuiltin.c (print_bits_of_hex): New.
1909 (builtin_define_type_minmax): Print values using hex so as not to
1910 require a pre-computed list of string values.
1912 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1913 Mike Stump <mikestump@comcast.net>
1914 Richard Sandiford <rdsandiford@googlemail.com>
1916 * c-ada-spec.c: Include wide-int.h.
1917 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1918 (dump_generic_ada_node): Use wide-int interfaces.
1919 * c-common.c: Include wide-int-print.h.
1920 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1921 (pointer_int_sum): Use wide-int interfaces.
1922 (c_common_nodes_and_builtins): Use make_int_cst.
1923 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1924 (handle_alloc_size_attribute): Use wide-int interfaces.
1925 (get_nonnull_operand): Likewise.
1926 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1927 * c-lex.c: Include wide-int.h.
1928 (narrowest_unsigned_type): Take a widest_int rather than two
1930 (narrowest_signed_type): Likewise.
1931 (interpret_integer): Update accordingly. Use wide-int interfaces.
1932 (lex_charconst): Use wide-int interfaces.
1933 * c-pretty-print.c: Include wide-int.h.
1934 (pp_c_integer_constant): Use wide-int interfaces.
1935 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1936 INT_CST_LT_UNSIGNED.
1938 2014-05-06 Richard Biener <rguenther@suse.de>
1940 * c-opts.c (c_common_post_options): For -freestanding,
1941 -fno-hosted and -fno-builtin disable pattern recognition
1942 if not enabled explicitely.
1944 2014-05-02 Marek Polacek <polacek@redhat.com>
1946 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1948 2014-05-01 Marek Polacek <polacek@redhat.com>
1951 * c.opt (Wdiscarded-qualifiers): Add.
1953 2014-04-30 Marek Polacek <polacek@redhat.com>
1955 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1956 INT_MIN / -1 sanitization only for integer types.
1958 2014-04-25 Marek Polacek <polacek@redhat.com>
1961 * c-common.c (handle_noinline_attribute): Warn if the attribute
1962 conflicts with always_inline attribute.
1963 (handle_always_inline_attribute): Warn if the attribute conflicts
1964 with noinline attribute.
1966 2014-04-25 Marek Polacek <polacek@redhat.com>
1969 * c-common.c (check_main_parameter_types): Warn about variadic main.
1971 2014-04-24 Mike Stump <mikestump@comcast.net>
1973 * c.opt (Wshadow-ivar): Default to on.
1975 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1977 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1979 2014-04-23 Marek Polacek <polacek@redhat.com>
1981 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1983 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1986 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1987 if flag_sanitize_undefined_trap_on_error.
1988 (ubsan_instrument_division, ubsan_instrument_shift,
1989 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1990 if !flag_sanitize_recover.
1992 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1995 * c-common.c (registered_builtin_types): Make non-static.
1996 * c-common.h (registered_builtin_types): Declare.
1998 2014-04-14 Richard Biener <rguenther@suse.de>
1999 Marc Glisse <marc.glisse@inria.fr>
2002 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2003 apply may-alias the scalar pointer type when applicable.
2005 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2008 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2009 as possible argument for Cilk_spawn.
2011 2014-04-11 Tobias Burnus <burnus@net-b.de>
2014 * c.opt (Wformat-signedness): Add
2015 * c-format.c(check_format_types): Use it.
2017 2014-04-11 Jason Merrill <jason@redhat.com>
2020 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2021 default_conversion for an array argument.
2023 2014-04-08 Marek Polacek <polacek@redhat.com>
2026 * c-ubsan.c: Include asan.h.
2027 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2029 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2031 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2033 2014-04-02 Marek Polacek <polacek@redhat.com>
2035 * c-common.h (c_expand_expr): Remove declaration.
2037 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2040 * c-common.c (add_atomic_size_parameter): When creating new
2041 params vector, push the size argument first.
2043 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2045 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2046 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2047 ubsan_create_data callers.
2049 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2052 * c-opts.c (c_finish_options): Restore cb_file_change call to
2055 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2058 * c-pragma.c (apply_pragma_weak): Only look at
2059 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2060 DECL_ASSEMBLER_NAME_SET_P (decl).
2061 (maybe_apply_pending_pragma_weaks): Exit early if
2062 vec_safe_is_empty (pending_weaks) rather than only when
2064 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2065 set assembler name back to NULL afterwards.
2067 2014-03-11 Jason Merrill <jason@redhat.com>
2069 * c.opt: Add -std=gnu++14.
2071 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2073 * c-opts.c (c_common_post_options): Don't override
2074 -ffp-contract=fast if unsafe-math-optimizations is on.
2076 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2078 * c.opt: Enable LTO FE for fshort-double.
2080 2014-03-07 Jason Merrill <jason@redhat.com>
2082 * c.opt: Add -std=c++14.
2084 2014-03-06 Marek Polacek <polacek@redhat.com>
2087 * cilk.c (contains_cilk_spawn_stmt): New function.
2088 (contains_cilk_spawn_stmt_walker): Likewise.
2089 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2090 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2092 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2094 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2095 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2096 even when flag_preprocess_only.
2098 2014-02-26 Jason Merrill <jason@redhat.com>
2102 * c-common.c (shorten_compare): Don't check
2103 c_inhibit_evaluation_warnings.
2105 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2108 * c-common.c (c_common_nodes_and_builtins): When initializing
2109 c_uint{16,32,64}_type_node, also set corresponding
2110 uint{16,32,64}_type_node to the same value.
2113 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2114 for PRAGMA_IVDEP if flag_preprocess_only.
2116 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2119 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2120 if false, add ADD itself, rather than vice versa.
2121 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2122 copy. For SAVE_EXPR, only call merge_tlist once.
2124 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2127 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2129 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2131 (c_common_attribute_table): Add alloc_align and assume_aligned
2134 2014-02-06 Marek Polacek <polacek@redhat.com>
2137 * c-common.c (warn_for_sign_compare): Call warning_at with location
2140 2014-02-05 Marek Polacek <polacek@redhat.com>
2143 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2146 2014-02-04 Marek Polacek <polacek@redhat.com>
2149 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2152 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2156 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2157 handle_vector_size_attribute, handle_nonnull_attribute): Call
2158 default_conversion on the attribute argument.
2159 (handle_nonnull_attribute): Increment the argument number.
2161 2014-01-31 Marek Polacek <polacek@redhat.com>
2164 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2165 build_function_call_vec.
2166 (resolve_overloaded_builtin): Likewise.
2167 * c-common.h (build_function_call_vec): Adjust declaration.
2169 2014-01-30 Marek Polacek <polacek@redhat.com>
2172 * c-common.h (unsafe_conversion_p): Adjust declaration.
2173 (warnings_for_convert_and_check): Likewise.
2174 (convert_and_check): Likewise.
2175 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2176 expansion_point_location_if_in_system_header on it.
2177 (warnings_for_convert_and_check): Add location parameter. Call
2178 expansion_point_location_if_in_system_header on it. Use it.
2179 (convert_and_check): Add location parameter. Use it.
2180 (conversion_warning): Likewise.
2181 (c_add_case_label): Adjust convert_and_check calls.
2182 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2184 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2186 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2188 * c-pragma.c (init_pragma): Likewise.
2191 2014-01-23 Marek Polacek <polacek@redhat.com>
2194 * c-common.c (shorten_compare): Add location_t parameter.
2195 * c-common.h (shorten_binary_op): Adjust declaration.
2197 2014-01-23 Marek Polacek <polacek@redhat.com>
2200 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2201 * c-common.h: Declare it.
2203 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2205 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2206 * c-ada-spec.c (dump_ads): Likewise.
2207 (cpp_check): Likewise.
2208 (dump_ada_specs): Likewise.
2210 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2213 * c-common.c (handle_no_instrument_function_attribute): Allow
2214 no_instrument_function attribute in class member
2215 definition/declaration.
2217 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2220 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2221 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2222 being COMPOUND_EXPR.
2223 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2224 operand a SAVE_EXPR and second MODIFY_EXPR.
2226 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2229 * c-pch.c (c_common_write_pch): Call
2230 prepare_target_option_nodes_for_pch.
2232 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2234 Update copyright years
2236 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2238 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2239 the copyright notice.
2241 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2243 * c-ada-spec.c (print_constructor): New function.
2244 (print_destructor): Retrieve the origin of the destructor.
2245 (print_ada_declaration): Revamp handling of constructors/destructors.
2247 2013-12-23 Stuart Hastings <stuart@apple.com>
2248 Bill Maddox <maddox@google.com>
2249 Jason Merrill <jason@redhat.com>
2251 * c.opt: Add -fdeclone-ctor-dtor.
2252 * c-opts.c (c_common_post_options): Default to on iff -Os.
2254 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2256 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2258 * c-pragma.h (enum pragma_cilk_clause): Remove.
2259 (enum pragma_omp_clause): Added the following fields:
2260 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2261 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2262 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2263 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2264 PRAGMA_CILK_CLAUSE_UNIFORM.
2267 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2269 * cilk.c (cilk_outline): Made this function non-static.
2270 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2271 (create_cilk_wrapper): Added a new parameter: a function pointer.
2272 (c_install_body_w_frame_cleanup): Remove
2273 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2274 * c-common.h (cilk_outline): New prototype.
2275 (gimplify_cilk_spawn): Removed two parameters.
2276 (cilk_install_body_with_frame_cleanup): New prototype.
2277 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2278 CILK_SPAWN_STMT case.
2280 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2282 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2284 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2285 (int_array_type_node): Remove.
2286 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2288 2013-12-05 Marek Polacek <polacek@redhat.com>
2291 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2292 [ADJUST_FIELD_ALIGN].
2294 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2297 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2298 and check field alignment if set.
2299 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2300 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2302 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2303 Marek Polacek <polacek@redhat.com>
2305 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2306 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2308 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2311 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2314 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2317 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2318 goto invalid. If it is error_mark_node, don't issue further
2321 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2323 * c.opt (Wopenmp-simd): New.
2325 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2327 * c-ubsan.h (ubsan_instrument_return): New prototype.
2328 * c-ubsan.c (ubsan_instrument_return): New function.
2330 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2332 * c-common.c: Add required include files from gimple.h.
2333 * c-gimplify.c: Likewise
2336 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2338 * c-common.c (unsafe_conversion_p): Remove use of
2339 EXPR_LOC_OR_HERE macro.
2340 (conversion_warning): Likewise.
2341 (warnings_for_convert_and_check): Likewise.
2342 (warn_for_collisions_1): Likewise.
2343 (shorten_compare): Likewise, and remove use of in_system_header
2344 macro, using the location from the former.
2345 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2346 (cb_def_pragma): Remove use of in_system_header macro.
2347 (lex_string): Likewise.
2348 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2350 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2351 Mike Stump <mikestump@comcast.net>
2352 Richard Sandiford <rdsandiford@googlemail.com>
2354 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2355 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2356 tree_fits_shwi_p or tree_fits_uhwi_p.
2357 (dump_generic_ada_node): Likewise.
2358 * c-format.c (check_format_arg): Likewise.
2359 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2361 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2363 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2365 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2368 * c-common.c (unsafe_conversion_p): Make this function
2369 return an enumeration with more detail.
2370 (conversion_warning): Use the new return type of
2371 unsafe_conversion_p to separately warn either about conversions
2372 that lower floating point number precision or about the other
2373 kinds of conversions.
2374 * c-common.h (enum conversion_safety): New enumeration.
2375 (unsafe_conversion_p): switching return type to
2376 conversion_safety enumeration.
2377 * c.opt: Adding new warning -Wfloat-conversion and
2378 enabling it with -Wconversion.
2380 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2382 * c-opts.c: Include plugin.h.
2383 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2385 2013-11-19 Marek Polacek <polacek@redhat.com>
2387 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2389 (ubsan_instrument_shift): Likewise.
2390 (ubsan_instrument_vla): Likewise.
2392 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2394 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2395 cast to unsigned type.
2397 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2399 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2401 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2402 rather than tree_low_cst.
2404 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2406 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2407 tree_to_uhwi throughout.
2409 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2411 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2412 tree_low_cst (..., 0) with tree_to_shwi throughout.
2414 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2416 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2417 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2419 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2421 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2422 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2424 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2426 * c-cilkplus.c: New file.
2427 * c-common.c (readonly_error): Add location argument.
2428 * c-common.h (readonly_error): Same.
2429 (c_finish_cilk_clauses): Protoize.
2430 (c_check_cilk_loop): Same.
2431 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2432 Do not fail on error_mark_node.
2433 Abstract increment canonicalization to here...
2434 (c_omp_for_incr_canonicalize_ptr): New.
2435 c-pragma.c (init_pragma): Register "simd" pragma.
2436 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2437 (enum pragma_cilk_clause): New.
2439 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2441 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2442 wchar_type and host_integerp checks.
2444 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2446 * c-common.c: Likewise.
2447 * c-gimplify.c: Likewise.
2450 2013-11-14 Diego Novillo <dnovillo@google.com>
2452 * c-common.c: Include fold-const.h.
2453 Include stor-layout.h.
2455 Include stringpool.h.
2458 Include trans-mem.h.
2459 * c-cppbuiltin.c: Include stor-layout.h.
2460 Include stringpool.h.
2461 * c-format.c: Include stringpool.h.
2462 * c-lex.c: Include stringpool.h.
2463 Include stor-layout.h.
2464 * c-pragma.c: Include stringpool.h.
2467 Include gcc-symtab.h.
2468 * c-pretty-print.c: Include stor-layout.h.
2470 * cilk.c: Include stringpool.h.
2473 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2475 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2476 * c-common.c (c_common_reswords): Add __auto_type.
2477 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2479 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2481 * c-common.c: Include gimplify.h.
2482 * c-gimplify.c: Likewise.
2484 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2485 * c-ubsan.c: Don't include gimple.h.
2487 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2489 * c-common.c (c_common_reswords): Add _Thread_local.
2491 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2493 * c-common.c (atomic_size_supported_p): New function.
2494 (resolve_overloaded_atomic_exchange)
2495 (resolve_overloaded_atomic_compare_exchange)
2496 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2497 Use it instead of comparing size with a local list of sizes.
2499 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2500 Joseph Myers <joseph@codesourcery.com>
2502 * c-common.h (enum rid): Add RID_ATOMIC.
2503 * c-common.c (c_common_reswords): Add _Atomic.
2504 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2505 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2506 * c-format.c (check_format_types): Check for extra _Atomic
2507 qualifiers in format argument.
2508 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2509 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2511 2013-11-06 Tobias Burnus <burnus@net-b.de>
2513 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2515 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2517 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2519 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2520 to mean lack of IEEE 754 support.
2522 2013-11-05 Tobias Burnus <burnus@net-b.de>
2524 * c.opt (-Wdate-time): New option
2525 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2527 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2529 * c-cppbuiltin.c (cpp_iec_559_value): Test
2530 flag_excess_precision_cmdline not flag_excess_precision.
2532 2013-11-05 Tobias Burnus <burnus@net-b.de>
2534 * c.opt (fopenmp-simd): New option.
2535 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2536 (omp_pragmas): ... this new struct.
2537 (c_pp_lookup_pragma): Also walk omp_pragmas.
2538 (init_pragma): Init pragmas for -fopenmp-simd.
2540 2013-11-04 Marek Polacek <polacek@redhat.com>
2543 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2545 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2547 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2549 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2551 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2553 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2554 (dump_ada_specs): Adjust prototype of second callback.
2555 * c-ada-spec.c (cpp_check): New global variable.
2556 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2557 (print_generic_ada_decl): Likewise.
2558 (has_static_fields): Change return type to bool and add guard.
2559 (has_nontrivial_methods): New predicate.
2560 (is_tagged_type): Change return type to bool.
2561 (separate_class_package): Call has_nontrivial_methods.
2562 (pp_ada_tree_identifier): Minor tweaks.
2563 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2564 (dump_ada_array_domains): Likewise.
2565 (dump_ada_array_type): Likewise.
2566 (dump_template_types): Remove cpp_check parameter and do not pass it to
2567 dump_generic_ada_node.
2568 (dump_ada_template): Likewise.
2569 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2571 (print_ada_methods): Change return type to integer. Remove cpp_check
2572 parameter and do not pass it down.
2573 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2574 dump_generic_ada_node.
2575 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2577 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2578 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2579 value of print_ada_methods.
2580 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2581 Set cpp_check to it before invoking dump_ada_nodes.
2582 (dump_ada_specs): Likewise.
2584 2013-11-03 Marek Polacek <polacek@redhat.com>
2586 * c-ubsan.c: Don't include hash-table.h.
2587 (ubsan_instrument_vla): New function.
2588 * c-ubsan.h: Declare it.
2590 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2592 Automated part of renaming of symtab_node_base to symtab_node.
2594 Patch autogenerated by rename_symtab.py from
2595 https://github.com/davidmalcolm/gcc-refactoring-scripts
2596 revision 58bb219cc090b2f4516a9297d868c245495ee622
2598 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2599 symtab_node_base to symtab_node.
2601 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2603 Implement C++14 digit separators.
2604 * c-lex.c (interpret_float): Remove digit separators from scratch string
2605 before building real literal.
2607 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2609 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2611 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2613 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2615 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2617 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2618 (insert_cilk_frame): New prototype.
2619 (cilk_init_builtins): Likewise.
2620 (gimplify_cilk_spawn): Likewise.
2621 (c_cilk_install_body_w_frame_cleanup): Likewise.
2622 (cilk_detect_spawn_and_unwrap): Likewise.
2623 (cilk_set_spawn_marker): Likewise.
2624 (build_cilk_sync): Likewise.
2625 (build_cilk_spawn): Likewise.
2628 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2630 Patch autogenerated by refactor_symtab.py from
2631 https://github.com/davidmalcolm/gcc-refactoring-scripts
2632 revision 58bb219cc090b2f4516a9297d868c245495ee622
2634 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2635 to a true class hierarchy.
2636 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2638 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2640 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2642 2013-10-26 Jeff Law <law@redhat.com>
2644 * c-common.c (c_define_builtins): Remove mudflap support.
2645 * c.opt: Ignore and warn for mudflap options.
2647 2013-10-24 Tobias Burnus <burnus@net-b.de>
2650 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2651 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2653 2013-10-23 Jason Merrill <jason@redhat.com>
2655 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2657 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2659 * c-common.h (omp_clause_mask::operator !=): New method.
2660 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2661 instead of if (mask & something) tests everywhere.
2663 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2664 201307 instead of 201107.
2665 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2666 (c_common_attribute_table): Add "omp declare target" and
2667 "omp declare simd" attributes.
2668 (handle_omp_declare_target_attribute,
2669 handle_omp_declare_simd_attribute): New functions.
2670 * c-omp.c: Include c-pragma.h.
2671 (c_finish_omp_taskgroup): New function.
2672 (c_finish_omp_atomic): Add swapped argument, if true,
2673 build the operation first with rhs, lhs arguments and use NOP_EXPR
2675 (c_finish_omp_for): Add code argument, pass it down to make_code.
2676 (c_omp_split_clauses): New function.
2677 (c_split_parallel_clauses): Removed.
2678 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2679 c_omp_declare_simd_clauses_to_decls): New functions.
2680 * c-common.h (omp_clause_mask): New type.
2681 (OMP_CLAUSE_MASK_1): Define.
2682 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2683 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2684 omp_clause_mask::operator |, omp_clause_mask::operator &,
2685 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2686 omp_clause_mask::operator ==): New methods.
2687 (enum c_omp_clause_split): New.
2688 (c_finish_omp_taskgroup): New prototype.
2689 (c_finish_omp_atomic): Add swapped argument.
2690 (c_finish_omp_for): Add code argument.
2691 (c_omp_split_clauses): New prototype.
2692 (c_split_parallel_clauses): Removed.
2693 (c_omp_declare_simd_clauses_to_numbers,
2694 c_omp_declare_simd_clauses_to_decls): New prototypes.
2695 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2696 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2697 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2698 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2699 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2700 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2701 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2702 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2703 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2704 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2705 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2706 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2707 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2708 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2709 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2710 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2711 PRAGMA_OMP_CLAUSE_UNIFORM.
2713 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2715 PR tree-optimization/20318
2716 * c-common.c (handle_returns_nonnull_attribute): New function.
2717 (c_common_attribute_table): Add returns_nonnull.
2719 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2722 * c.opt (fcheck-new): Move to common.opt.
2724 2013-09-25 Marek Polacek <polacek@redhat.com>
2725 Jakub Jelinek <jakub@redhat.com>
2728 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2729 an expression if we can prove it is correct.
2730 (ubsan_instrument_division): Likewise. Remove unnecessary
2733 2013-09-18 Marek Polacek <polacek@redhat.com>
2736 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2738 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2740 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2743 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2744 fobjc-gc, freplace-objc-classes): Accept for LTO.
2746 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2748 * c-target.def: New hook
2750 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2753 * c.opt (Wdelete-incomplete): Add.
2755 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2757 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2758 (vector_types_compatible_elements_p): New function.
2759 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2761 (vector_types_compatible_elements_p): Declare.
2763 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2765 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2766 a virtual member function.
2767 (pp_simple_type_specifier): Remove.
2768 (pp_c_type_specifier): Likewise.
2769 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2770 Rename from pp_c_type_specifier. Adjust.
2771 (c_pretty_printer::c_pretty_printer): Do not assign to
2772 simple_type_specifier.
2774 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2776 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2778 (c_pretty_printer::storage_class_specifier): Likewise.
2779 (c_pretty_printer::initializer): Likewise.
2780 (pp_declaration): Remove.
2781 (pp_declaration_specifiers): Likewise.
2782 (pp_abstract_declarator): Likewise.
2783 (pp_declarator): Likewise.
2784 (pp_type_id): Likewise.
2785 (pp_statement): Likewise.
2786 (pp_constant): Likewise.
2787 (pp_id_expression): Likewise.
2788 (pp_primary_expression): Likewise.
2789 (pp_unary_expression): Likewise.
2790 (pp_multiplicative_expression): Likewise.
2791 (pp_conditional_expression): Likewise.
2792 (pp_assignment_expression): Likewise.
2793 (pp_expression): Likewise.
2794 (pp_c_type_id): Likewise.
2795 (pp_c_storage_class_specifier): Likewise.
2796 * c-pretty-print.c (pp_c_type_cast): Tidy.
2797 (pp_c_pointer): Likewise.
2798 (pp_c_type_specifier): Likewise.
2799 (pp_c_parameter_type_list): Likewise.
2800 (pp_c_function_definition): Likewise.
2801 (pp_c_init_declarator): Likewise.
2802 (pp_c_initializer_list): Likewise.
2803 (pp_c_constructor_elts): Likewise.
2804 (c_pretty_printer::direct_abstract_declarator): Likewise.
2805 (c_pretty_printer::declaration_specifiers): Likewise.
2806 (c_pretty_printer::primary_expression): Likewise.
2807 (c_pretty_printer::postfix_expression): Likewise.
2808 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2809 (c_pretty_printer::storage_class_specifier): Rename from
2810 pp_c_storage_class_specifier.
2811 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2812 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2813 storage_class_specifier, initializer, offset_list, flags.
2815 2013-08-30 Marek Polacek <polacek@redhat.com>
2817 * c-ubsan.c: New file.
2818 * c-ubsan.h: New file.
2820 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2822 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2824 (c_pretty_printer::declaration_specifiers): Likewise.
2825 (c_pretty_printer::declarator): Likewise.
2826 (c_pretty_printer::abstract_declarator): Likewise.
2827 (c_pretty_printer::direct_abstract_declarator): Likewise.
2828 (c_pretty_printer::direct_declarator): Likewise.
2829 (c_pretty_printer::function_specifier): Likewise.
2830 (pp_declaration): Adjust.
2831 (pp_declaration_specifiers): Likewise.
2832 (pp_abstract_declarator): Likewise.
2833 (pp_direct_declarator): Likewise.
2834 (pp_function_specifier): Likewise.
2835 (pp_direct_abstract_declarator): Remove as unused.
2836 (pp_c_declaration): Remove.
2837 (pp_c_declaration_specifiers): Likewise.
2838 (pp_c_declarator): Likewise.
2839 (pp_c_direct_declarator): Likewise.
2840 (pp_c_function_specifier): Likewise.
2841 (pp_c_direct_abstract_declarator): Likewise.
2842 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2843 from pp_c_abstract_declarator. Adjust.
2844 (c_pretty_printer::direct_abstract_declarator): Rename from
2845 pp_c_direct_abstract_declarator. Adjust.
2846 (c_pretty_printer::function_specifier): Rename from
2847 pp_c_function_specifier. Adjust.
2848 (c_pretty_printer::declaration_specifiers): Rename from
2849 pp_c_declaration_specifiers. Adjust.
2850 (c_pretty_printer::direct_declarator): Rename from
2851 pp_c_direct_declarator. Adjust.
2852 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2853 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2854 (c_pretty_printer::c_pretty_printer): Do not assign to
2855 declaration, declaration_specifiers, declarator,
2856 direct_declarator, direct_abstract_declarator, function_specifier.
2858 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2860 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2861 virtual member function.
2862 (c_pretty_printer::multiplicative_expression): Likewise.
2863 (c_pretty_printer::conditional_expression): Likewise.
2864 (c_pretty_printer::assignment_expression): Likewise.
2865 (c_pretty_printer::expression): Likewise.
2866 (pp_unary_expression): Adjust.
2867 (pp_multiplicative_expression): Likewise.
2868 (pp_assignment_expression): Likewise.
2869 (pp_conditional_expression): Likewise.
2870 (pp_expression): Likewise.
2871 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2872 from pp_c_unary_expression. Adjust.
2873 (c_pretty_printer::multiplicative_expression): Rename from
2874 pp_c_multiplicative_expression. Adjust.
2875 (c_pretty_printer::conditional_expression): Rename from
2876 pp_c_conditional_expression. Adjust.
2877 (c_pretty_printer::assignment_expression): Rename from
2878 pp_c_assignment_expression. Adjust.
2879 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2880 (c_pretty_printer::c_pretty_printer): Do not assign to
2881 unary_expression, multiplicative_expression,
2882 conditional_expression, expression.
2884 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2886 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2887 virtual member function.
2888 (pp_postfix_expression): Adjust.
2889 (pp_c_postfix_expression): Remove.
2890 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2891 from pp_c_postfix_expression. Adjust.
2892 (c_pretty_printer::c_pretty_printer): Do not assign to
2895 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2897 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2898 virtua member function.
2899 (pp_primary_expression): Adjust.
2900 (pp_c_primary_expression): Remove.
2901 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2902 from pp_c_primary_expression. Adjust.
2903 (pp_c_initializer_list): Use pp_primary_expression.
2904 (c_pretty_printer::c_pretty_printer): Do not assign to
2907 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2909 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2910 * c-pretty-print.c (M_): Remove.
2911 (c_pretty_printer::translate_string): Define.
2912 (pp_c_type_specifier): Use it.
2913 (pp_c_primary_expression): Likewise.
2914 (pp_c_expression): Likewise.
2916 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2918 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2920 (pp_c_id_expression): Remove.
2921 (pp_id_expression): Adjust.
2922 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2923 pp_c_id_expression. Adjust.
2924 (pp_c_postfix_expression): Use pp_id_expression.
2925 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2927 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2929 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2931 (pp_constant): Adjust.
2932 (pp_c_constant): Remove.
2933 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2934 pp_c_constant. Adjust.
2936 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2937 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2939 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2941 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2942 (c_pretty_printer::c_pretty_printer): Declare.
2943 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2944 c_pretty_printer_init. Adjust.
2945 (print_c_tree): Do not call c_pretty_printer_init.
2946 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2948 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2950 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2952 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2955 * c-common.c (pointer_int_sum): Add bool parameter.
2956 * c-common.h (pointer_int_sum): Adjust declaration.
2958 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2960 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2961 c_pretty_printer variable.
2963 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2965 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2967 (pp_c_base): Likewise. Adjust users.
2968 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2969 (pp_c_whitespace): Do not call pp_base.
2970 (pp_c_left_paren): Likewise.
2971 (pp_c_right_paren): Likewise.
2972 (pp_c_left_brace): Likewise.
2973 (pp_c_right_brace): Likewise.
2974 (pp_c_left_bracket): Likewise.
2975 (pp_c_right_bracket): Likewise.
2976 (pp_c_dot): Likewise.
2977 (pp_c_ampersand): Likewise.
2978 (pp_c_star): Likewise.
2979 (pp_c_arrow): Likewise.
2980 (pp_c_semicolon): Likewise.
2981 (pp_c_complement): Likewise.
2982 (pp_c_exclamation): Likewise.
2983 (pp_c_direct_declarator): Likewise.
2984 (pp_c_ws_string): Likewise.
2985 (pp_c_identifier): Likewise.
2986 (pp_c_statement): Likewise.
2987 (print_c_tree): Likewise.
2989 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2992 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2993 provide useful error strings.
2995 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2997 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2998 printer functions instead of pp_string or operators and punctuators.
2999 (dump_generic_ada_node): Likewise.
3000 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3001 (pp_c_relational_expression): Likewise.
3002 (pp_c_logical_or_expression): Likewise.
3004 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3006 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3007 functions instead of pp_character.
3008 (pp_ada_tree_identifier): Likewise.
3009 (dump_ada_double_name): Likewise.
3010 (dump_ada_function_declaration): Likewise.
3011 (dump_ada_array_domains): Likewise.
3012 (dump_template_types): Likewise.
3013 (dump_generic_ada_node): Likewise.
3014 (print_ada_declaration): Likewise.
3015 (print_ada_struct_decl): Likewise.
3016 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3018 2013-07-23 Tom Tromey <tromey@redhat.com>
3020 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3021 * c-common.c (c_common_reswords): Add _Generic.
3023 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3025 * c-common.c: Fix typos.
3026 * c-common.h: Likewise.
3028 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3031 * c-common.c (c_common_attribute_table): Add warn_unused.
3032 (handle_warn_unused_attribute): New.
3034 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3036 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3037 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3039 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3042 * c.opt: Add Wconditionally-supported.
3044 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3046 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3047 unused variables l_length and l_node.
3049 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3052 * c-common.c (complete_array_type): Delay folding first index
3053 like other indices. When folding, check for index overflow.
3055 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3058 * c-common.h (c_build_vec_perm_expr): New complain argument.
3059 * c-common.c (c_build_vec_perm_expr): Likewise.
3060 Use save_expr also in C++.
3062 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3064 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3065 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3066 * c-opts.c (c_common_post_options): Likewise.
3068 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3070 * array-notation-common.c (length_mismatch_in_expr): Changed the
3071 parameter type's from a dynamic array to a vec_tree. Also removed
3072 the size parameters.
3073 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3076 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3078 * c-common.h (struct cilkplus_an_parts): New structure.
3079 (struct cilkplus_an_loop_parts): Likewise.
3080 (cilkplus_extract_an_triplets): New prototype.
3081 (fix_sec_implicit_args): Likewise.
3082 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3083 (fix_sec_implicit_args): Likewise.
3085 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3087 * array-notation-common.c (find_inv_trees): Removed an unwanted
3089 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3090 enum rid to enum tree_code.
3092 2013-06-11 Jan Hubicka <jh@suse.cz>
3094 * c-common.c (handle_alias_ifunc_attribute): Do not set
3095 DECL_EXTERNAL for weakref variables.
3096 * c-pragma.c (handle_pragma_weak): Make sure aliases
3097 are not declared as external.
3099 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3101 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3102 function from c/c-array-notation.c.
3103 (is_cilkplus_reduce_builtin): Likewise.
3104 (find_rank): Likewise.
3105 (extract_array_notation_exprs): Likewise.
3106 (replace_array_notations): Likewise.
3107 (find_inv_trees): Likewise.
3108 (replace_inv_trees): Likewise.
3109 (contains_array_notation_expr): Likewise.
3110 (find_correct_array_notation_type): Likewise.
3111 * c-common.h (struct inv_list): Moved this struct from the file
3112 c/c-array-notation.c and added a new field called additional tcodes.
3113 (length_mismatch_in_expr_p): New prototype.
3114 (is_cilkplus_reduce_builtin): Likewise.
3115 (find_rank): Likewise.
3116 (extract_array_notation_exprs): Likewise.
3117 (replace_array_notation): Likewise.
3118 (find_inv_trees): Likewise.
3119 (replace_inv_trees): Likewise.
3120 (find_correct_array_notation_type): Likewise.
3122 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3124 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3125 function array_notation_init_builtins is called.
3126 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3127 * c-common.def (ARRAY_NOTATION_REF): New tree.
3128 * c-common.h (build_array_notation_expr): New function declaration.
3129 (build_array_notation_ref): Likewise.
3130 (extract_sec_implicit_index_arg): New extern declaration.
3131 (is_sec_implicit_index_fn): Likewise.
3132 (ARRAY_NOTATION_CHECK): New define.
3133 (ARRAY_NOTATION_ARRAY): Likewise.
3134 (ARRAY_NOTATION_START): Likewise.
3135 (ARRAY_NOTATION_LENGTH): Likewise.
3136 (ARRAY_NOTATION_STRIDE): Likewise.
3137 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3139 (pp_c_expression): Likewise.
3140 * c.opt (flag_enable_cilkplus): New flag.
3141 * array-notation-common.c: New file.
3143 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3146 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3148 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3150 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3153 2013-05-07 Han Shen <shenhan@google.com>
3155 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3157 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3159 * c-common.c (check_user_alignment): Emit error for negative values.
3161 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3163 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3165 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3167 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3168 __GXX_EXPERIMENTAL_CXX1Y__.
3170 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3171 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3173 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3174 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3175 to simply use OPT_Wpointer_arith.
3176 (c_sizeof_or_alignof_type): Likewise.
3178 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3180 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3182 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3184 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3185 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3188 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3190 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3192 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3194 * c-common.c (pointer_int_sum): Remove dead code.
3196 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3199 * c-common.c (handle_optimize_attribute): Don't call
3200 save_optabs_if_changed.
3202 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3205 * c-pch.c (pch_init): Free target_validity at the end.
3207 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3209 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3211 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3212 Jakub Jelinek <jakub@redhat.com>
3215 * c-common.c (handle_no_sanitize_address_attribute): New function.
3216 (c_common_attribute_table): Add no_sanitize_address attribute.
3217 (handle_no_address_safety_analysis_attribute): Add
3218 no_sanitize_address attribute, not no_address_safety_analysis
3221 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3224 * c-common.c (handle_optimize_attribute): Call
3225 save_optabs_if_changed.
3227 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3228 Steven Bosscher <steven@gcc.gnu.org>
3231 * c-opts.c (c_common_post_options): If debug info is enabled
3232 and non-dwarf*, refuse to load PCH files and when writing PCH
3235 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3238 * c-common.c (handle_error_attribute): Fix condition.
3240 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3243 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3245 2013-01-18 Jason Merrill <jason@redhat.com>
3248 * c.opt (-fextern-tls-init): New.
3249 * c-opts.c (c_common_post_options): Handle it.
3251 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3254 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3255 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3256 and is either negative or bigger or equal to type precision
3257 of the first operand.
3259 2012-12-03 Marek Polacek <polacek@redhat.com>
3262 * c-common.c (check_user_alignment): Swap order of tests,
3263 check TREE_CODE first.
3265 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3268 * c-common.h (overflow_type): New enum.
3269 (build_userdef_literal): Add overflow_type argument.
3270 (tree_userdef_literal): Add overflow_type.
3271 (USERDEF_LITERAL_OVERFLOW): New access macro.
3272 * c-common.c (build_userdef_literal): Add overflow_type
3274 * c-lex.c (c_lex_with_flags): Add overflow_type to
3275 build_userdef_literal calls.
3276 (interpret_integer, interpret_float): Add overflow_type argument.
3278 2012-11-28 Richard Biener <rguenther@suse.de>
3281 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3282 here and use a type with proper overflow behavior for types that would
3283 need to be promoted for the arithmetic.
3285 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3288 * c-common.c (handle_no_address_safety_analysis_attribute): New
3290 (c_common_attribute_table): Add no_address_safety_analysis.
3292 2012-11-16 Simon Baldwin <simonb@google.com>
3294 * c.opt: Add f[no-]canonical-system-headers.
3295 * c-opts.c (c_common_handle_option): Handle
3296 OPT_fcanonical_system_headers.
3298 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3301 * c-opts.c (c_common_handle_option): Set new flags.
3302 * c.opt: Describe new flags.
3304 2012-11-09 Jason Merrill <jason@redhat.com>
3306 * c.opt (Wabi-tag): New.
3308 2012-11-09 Andi Kleen <ak@linux.intel.com>
3311 * c-common.c (get_atomic_generic_size): Mask with
3314 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3317 * c.opt (Wformat): Make it Alias Wformat=1.
3318 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3319 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3321 (Wformat=): RejectNegative. Use LangEnabledBy.
3322 (Wnonnull): Use LangEnabledBy.
3323 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3324 * c-format.c (set_Wformat): Delete.
3325 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3326 (maybe_read_dollar_number): Likewise.
3327 (avoid_dollar_number): Likewise.
3328 (finish_dollar_format_checking): Likewise.
3329 (check_format_info): Likewise.
3330 (check_format_info_main): Likewise.
3331 (check_format_types): Likewise.
3332 (format_type_warning): Likewise.
3333 * c-common.c (int): Likewise.
3334 (check_function_sentinel): Likewise.
3335 * c-common.h (warn_format,set_Wformat): Do not declare here.
3337 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3340 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3341 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3343 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3345 (Wvariadic-macros): Init(1).
3346 * c-opts.c (c_common_handle_option): Do not handle them
3348 (c_common_post_options): Likewise.
3349 (sanitize_cpp_opts): warn_unused_macros is now
3350 cpp_warn_unused_macros.
3351 (push_command_line_include): Likewise.
3352 * c-common.c (warn_unknown_pragmas): Do not define.
3353 * c-common.h (warn_unknown_pragmas): Do not declare.
3355 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3358 * c-common.c (conversion_warning): Handle conditional expressions.
3360 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3363 * c.opt (Wreturn_local_addr): Define new option.
3365 2012-10-25 Jason Merrill <jason@redhat.com>
3367 * c.opt (Wvirtual-move-assign): New.
3369 * c.opt (Winherited-variadic-ctor): New.
3371 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3374 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3376 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3378 * c-common.h (pch_cpp_save_state): Declare.
3379 * c-target.def (c_preinclude): New hook.
3380 * c-opts.c (done_preinclude): New.
3381 (push_command_line_include): Handle default preincluded header.
3382 (cb_file_change): Call pch_cpp_save_state when calling
3383 push_command_line_include.
3384 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3385 (pch_cpp_save_state): New.
3386 (pch_init): Call pch_cpp_save_state conditionally, instead of
3387 calling cpp_save_state.
3389 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3393 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3394 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3395 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3396 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3397 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3398 * c-opts.c (c_common_handle_option): Remove explicit handling from
3400 (c_common_post_options): Likewise.
3402 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3404 * c-ada-spec.c (LOCATION_COL): Delete.
3405 (compare_location): New function.
3406 (compare_node): Use it.
3407 (compare_comment): Likewise.
3409 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3413 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3414 * c-opts.c (c_common_handle_option): Do not set them here. Add
3416 (c_common_post_options): Likewise.
3418 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3420 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3421 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3422 Remove POINTER_TYPE handling, add large unsigned handling and use
3423 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3425 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3428 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3429 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3430 locs and array of 3 trees instead of just single loc and single
3431 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3432 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3433 For *cmp* builtins that take two sources strings report warnings
3434 about first and second source, not about destination and source.
3436 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3439 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3441 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3443 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3444 declaring something coming from another file.
3446 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3449 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3451 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3454 * c-common.c (warn_about_parentheses): Add location_t parameter;
3455 use EXPR_LOC_OR_LOC.
3456 * c-common.h: Update declaration.
3458 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3461 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3462 more operations. Make error messages optional.
3463 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3464 (scalar_to_vector): Declare.
3466 2012-10-08 Jason Merrill <jason@redhat.com>
3468 * c-common.c (c_common_reswords): Add thread_local.
3470 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3472 PR c++/53528 C++11 attribute support
3473 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3475 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3477 (handle_aligned_attribute): In choose strictest alignment
3478 among many. Use new check_cxx_fundamental_alignment_constraints.
3479 (handle_transparent_union_attribute): In c++11 attribute syntax,
3480 don't look through typedefs.
3482 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3484 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3485 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3488 2012-09-25 Dehao Chen <dehao@google.com>
3491 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3492 map when read in the pch.
3494 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3496 * c-ada-spec.c: Style fixes.
3498 2012-09-18 Thomas Quinot <quinot@adacore.com>
3500 * c.opt (-fada-spec-parent): Define new command line switch.
3501 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3502 is specified, generate binding spec as a child of the specified unit.
3504 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3505 Manuel López-Ibáñez <manu@gcc.gnu.org>
3508 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3510 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3512 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3513 for pointers, and add missing Convention C pragma.
3514 (print_ada_struct_decl): Add missing aliased keyword.
3515 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3517 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3519 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3520 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3521 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3522 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3523 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3525 2012-08-10 Richard Guenther <rguenther@suse.de>
3527 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3529 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3531 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3532 instead of separate pp_newline and pp_flush.
3533 (print_c_tree): Likewise.
3535 2012-07-26 Richard Henderson <rth@redhat.com>
3537 * c-common.c (handle_hot_attribute): Allow labels.
3538 (handle_cold_attribute): Likewise.
3540 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3543 * c-common.c (check_function_nonnull): Handle multiple nonnull
3544 attributes properly.
3546 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3548 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3549 * c-ada-spec.c: Likewise.
3550 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3552 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3554 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3555 Remove code conditional on it.
3557 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3559 * c-gimplify.c: Do not include basic-block.h.
3560 * c-common.c: Do not include linfuncs.h.
3562 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3564 * c-common.h: Include tree.h.
3566 2012-07-02 Jason Merrill <jason@redhat.com>
3569 * c-common.c (get_priority): Call default_conversion.
3571 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3573 * c-pch.c (c_common_write_pch): Remove unused variables.
3575 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3577 * cppspec.c: Moved from gcc/ to here.
3579 2012-06-27 Kai Tietz <ktietz@redhat.com>
3581 PR preprocessor/37215
3582 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3584 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3586 * c-common.h (c_common_print_pch_checksum): Remove.
3587 * c-pch.c: Do not include output.h.
3588 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3589 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3590 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3591 (struct c_pch_header): Remove.
3592 (get_ident): Update gpch version.
3593 (pch_init): Do not print executable_checksum to asm_out_file.
3594 Do not fail if there is no asm_out_file to read back from. Set
3595 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3596 (c_common_write_pch): Verify that nothing was written to asm_out_file
3597 since pch_init was called. Do not write a c_pch_header, and do not
3598 copy from asm_out_file to the PCH.
3599 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3600 the content of asm_out_file from the PCH.
3601 (c_common_print_pch_checksum): Remove.
3602 * c-opts.c (c_common_init): Print out executable_checksum directly.
3604 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3606 * c-target.def (objc_declare_unresolved_class_reference,
3607 objc_declare_class_definition): Add new hooks.
3609 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3611 * c-lex.c: Do not include output.h.
3612 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3613 Remove uses of ASM_OUTPUT_IDENT.
3615 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3618 * c-common.h (c_build_vec_perm_expr): Move decl here.
3619 * c-common.c (c_build_vec_perm_expr): Move definition
3622 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3624 * c.opt (fconserve-space): Turn into a no-op.
3626 2012-06-04 Sterling Augustine <saugustine@google.com>
3628 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3629 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3630 both the start and end of the function.
3632 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3634 * c-common.c: Do not include output.h.
3635 * c-pragma.c: Likewise.
3637 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3639 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3640 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3641 (lang_decl_name): Handle namespace decls.
3643 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3645 * c-ada-spec.c: Do not include output.h.
3646 * c-semantics.c: Likewise.
3648 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3650 * c-common.c: Fix typo.
3652 2012-05-29 Michael Matz <matz@suse.de>
3654 * c-common.h (c_expand_decl): Remove prototype.
3656 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3658 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3659 * c-opts.c (c_common_handle_option): Remove code handling
3660 warn_missing_braces.
3662 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3665 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3668 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3671 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3673 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3675 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3676 * c-opts.c (c_common_handle_option): Do not handle explicitly
3677 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3679 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3681 PR preprocessor/7263
3682 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3683 to cpp_classify_number. For diagnostics, use the precise location
3684 instead of the global input_location.
3686 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3689 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3691 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3693 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3695 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3698 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3699 Wreorder): Use LangEnabledBy.
3700 * c-opts.c (c_common_handle_option): Do not enable them
3701 explicitly. Call lang-specific generated functions.
3702 (c_common_post_options): Do not set them here.
3704 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3706 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3707 Wmissing-field-initializers,Wmissing-parameter-type,
3708 Wold-style-declaration,Woverride-init): Use EnabledBy.
3709 * c-opts.c (c_common_post_options): Do not set here explicitly.
3711 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3714 * c-opts.c (c_common_handle_option): Use handle_generated_option
3715 to enable sub-options.
3717 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3720 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3722 2012-05-10 Richard Guenther <rguenther@suse.de>
3724 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3725 adjust commentary about TYPE_IS_SIZETYPE types.
3727 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3730 * c-common.c (warn_logical_operator): Check that argument of
3731 integer_zerop is not NULL.
3733 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3736 * c-common.c (warn_logical_operator): Do not warn if either side
3737 is already true or false.
3739 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3742 * c-common.c (expr_original_type): New.
3743 (shorten_compare): Do not warn for enumeration types.
3745 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3747 * c.opt (fpermissive): Add Var(flag_permissive).
3749 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3752 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3753 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3755 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3757 Add -Wvarargs option
3758 * c.opt (Wvarargs): Define new option.
3760 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3762 * c-common.c (check_function_arguments): Replace
3763 Wmissing-format-attribute with Wsuggest-attribute=format.
3765 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3767 * c.opt (Wsuggest-attribute=format): New. Alias of
3768 Wmissing-format-attribute.
3769 * c-format.c (decode_format_type): Replace
3770 Wmissing-format-attribute with Wsuggest-attribute=format.
3771 (check_function_format): Likewise.
3773 2012-04-27 Ollie Wild <aaw@google.com>
3775 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3776 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3777 * c.opt: Add Wliteral-suffix.
3779 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3782 * c.opt (Wpedantic): New.
3783 (pedantic): Alias Wpedantic.
3784 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3785 (c_common_post_options): Likewise.
3786 (sanitize_cpp_opts): Likewise.
3787 * c-lex.c (interpret_float): Likewise.
3788 * c-format.c (check_format_types): Likewise.
3789 * c-common.c (pointer_int_sum): Likewise.
3790 (c_sizeof_or_alignof_type): Likewise.
3791 (c_add_case_label): Likewise.
3792 (c_do_switch_warnings): Likewise.
3793 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3795 2012-04-15 Jason Merrill <jason@redhat.com>
3798 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3799 (C_STD_NAME): Distinguish between C++98 and C++11.
3801 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3804 * c-common.h (uint16_type_node): Rename into...
3805 (c_uint16_type_node): ...this.
3806 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3807 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3809 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3811 * c-common.c (warn_if_unused_value): Move definition to here.
3812 * c-common.h (warn_if_unused_value): Move declaration to here.
3814 2012-03-23 William Bader <williambader@hotmail.com>
3816 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3818 2012-03-20 Jason Merrill <jason@redhat.com>
3820 * c-common.h (enum cxx_dialect): Add cxx1y.
3821 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3823 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3824 * c-opts.c (c_common_post_options): Likewise.
3825 (set_std_cxx1y): New.
3826 (c_common_handle_option): Call it.
3827 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3829 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3832 * c.opt ([Wuseless-cast]): Add.
3834 2012-03-16 Richard Guenther <rguenther@suse.de>
3836 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3838 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3841 * c.opt (ftemplate-backtrace-limit) Add.
3843 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3845 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3847 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3848 (init_pragma): Don't register extern_prefix.
3850 2012-03-12 Richard Guenther <rguenther@suse.de>
3852 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3853 (builtin_type_for_size): Likewise.
3855 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3858 * c-common.c (sync_resolve_params): Don't decide whether to convert
3859 or not based on TYPE_SIZE comparison, convert whenever arg_type
3860 is unsigned INTEGER_TYPE.
3862 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3865 * c.opt ([Wunused-local-typedefs]): Fix description.
3867 2012-01-24 Mike Stump <mikestump@comcast.net>
3869 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3872 2012-01-18 Richard Guenther <rguenther@suse.de>
3874 * c-opts.c (c_common_post_options): Reset LTO flags if
3875 we are about to generate a PCH.
3877 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3880 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3881 use pp_unsigned_wide_integer.
3883 2012-01-10 Richard Guenther <rguenther@suse.de>
3886 * c-opts.c (c_common_handle_option): Move -Werror handling
3887 to language independent code.
3889 2012-01-05 Richard Guenther <rguenther@suse.de>
3892 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3895 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3898 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3899 of array types with an unknown bound.
3901 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3903 * c-common.c (flag_isoc99): Update comment to refer to C11.
3904 (flag_isoc1x): Change to flag_isoc11.
3905 * c-common.h (flag_isoc99): Update comment to refer to C11.
3906 (flag_isoc1x): Change to flag_isoc11.
3907 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3909 * c-opts.c (set_std_c1x): Change to set_std_c11.
3910 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3912 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3913 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3914 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3916 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3917 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3918 (std=gnu1x): Make alias of std=gnu11.
3920 2011-12-19 Jason Merrill <jason@redhat.com>
3923 * c-common.c (handle_transparent_union_attribute): Check the first
3924 field if the type is complete.
3926 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3929 * c-common.c (RID_IS_FINAL): Add.
3930 * c-common.h (RID_IS_FINAL): Add.
3932 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3934 * c.opt (fgnu-runtime): Provide full description.
3935 (fnext-runtime): Likewise.
3936 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3938 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3940 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3941 predefines in one place. Add LOCK_FREE predefines.
3942 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3945 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3948 * c-common.c (get_atomic_generic_size): Check for various error
3950 (resolve_overloaded_atomic_exchange,
3951 resolve_overloaded_atomic_compare_exchange,
3952 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3953 error_mark_node for error conditions.
3955 2011-11-08 Richard Guenther <rguenther@suse.de>
3960 2011-11-07 Richard Henderson <rth@redhat.com>
3961 Aldy Hernandez <aldyh@redhat.com>
3962 Torvald Riegel <triegel@redhat.com>
3964 Merged from transactional-memory.
3966 * c-common.c (handle_tm_wrap_attribute,
3967 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3968 (struct c_common_reswords): Added __transaction* keywords.
3969 (struct c_common_attribute_table): Added transaction* and tm_regparm
3971 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3973 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3974 find_tm_attribute): Declare.
3976 2011-11-07 Jason Merrill <jason@redhat.com>
3979 * c-common.c, c-common.h: Revert yesterday's changes.
3981 2011-11-06 Jason Merrill <jason@redhat.com>
3984 * c-common.c (decl_has_visibility_attr): Split out from...
3985 (c_determine_visibility): ...here.
3986 * c-common.h: Declare it.
3988 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3990 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3991 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3993 (check_user_alignment): New. Split out of
3994 handle_aligned_attribute. Disallow integer constants with
3995 noninteger types. Conditionally allow zero.
3996 (handle_aligned_attribute): Use check_user_alignment.
3997 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3999 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4000 Richard Henderson <rth@redhat.com>
4002 Merged from cxx-mem-model.
4004 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4005 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4006 parameters that are the same type size.
4007 (get_atomic_generic_size): New. Find size of generic
4008 atomic function parameters and do typechecking.
4009 (add_atomic_size_parameter): New. Insert size into parameter list.
4010 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4011 either __atomic_exchange_n or external library call.
4012 (resolve_overloaded_atomic_compare_exchange): Restructure
4013 __atomic_compare_exchange to either _n variant or external library call.
4014 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4015 __atomic_load_n or an external library call.
4016 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4017 __atomic_store_n or an external library call.
4018 (resolve_overloaded_builtin): Handle new __atomic builtins.
4020 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4023 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4024 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4025 <INDIRECT_REF>: Return the argument.
4026 <ARRAY_REF>: Remove special code for negative offset.
4027 Call fold_build_pointer_plus instead of size_binop.
4028 (fold_offsetof): Remove STOP_REF argument and adjust.
4029 * c-common.h (fold_offsetof_1): Declare.
4030 (fold_offsetof): Remove STOP_REF argument.
4032 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4035 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4036 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4037 Wnarrowing for C++0x and C++98.
4038 * c.opt ([Wnarrowing]): Update.
4040 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4043 * c.opt: Add Wzero-as-null-pointer-constant.
4045 2011-10-31 Jason Merrill <jason@redhat.com>
4047 * c.opt (-fdeduce-init-list): Off by default.
4050 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4051 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4053 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4055 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4058 * c.opt (fvisibility-inlines-hidden): Description change.
4060 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4062 Implement C++11 user-defined literals.
4063 * c-common.c (build_userdef_literal): New.
4064 * c-common.def: New tree code.
4065 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4066 * c-lex.c (interpret_float): Add suffix parm.
4067 (c_lex_with_flags): Build literal tokens.
4069 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4073 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4076 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4077 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4078 Wnarrowing for C++0x and C++98.
4079 * c.opt ([Wnarrowing]): Update.
4081 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4084 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4085 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4086 Wnarrowing for C++0x and C++98.
4087 * c.opt ([Wnarrowing]): Update.
4089 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4092 * c-common.c (conversion_warning): Remove code looking for
4093 artificial operands.
4095 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4098 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4099 !NO_IMPLICIT_EXTERN_C.
4101 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4103 * c-common.c (c_common_reswords): Add __bases,
4105 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4107 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4110 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4112 2011-10-15 Tom Tromey <tromey@redhat.com>
4113 Dodji Seketeli <dodji@redhat.com>
4115 * c.opt (fdebug-cpp): New option.
4116 * c-opts.c (c_common_handle_option): Handle the option.
4117 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4118 output stream in parameter. Factorized from ...
4119 (maybe_print_line): ... this. Dump location debug information when
4120 -fdebug-cpp is in effect.
4121 (print_line_1): New static function. Takes an output stream in
4122 parameter. Factorized from ...
4123 (print_line): ... here. Dump location information when -fdebug-cpp
4125 (scan_translation_unit): Dump location information when
4126 -fdebug-cpp is in effect.
4128 2011-10-15 Tom Tromey <tromey@redhat.com>
4129 Dodji Seketeli <dodji@redhat.com>
4131 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4133 * c-opts.c (c_common_handle_option)<case
4134 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4135 cases. Handle -ftrack-macro-expansion with and without argument.
4137 2011-10-15 Tom Tromey <tromey@redhat.com>
4138 Dodji Seketeli <dodji@redhat.com>
4140 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4141 (print_line, cb_define, do_line_change): Adjust to avoid touching
4142 the internals of struct line_map. Use the public API instead.
4143 * c-pch.c (c_common_read_pch): Likewise.
4144 * c-lex.c (fe_file_change): Likewise.
4146 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4149 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4151 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4154 * c-pretty-print.c (pp_c_floating_constant): Output
4155 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4157 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4159 * c-common.c (def_builtin_1): Delete old interface with two
4160 parallel arrays to hold standard builtin declarations, and replace
4161 it with a function based interface that can support creating
4162 builtins on the fly in the future. Change all uses, and poison
4163 the old names. Make sure 0 is not a legitimate builtin index.
4164 * c-omp.c (c_finish_omp_barrier): Ditto.
4165 (c_finish_omp_taskwait): Ditto.
4166 (c_finish_omp_flush): Ditto.
4168 2011-10-11 Tristan Gingold <gingold@adacore.com>
4170 * c.opt: (fallow-parameterless-variadic-functions): New.
4172 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4174 PR c++/33255 - Support -Wunused-local-typedefs warning
4175 * c-common.h (struct c_language_function::local_typedefs): New
4177 (record_locally_defined_typedef, maybe_record_typedef_use)
4178 (maybe_warn_unused_local_typedefs): Declare new functions.
4179 * c-common.c (record_locally_defined_typedef)
4180 (maybe_record_typedef_use)
4181 (maybe_warn_unused_local_typedefs): Define new functions.
4182 * c.opt: Declare new -Wunused-local-typedefs flag.
4184 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4187 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4190 2011-09-05 Richard Guenther <rguenther@suse.de>
4192 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4193 of integer_minus_one_node for empty array upper bounds.
4195 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4197 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4198 it's the first time it's being called on this main TU.
4200 2011-08-24 Richard Guenther <rguenther@suse.de>
4203 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4205 2011-08-22 Gabriel Charette <gchare@google.com>
4207 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4208 defined in cpp_init_builtins and c_cpp_builtins.
4210 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4212 * c-common.c (c_common_reswords): Add __builtin_complex.
4213 * c-common.h (RID_BUILTIN_COMPLEX): New.
4215 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4217 * c-common.c (c_common_reswords): Add _Noreturn.
4218 (keyword_is_function_specifier): Handle RID_NORETURN.
4219 * c-common.h (RID_NORETURN): New.
4221 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4223 * c-common.c (unsafe_conversion_p): New function. Check if it is
4224 unsafe to convert an expression to the type.
4225 (conversion_warning): Adjust, use unsafe_conversion_p.
4226 * c-common.h (unsafe_conversion_p): New function declaration.
4228 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4230 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4231 (c_finish_omp_taskyield): New prototype.
4232 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4233 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4234 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4235 or RHS1 have side-effects, evaluate those too in the right spot,
4236 if it is a decl and LHS is also a decl, error out if they
4238 (c_finish_omp_taskyield): New function.
4239 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4240 * c-pragma.c (omp_pragmas): Add taskyield.
4241 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4242 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4243 PRAGMA_OMP_CLAUSE_MERGEABLE.
4245 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4247 * c-common.h (set_underlying_type): Remove parm name from
4250 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4252 * c-pretty-print.h: Search c-common.h in c-family.
4254 2011-07-22 Jason Merrill <jason@redhat.com>
4257 * c.opt (Wnarrowing): New.
4260 * c-common.h: Declare c_linkage_bindings.
4261 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4264 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4265 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4266 as flag_isoc99 for 'restrict'.
4267 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4269 2011-07-21 Ian Lance Taylor <iant@google.com>
4272 * c-common.c (c_disable_warnings): New static function.
4273 (c_enable_warnings): New static function.
4274 (c_fully_fold_internal): Change local unused_p to bool. Call
4275 c_disable_warnings and c_enable_warnings rather than change
4276 c_inhibit_evaluation_warnings.
4278 2011-07-20 Jason Merrill <jason@redhat.com>
4280 PR c++/6709 (DR 743)
4281 PR c++/42603 (DR 950)
4282 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4283 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4284 (CPP_DECLTYPE): New.
4285 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4287 2011-07-19 Richard Guenther <rguenther@suse.de>
4289 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4290 * c-omp.c (c_finish_omp_for): Likewise.
4292 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4294 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4295 body on the next line.
4297 2011-07-08 Jason Merrill <jason@redhat.com>
4300 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4303 * c-common.c (c_apply_type_quals_to_decl): Don't check
4304 TYPE_NEEDS_CONSTRUCTING.
4306 2011-07-06 Richard Guenther <rguenther@suse.de>
4308 * c-common.c (c_common_nodes_and_builtins):
4309 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4311 2011-07-05 Richard Guenther <rguenther@suse.de>
4313 * c-common.c (c_common_nodes_and_builtins): Build all common
4316 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4318 * c-common.h (c_tree_chain_next): New static inline function.
4320 * c-common.c (check_builtin_function_arguments): Handle
4321 BUILT_IN_ASSUME_ALIGNED.
4323 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4325 * c-common.c: Add sync_ or SYNC__ to builtin names.
4326 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4328 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4330 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4332 (gen_pragma_handler): New union.
4333 (internal_pragma_handler): New type.
4334 (c_register_pragma_with_data)
4335 (c_register_pragma_with_expansion_and_data): New functions.
4337 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4338 (c_register_pragma, c_register_pragma_with_expansion)
4339 (c_invoke_pragma_handler): Changed to work with
4340 internal_pragma_handler.
4341 (c_register_pragma_with_data)
4342 (c_register_pragma_with_expansion_and_data): New functions.
4344 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4346 * c-common.c: Include common/common-target.h.
4347 (handle_section_attribute): Use
4348 targetm_common.have_named_sections.
4349 * c-cppbuiltin.c: Include common/common-target.h.
4350 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4352 2011-06-10 Richard Guenther <rguenther@suse.de>
4354 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4355 to print a IDENTIFIER_NODE.
4357 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4358 Joseph Myers <joseph@codesourcery.com>
4360 * c.opt (fbuilding-libgcc): New option.
4361 * c-cppbuiltin.c (c_cpp_builtins): Define
4362 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4364 2011-06-07 Jason Merrill <jason@redhat.com>
4366 * c-common.c (max_tinst_depth): Lower default to 900.
4368 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4370 2011-06-07 Richard Guenther <rguenther@suse.de>
4372 * c-common.c (c_common_nodes_and_builtins): Do not set
4373 size_type_node or call set_sizetype.
4375 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4378 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4379 type when using pointer comparison to compare types.
4381 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4383 * c.opt: Add -Wdelete-non-virtual-dtor.
4384 * c-opts.c (c_common_handle_option): Include it in -Wall.
4386 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4391 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4393 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4396 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4399 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4400 C++ don't call c_common_truthvalue_conversion on void type arms.
4402 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4404 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4405 (stmt_list_stack): Define.
4406 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4407 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4409 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4411 * c-common.c (warning_candidate_p): Check for BLOCKs.
4413 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4415 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4418 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4420 * c-common.c (def_fn_type): Remove extra va_end.
4422 2011-05-23 Jason Merrill <jason@redhat.com>
4425 * c-common.c (c_common_get_narrower): New.
4426 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4428 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4430 * c-common.h (check_function_arguments): Tweak prototype of
4431 check_function_arguments.
4432 * c-common.c (check_function_arguments): Likewise. Adjust
4433 calls to check_function_nonnull, check_function_format, and
4434 check_function_sentinel.
4435 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4436 separate attributes and typelist arguments. Use
4437 FOREACH_FUNCTION_ARGS to iterate over argument types.
4439 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4441 * c-common.c (c_common_reswords): Reorder.
4442 * c-common.h (rid): Likewise.
4444 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4446 * c-common.c (def_fn_type): Don't call build_function_type, call
4447 build_function_type_array or build_varargs_function_type_array
4449 (c_common_nodes_and_builtins): Likewise.
4451 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4453 * c-common.c (c_add_case_label): Omit the loc argument to
4455 * c-common.h (build_case_label): Remove.
4456 * c-semantics.c (build_case_label): Remove.
4458 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4460 * c-objc.h (objc_start_method_definition): Update prototype.
4461 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4463 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4465 * c-common.c (check_main_parameter_types): Reindent. Don't use
4466 TYPE_ARG_TYPES directly.
4467 (handle_nonnull_attribute): Likewise.
4468 (sync_resolve_params): Likewise.
4469 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4470 to check_format_string.
4471 (handle_format_attribute): Likewise.
4472 (check_format_string): Take a function type to examine instead of
4473 a type list. Use a function_arg_iterator to step through argument
4476 2011-05-04 Richard Guenther <rguenther@suse.de>
4478 * c-common.c (fix_string_type): Use size_int for index type bounds.
4479 (start_fname_decls): Do not pass NULL to build_int_cst.
4480 (c_init_attributes): Likewise.
4481 * c-lex.c (c_lex_with_flags): Likewise.
4483 2011-04-27 Jason Merrill <jason@redhat.com>
4485 * c-common.c (make_tree_vector_from_list): New.
4486 * c-common.h: Declare it.
4488 2011-04-26 Richard Guenther <rguenther@suse.de>
4490 PR preprocessor/48248
4491 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4492 for output size with -P.
4494 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4496 * c-common.c (struct c_common_resword): Add __underlying_type.
4497 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4499 2011-04-20 Jim Meyering <meyering@redhat.com>
4501 * c-format.c (init_dollar_format_checking): Remove useless
4504 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4506 * c-objc.h (objc_get_interface_ivars): Removed.
4507 (objc_detect_field_duplicates): New.
4508 * stub-objc.c: Likewise.
4510 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4512 * stub-objc.c (objc_declare_protocols): Renamed to
4513 objc_declare_protocol.
4514 * c-objc.h: Likewise.
4516 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4518 * stub-objc.c (objc_declare_class): Updated argument name.
4520 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4522 * c-common.h (c_common_init_ts): Declare.
4523 * c-common.c (c_common_init_ts): Define.
4525 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4527 * c-objc.h (objc_build_message_expr): Updated prototype.
4528 * stub-objc.c (objc_build_message_expr): Likewise.
4530 2011-04-12 Martin Jambor <mjambor@suse.cz>
4532 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4535 2011-04-11 Richard Guenther <rguenther@suse.de>
4537 * c-common.c (complete_array_type): Build a range type of
4540 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4542 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4543 (handle_type_generic_attribute): Likewise.
4545 2011-04-07 Jason Merrill <jason@redhat.com>
4548 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4549 conversion from C++0x scoped enum.
4551 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4553 * c-target-def.h: New file.
4554 * c-target.def: New file.
4555 * c-target.h: New file.
4556 * c-common.c (targetcm): Don't define here.
4557 * c-common.h (default_handle_c_option): Declare.
4558 * c-format.c: Include c-target.h instead of target.h.
4559 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4561 (default_handle_c_option): Move from targhooks.c.
4563 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4565 PR preprocessor/48248
4566 * c-ppoutput.c (print): Add src_file field.
4567 (init_pp_output): Initialize it.
4568 (maybe_print_line): Don't optimize by adding up to 8 newlines
4569 if map->to_file and print.src_file are different file.
4570 (print_line): Update print.src_file.
4572 2011-03-25 Kai Tietz <ktietz@redhat.com>
4574 * c-ada-spec.c (compare_comment): Use filename_cmp
4575 instead of strcmp for filename.
4577 2011-03-25 Jeff Law <law@redhat.com>
4579 * c-common.c (def_fn_type): Add missing va_end.
4581 2011-03-25 Jason Merrill <jason@redhat.com>
4583 * c.opt: Add -std=c++03.
4585 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4587 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4589 2011-03-17 Kai Tietz
4592 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4593 Display allowed attributes for function pointer types.
4594 (pp_c_attributes_display): New function to display
4595 attributes having affects_type_identity flag set to true.
4596 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4598 * c-common.c (c_common_attribute_table):
4600 (c_common_format_attribute_table): Likewise.
4602 2011-03-18 Jason Merrill <jason@redhat.com>
4604 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4605 * c-common.h: Don't declare it here.
4606 * c-common.c: Or define it here.
4607 * c-opts.c (c_common_handle_option): Or set it here.
4610 * c-common.c (handle_transparent_union_attribute): Don't
4611 make a duplicate type in C++.
4613 2011-03-15 Jason Merrill <jason@redhat.com>
4615 * c-common.c (max_constexpr_depth): New.
4616 * c-common.h: Declare it.
4617 * c-opts.c (c_common_handle_option): Set it.
4618 * c.opt (fconstexpr-depth): New option.
4620 2011-03-11 Jason Merrill <jason@redhat.com>
4622 * c-common.c (attribute_takes_identifier_p): Add missing const.
4625 * c-common.c (attribute_takes_identifier_p): Assume that an
4626 unknown attribute takes an identifier.
4628 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4631 * c-common.c (c_type_hash): Call list_length instead of iterating
4632 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4634 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4637 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4639 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4641 * c.opt (fobjc-abi-version=) New.
4642 (fobjc-nilcheck): New.
4644 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4647 * c-common.h (keyword_is_decl_specifier): Declare.
4648 * c-common.c (keyword_is_decl_specifier): Define.
4649 (keyword_is_function_specifier): New function.
4651 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4654 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4655 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4658 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4660 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4662 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4665 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4666 after init_c_lex if pch_file is set.
4668 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4671 * c.opt (-fkeep-inline-dllexport): New switch.
4673 2011-01-12 Richard Guenther <rguenther@suse.de>
4676 * c-common.c (handle_weak_attribute): Warn instead of error
4677 on declaring an inline function weak.
4679 2011-01-05 Tom Tromey <tromey@redhat.com>
4681 * c-common.h (lvalue_error): Update.
4682 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4685 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4688 * c-objc.h (objc_finish_message_expr): Added argument to
4691 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4693 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4696 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4698 * c-objc.h (objc_maybe_warn_exceptions): New.
4699 * stub-objc.c (objc_maybe_warn_exceptions): New.
4701 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4703 * c-common.h (readonly_error): Declare.
4704 * c-common.c (readonly_error): Define.
4706 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4708 * c-common.h (invalid_indirection_error): Declare.
4709 * c-common.c (invalid_indirection_error): Define.
4711 2010-12-03 Richard Guenther <rguenther@suse.de>
4714 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4715 (pp_c_unary_expression): Likewise.
4716 (pp_c_expression): Likewise.
4718 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4720 * c-common.h (objc_finish_function): New.
4721 (objc_non_volatilized_type): Removed.
4722 (objc_type_quals_match): Removed.
4723 * stub-objc.c (objc_finish_function): New.
4724 (objc_non_volatilized_type): Removed.
4725 (objc_type_quals_match): Removed.
4727 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4729 * c-common.h (parse_optimize_options): Declare.
4730 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4731 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4733 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4735 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4737 * c-pch.c (O_BINARY): Don't define here.
4738 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4740 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4742 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4743 targetm.except_unwind_info.
4745 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4747 * c-opts.c (c_common_handle_option): Pass location to
4748 set_struct_debug_option.
4750 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4752 * c-common.c (visibility_options): Move from ../opts.c.
4753 * c-common.h (struct visibility_flags, visibility_options):
4755 * c-opts.c (finish_options): Rename to c_finish_options.
4756 (c_common_init): Update call to finish_options.
4758 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4761 * c-lex.c (lex_string): Check that each string in an Objective-C
4762 string concat sequence starts with either one or zero '@', and
4763 that there are no spurious '@' signs at the end.
4765 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4767 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4768 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4769 HANDLE_PRAGMA_VISIBILITY.
4770 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4771 HANDLE_PRAGMA_VISIBILITY): Don't define.
4772 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4774 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4779 * c-common.h (keyword_begins_type_specifier): Declare.
4780 (keyword_is_storage_class_specifier): Declare.
4781 (keyword_is_type_qualifier): Declare.
4782 * c-common.c (keyword_begins_type_specifier): New function.
4783 (keyword_is_storage_class_specifier): New function.
4784 (keyword_is_type_qualifier): Declare.
4786 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4789 * c-common.c (in_late_binary_op): Define.
4790 (c_common_truthvalue_conversion): Check in_late_binary_op before
4791 calling c_save_expr.
4792 * c-common.h (in_late_binary_op): Declare.
4794 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4796 * c-opts.c (c_common_handle_option): Update calls to
4797 set_struct_debug_option.
4799 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4801 * c-common.h (objc_declare_protocols): Added additional argument.
4802 * stub-objc.c (objc_declare_protocol): Same change.
4804 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4807 * c-common.h (build_real_imag_expr): Declare.
4808 * c-semantics.c (build_real_imag_expr): Define.
4810 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4812 * c-opts.c (c_common_parse_file): Take no arguments.
4813 * c-common.h (c_common_parse_file): Update prototype.
4815 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4818 * c-common.c (warning_candidate_p): Don't track non-const calls
4821 2010-11-15 Ian Lance Taylor <iant@google.com>
4823 * c-lex.c (init_c_lex): Set macro debug callbacks if
4824 flag_dump_go_spec is set.
4826 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4828 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4829 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4831 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4833 PR preprocessor/45038
4834 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4837 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4839 * c-common.h (c_family_lang_mask): Declare.
4840 * c-opts.c (c_family_lang_mask): Make extern.
4841 * c-pragma.c (handle_pragma_diagnostic): Use
4842 control_warning_option.
4844 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4846 * c-common.c (parse_optimize_options): Update call to
4848 * c-common.h (c_common_handle_option): Update prototype.
4849 * c-opts.c (c_common_handle_option): Take location_t parameter and
4850 pass it to other functions.
4852 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4854 * c-opts.c (warning_as_error_callback): Remove.
4855 (c_common_initialize_diagnostics): Don't call
4856 register_warning_as_error_callback.
4857 (c_common_handle_option): Handle -Werror=normalized= here.
4859 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4861 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4863 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4865 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4866 Remove trailing '.' from diagnostics.
4867 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4869 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4871 * c-common.c (parse_optimize_options): Pass global_dc to
4873 * c-opts.c (c_common_handle_option): Pass &global_options to
4874 set_Wstrict_aliasing.
4875 * c.opt (v): Don't mark Common or document here.
4877 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4880 * c-format.c (format_type): New type gcc_objc_string_format_type.
4881 (valid_stringptr_type_p): New.
4882 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4883 (check_format_string): Pass expected type, use
4884 valid_stringptr_type_p (), check that the format string types are
4885 consistent with the format specification.
4886 (decode_format_attr): Warn if NSString is used outside objective-c.
4887 (format_types_orig): Add NSString.
4889 (format_flags): New.
4890 (check_format_arg): Handle format strings requiring an external parser.
4891 first_target_format_type: New variable.
4892 (handle_format_attribute): Set up first_target_format_type, pass the
4893 expected format arg string type to check_format_string().
4894 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4895 * stub-objc.c (objc_string_ref_type_p): New.
4896 (objc_check_format_arg): New.
4898 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4900 Fixed using the Objective-C 2.0 dot-syntax with class names.
4901 * c-common.h (objc_build_class_component_ref): New.
4902 * stub-objc.c (objc_build_class_component_ref): New.
4904 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4906 * c.opt (Wproperty-assign-default): New option.
4908 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4910 Implemented -fobjc-std=objc1 flag.
4911 * c.opt (fobjc-std=objc1): New option.
4913 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4915 Implemented format and noreturn attributes for Objective-C methods.
4916 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4917 attribute for Objective-C methods.
4919 2010-10-31 Jason Merrill <jason@redhat.com>
4921 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4924 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4926 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4927 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4928 (objc_add_property_declaration): Removed arguments for copies and
4930 (objc_build_getter_call): Renamed to
4931 objc_maybe_build_component_ref.
4932 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4933 (objc_is_property_ref): New.
4934 * c-common.c (c_common_reswords): Removed copies and ivar.
4935 * stub-objc.c (objc_add_property_declaration): Removed arguments
4936 for copies and ivar.
4937 (objc_build_getter_call): Renamed to
4938 objc_maybe_build_component_ref.
4939 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4940 (objc_is_property_ref): New.
4942 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4943 Matthew Gingell <gingell@adacore.com>
4945 * c-ada-spec.c (separate_class_package): New function.
4946 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4947 name of their enclosing package.
4948 (print_ada_declaration): Use separate_class_package.
4950 2010-10-27 Jason Merrill <jason@redhat.com>
4952 * c-common.c (c_common_reswords): Add __is_literal_type.
4953 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4955 * c-common.c (check_case_value): Remove special C++ code.
4957 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4959 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4960 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4962 (objc_add_property_declaration): Added additional arguments.
4963 (objc_property_attribute_kind): Removed.
4964 (objc_set_property_attr): Removed.
4965 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4967 * stub-objc.c (objc_add_property_declaration): Added additional
4969 (objc_set_property_attr): Removed.
4971 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4973 * c-common.h (objc_add_property_variable): Renamed to
4974 objc_add_property_declaration. Added location argument.
4975 * stub-objc.c (objc_add_property_variable): Same change.
4977 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4979 * c-common.h (objc_maybe_printable_name): New.
4980 * stub-objc.c (objc_maybe_printable_name): New.
4982 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4983 Andrew Pinski <pinskia@gmail.com>
4985 * c-common.h (c_common_mark_addressable_vec): Declare.
4986 * c-common.c (c_common_mark_addressable_vec): New function.
4988 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4990 * c-common.h (objc_set_method_type): Removed.
4991 (objc_add_method_declaration): Added boolean argument.
4992 (objc_start_method_definition): Same change.
4993 (objc_build_method_signature): Same change.
4994 * stub-objc.c (objc_set_method_type): Removed.
4995 (objc_add_method_declaration): Added boolean argument.
4996 (objc_start_method_definition): Same change.
4997 (objc_build_method_signature): Same change.
4999 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5001 * c-common.h (finish_file): Removed.
5002 (objc_write_global_declarations): New.
5003 * c-opts.c (c_common_parse_file): Do not call finish_file.
5004 * stub-objc.c (objc_write_global_declarations): New.
5006 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5008 Implemented parsing @synthesize and @dynamic for
5009 Objective-C/Objective-C++.
5010 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5011 (objc_add_synthesize_declaration): New.
5012 (objc_add_dynamic_declaration): New.
5013 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5014 * stub-objc.c (objc_add_synthesize_declaration): New.
5015 (objc_add_dynamic_declaration): New.
5017 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5020 * c-cppbuiltin.c (mode_has_fma): Move function here from
5021 builtins.c. Don't use the fma optab, instead just use the
5022 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5025 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5027 Merge from 'apple/trunk' branch on FSF servers.
5029 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5032 * c-common.h (objc_non_volatilized_type): New declaration
5033 * stub-objc.c (objc_non_volatilized_type): New stub.
5035 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5037 Merge from 'apple/trunk' branch on FSF servers.
5039 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5042 * c-common.h (objc_diagnose_private_ivar): New decl.
5043 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5045 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5047 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5048 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5049 (objc_ivar_visibility_kind): New enum.
5050 (objc_set_visibility): Adjust prototype to use visibility enum.
5051 * stub-objc.c (objc_set_visibility): Adjust stub to use
5054 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5056 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5057 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5058 has the appropriate fma builtins.
5059 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5061 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5063 merge from FSF apple 'trunk' branch.
5064 2006 Fariborz Jahanian <fjahanian@apple.com>
5066 Radars 4436866, 4505126, 4506903, 4517826
5067 * c-common.c (c_common_resword): Define @property and its attributes.
5068 * c-common.h: Define property attribute enum entries.
5069 (OBJC_IS_PATTR_KEYWORD): New.
5070 (objc_property_attribute_kind): New enum.
5071 Declare objc_set_property_attr (), objc_add_property_variable (),
5072 objc_build_getter_call () and objc_build_setter_call ().
5073 * stub-objc.c (objc_set_property_attr): New stub.
5074 (objc_add_property_variable): Likewise.
5075 (objc_build_getter_call): Likewise.
5076 (objc_build_setter_call) Likewise.
5078 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5080 merge from FSF apple 'trunk' branch.
5081 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5083 Radar 3803157 (method attributes)
5084 * c-common.c (handle_deprecated_attribute): Recognize
5085 objc methods as valid declarations.
5086 * c-common.h: Declare objc_method_decl ().
5087 * stub-objc.c (objc_method_decl): New stub.
5089 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5091 * c-common.c (parse_optimize_options): Call
5092 decode_cmdline_options_to_array_default_mask before
5093 decode_options. Update arguments to decode_options.
5094 * c-common.h (c_common_init_options_struct): Declare.
5095 * c-opts.c (c_common_init_options_struct): New. Split out from
5096 c_common_init_options.
5098 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5100 Implemented fast enumeration for Objective-C.
5101 * c-common.h (objc_finish_foreach_loop): New.
5102 * stub-objc.c (objc_finish_foreach_loop): New.
5104 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5106 * c-common.h (struct diagnostic_context): Don't declare here.
5107 (c_common_initialize_diagnostics): Declare using
5108 diagnostic_context typedef.
5109 * c-opts.c (c_common_handle_option): Pass global_dc to
5110 handle_generated_option.
5112 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5114 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5115 handle_generated_option.
5117 2010-10-03 Ian Lance Taylor <iant@google.com>
5119 * c.opt (-fplan9-extensions): New option.
5121 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5123 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5125 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5126 of duplicating code.
5128 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5130 * c-common.c: Add two new entries for @optional
5131 and @required keywords.
5133 merge from FSF 'apple/trunk' branch.
5134 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5137 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5138 objective-c keywords.
5139 (objc_set_method_opt): New declaration.
5140 * stub-objc.c (objc_set_method_opt): New stub.
5142 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5144 * c-common.c (handle_optimize_attribute): Pass &global_options to
5145 cl_optimization_save and cl_optimization_restore.
5146 * c-opts.c (c_common_handle_option): Pass &global_options to
5147 handle_generated_option.
5148 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5149 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5150 &global_options to cl_optimization_restore.
5152 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5154 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5155 Objective-C/Objective-C++ keywords.
5157 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5159 Merge from 'apple/trunk' branch on FSF servers.
5161 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5164 * c-common.h (objc_check_global_decl): New declaration.
5165 * stub-objc.c (objc_check_global_decl): New stub.
5167 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5169 * c.opt: Don't use VarExists.
5171 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5173 * c-common.c (c_cpp_error): Update names of diagnostic_context
5175 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5176 cl_optimization members.
5177 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5178 sanitize_cpp_opts, finish_options): Update names of cpp_options
5181 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5183 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5184 (objc_is_reserved_word): Removed.
5185 * c-common.c: Updated comments.
5186 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5187 objc_is_reserved_word.
5188 * stub-objc.c (objc_is_reserved_word): Removed.
5190 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5192 * c-common.h (objc_add_method_declaration): Adjust prototype to
5194 (objc_start_method_definition): Likewise.
5195 (objc_build_keyword_decl): Likewise.
5196 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5197 (objc_start_method_definition): Likewise.
5198 (objc_build_keyword_decl): Likewise.
5200 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5202 * c-common.h (objc_start_class_interface): Adjust prototype.
5203 (objc_start_category_interface): Likewise.
5204 (objc_start_protocol): Likewise.
5205 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5206 (objc_start_class_interface): Likewise.
5207 (objc_start_category_interface): Likewise.
5209 2010-09-27 Ian Lance Taylor <iant@google.com>
5211 * c-common.c (c_common_attribute_table): Add no_split_stack.
5212 (handle_no_split_stack_attribute): New static function.
5214 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5216 Merge from 'apple/trunk' branch on FSF servers.
5218 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5221 * c-common.h (objc_have_common_type): New declaration.
5222 * stub-objc.c (objc_have_common_type): New stub.
5224 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5227 * c-common.h (objc_common_type): New prototype.
5228 * stub-objc.c (objc_common_type): New stub.
5230 2010-09-24 Jan Hubicka <jh@suse.cz>
5232 * c-common.c (handle_leaf_attribute): New function.
5233 (struct attribute_spec c_common_att): Add leaf.
5235 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5237 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5238 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5239 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5240 -include-barrier, -include-directory, -include-directory=,
5241 -include-directory-after, -include-directory-after=,
5242 -include-prefix, -include-prefix=, -include-with-prefix,
5243 -include-with-prefix=, -include-with-prefix-after,
5244 -include-with-prefix-after=, -include-with-prefix-before,
5245 -include-with-prefix-before=, -no-integrated-cpp,
5246 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5247 -output=, -pedantic, -pedantic-errors, -preprocess,
5248 -print-missing-file-dependencies, -trace-includes, -traditional,
5249 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5250 -user-dependencies, -verbose, -write-dependencies,
5251 -write-user-dependencies, no-integrated-cpp, traditional): New.
5253 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5256 * c-common.h (objc_start_method_definition): Return bool instead
5258 * stub-objc.c (objc_start_method_definition): Return bool instead
5261 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5264 * c-common.h (objc_get_interface_ivars): New declaration.
5265 * stub-objc.c (objc_get_interface_ivars): New stub.
5267 2010-09-15 Ian Lance Taylor <iant@google.com>
5269 * c-common.c (parse_optimize_options): Do not capitalize warning
5270 messages. Remove period at end of warning message.
5272 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5274 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5275 (handle_alias_attribute): ... here.
5276 (handle_ifunc_attribute): New.
5278 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5280 * c-common.h (do_warn_double_promotion): Declare.
5281 * c-common.c (do_warn_double_promotion): Define.
5283 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5285 * c.opt (Wdouble-promotion): New.
5287 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5289 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5290 fvtable-thunks, fxref): Mark no longer supported in help text.
5292 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5294 * c.opt (Wimport, fall-virtual, falt-external-templates,
5295 fdefault-inline, fenum-int-equiv, fexternal-templates,
5296 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5297 fname-mangling-version-, fnew-abi, fnonnull-objects,
5298 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5299 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5301 (fhandle-exceptions): Mark with Alias and Warn.
5302 * c-opts.c (c_common_handle_option): Don't handle options marked
5305 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5307 * c.opt (Wcomments, Werror-implicit-function-declaration,
5308 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5309 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5311 * c-common.c (option_codes): Use OPT_Wcomment instead of
5313 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5314 Don't handle options marked as aliases.
5316 2010-08-25 Richard Guenther <rguenther@suse.de>
5318 * c-common.c (c_common_get_alias_set): Remove special
5319 handling for pointers.
5321 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5323 * c-common.c: Use FOR_EACH_VEC_ELT.
5324 * c-gimplify.c: Likewise.
5325 * c-pragma.c: Likewise.
5327 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5329 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5331 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5333 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5334 instead of OPT_MDX and OPT_MMDX.
5336 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5338 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5340 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5342 * c.opt (MD, MMD): Change to MDX and MMDX.
5343 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5345 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5347 * c-opts.c (c_common_handle_option): Call handle_generated_option
5348 instead of handle_option.
5350 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5352 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5353 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5355 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5357 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5358 (pending_redefine_extname): Change type to a VEC.
5359 (add_to_renaming_pragma_list): Update for new type of
5360 pending_redefine_extname.
5361 (maybe_apply_renaming_pragma): Likewise.
5363 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5365 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5367 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5368 decide whether a type has already been declared/seen.
5369 Do not go to the original type.
5370 (dump_nested_types): New parameter forward.
5371 Generate forward declaration if needed and mark type as visited.
5372 (print_ada_declaration): Call dump_nested_types if not already done.
5373 Mark types as visited.
5375 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5377 * c.opt (-print-pch-checksum): Remove option.
5378 * c-opts.c (c_common_handle_option): Don't handle
5379 OPT_print_pch_checksum.
5381 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5383 * c-common.h (c_common_handle_option): Update prototype and return
5385 * c-opts.c (c_common_handle_option): Update prototype and return
5386 value type. Update calls to handle_option and
5387 enable_warning_as_error.
5389 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5392 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5394 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5396 * c-common.h (c_common_missing_argument): Remove.
5397 * c-opts.c (c_common_missing_argument): Remove.
5398 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5399 idirafter, imacros, include, isysroot, isystem, iquote): Add
5401 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5403 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5405 * c-common.h (c_common_option_lang_mask,
5406 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5408 (c_common_init_options): Update prototype.
5409 * c-opts.c (c_common_option_lang_mask): New.
5410 (c_common_initialize_diagnostics): Split out of
5411 c_common_init_options.
5412 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5414 (c_common_init_options): Update prototype. Use decoded options in
5415 search for -lang-asm.
5417 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5419 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5420 * c-format.c: Likewise.
5422 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5424 * c-common.h: Include diagnostic-core.h. Error if already
5426 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5428 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5430 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5431 Do not include expr.h
5432 (vector_mode_valid_p): Move here.
5434 2010-06-21 DJ Delorie <dj@redhat.com>
5436 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5437 allow these pragmas anywhere.
5439 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5442 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5443 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5444 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5445 ggc_strdup instead of xstrdup.
5447 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5449 * c-cppbuiltin.c: Include cpp-id-data.h.
5450 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5451 (lazy_hex_fp_value): New function.
5452 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5454 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5456 * c-gimplify.c: Do not include tree-flow.h
5458 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5461 * c-common.c: Rename targetm member:
5462 targetm.enum_va_list -> targetm.enum_va_list_p
5464 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5466 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5468 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5470 * c-cppbuiltin.c: Do not include except.h.
5472 2010-06-24 Andi Kleen <ak@linux.intel.com>
5474 * c-common.c (warn_for_omitted_condop): New.
5475 * c-common.h (warn_for_omitted_condop): Add prototype.
5477 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5479 * c.opt (lang-objc): Remove.
5480 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5482 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5484 * c-opts.c: Include "tm_p.h".
5486 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5488 * c-common.c (parse_optimize_options): Update call to
5491 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5493 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5494 new type of types_used_by_cur_var_decl.
5496 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5499 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5500 for C++ standard compliance.
5502 2010-06-16 Jason Merrill <jason@redhat.com>
5504 * c.opt: Add -Wnoexcept.
5506 2010-06-16 Richard Guenther <rguenther@suse.de>
5509 * c-common.c (c_common_truthvalue_conversion): Remove
5510 premature and wrong optimization concering ADDR_EXPRs.
5512 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5514 * c-ada-spec.c (dump_sloc): Remove column info.
5515 (is_simple_enum): New function.
5516 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5517 enum types when relevant.
5519 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5521 * c-common.c (conversion_warning): Warn at expression
5524 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5526 * c-opts.c (c_common_handle_option): Don't handle
5529 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5531 * c-pragma.c (push_alignment): Use typed GC allocation.
5532 (handle_pragma_push_options): Likewise.
5534 * c-common.c (parse_optimize_options): Likewise.
5536 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5539 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5541 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5542 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5543 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5544 flag_signed_bitfields, warn_strict_null_sentinel,
5545 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5546 flag_gen_declaration, flag_no_gnu_keywords,
5547 flag_implement_inlines, flag_implicit_templates,
5548 flag_implicit_inline_templates, flag_optional_diags,
5549 flag_elide_constructors, flag_default_inline, flag_rtti,
5550 flag_conserve_space, flag_access_control, flag_check_new,
5551 flag_new_for_scope, flag_weak, flag_working_directory,
5552 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5553 flag_enforce_eh_specs, flag_threadsafe_statics,
5554 flag_pretty_templates): Remove.
5555 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5556 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5557 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5558 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5559 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5560 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5561 flag_no_gnu_keywords, flag_implement_inlines,
5562 flag_implicit_templates, flag_implicit_inline_templates,
5563 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5564 flag_rtti, flag_conserve_space, flag_access_control,
5565 flag_check_new, flag_new_for_scope, flag_weak,
5566 flag_working_directory, flag_use_cxa_atexit,
5567 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5568 flag_threadsafe_statics, flag_pretty_templates,
5569 warn_strict_null_sentinel): Remove.
5570 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5571 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5572 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5573 fimplicit-inline-templates, fimplicit-templates,
5574 flax-vector-conversions, fms-extensions, fnil-receivers,
5575 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5576 frtti, fshort-double, fshort-enums, fshort-wchar,
5577 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5578 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5579 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5580 gen-decls, undef): Use Var.
5581 (fdefault-inline, foptional-diags): Document as doing nothing.
5582 * c-opts.c (c_common_handle_option): Remove cases for options now
5583 using Var. Mark ignored options as such.
5585 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5587 * c-common.c: Moved to here from parent directory.
5588 * c-common.def: Likewise.
5589 * c-common.h: Likewise.
5590 * c-cppbuiltin.c: Likewise.
5591 * c-dump.c: Likewise.
5592 * c-format.c: Likewise.
5593 * c-format.h : Likewise.
5594 * c-gimplify.c: Likewise.
5595 * c-lex.c: Likewise.
5596 * c-omp.c: Likewise.
5598 * c-opts.c: Likewise.
5599 * c-pch.c: Likewise.
5600 * c-ppoutput.c: Likewise.
5601 * c-pragma.c: Likewise.
5602 * c-pragma.h: Likewise.
5603 * c-pretty-print.c: Likewise.
5604 * c-pretty-print.h: Likewise.
5605 * c-semantics.c: Likewise.
5606 * stub-objc.c: Likewise.
5608 * c-common.c: Include gt-c-family-c-common.h.
5609 * c-pragma.c: Include gt-c-family-c-pragma.h.
5611 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5613 Copying and distribution of this file, with or without modification,
5614 are permitted in any medium without royalty provided the copyright
5615 notice and this notice are preserved.