1 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
4 * c-family/c-common.h (fold_offsetof_1): Add argument.
5 * c-family/c-common.c (fold_offsetof_1): Diagnose more invalid
6 offsetof expressions that reference elements past the end of
9 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
10 Chung-Lin Tang <cltang@codesourcery.com>
12 * c-pragma.c (oacc_pragmas): Add "atomic".
13 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
15 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
17 * c-common.c (handle_target_clones_attribute): New.
18 (c_common_attribute_table): Add handle_target_clones_attribute.
19 (handle_always_inline_attribute): Add check on target_clones attribute.
20 (handle_target_attribute): Ditto.
22 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
24 * array-notation-common.c: Reorder #include's and remove duplicates.
25 * c-ada-spec.c: Likewise.
26 * c-cilkplus.c: Likewise.
27 * c-common.c: Likewise.
28 * c-cppbuiltin.c: Likewise.
30 * c-format.c: Likewise.
31 * c-gimplify.c: Likewise.
32 * c-indentation.c: Likewise.
37 * c-ppoutput.c: Likewise.
38 * c-pragma.c: Likewise.
39 * c-pretty-print.c: Likewise.
40 * c-semantics.c: Likewise.
41 * c-ubsan.c: Likewise.
43 * stub-objc.c: Likewise.
45 2015-10-28 Jason Merrill <jason@redhat.com>
47 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
49 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
50 James Norris <jnorris@codesourcery.com>
51 Cesar Philippidis <cesar@codesourcery.com>
55 * c-common.h (c_oacc_split_loop_clauses): Declare function.
56 * c-omp.c (c_oacc_split_loop_clauses): New function.
58 2015-10-21 Martin Sebor <msebor@redhat.com>
61 * c.opt: End each sentence that describes an option with a period.
63 2015-10-20 Marek Polacek <polacek@redhat.com>
65 * array-notation-common.c (is_cilkplus_vector_p): Define.
66 * c-common.h (is_cilkplus_vector_p): Declare.
68 2015-10-20 Marek Polacek <polacek@redhat.com>
70 * c.opt (std=gnu++11): Do not describe as experimental.
71 (std=gnu++14): Likewise.
73 2015-10-19 Jason Merrill <jason@redhat.com>
75 * c-cppbuiltin.c (c_cpp_builtins): Define
76 __cpp_nontype_template_args.
78 2015-10-19 Jason Merrill <jason@redhat.com>
80 * c-cppbuiltin.c (c_cpp_builtins): Define
81 __cpp_enumerator_attributes, __cpp_fold_expressions,
82 __cpp_unicode_characters.
84 2015-10-13 Jakub Jelinek <jakub@redhat.com>
85 Aldy Hernandez <aldyh@redhat.com>
87 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
88 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
89 (c_define_builtins): Likewise.
90 * c-common.h (enum c_omp_clause_split): Add
91 C_OMP_CLAUSE_SPLIT_TASKLOOP.
92 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
93 (c_finish_omp_for): Add ORIG_DECLV argument.
94 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
95 201511 instead of 201307.
96 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
97 OMP_CRITICAL_CLAUSES to it.
98 (c_finish_omp_ordered): Add CLAUSES argument, set
99 OMP_ORDERED_CLAUSES to it.
100 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
101 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
102 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
103 constructs and new OpenMP 4.5 clauses. Clear
104 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
106 * c-pragma.c (omp_pragmas_simd): Add taskloop.
107 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
108 (enum pragma_omp_clause): Add
109 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
110 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
112 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
114 * c-lex.c (interpret_float): Use real_equal instead of
117 2015-10-04 Jason Merrill <jason@redhat.com>
119 Implement N4514, C++ Extensions for Transactional Memory.
120 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
121 (c_common_attribute_table): Add transaction_safe_dynamic.
122 transaction_safe now affects type identity.
123 (handle_tm_attribute): Handle transaction_safe_dynamic.
124 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
125 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
126 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
128 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
129 * c-pretty-print.c (pp_c_attributes_display): Don't print
130 transaction_safe in C++.
132 2015-10-02 Marek Polacek <polacek@redhat.com>
134 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
136 2015-10-02 Marek Polacek <polacek@redhat.com>
139 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
140 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
141 * c.opt (Wduplicated-cond): New option.
143 2015-10-01 Joseph Myers <joseph@codesourcery.com>
145 * c.opt (std=c11): Do not describe as experimental.
146 (std=gnu11): Likewise.
147 (std=iso9899:2011): Likewise.
149 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
151 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
152 (DEF_FUNCTION_TYPE_VAR_11): Delete.
154 2015-09-25 Marek Polacek <polacek@redhat.com>
156 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
157 (ubsan_instrument_shift): Likewise.
159 2015-09-25 Marek Polacek <polacek@redhat.com>
162 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
164 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
166 * c-indentation.c (should_warn_for_misleading_indentation):
167 Compare next_stmt_vis_column with guard_line_first_nws instead
168 of with guard_line_vis_column.
170 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
174 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
175 options and options not valid for the current language.
177 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
179 * c-indentation.c (should_warn_for_misleading_indentation):
180 Float out and consolidate the calls to get_visual_column that
181 are passed guard_exploc as an argument. Compare
182 next_stmt_vis_column with guard_line_first_nws instead of with
185 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
187 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
188 Wnamespaces): New C++ warnings.
190 2015-09-22 Jason Merrill <jason@redhat.com>
192 * c-common.h (abi_compat_version_crosses): New.
193 (warn_abi_version): Declare.
194 * c-common.c: Define it.
195 * c-opts.c (c_common_post_options): Handle it.
196 flag_abi_compat_version defaults to 8.
198 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
200 Complete the implementation of N4230, Nested namespace definition.
201 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
202 __cpp_nested_namespace_definitions.
204 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
206 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
208 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
210 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
212 * c-pragma.h (pragma_lex): Add optional loc argument.
214 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
216 * c-format.c (check_format_arg): Adjust to use common block size in all
219 2015-09-15 David Malcolm <dmalcolm@redhat.com>
221 * c-format.c (location_from_offset): Update for change in
222 signature of location_get_source_line.
223 * c-indentation.c (get_visual_column): Likewise.
224 (line_contains_hash_if): Likewise.
226 2015-09-14 Marek Polacek <polacek@redhat.com>
228 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
229 setting various warnings.
231 2015-09-14 Marek Polacek <polacek@redhat.com>
233 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
236 2015-09-11 Mark Wielaard <mjw@redhat.com>
239 * c.opt (Wunused-variable): Option from common.opt.
240 (Wunused-const-variable): New option.
242 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
245 * c.opt ([Wsubobject-linkage]): Add.
247 2015-09-03 Martin Sebor <msebor@redhat.com>
250 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
252 * c-common.c (reject_gcc_builtin): Define.
254 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
257 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
259 * c-gimplify.c (c_gimplify_expr): Added a call to the function
260 cilk_gimplify_call_params_in_spawned_fn.
261 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
262 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
265 2015-08-25 Marek Polacek <polacek@redhat.com>
268 * c-common.c (handle_weak_attribute): Don't check whether the
269 visibility can be changed here.
271 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
273 * c-lex.c (c_lex_with_flags): Use explicit locations.
275 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
277 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
278 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
280 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
283 * c-common.c (check_builtin_function_arguments): Add check
284 for BUILT_IN_SIGNBIT argument.
286 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
289 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
292 2015-08-17 Marek Polacek <polacek@redhat.com>
294 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
295 with whitespaces before qualifier names.
297 2015-08-12 Marek Polacek <polacek@redhat.com>
300 * c-common.c (maybe_warn_shift_overflow): Properly handle
301 left-shifting 1 into the sign bit.
303 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
305 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
307 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
308 Braden Obrzut <admin@maniacsvault.net>
309 Jason Merrill <jason@redhat.com>
311 Add C++ Concepts TS support.
312 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
313 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
314 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
315 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
316 * c-opts.c (set_std_cxx1z): Set flag_concepts.
317 * c.opt (fconcepts): New.
319 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
321 * c-indentation.c (should_warn_for_misleading_indentation):
324 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
326 * c-indentation.c (get_visual_column): Add parameter first_nws,
327 use it. Update comment documenting the function.
328 (is_first_nonwhitespace_on_line): Remove.
329 (should_warn_for_misleading_indentation): Replace usage of
330 of is_first_nonwhitespace_on_line with get_visual_column.
332 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
334 * c-indentation.h (struct token_indent_info): Define.
335 (get_token_indent_info): Define.
336 (warn_for_misleading_information): Declare.
337 * c-common.h (warn_for_misleading_information): Remove.
338 * c-identation.c (warn_for_misleading_indentation):
339 Change declaration to take three token_indent_infos. Adjust
341 * c-identation.c (should_warn_for_misleading_indentation):
342 Likewise. Bail out early if the body is a compound statement.
343 (guard_tinfo_to_string): Define.
345 2015-07-30 Jason Merrill <jason@redhat.com>
347 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
348 '*' for reference decay.
350 2015-07-30 Marek Polacek <polacek@redhat.com>
352 * c-common.c (warn_tautological_cmp): Bail for float types.
354 2015-07-27 Marek Polacek <polacek@redhat.com>
357 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
359 2015-07-27 Marek Polacek <polacek@redhat.com>
363 * c-common.c (find_array_ref_with_const_idx_r): New function.
364 (warn_tautological_cmp): New function.
365 * c-common.h (warn_tautological_cmp): Declare.
366 * c.opt (Wtautological-compare): New option.
368 2015-07-23 Marek Polacek <polacek@redhat.com>
370 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
371 (ubsan_instrument_shift): Likewise.
373 2015-07-23 Marek Polacek <polacek@redhat.com>
376 * c-ubsan.c: Include gimplify.h.
377 (ubsan_instrument_division): Unshare OP0 and OP1.
378 (ubsan_instrument_shift): Likewise.
380 2015-07-20 Marek Polacek <polacek@redhat.com>
381 Richard Sandiford <richard.sandiford@arm.com>
384 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
386 (maybe_warn_shift_overflow): New function.
387 * c-common.h (maybe_warn_shift_overflow): Declare.
388 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
389 * c.opt (Wshift-overflow): New option.
391 2015-07-16 Martin Liska <mliska@suse.cz>
393 * c-format.c (static void check_format_info_main): Use
394 object_allocator instead of pool_allocator.
395 (check_format_arg): Likewise.
396 (check_format_info_main): Likewise.
398 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
400 * c-opts.c: Remove multiline #include comment.
402 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
404 * c-common.c: Fix double word typos.
406 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
408 * c-ada-spec.h (cpp_operation): Revert latest change.
409 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
410 constructors and destructors.
412 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
414 * c-common.h: Adjust includes for flags.h changes.
415 * stub-objc.c: Likewise.
417 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
419 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
420 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
422 2015-07-08 Jakub Jelinek <jakub@redhat.com>
424 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
425 are to be removed, return NULL rather than original clauses list.
427 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
429 * array-notation-common.c: Adjust includes.
430 * c-ada-spec.c: Likewise.
431 * c-cilkplus.c: Likewise.
432 * c-common.h: Likewise.
433 * c-cppbuiltin.c: Likewise.
434 * c-dump.c: Likewise.
435 * c-format.c: Likewise.
436 * c-gimplify.c: Likewise.
437 * c-indentation.c: Likewise.
440 * c-opts.c: Likewise.
442 * c-ppoutput.c: Likewise.
443 * c-pragma.c: Likewise.
444 * c-pretty-print.c: Likewise.
445 * c-semantics.c: Likewise.
446 * c-ubsan.c: Likewise.
448 * stub-objc.c: Likewise.
450 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
452 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
453 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
455 2015-07-01 Jason Merrill <jason@redhat.com>
457 * c-common.h (D_CXX11): Rename from D_CXX0X.
458 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
459 * c-common.c: Adjust.
461 * c-opts.c (c_common_post_options): Default to C++14.
463 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
465 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
467 Implement N4197 - Adding u8 character literals
468 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
470 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
471 CPP_UTF8CHAR_USERDEF tokens.
472 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
473 and CPP_UTF8CHAR tokens.
474 (lex_charconst): Treat CPP_UTF8CHAR token.
476 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
479 * c-common.c (do_warn_unused_parameter): Move here.
480 * c-common.h (do_warn_unused_parameter): Declare.
482 2015-06-29 Marek Polacek <polacek@redhat.com>
485 * c-common.c (check_case_bounds): Add bool * parameter. Set
487 (c_add_case_label): Add bool * parameter. Pass it down to
489 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
491 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
494 2015-06-27 Marek Polacek <polacek@redhat.com>
496 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
497 or VECTOR_INTEGER_TYPE_P throughout.
498 * c-gimplify.c: Likewise.
500 2015-06-26 Marek Polacek <polacek@redhat.com>
502 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
503 * c-common.c (c_fully_fold_internal): Likewise.
504 (c_alignof_expr): Likewise.
505 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
506 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
507 * cilk.c (create_parm_list): Likewise.
509 2015-06-26 Marek Polacek <polacek@redhat.com>
511 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
513 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
515 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
516 * c-gimplify.c: Likewise.
517 * c-pragma.c: Likewise.
518 * c-ubsan.c: Likewise.
521 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
523 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
526 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
528 * cilk.c: Move calls.h after tm.h in the include chain.
530 2015-06-25 Marek Polacek <polacek@redhat.com>
532 * array-notation-common.c: Use VAR_P throughout.
533 * c-ada-spec.c: Likewise.
534 * c-common.c: Likewise.
535 * c-format.c: Likewise.
536 * c-gimplify.c: Likewise.
538 * c-pragma.c: Likewise.
539 * c-pretty-print.c: Likewise.
542 2015-06-25 Marek Polacek <polacek@redhat.com>
544 * cilk.c (extract_free_variables): Use is_global_var.
546 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
548 * c-common.c: Don't include target-def.h.
550 2015-06-23 Marek Polacek <polacek@redhat.com>
552 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
553 when comparing INTEGER_CSTs.
555 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
557 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
558 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
559 (dump_ada_template): Skip partially specialized types.
561 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
563 * c-common.c (scalar_to_vector): Use std::swap instead of manually
566 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
568 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
569 * c-ada-spec.c: Likewise.
570 * c-cilkplus.c: Likewise.
571 * c-common.c: Likewise.
572 * c-common.h: Likewise.
573 * c-cppbuiltin.c: Likewise.
574 * c-dump.c: Likewise.
575 * c-format.c: Likewise.
576 * c-gimplify.c: Likewise.
577 * c-indentation.c: Likewise.
580 * c-opts.c: Likewise.
582 * c-ppoutput.c: Likewise.
583 * c-pragma.c: Likewise.
584 * c-pretty-print.c: Likewise.
585 * c-semantics.c: Likewise.
586 * c-ubsan.c: Likewise.
588 * stub-objc.c: Likewise.
590 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
593 * c-common.c (c_common_truthvalue_conversion): Warn when
594 converting an address of a reference to a truth value.
596 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
598 * array-notation-common.c : Adjust include files.
599 * c-ada-spec.c : Likewise.
600 * c-cilkplus.c : Likewise.
601 * c-common.c : Likewise.
602 * c-common.h : Likewise.
603 * c-cppbuiltin.c : Likewise.
604 * c-dump.c : Likewise.
605 * c-format.c : Likewise.
606 * c-gimplify.c : Likewise.
607 * c-indentation.c : Likewise.
608 * c-lex.c : Likewise.
609 * c-omp.c : Likewise.
610 * c-opts.c : Likewise.
611 * c-pch.c : Likewise.
612 * c-ppoutput.c : Likewise.
613 * c-pragma.c : Likewise.
614 * c-pretty-print.c : Likewise.
615 * c-semantics.c : Likewise.
616 * c-ubsan.c : Likewise.
618 * stub-objc.c : Likewise.
620 2015-06-08 Marek Polacek <polacek@redhat.com>
623 * c-format.c (location_from_offset): Return LOC if LINE is null.
625 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
627 * c-common.h (c_parse_final_cleanups): New prototype.
628 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
630 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
632 * array-notation-common.c: Adjust includes for restructured coretypes.h.
633 * c-ada-spec.c: Likewise.
634 * c-cilkplus.c: Likewise.
635 * c-common.c: Likewise.
636 * c-common.h: Likewise.
637 * c-cppbuiltin.c: Likewise.
638 * c-dump.c: Likewise.
639 * c-format.c: Likewise.
640 * c-gimplify.c: Likewise.
641 * c-indentation.c: Likewise.
644 * c-opts.c: Likewise.
646 * c-ppoutput.c: Likewise.
647 * c-pragma.c: Likewise.
648 * c-pretty-print.c: Likewise.
649 * c-semantics.c: Likewise.
650 * c-ubsan.c: Likewise.
652 * stub-objc.c: Likewise.
654 2015-06-02 David Malcolm <dmalcolm@redhat.com>
657 * c-indentation.c (should_warn_for_misleading_indentation): Use
658 expand_location rather than expand_location_to_spelling_point.
659 Don't warn if the guarding statement is more indented than the
662 2015-06-02 David Malcolm <dmalcolm@redhat.com>
664 * c-indentation.c (warn_for_misleading_indentation): Bail out
665 immediately if -Wmisleading-indentation isn't enabled.
667 2015-06-01 Martin Liska <mliska@suse.cz>
669 * c-format.c (check_format_arg):Use new type-based pool allocator.
670 (check_format_info_main) Likewise.
672 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
674 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
675 (has_nontrivial_methods): Likewise.
677 2015-05-25 Marek Polacek <polacek@redhat.com>
679 * c-ubsan.c (ubsan_instrument_shift): Use type0.
681 2015-05-22 Marek Polacek <polacek@redhat.com>
684 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
686 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
688 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
689 STACK_GROWS_DOWNWARD.
691 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
693 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
694 STACK_GROWS_DOWNWARD rather than if it is defined.
696 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
699 * c-format.c (location_column_from_byte_offset): New.
700 (location_from_offset): New.
701 (struct format_wanted_type): Add offset_loc field.
702 (check_format_info): Move handling of location for extra arguments
703 closer to the point of warning.
704 (check_format_info_main): Pass the result of location_from_offset
706 (format_type_warning): Pass the result of location_from_offset
709 2015-05-20 Marek Polacek <polacek@redhat.com>
711 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
713 2015-05-20 Marek Polacek <polacek@redhat.com>
715 * c-ada-spec.c (dump_sloc): Use DECL_P.
717 2015-05-20 Marek Polacek <polacek@redhat.com>
719 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
720 * c-common.c: Likewise.
722 2015-05-19 David Malcolm <dmalcolm@redhat.com>
724 * c-common.h (fe_file_change): Strengthen param from
725 const line_map * to const line_map_ordinary *.
726 (pp_file_change): Likewise.
727 * c-lex.c (fe_file_change): Likewise.
728 (cb_define): Use linemap_check_ordinary when invoking
730 (cb_undef): Likewise.
731 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
732 invoking cb_file_change.
733 (c_finish_options): Likewise.
734 (push_command_line_include): Likewise.
735 (cb_file_change): Strengthen param "new_map" from
736 const line_map * to const line_map_ordinary *.
737 * c-ppoutput.c (cb_define): Likewise for local "map".
738 (pp_file_change): Likewise for param "map" and local "from".
740 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
742 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
744 2015-05-18 Tom de Vries <tom@codesourcery.com>
746 * c-common.c (build_va_arg_1): New function.
747 (build_va_arg): Add address operator to va_list operand if necessary.
749 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
752 * c-common.c (int_safely_convertible_to_real_p): Define.
753 (unsafe_conversion_p): Check conversions involving complex types.
754 (conversion_warning): Add new warning message for conversions which
755 discard imaginary component.
756 * c-common.h: (enum conversion_safety): Add new enumerator for such
759 2015-05-14 Marek Polacek <polacek@redhat.com>
763 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
764 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
765 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
766 use it. If FOR_INT_CONST, require that all evaluated operands be
769 2015-05-12 David Malcolm <dmalcolm@redhat.com>
771 * c-common.h (warn_for_misleading_indentation): New prototype.
772 * c-indentation.c: New file.
773 * c.opt (Wmisleading-indentation): New option.
775 2015-05-12 Tom de Vries <tom@codesourcery.com>
777 PR tree-optimization/66010
778 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
780 2015-05-09 Jason Merrill <jason@redhat.com>
782 * c-opts.c (c_common_post_options): Also clear
783 cpp_opts->cpp_warn_cxx11_compat.
785 * c-common.h (enum cxx_dialect): Add cxx_unset.
786 * c-common.c (cxx_dialect): Initialize to cxx_unset.
787 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
789 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
790 (std=gnu++0x): Mark as Undocumented.
791 (std=gnu++1y): Add deprecated message.
793 2015-05-08 Jason Merrill <jason@redhat.com>
795 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
798 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
800 2015-05-08 Marek Polacek <polacek@redhat.com>
803 * c.opt (Woverride-init-side-effects): New option.
805 2015-05-07 Marek Polacek <polacek@redhat.com>
808 * c-common.c (c_fully_fold_internal): Warn when left shifting a
810 * c.opt (Wshift-negative-value): New option.
811 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
812 when -Wextra and C99/C++11 mode.
814 2015-05-07 Marek Polacek <polacek@redhat.com>
815 Martin Uecker <uecker@eecs.berkeley.edu>
817 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
818 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
820 2015-05-05 Jason Merrill <jason@redhat.com>
822 * c.opt (Wterminate): New.
824 2015-04-30 Marek Polacek <polacek@redhat.com>
826 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
827 require that the non-constant be of a boolean type.
829 2015-04-29 Josh Triplett <josh@joshtriplett.org>
831 * c-common.c (handle_section_attribute): Refactor to reduce
832 nesting and distinguish between error cases.
834 2015-04-29 Marek Polacek <polacek@redhat.com>
837 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
840 2015-04-29 Jakub Jelinek <jakub@redhat.com>
842 * c-common.h (omp_clause_mask): Unconditionally define as a class.
843 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
844 HOST_BITS_PER_WIDE_INT.
846 2015-04-28 Tom de Vries <tom@codesourcery.com>
848 PR tree-optimization/65887
849 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
851 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
852 Pierre-Marie de Rodat <derodat@adacore.com>
854 * c-ada-spec.c (in_function): Delete.
855 (dump_generic_ada_node): Do not change in_function and remove the
856 redundant code dealing with it.
857 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
858 (print_ada_methods): Output the static member functions in a nested
859 package after the regular methods as well as associated renamings.
861 2015-04-24 Marek Polacek <polacek@redhat.com>
864 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
865 and OPT_Wshift_count_overflow.
868 * c-common.c (warn_logical_operator): Warn if the operands have the
871 2015-04-24 Marek Polacek <polacek@redhat.com>
874 * c-common.c (warn_logical_operator): Bail if either operand comes
875 from a macro expansion.
877 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
880 * c-common.c (c_default_pointer_mode): Add definition.
881 * c-common.h (c_default_pointer_mode): Add declaration.
883 2015-03-11 Jakub Jelinek <jakub@redhat.com>
885 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
886 on record_builtin_type argument.
888 2015-03-10 Jakub Jelinek <jakub@redhat.com>
891 * c-common.c (warn_logical_not_parentheses): Don't warn for
894 2015-03-07 Marek Polacek <polacek@redhat.com>
897 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
898 before trying to figure out whether we have a flexible array member.
900 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
901 Jonathan Wakely <jwakely.gcc@gmail.com>
903 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
905 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
908 * c-ada-spec.c (print_destructor): Remove obsolete code.
910 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
912 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
913 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
914 DECL_TEMPLATE_RESULT emulations.
915 (dump_ada_template)): Add guard for TYPE_METHODS.
917 2015-02-27 Marek Polacek <polacek@redhat.com>
920 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
922 2015-02-27 Kai Tietz <ktietz@redhat.com>
925 * c-pragma.c (handle_pragma_weak): Do not try to create
926 weak/alias of declarations not being function, or variable
929 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
932 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
934 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
936 2015-02-16 Marek Polacek <polacek@redhat.com>
939 * c-format.c (check_format_types): Handle null param.
941 2015-02-13 Marek Polacek <polacek@redhat.com>
944 * c-format.c (check_format_types): Don't warn about different
945 signedness if the original value is in the range of WANTED_TYPE.
947 2015-02-12 Jason Merrill <jason@redhat.com>
950 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
951 to the current highest version.
952 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
954 2015-02-04 Jakub Jelinek <jakub@redhat.com>
958 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
959 instead of RDIV_EXPR. Use build_binary_op instead of
962 2015-01-30 Joseph Myers <joseph@codesourcery.com>
964 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
965 to pass input_location as first argument.
967 2015-01-23 Tom de Vries <tom@codesourcery.com>
970 * c.opt (fopenacc): Mark as LTO option.
972 2015-01-23 Tom de Vries <tom@codesourcery.com>
975 * c.opt (fopenmp): Mark as LTO option.
977 2015-01-21 Jakub Jelinek <jakub@redhat.com>
980 * cilk.c (fill_decls_vec): Only put decls into vector v.
981 (compare_decls): Fix up formatting.
983 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
986 * cilk.c: Include vec.h.
987 (struct cilk_decls): New structure.
988 (wrapper_parm_cb): Split this function to...
989 (fill_decls_vec): ...this...
990 (create_parm_list): ...and this.
991 (compare_decls): New function.
992 (for_local_cb): Remove.
993 (wrapper_local_cb): Ditto.
994 (build_wrapper_type): For now first traverse and fill vector of
995 declarations then sort it and then deal with sorted vector.
996 (cilk_outline): Ditto.
997 (declare_one_free_variable): Ditto.
999 2015-01-21 Jason Merrill <jason@redhat.com>
1002 * c-format.c (check_format_arg): Call decl_constant_value.
1004 2015-01-19 Martin Liska <mliska@suse.cz>
1006 * c-common.c (handle_noicf_attribute): New function.
1008 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1009 Bernd Schmidt <bernds@codesourcery.com>
1010 James Norris <jnorris@codesourcery.com>
1011 Cesar Philippidis <cesar@codesourcery.com>
1012 Ilmir Usmanov <i.usmanov@samsung.com>
1013 Jakub Jelinek <jakub@redhat.com>
1015 * c.opt (fopenacc): New option.
1016 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1017 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1019 * c-common.h (c_finish_oacc_wait): New prototype.
1020 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1021 (c_finish_oacc_wait): New function.
1022 * c-pragma.c (oacc_pragmas): New variable.
1023 (c_pp_lookup_pragma, init_pragma): Handle it.
1024 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1025 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1026 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1027 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1028 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1029 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1030 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1031 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1032 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1033 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1034 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1035 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1036 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1037 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1038 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1039 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1040 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1041 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1042 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1043 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1044 PRAGMA_OACC_CLAUSE_WORKER.
1046 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1048 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1049 for the new option fstack-protector_explicit.
1050 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1051 (handle_stack_protect_attribute): New function.
1053 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1055 * c.opt: New option -Warray-bounds=.
1057 2015-01-09 Michael Collison <michael.collison@linaro.org>
1059 * array-notation-common.c: Include hash-set.h, machmode.h,
1060 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1061 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1062 * c-ada-spec.c: Ditto.
1063 * c-cilkplus.c: Ditto.
1064 * c-common.c: Include input.h due to flattening of tree.h.
1065 Define macro GCC_C_COMMON_C.
1066 * c-common.h: Flatten tree.h header files into c-common.h.
1067 Remove include of tree-core.h.
1068 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1069 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1070 fold-const.h, wide-int.h, and inchash.h due to
1071 flattening of tree.h.
1073 * c-format.c: Flatten tree.h header files into c-common.h.
1074 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1075 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1076 fold-const.h, wide-int.h, and inchash.h due to
1077 flattening of tree.h.
1078 * c-dump.c: Include hash-set.h, machmode.h,
1079 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1080 fold-const.h, wide-int.h, and inchash.h due to
1081 flattening of tree.h.
1082 * c-format.c: Include hash-set.h, machmode.h,
1083 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1084 fold-const.h, wide-int.h, inchash.h and real.h due to
1085 flattening of tree.h.
1086 * c-gimplify.c: Include hash-set.h, machmode.h,
1087 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1088 fold-const.h, wide-int.h, and inchash.h due to
1089 flattening of tree.h.
1095 * c-ppoutput.c: Ditto.
1096 * c-pragma.c: Ditto.
1097 * c-pretty-print.c: Ditto.
1098 * c-semantics.c: Ditto.
1100 * stub-objc.c: Ditto.
1102 2015-01-08 Jason Merrill <jason@redhat.com>
1104 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1105 do_ubsan_in_current_function.
1106 (ubsan_maybe_instrument_reference_or_call): Likewise.
1107 * c-ubsan.h: Declare it.
1109 2015-01-08 Mike Stump <mikestump@comcast.net>
1111 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1113 2015-01-07 Marek Polacek <polacek@redhat.com>
1116 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1117 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1119 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1122 * c.opt (Wsuggest-override): New option.
1124 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1126 Update copyright years.
1128 2015-01-05 Marek Polacek <polacek@redhat.com>
1131 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1133 * c-common.h (warn_array_subscript_with_type_char): Update
1136 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1138 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1139 Control macro with flag_sized_deallocation.
1141 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1143 * c.opt (Wdiscarded-array-qualifiers): New option.
1145 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1147 PR preprocessor/63831
1148 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1149 and __has_cpp_attribute here.
1150 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1151 c_common_has_attribute.
1152 * c-common.h (c_common_has_attribute): New prototype.
1153 * c-lex.c (init_c_lex): Set cb->has_attribute to
1154 c_common_has_attribute instead of cb_has_attribute.
1155 (get_token_no_padding): New function.
1156 (cb_has_attribute): Renamed to ...
1157 (c_common_has_attribute): ... this. No longer static. Use
1158 get_token_no_padding, require ()s, don't build TREE_LIST
1159 unnecessarily, fix up formatting, adjust diagnostics, call
1162 2014-12-15 Jason Merrill <jason@redhat.com>
1164 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1165 (-Wsized-deallocation): New.
1166 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1167 to on in C++14 and up.
1169 2014-12-11 Jason Merrill <jason@redhat.com>
1171 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1173 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1174 we aren't complaining about VLAs.
1176 2014-12-06 Marek Polacek <polacek@redhat.com>
1178 PR tree-optimization/64183
1179 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1180 shift-expression if it is integer_type_node. Use types_compatible_p.
1182 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1184 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1185 last argument from create_tmp_var_raw and create_tmp_var calls.
1186 * cilk.c (gimplify_cilk_spawn): Likewise.
1187 * c-omp.c (c_finish_omp_atomic): Likewise.
1189 2014-11-28 Marek Polacek <polacek@redhat.com>
1191 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1192 instead of unsigned_type_node.
1194 2014-11-28 Marek Polacek <polacek@redhat.com>
1197 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1199 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1200 expression to unsigned_type_node.
1202 2014-11-20 Mark Wielaard <mjw@redhat.com>
1205 * c-opts.c (set_std_c89): Set lang_hooks.name.
1206 (set_std_c99): Likewise.
1207 (set_std_c11): Likewise.
1208 (set_std_cxx98): Likewise.
1209 (set_std_cxx11): Likewise.
1210 (set_std_cxx14): Likewise.
1211 (set_std_cxx1z): Likewise.
1213 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1216 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1217 return type to bool.
1218 * c-common.c: Include gimple-expr.h.
1219 (convert_vector_to_pointer_for_subscript): Change return type to
1220 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1221 and copy it into a TARGET_EXPR and use that instead of *vecp
1224 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1226 Merger of git branch "gimple-classes-v2-option-3".
1227 * ChangeLog.gimple-classes: New.
1228 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1229 from being just a vec<gimple> to a vec<gbind *>.
1231 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1234 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1235 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1236 get_pointer_alignment for non-pointers. Use ptype, or if it is
1237 reference type, corresponding pointer type, as type of kind
1239 (ubsan_maybe_instrument_reference,
1240 ubsan_maybe_instrument_member_call): Adjust callers.
1242 2014-11-15 Marek Polacek <polacek@redhat.com>
1245 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1247 (extract_array_notation_exprs): Return for NULL node.
1249 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1251 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1252 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1254 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1257 * c-common.c (check_builtin_function_arguments): Handle
1258 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1260 2014-11-10 Andi Kleen <ak@linux.intel.com>
1263 * c-common.h (check_no_cilk): Declare.
1264 * cilk.c (get_error_location): New function.
1265 (check_no_cilk): Dito.
1267 2014-11-10 Andi Kleen <ak@linux.intel.com>
1269 * cilk.c (recognize_spawn): Use expression location
1272 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1274 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1276 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1278 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1279 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1280 (__cpp_range_based_for, __cpp_initializer_lists,
1281 __cpp_delegating_constructors, __cpp_nsdmi,
1282 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1283 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1284 __has_cpp_attribute.
1285 * c-lex.c (cb_has_attribute): New callback CPP function;
1286 (init_c_lex): Set has_attribute callback.
1288 2014-11-04 Richard Biener <rguenther@suse.de>
1290 * c-common.c (shorten_compare): Do not shorten mixed
1291 DFP and non-DFP compares.
1293 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1295 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1296 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1297 Commentary and rearrangement of tests.
1298 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1299 Commentary and rearrangement of tests.
1300 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1301 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1303 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1305 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1306 enum from machine_mode.
1308 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1310 * c-common.c: Adjust include files.
1311 * c-gimplify.c: Ditto.
1313 * c-pragma.c: Ditto.
1316 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1318 * c-gimplify.c: Adjust include files.
1320 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1323 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1324 c_common_initialize_diagnostics.
1325 * c-common.h: Likewise.
1327 2014-10-24 Marek Polacek <polacek@redhat.com>
1330 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1331 print "struct"/"union"/"enum" for typedefed names.
1333 2014-10-23 Marek Polacek <polacek@redhat.com>
1335 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1338 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1339 Yury Gribov <y.gribov@samsung.com>
1341 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1342 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1343 instead of flag_sanitize_recover as bool flag.
1345 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1347 * cilk.c: Revert previous change.
1349 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1352 * cilk.c: Include vec.h.
1353 (struct cilk_decls): New structure.
1354 (wrapper_parm_cb): Split this function to...
1355 (fill_decls_vec): ...this...
1356 (create_parm_list): ...and this.
1357 (compare_decls): New function.
1358 (for_local_cb): Remove.
1359 (wrapper_local_cb): Ditto.
1360 (build_wrapper_type): For now first traverse and fill vector of
1361 declarations then sort it and then deal with sorted vector.
1362 (cilk_outline): Ditto.
1363 (declare_one_free_variable): Ditto.
1365 2014-10-17 Marek Polacek <polacek@redhat.com>
1367 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1368 * c.opt (Wimplicit-int): Initialize to -1.
1370 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1372 * c-pragma.c: Adjust include files.
1373 * c-semantics.c: Likewise.
1375 2014-10-16 DJ Delorie <dj@redhat.com>
1377 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1380 2014-10-14 Jason Merrill <jason@redhat.com>
1383 * c-common.h (CPP_PREPARSED_EXPR): New.
1384 (N_CP_TTYPES): Adjust.
1386 2014-10-15 Marek Polacek <polacek@redhat.com>
1388 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1390 2014-10-14 DJ Delorie <dj@redhat.com>
1392 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1393 types, not just __int128.
1394 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1395 types, not just __int128.
1396 (cpp_atomic_builtins): Round pointer sizes up.
1397 (type_suffix): Use type precision, not specific types.
1398 * c-common.c (c_common_reswords): Remove __int128 special case.
1399 (c_common_type_for_size): Check for all __intN types, not just
1401 (c_common_type_for_mode): Likewise.
1402 (c_common_signed_or_unsigned_type): Likewise.
1403 (c_build_bitfield_integer_type): Likewise.
1404 (c_common_nodes_and_builtins): Likewise.
1405 (keyword_begins_type_specifier): Likewise.
1406 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1409 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1411 * c-common.c: Use hash_table instead of hashtab.
1413 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1415 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1418 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1423 * c-common.c (warn_logical_operator): Punt for vectors.
1425 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1427 Implement SD-6: SG10 Feature Test Recommendations
1428 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1429 macros and the __has_header macro.
1431 2014-09-30 Jason Merrill <jason@redhat.com>
1433 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1434 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1435 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1437 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1438 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1440 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1441 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1443 2014-09-24 Marek Polacek <polacek@redhat.com>
1447 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1449 2014-09-23 Andi Kleen <ak@linux.intel.com>
1451 * c-common.c (handle_no_reorder_attribute): New function.
1452 (c_common_attribute_table): Add no_reorder attribute.
1454 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1456 * c-cppbuiltin.c (c_cpp_builtins): Define
1457 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1460 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1462 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1463 for supported floating-point modes.
1465 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1467 * c.opt (Wpsabi): Use LangEnabledBy.
1468 * c-opts.c (c_common_handle_option): Do not handle here.
1470 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1472 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1473 macros for floating-point modes.
1475 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1478 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1479 __*_DENORM_MIN__ without denormals.
1481 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1483 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1484 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1485 ubsan_create_data callers.
1486 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1487 index is constant or BIT_AND_EXPR with constant mask and is
1488 small enough for the bound.
1489 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1490 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1492 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1494 * c.opt: Add CppReason to various flags.
1495 (Wdate-time): Re-sort.
1496 * c-common.c: Include c-common.h earlier.
1497 (struct reason_option_codes_t): Delete.
1498 (c_option_controlling_cpp_error): Prefix global type and struct
1501 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1503 * c.opt (Wnormalized): New.
1504 (Wnormalized=): Use Enum and Reject Negative.
1505 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1507 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1509 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1510 digits of floating-point modes if -fbuilding-libgcc.
1512 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1514 * c-cppbuiltin.c (c_cpp_builtins): Also define
1515 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1516 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1517 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1518 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1519 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1520 __LIBGCC_STACK_GROWS_DOWNWARD__,
1521 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1522 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1523 __LIBGCC_DWARF_FRAME_REGISTERS__,
1524 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1525 __LIBGCC_STACK_POINTER_REGNUM__ and
1526 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1527 (builtin_define_with_value): Handle backslash-escaping in string
1530 2014-09-05 Richard Biener <rguenther@suse.de>
1533 * c-format.c (check_format_arg): Properly handle
1534 effectively signed POINTER_PLUS_EXPR offset.
1536 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1538 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1539 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1540 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1542 * c-opts.c (c_common_handle_option): Do not handle here.
1543 (sanitize_cpp_opts): Likewise.
1544 * c-common.c (struct reason_option_codes_t): Handle
1545 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1547 2014-09-03 Marek Polacek <polacek@redhat.com>
1549 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1551 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1552 Balaji V. Iyer <balaji.v.iyer@intel.com>
1553 Igor Zamyatin <igor.zamyatin@intel.com>
1555 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1556 * c-common.c (c_common_reswords): Added _Cilk_for.
1557 * c-common.h (enum rid): Added RID_CILK_FOR.
1558 (cilk_for_number_of_iterations): Add declaration.
1559 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1561 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1562 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1564 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1566 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1567 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1568 Wundef): Use CPP, Var and Init.
1569 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1571 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1573 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1574 * c-opts.c (c_common_handle_option): Do not handle here.
1576 2014-08-25 Jason Merrill <jason@redhat.com>
1578 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1579 -std=c++14 and -std=gnu++14, rather than the reverse.
1580 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1581 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1582 * c-common.h (cxx_dialect): Remove cxx1y.
1584 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1586 * c-common.h (enum cxx_dialect): Add cxx14.
1587 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1588 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1589 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1591 2014-08-22 Jason Merrill <jason@redhat.com>
1593 * c.opt (std=gnu++17): Fix alias.
1595 2014-08-22 Marek Polacek <polacek@redhat.com>
1598 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1599 check for vector types. Drop LHS argument.
1600 * c-common.h (warn_logical_not_parentheses): Adjust.
1602 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1604 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1605 (Wmultichar): Likewise.
1606 (Wdate-time): Use C-family languages instead of Common. Use CPP
1608 * c-opts.c (c_common_handle_option): Do not handle the above
1610 (sanitize_cpp_opts): Likewise.
1612 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1615 * c-opts.c: Include tree-diagnostics.h.
1616 (c_diagnostic_finalizer): New.
1617 (c_common_initialize_diagnostics): Use it.
1619 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1621 PR preprocessor/51303
1622 * c-common.c (struct reason_option_codes_t option_codes):
1623 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1625 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1629 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1630 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1631 (c_common_post_options): Call init_global_opts_from_cpp.
1632 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1634 2014-08-19 Marek Polacek <polacek@redhat.com>
1637 * c-common.c (maybe_warn_bool_compare): New function.
1638 * c-common.h (maybe_warn_bool_compare): Declare.
1639 * c.opt (Wbool-compare): New option.
1641 2014-08-19 Marek Polacek <polacek@redhat.com>
1643 * c.opt (Wc99-c11-compat): New option.
1645 2014-08-19 Marek Polacek <polacek@redhat.com>
1647 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1648 to warn_c90_c99_compat.
1649 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1652 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1653 Steven Bosscher <steven@gcc.gnu.org>
1656 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1657 format_check_results.
1658 (check_function_format): Use true and add comment for boolean
1660 (finish_dollar_format_checking): Use explicit location when warning.
1661 (check_format_info): Likewise.
1662 (check_format_arg): Set extra_arg_loc and format_string_loc.
1663 (check_format_info_main): Use explicit location when warning.
1664 (check_format_types): Pass explicit location.
1665 (format_type_warning): Likewise.
1667 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1670 * c-format.c: Handle Fortran flags.
1672 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1675 * array-notation-common.c (find_rank): Added handling for other
1676 types of references.
1678 2014-08-10 Marek Polacek <polacek@redhat.com>
1681 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1682 * c.opt (Wc90-c99-compat): Add option.
1684 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1686 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1688 2014-08-03 Marek Polacek <polacek@redhat.com>
1690 * c-common.c (check_case_value): Add location_t parameter. Use it.
1691 (c_add_case_label): Pass loc to check_case_value.
1693 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1695 * cilk.c: Use hash_map instead of pointer_map.
1697 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1699 * c-gimplify.c: Use hash_set instead of pointer_set.
1701 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1704 * array-notation-common.c (extract_array_notation_exprs): Handling
1707 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1709 * c-common.h (min_align_of_type): Removed prototype.
1710 * c-common.c (min_align_of_type): Removed.
1711 * c-ubsan.h (ubsan_maybe_instrument_reference,
1712 ubsan_maybe_instrument_member_call): New prototypes.
1713 * c-ubsan.c: Include stor-layout.h and builtins.h.
1714 (ubsan_maybe_instrument_reference_or_call,
1715 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1718 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1721 * c.opt (-Wreturn-local-addr): Move to common.opt.
1723 2014-07-30 Jason Merrill <jason@redhat.com>
1728 * c.opt (-fuse-all-virtuals): New.
1730 2014-07-30 Tom Tromey <tromey@redhat.com>
1733 * c.opt (Wdesignated-init): New option.
1734 * c-common.c (c_common_attribute_table): Add "designated_init".
1735 (handle_designated_init): New function.
1737 2014-07-24 Marek Polacek <polacek@redhat.com>
1740 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1742 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1744 PR preprocessor/60723 - missing system-ness marks for macro tokens
1745 * c-ppoutput.c (struct print::prev_was_system_token): New data
1747 (init_pp_output): Initialize it.
1748 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1749 (do_line_change): Return a flag saying if a line marker was
1751 (scan_translation_unit): Detect if the system-ness of the token we
1752 are about to emit is different from the one of the previously
1753 emitted token. If so, emit a line marker. Avoid emitting useless
1754 adjacent line markers. Avoid emitting line markers for tokens
1755 originating from the expansion of built-in macros.
1756 (scan_translation_unit_directives_only): Adjust.
1758 2014-07-15 Marek Polacek <polacek@redhat.com>
1760 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1761 TYPE_MAX_VALUE is NULL.
1763 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1766 * c.opt (Wmemset-transposed-args): New warning.
1768 2014-07-10 Jason Merrill <jason@redhat.com>
1772 * c.opt (-fuse-all-virtuals): New.
1774 2014-07-09 Richard Biener <rguenther@suse.de>
1777 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1778 using unsigned arithmetic if overflow does not wrap instead of
1779 if overflow is undefined.
1781 2014-07-06 Marek Polacek <polacek@redhat.com>
1784 * c.opt (Wsizeof-array-argument): New option.
1786 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1788 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1789 comments->count <= 1, as comments->entries might be NULL.
1791 2014-07-01 Marek Polacek <polacek@redhat.com>
1793 * c.opt (Wint-conversion): New option.
1795 2014-07-01 Marek Polacek <polacek@redhat.com>
1798 * c.opt (Wincompatible-pointer-types): New option.
1800 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1803 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1804 Do not discard TYPE_QUALS of type.
1806 2014-06-26 Jason Merrill <jason@redhat.com>
1808 * c-common.h (enum cxx_dialect): Add cxx1z.
1809 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1810 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1812 2014-06-26 Teresa Johnson <tejohnson@google.com>
1814 * c-common.h (get_dump_info): Declare.
1815 * c-gimplify.c (c_genericize): Use saved dump files.
1816 * c-opts.c (c_common_parse_file): Begin and end dumps
1817 once around parsing invocation.
1818 (get_dump_info): New function.
1820 2014-06-23 Marek Polacek <polacek@redhat.com>
1821 Andrew MacLeod <amacleod@redhat.com>
1824 * c-common.c (get_atomic_generic_size): Don't segfault if the
1825 type doesn't have a size.
1827 2014-06-20 Marek Polacek <polacek@redhat.com>
1829 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1830 (ubsan_walk_array_refs_r): New function.
1831 (c_genericize): Instrument array bounds.
1832 * c-ubsan.c: Include "internal-fn.h".
1833 (ubsan_instrument_division): Mark instrumented arrays as having
1834 side effects. Adjust ubsan_type_descriptor call.
1835 (ubsan_instrument_shift): Likewise.
1836 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1837 (ubsan_instrument_bounds): New function.
1838 (ubsan_array_ref_instrumented_p): New function.
1839 (ubsan_maybe_instrument_array_ref): New function.
1840 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1841 (ubsan_array_ref_instrumented_p): Declare.
1842 (ubsan_maybe_instrument_array_ref): Declare.
1844 2014-06-20 Hale Wang <hale.wang@arm.com>
1847 * c.opt (fshort-enums): Add to LTO.
1848 * c.opt (fshort-wchar): Likewise.
1850 2014-06-16 Marek Polacek <polacek@redhat.com>
1853 * c.opt (Wswitch-bool): Add Var.
1855 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1858 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1859 #pragma omp target teams or
1860 #pragma omp {,target }teams distribute simd.
1862 2014-06-12 Jason Merrill <jason@redhat.com>
1864 * c.opt (Wabi=, fabi-compat-version): New.
1865 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1866 (c_common_post_options): Handle flag_abi_compat_version default.
1867 Disallow -fabi-compat-version=1.
1868 * c-common.h (abi_version_crosses): New.
1870 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1872 * c-common.c (handle_section_attribute): Update handling for
1873 section names that are no longer trees.
1875 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1878 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1879 (omp_pragmas): ... back here.
1881 2014-06-05 Marek Polacek <polacek@redhat.com>
1884 * c-common.c (warn_logical_not_parentheses): New function.
1885 * c-common.h (warn_logical_not_parentheses): Declare.
1886 * c.opt (Wlogical-not-parentheses): New option.
1888 2014-06-04 Marek Polacek <polacek@redhat.com>
1891 * c-common.c (check_case_bounds): Add location parameter.
1893 (c_add_case_label): Pass loc to check_case_bounds.
1895 2014-06-03 Marek Polacek <polacek@redhat.com>
1898 * c.opt (Wswitch-bool): New option.
1900 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1902 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1904 (record_types_used_by_current_var_decl): Move prototype to where
1907 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1908 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1909 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1911 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1913 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1914 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1916 * c-pretty-print.c (pp_c_void_constant): New function.
1917 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1918 (c_pretty_printer::expression): Handle VOID_CST.
1919 * cilk.c (extract_free_variables): Likewise.
1920 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1921 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1923 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1925 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1926 * c-pragma.c (push_alignment): Adjust.
1927 (handle_pragma_push_options): Likewise.
1929 2014-05-09 Marek Polacek <polacek@redhat.com>
1932 * c-common.c (check_user_alignment): Return -1 if alignment is error
1934 (handle_aligned_attribute): Don't call default_conversion on
1936 (handle_vector_size_attribute): Likewise.
1937 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1938 (handle_sentinel_attribute): Call default_conversion and allow even
1939 integral types as an argument.
1941 2014-05-08 Marek Polacek <polacek@redhat.com>
1944 * c-common.c (min_align_of_type): New function factored out from...
1945 (c_sizeof_or_alignof_type): ...here.
1946 * c-common.h (min_align_of_type): Declare.
1948 2014-05-08 Marek Polacek <polacek@redhat.com>
1951 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1952 parameter type of main.
1954 2014-05-07 DJ Delorie <dj@redhat.com>
1956 * c-cppbuiltin.c (print_bits_of_hex): New.
1957 (builtin_define_type_minmax): Print values using hex so as not to
1958 require a pre-computed list of string values.
1960 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1961 Mike Stump <mikestump@comcast.net>
1962 Richard Sandiford <rdsandiford@googlemail.com>
1964 * c-ada-spec.c: Include wide-int.h.
1965 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1966 (dump_generic_ada_node): Use wide-int interfaces.
1967 * c-common.c: Include wide-int-print.h.
1968 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1969 (pointer_int_sum): Use wide-int interfaces.
1970 (c_common_nodes_and_builtins): Use make_int_cst.
1971 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1972 (handle_alloc_size_attribute): Use wide-int interfaces.
1973 (get_nonnull_operand): Likewise.
1974 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1975 * c-lex.c: Include wide-int.h.
1976 (narrowest_unsigned_type): Take a widest_int rather than two
1978 (narrowest_signed_type): Likewise.
1979 (interpret_integer): Update accordingly. Use wide-int interfaces.
1980 (lex_charconst): Use wide-int interfaces.
1981 * c-pretty-print.c: Include wide-int.h.
1982 (pp_c_integer_constant): Use wide-int interfaces.
1983 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1984 INT_CST_LT_UNSIGNED.
1986 2014-05-06 Richard Biener <rguenther@suse.de>
1988 * c-opts.c (c_common_post_options): For -freestanding,
1989 -fno-hosted and -fno-builtin disable pattern recognition
1990 if not enabled explicitely.
1992 2014-05-02 Marek Polacek <polacek@redhat.com>
1994 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1996 2014-05-01 Marek Polacek <polacek@redhat.com>
1999 * c.opt (Wdiscarded-qualifiers): Add.
2001 2014-04-30 Marek Polacek <polacek@redhat.com>
2003 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2004 INT_MIN / -1 sanitization only for integer types.
2006 2014-04-25 Marek Polacek <polacek@redhat.com>
2009 * c-common.c (handle_noinline_attribute): Warn if the attribute
2010 conflicts with always_inline attribute.
2011 (handle_always_inline_attribute): Warn if the attribute conflicts
2012 with noinline attribute.
2014 2014-04-25 Marek Polacek <polacek@redhat.com>
2017 * c-common.c (check_main_parameter_types): Warn about variadic main.
2019 2014-04-24 Mike Stump <mikestump@comcast.net>
2021 * c.opt (Wshadow-ivar): Default to on.
2023 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2025 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2027 2014-04-23 Marek Polacek <polacek@redhat.com>
2029 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2031 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2034 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2035 if flag_sanitize_undefined_trap_on_error.
2036 (ubsan_instrument_division, ubsan_instrument_shift,
2037 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2038 if !flag_sanitize_recover.
2040 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2043 * c-common.c (registered_builtin_types): Make non-static.
2044 * c-common.h (registered_builtin_types): Declare.
2046 2014-04-14 Richard Biener <rguenther@suse.de>
2047 Marc Glisse <marc.glisse@inria.fr>
2050 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2051 apply may-alias the scalar pointer type when applicable.
2053 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2056 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2057 as possible argument for Cilk_spawn.
2059 2014-04-11 Tobias Burnus <burnus@net-b.de>
2062 * c.opt (Wformat-signedness): Add
2063 * c-format.c(check_format_types): Use it.
2065 2014-04-11 Jason Merrill <jason@redhat.com>
2068 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2069 default_conversion for an array argument.
2071 2014-04-08 Marek Polacek <polacek@redhat.com>
2074 * c-ubsan.c: Include asan.h.
2075 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2077 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2079 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2081 2014-04-02 Marek Polacek <polacek@redhat.com>
2083 * c-common.h (c_expand_expr): Remove declaration.
2085 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2088 * c-common.c (add_atomic_size_parameter): When creating new
2089 params vector, push the size argument first.
2091 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2093 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2094 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2095 ubsan_create_data callers.
2097 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2100 * c-opts.c (c_finish_options): Restore cb_file_change call to
2103 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2106 * c-pragma.c (apply_pragma_weak): Only look at
2107 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2108 DECL_ASSEMBLER_NAME_SET_P (decl).
2109 (maybe_apply_pending_pragma_weaks): Exit early if
2110 vec_safe_is_empty (pending_weaks) rather than only when
2112 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2113 set assembler name back to NULL afterwards.
2115 2014-03-11 Jason Merrill <jason@redhat.com>
2117 * c.opt: Add -std=gnu++14.
2119 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2121 * c-opts.c (c_common_post_options): Don't override
2122 -ffp-contract=fast if unsafe-math-optimizations is on.
2124 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2126 * c.opt: Enable LTO FE for fshort-double.
2128 2014-03-07 Jason Merrill <jason@redhat.com>
2130 * c.opt: Add -std=c++14.
2132 2014-03-06 Marek Polacek <polacek@redhat.com>
2135 * cilk.c (contains_cilk_spawn_stmt): New function.
2136 (contains_cilk_spawn_stmt_walker): Likewise.
2137 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2138 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2140 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2142 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2143 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2144 even when flag_preprocess_only.
2146 2014-02-26 Jason Merrill <jason@redhat.com>
2150 * c-common.c (shorten_compare): Don't check
2151 c_inhibit_evaluation_warnings.
2153 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2156 * c-common.c (c_common_nodes_and_builtins): When initializing
2157 c_uint{16,32,64}_type_node, also set corresponding
2158 uint{16,32,64}_type_node to the same value.
2161 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2162 for PRAGMA_IVDEP if flag_preprocess_only.
2164 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2167 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2168 if false, add ADD itself, rather than vice versa.
2169 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2170 copy. For SAVE_EXPR, only call merge_tlist once.
2172 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2175 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2177 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2179 (c_common_attribute_table): Add alloc_align and assume_aligned
2182 2014-02-06 Marek Polacek <polacek@redhat.com>
2185 * c-common.c (warn_for_sign_compare): Call warning_at with location
2188 2014-02-05 Marek Polacek <polacek@redhat.com>
2191 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2194 2014-02-04 Marek Polacek <polacek@redhat.com>
2197 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2200 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2204 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2205 handle_vector_size_attribute, handle_nonnull_attribute): Call
2206 default_conversion on the attribute argument.
2207 (handle_nonnull_attribute): Increment the argument number.
2209 2014-01-31 Marek Polacek <polacek@redhat.com>
2212 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2213 build_function_call_vec.
2214 (resolve_overloaded_builtin): Likewise.
2215 * c-common.h (build_function_call_vec): Adjust declaration.
2217 2014-01-30 Marek Polacek <polacek@redhat.com>
2220 * c-common.h (unsafe_conversion_p): Adjust declaration.
2221 (warnings_for_convert_and_check): Likewise.
2222 (convert_and_check): Likewise.
2223 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2224 expansion_point_location_if_in_system_header on it.
2225 (warnings_for_convert_and_check): Add location parameter. Call
2226 expansion_point_location_if_in_system_header on it. Use it.
2227 (convert_and_check): Add location parameter. Use it.
2228 (conversion_warning): Likewise.
2229 (c_add_case_label): Adjust convert_and_check calls.
2230 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2232 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2234 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2236 * c-pragma.c (init_pragma): Likewise.
2239 2014-01-23 Marek Polacek <polacek@redhat.com>
2242 * c-common.c (shorten_compare): Add location_t parameter.
2243 * c-common.h (shorten_binary_op): Adjust declaration.
2245 2014-01-23 Marek Polacek <polacek@redhat.com>
2248 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2249 * c-common.h: Declare it.
2251 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2253 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2254 * c-ada-spec.c (dump_ads): Likewise.
2255 (cpp_check): Likewise.
2256 (dump_ada_specs): Likewise.
2258 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2261 * c-common.c (handle_no_instrument_function_attribute): Allow
2262 no_instrument_function attribute in class member
2263 definition/declaration.
2265 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2268 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2269 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2270 being COMPOUND_EXPR.
2271 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2272 operand a SAVE_EXPR and second MODIFY_EXPR.
2274 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2277 * c-pch.c (c_common_write_pch): Call
2278 prepare_target_option_nodes_for_pch.
2280 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2282 Update copyright years
2284 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2286 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2287 the copyright notice.
2289 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2291 * c-ada-spec.c (print_constructor): New function.
2292 (print_destructor): Retrieve the origin of the destructor.
2293 (print_ada_declaration): Revamp handling of constructors/destructors.
2295 2013-12-23 Stuart Hastings <stuart@apple.com>
2296 Bill Maddox <maddox@google.com>
2297 Jason Merrill <jason@redhat.com>
2299 * c.opt: Add -fdeclone-ctor-dtor.
2300 * c-opts.c (c_common_post_options): Default to on iff -Os.
2302 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2304 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2306 * c-pragma.h (enum pragma_cilk_clause): Remove.
2307 (enum pragma_omp_clause): Added the following fields:
2308 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2309 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2310 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2311 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2312 PRAGMA_CILK_CLAUSE_UNIFORM.
2315 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2317 * cilk.c (cilk_outline): Made this function non-static.
2318 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2319 (create_cilk_wrapper): Added a new parameter: a function pointer.
2320 (c_install_body_w_frame_cleanup): Remove
2321 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2322 * c-common.h (cilk_outline): New prototype.
2323 (gimplify_cilk_spawn): Removed two parameters.
2324 (cilk_install_body_with_frame_cleanup): New prototype.
2325 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2326 CILK_SPAWN_STMT case.
2328 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2330 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2332 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2333 (int_array_type_node): Remove.
2334 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2336 2013-12-05 Marek Polacek <polacek@redhat.com>
2339 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2340 [ADJUST_FIELD_ALIGN].
2342 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2345 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2346 and check field alignment if set.
2347 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2348 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2350 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2351 Marek Polacek <polacek@redhat.com>
2353 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2354 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2356 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2359 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2362 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2365 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2366 goto invalid. If it is error_mark_node, don't issue further
2369 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2371 * c.opt (Wopenmp-simd): New.
2373 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2375 * c-ubsan.h (ubsan_instrument_return): New prototype.
2376 * c-ubsan.c (ubsan_instrument_return): New function.
2378 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2380 * c-common.c: Add required include files from gimple.h.
2381 * c-gimplify.c: Likewise
2384 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2386 * c-common.c (unsafe_conversion_p): Remove use of
2387 EXPR_LOC_OR_HERE macro.
2388 (conversion_warning): Likewise.
2389 (warnings_for_convert_and_check): Likewise.
2390 (warn_for_collisions_1): Likewise.
2391 (shorten_compare): Likewise, and remove use of in_system_header
2392 macro, using the location from the former.
2393 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2394 (cb_def_pragma): Remove use of in_system_header macro.
2395 (lex_string): Likewise.
2396 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2398 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2399 Mike Stump <mikestump@comcast.net>
2400 Richard Sandiford <rdsandiford@googlemail.com>
2402 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2403 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2404 tree_fits_shwi_p or tree_fits_uhwi_p.
2405 (dump_generic_ada_node): Likewise.
2406 * c-format.c (check_format_arg): Likewise.
2407 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2409 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2411 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2413 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2416 * c-common.c (unsafe_conversion_p): Make this function
2417 return an enumeration with more detail.
2418 (conversion_warning): Use the new return type of
2419 unsafe_conversion_p to separately warn either about conversions
2420 that lower floating point number precision or about the other
2421 kinds of conversions.
2422 * c-common.h (enum conversion_safety): New enumeration.
2423 (unsafe_conversion_p): switching return type to
2424 conversion_safety enumeration.
2425 * c.opt: Adding new warning -Wfloat-conversion and
2426 enabling it with -Wconversion.
2428 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2430 * c-opts.c: Include plugin.h.
2431 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2433 2013-11-19 Marek Polacek <polacek@redhat.com>
2435 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2437 (ubsan_instrument_shift): Likewise.
2438 (ubsan_instrument_vla): Likewise.
2440 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2442 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2443 cast to unsigned type.
2445 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2447 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2449 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2450 rather than tree_low_cst.
2452 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2454 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2455 tree_to_uhwi throughout.
2457 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2459 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2460 tree_low_cst (..., 0) with tree_to_shwi throughout.
2462 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2464 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2465 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2467 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2469 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2470 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2472 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2474 * c-cilkplus.c: New file.
2475 * c-common.c (readonly_error): Add location argument.
2476 * c-common.h (readonly_error): Same.
2477 (c_finish_cilk_clauses): Protoize.
2478 (c_check_cilk_loop): Same.
2479 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2480 Do not fail on error_mark_node.
2481 Abstract increment canonicalization to here...
2482 (c_omp_for_incr_canonicalize_ptr): New.
2483 c-pragma.c (init_pragma): Register "simd" pragma.
2484 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2485 (enum pragma_cilk_clause): New.
2487 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2489 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2490 wchar_type and host_integerp checks.
2492 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2494 * c-common.c: Likewise.
2495 * c-gimplify.c: Likewise.
2498 2013-11-14 Diego Novillo <dnovillo@google.com>
2500 * c-common.c: Include fold-const.h.
2501 Include stor-layout.h.
2503 Include stringpool.h.
2506 Include trans-mem.h.
2507 * c-cppbuiltin.c: Include stor-layout.h.
2508 Include stringpool.h.
2509 * c-format.c: Include stringpool.h.
2510 * c-lex.c: Include stringpool.h.
2511 Include stor-layout.h.
2512 * c-pragma.c: Include stringpool.h.
2515 Include gcc-symtab.h.
2516 * c-pretty-print.c: Include stor-layout.h.
2518 * cilk.c: Include stringpool.h.
2521 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2523 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2524 * c-common.c (c_common_reswords): Add __auto_type.
2525 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2527 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2529 * c-common.c: Include gimplify.h.
2530 * c-gimplify.c: Likewise.
2532 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2533 * c-ubsan.c: Don't include gimple.h.
2535 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2537 * c-common.c (c_common_reswords): Add _Thread_local.
2539 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2541 * c-common.c (atomic_size_supported_p): New function.
2542 (resolve_overloaded_atomic_exchange)
2543 (resolve_overloaded_atomic_compare_exchange)
2544 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2545 Use it instead of comparing size with a local list of sizes.
2547 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2548 Joseph Myers <joseph@codesourcery.com>
2550 * c-common.h (enum rid): Add RID_ATOMIC.
2551 * c-common.c (c_common_reswords): Add _Atomic.
2552 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2553 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2554 * c-format.c (check_format_types): Check for extra _Atomic
2555 qualifiers in format argument.
2556 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2557 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2559 2013-11-06 Tobias Burnus <burnus@net-b.de>
2561 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2563 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2565 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2567 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2568 to mean lack of IEEE 754 support.
2570 2013-11-05 Tobias Burnus <burnus@net-b.de>
2572 * c.opt (-Wdate-time): New option
2573 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2575 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2577 * c-cppbuiltin.c (cpp_iec_559_value): Test
2578 flag_excess_precision_cmdline not flag_excess_precision.
2580 2013-11-05 Tobias Burnus <burnus@net-b.de>
2582 * c.opt (fopenmp-simd): New option.
2583 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2584 (omp_pragmas): ... this new struct.
2585 (c_pp_lookup_pragma): Also walk omp_pragmas.
2586 (init_pragma): Init pragmas for -fopenmp-simd.
2588 2013-11-04 Marek Polacek <polacek@redhat.com>
2591 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2593 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2595 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2597 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2599 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2601 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2602 (dump_ada_specs): Adjust prototype of second callback.
2603 * c-ada-spec.c (cpp_check): New global variable.
2604 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2605 (print_generic_ada_decl): Likewise.
2606 (has_static_fields): Change return type to bool and add guard.
2607 (has_nontrivial_methods): New predicate.
2608 (is_tagged_type): Change return type to bool.
2609 (separate_class_package): Call has_nontrivial_methods.
2610 (pp_ada_tree_identifier): Minor tweaks.
2611 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2612 (dump_ada_array_domains): Likewise.
2613 (dump_ada_array_type): Likewise.
2614 (dump_template_types): Remove cpp_check parameter and do not pass it to
2615 dump_generic_ada_node.
2616 (dump_ada_template): Likewise.
2617 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2619 (print_ada_methods): Change return type to integer. Remove cpp_check
2620 parameter and do not pass it down.
2621 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2622 dump_generic_ada_node.
2623 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2625 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2626 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2627 value of print_ada_methods.
2628 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2629 Set cpp_check to it before invoking dump_ada_nodes.
2630 (dump_ada_specs): Likewise.
2632 2013-11-03 Marek Polacek <polacek@redhat.com>
2634 * c-ubsan.c: Don't include hash-table.h.
2635 (ubsan_instrument_vla): New function.
2636 * c-ubsan.h: Declare it.
2638 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2640 Automated part of renaming of symtab_node_base to symtab_node.
2642 Patch autogenerated by rename_symtab.py from
2643 https://github.com/davidmalcolm/gcc-refactoring-scripts
2644 revision 58bb219cc090b2f4516a9297d868c245495ee622
2646 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2647 symtab_node_base to symtab_node.
2649 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2651 Implement C++14 digit separators.
2652 * c-lex.c (interpret_float): Remove digit separators from scratch string
2653 before building real literal.
2655 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2657 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2659 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2661 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2663 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2665 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2666 (insert_cilk_frame): New prototype.
2667 (cilk_init_builtins): Likewise.
2668 (gimplify_cilk_spawn): Likewise.
2669 (c_cilk_install_body_w_frame_cleanup): Likewise.
2670 (cilk_detect_spawn_and_unwrap): Likewise.
2671 (cilk_set_spawn_marker): Likewise.
2672 (build_cilk_sync): Likewise.
2673 (build_cilk_spawn): Likewise.
2676 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2678 Patch autogenerated by refactor_symtab.py from
2679 https://github.com/davidmalcolm/gcc-refactoring-scripts
2680 revision 58bb219cc090b2f4516a9297d868c245495ee622
2682 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2683 to a true class hierarchy.
2684 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2686 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2688 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2690 2013-10-26 Jeff Law <law@redhat.com>
2692 * c-common.c (c_define_builtins): Remove mudflap support.
2693 * c.opt: Ignore and warn for mudflap options.
2695 2013-10-24 Tobias Burnus <burnus@net-b.de>
2698 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2699 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2701 2013-10-23 Jason Merrill <jason@redhat.com>
2703 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2705 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2707 * c-common.h (omp_clause_mask::operator !=): New method.
2708 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2709 instead of if (mask & something) tests everywhere.
2711 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2712 201307 instead of 201107.
2713 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2714 (c_common_attribute_table): Add "omp declare target" and
2715 "omp declare simd" attributes.
2716 (handle_omp_declare_target_attribute,
2717 handle_omp_declare_simd_attribute): New functions.
2718 * c-omp.c: Include c-pragma.h.
2719 (c_finish_omp_taskgroup): New function.
2720 (c_finish_omp_atomic): Add swapped argument, if true,
2721 build the operation first with rhs, lhs arguments and use NOP_EXPR
2723 (c_finish_omp_for): Add code argument, pass it down to make_code.
2724 (c_omp_split_clauses): New function.
2725 (c_split_parallel_clauses): Removed.
2726 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2727 c_omp_declare_simd_clauses_to_decls): New functions.
2728 * c-common.h (omp_clause_mask): New type.
2729 (OMP_CLAUSE_MASK_1): Define.
2730 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2731 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2732 omp_clause_mask::operator |, omp_clause_mask::operator &,
2733 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2734 omp_clause_mask::operator ==): New methods.
2735 (enum c_omp_clause_split): New.
2736 (c_finish_omp_taskgroup): New prototype.
2737 (c_finish_omp_atomic): Add swapped argument.
2738 (c_finish_omp_for): Add code argument.
2739 (c_omp_split_clauses): New prototype.
2740 (c_split_parallel_clauses): Removed.
2741 (c_omp_declare_simd_clauses_to_numbers,
2742 c_omp_declare_simd_clauses_to_decls): New prototypes.
2743 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2744 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2745 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2746 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2747 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2748 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2749 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2750 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2751 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2752 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2753 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2754 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2755 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2756 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2757 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2758 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2759 PRAGMA_OMP_CLAUSE_UNIFORM.
2761 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2763 PR tree-optimization/20318
2764 * c-common.c (handle_returns_nonnull_attribute): New function.
2765 (c_common_attribute_table): Add returns_nonnull.
2767 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2770 * c.opt (fcheck-new): Move to common.opt.
2772 2013-09-25 Marek Polacek <polacek@redhat.com>
2773 Jakub Jelinek <jakub@redhat.com>
2776 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2777 an expression if we can prove it is correct.
2778 (ubsan_instrument_division): Likewise. Remove unnecessary
2781 2013-09-18 Marek Polacek <polacek@redhat.com>
2784 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2786 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2788 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2791 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2792 fobjc-gc, freplace-objc-classes): Accept for LTO.
2794 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2796 * c-target.def: New hook
2798 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2801 * c.opt (Wdelete-incomplete): Add.
2803 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2805 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2806 (vector_types_compatible_elements_p): New function.
2807 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2809 (vector_types_compatible_elements_p): Declare.
2811 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2813 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2814 a virtual member function.
2815 (pp_simple_type_specifier): Remove.
2816 (pp_c_type_specifier): Likewise.
2817 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2818 Rename from pp_c_type_specifier. Adjust.
2819 (c_pretty_printer::c_pretty_printer): Do not assign to
2820 simple_type_specifier.
2822 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2824 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2826 (c_pretty_printer::storage_class_specifier): Likewise.
2827 (c_pretty_printer::initializer): Likewise.
2828 (pp_declaration): Remove.
2829 (pp_declaration_specifiers): Likewise.
2830 (pp_abstract_declarator): Likewise.
2831 (pp_declarator): Likewise.
2832 (pp_type_id): Likewise.
2833 (pp_statement): Likewise.
2834 (pp_constant): Likewise.
2835 (pp_id_expression): Likewise.
2836 (pp_primary_expression): Likewise.
2837 (pp_unary_expression): Likewise.
2838 (pp_multiplicative_expression): Likewise.
2839 (pp_conditional_expression): Likewise.
2840 (pp_assignment_expression): Likewise.
2841 (pp_expression): Likewise.
2842 (pp_c_type_id): Likewise.
2843 (pp_c_storage_class_specifier): Likewise.
2844 * c-pretty-print.c (pp_c_type_cast): Tidy.
2845 (pp_c_pointer): Likewise.
2846 (pp_c_type_specifier): Likewise.
2847 (pp_c_parameter_type_list): Likewise.
2848 (pp_c_function_definition): Likewise.
2849 (pp_c_init_declarator): Likewise.
2850 (pp_c_initializer_list): Likewise.
2851 (pp_c_constructor_elts): Likewise.
2852 (c_pretty_printer::direct_abstract_declarator): Likewise.
2853 (c_pretty_printer::declaration_specifiers): Likewise.
2854 (c_pretty_printer::primary_expression): Likewise.
2855 (c_pretty_printer::postfix_expression): Likewise.
2856 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2857 (c_pretty_printer::storage_class_specifier): Rename from
2858 pp_c_storage_class_specifier.
2859 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2860 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2861 storage_class_specifier, initializer, offset_list, flags.
2863 2013-08-30 Marek Polacek <polacek@redhat.com>
2865 * c-ubsan.c: New file.
2866 * c-ubsan.h: New file.
2868 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2870 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2872 (c_pretty_printer::declaration_specifiers): Likewise.
2873 (c_pretty_printer::declarator): Likewise.
2874 (c_pretty_printer::abstract_declarator): Likewise.
2875 (c_pretty_printer::direct_abstract_declarator): Likewise.
2876 (c_pretty_printer::direct_declarator): Likewise.
2877 (c_pretty_printer::function_specifier): Likewise.
2878 (pp_declaration): Adjust.
2879 (pp_declaration_specifiers): Likewise.
2880 (pp_abstract_declarator): Likewise.
2881 (pp_direct_declarator): Likewise.
2882 (pp_function_specifier): Likewise.
2883 (pp_direct_abstract_declarator): Remove as unused.
2884 (pp_c_declaration): Remove.
2885 (pp_c_declaration_specifiers): Likewise.
2886 (pp_c_declarator): Likewise.
2887 (pp_c_direct_declarator): Likewise.
2888 (pp_c_function_specifier): Likewise.
2889 (pp_c_direct_abstract_declarator): Likewise.
2890 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2891 from pp_c_abstract_declarator. Adjust.
2892 (c_pretty_printer::direct_abstract_declarator): Rename from
2893 pp_c_direct_abstract_declarator. Adjust.
2894 (c_pretty_printer::function_specifier): Rename from
2895 pp_c_function_specifier. Adjust.
2896 (c_pretty_printer::declaration_specifiers): Rename from
2897 pp_c_declaration_specifiers. Adjust.
2898 (c_pretty_printer::direct_declarator): Rename from
2899 pp_c_direct_declarator. Adjust.
2900 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2901 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2902 (c_pretty_printer::c_pretty_printer): Do not assign to
2903 declaration, declaration_specifiers, declarator,
2904 direct_declarator, direct_abstract_declarator, function_specifier.
2906 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2908 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2909 virtual member function.
2910 (c_pretty_printer::multiplicative_expression): Likewise.
2911 (c_pretty_printer::conditional_expression): Likewise.
2912 (c_pretty_printer::assignment_expression): Likewise.
2913 (c_pretty_printer::expression): Likewise.
2914 (pp_unary_expression): Adjust.
2915 (pp_multiplicative_expression): Likewise.
2916 (pp_assignment_expression): Likewise.
2917 (pp_conditional_expression): Likewise.
2918 (pp_expression): Likewise.
2919 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2920 from pp_c_unary_expression. Adjust.
2921 (c_pretty_printer::multiplicative_expression): Rename from
2922 pp_c_multiplicative_expression. Adjust.
2923 (c_pretty_printer::conditional_expression): Rename from
2924 pp_c_conditional_expression. Adjust.
2925 (c_pretty_printer::assignment_expression): Rename from
2926 pp_c_assignment_expression. Adjust.
2927 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2928 (c_pretty_printer::c_pretty_printer): Do not assign to
2929 unary_expression, multiplicative_expression,
2930 conditional_expression, expression.
2932 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2934 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2935 virtual member function.
2936 (pp_postfix_expression): Adjust.
2937 (pp_c_postfix_expression): Remove.
2938 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2939 from pp_c_postfix_expression. Adjust.
2940 (c_pretty_printer::c_pretty_printer): Do not assign to
2943 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2945 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2946 virtua member function.
2947 (pp_primary_expression): Adjust.
2948 (pp_c_primary_expression): Remove.
2949 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2950 from pp_c_primary_expression. Adjust.
2951 (pp_c_initializer_list): Use pp_primary_expression.
2952 (c_pretty_printer::c_pretty_printer): Do not assign to
2955 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2957 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2958 * c-pretty-print.c (M_): Remove.
2959 (c_pretty_printer::translate_string): Define.
2960 (pp_c_type_specifier): Use it.
2961 (pp_c_primary_expression): Likewise.
2962 (pp_c_expression): Likewise.
2964 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2966 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2968 (pp_c_id_expression): Remove.
2969 (pp_id_expression): Adjust.
2970 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2971 pp_c_id_expression. Adjust.
2972 (pp_c_postfix_expression): Use pp_id_expression.
2973 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2975 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2977 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2979 (pp_constant): Adjust.
2980 (pp_c_constant): Remove.
2981 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2982 pp_c_constant. Adjust.
2984 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2985 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2987 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2989 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2990 (c_pretty_printer::c_pretty_printer): Declare.
2991 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2992 c_pretty_printer_init. Adjust.
2993 (print_c_tree): Do not call c_pretty_printer_init.
2994 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2996 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2998 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3000 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3003 * c-common.c (pointer_int_sum): Add bool parameter.
3004 * c-common.h (pointer_int_sum): Adjust declaration.
3006 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3008 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3009 c_pretty_printer variable.
3011 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3013 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3015 (pp_c_base): Likewise. Adjust users.
3016 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3017 (pp_c_whitespace): Do not call pp_base.
3018 (pp_c_left_paren): Likewise.
3019 (pp_c_right_paren): Likewise.
3020 (pp_c_left_brace): Likewise.
3021 (pp_c_right_brace): Likewise.
3022 (pp_c_left_bracket): Likewise.
3023 (pp_c_right_bracket): Likewise.
3024 (pp_c_dot): Likewise.
3025 (pp_c_ampersand): Likewise.
3026 (pp_c_star): Likewise.
3027 (pp_c_arrow): Likewise.
3028 (pp_c_semicolon): Likewise.
3029 (pp_c_complement): Likewise.
3030 (pp_c_exclamation): Likewise.
3031 (pp_c_direct_declarator): Likewise.
3032 (pp_c_ws_string): Likewise.
3033 (pp_c_identifier): Likewise.
3034 (pp_c_statement): Likewise.
3035 (print_c_tree): Likewise.
3037 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3040 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3041 provide useful error strings.
3043 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3045 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3046 printer functions instead of pp_string or operators and punctuators.
3047 (dump_generic_ada_node): Likewise.
3048 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3049 (pp_c_relational_expression): Likewise.
3050 (pp_c_logical_or_expression): Likewise.
3052 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3054 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3055 functions instead of pp_character.
3056 (pp_ada_tree_identifier): Likewise.
3057 (dump_ada_double_name): Likewise.
3058 (dump_ada_function_declaration): Likewise.
3059 (dump_ada_array_domains): Likewise.
3060 (dump_template_types): Likewise.
3061 (dump_generic_ada_node): Likewise.
3062 (print_ada_declaration): Likewise.
3063 (print_ada_struct_decl): Likewise.
3064 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3066 2013-07-23 Tom Tromey <tromey@redhat.com>
3068 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3069 * c-common.c (c_common_reswords): Add _Generic.
3071 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3073 * c-common.c: Fix typos.
3074 * c-common.h: Likewise.
3076 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3079 * c-common.c (c_common_attribute_table): Add warn_unused.
3080 (handle_warn_unused_attribute): New.
3082 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3084 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3085 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3087 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3090 * c.opt: Add Wconditionally-supported.
3092 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3094 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3095 unused variables l_length and l_node.
3097 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3100 * c-common.c (complete_array_type): Delay folding first index
3101 like other indices. When folding, check for index overflow.
3103 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3106 * c-common.h (c_build_vec_perm_expr): New complain argument.
3107 * c-common.c (c_build_vec_perm_expr): Likewise.
3108 Use save_expr also in C++.
3110 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3112 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3113 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3114 * c-opts.c (c_common_post_options): Likewise.
3116 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3118 * array-notation-common.c (length_mismatch_in_expr): Changed the
3119 parameter type's from a dynamic array to a vec_tree. Also removed
3120 the size parameters.
3121 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3124 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3126 * c-common.h (struct cilkplus_an_parts): New structure.
3127 (struct cilkplus_an_loop_parts): Likewise.
3128 (cilkplus_extract_an_triplets): New prototype.
3129 (fix_sec_implicit_args): Likewise.
3130 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3131 (fix_sec_implicit_args): Likewise.
3133 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3135 * array-notation-common.c (find_inv_trees): Removed an unwanted
3137 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3138 enum rid to enum tree_code.
3140 2013-06-11 Jan Hubicka <jh@suse.cz>
3142 * c-common.c (handle_alias_ifunc_attribute): Do not set
3143 DECL_EXTERNAL for weakref variables.
3144 * c-pragma.c (handle_pragma_weak): Make sure aliases
3145 are not declared as external.
3147 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3149 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3150 function from c/c-array-notation.c.
3151 (is_cilkplus_reduce_builtin): Likewise.
3152 (find_rank): Likewise.
3153 (extract_array_notation_exprs): Likewise.
3154 (replace_array_notations): Likewise.
3155 (find_inv_trees): Likewise.
3156 (replace_inv_trees): Likewise.
3157 (contains_array_notation_expr): Likewise.
3158 (find_correct_array_notation_type): Likewise.
3159 * c-common.h (struct inv_list): Moved this struct from the file
3160 c/c-array-notation.c and added a new field called additional tcodes.
3161 (length_mismatch_in_expr_p): New prototype.
3162 (is_cilkplus_reduce_builtin): Likewise.
3163 (find_rank): Likewise.
3164 (extract_array_notation_exprs): Likewise.
3165 (replace_array_notation): Likewise.
3166 (find_inv_trees): Likewise.
3167 (replace_inv_trees): Likewise.
3168 (find_correct_array_notation_type): Likewise.
3170 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3172 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3173 function array_notation_init_builtins is called.
3174 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3175 * c-common.def (ARRAY_NOTATION_REF): New tree.
3176 * c-common.h (build_array_notation_expr): New function declaration.
3177 (build_array_notation_ref): Likewise.
3178 (extract_sec_implicit_index_arg): New extern declaration.
3179 (is_sec_implicit_index_fn): Likewise.
3180 (ARRAY_NOTATION_CHECK): New define.
3181 (ARRAY_NOTATION_ARRAY): Likewise.
3182 (ARRAY_NOTATION_START): Likewise.
3183 (ARRAY_NOTATION_LENGTH): Likewise.
3184 (ARRAY_NOTATION_STRIDE): Likewise.
3185 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3187 (pp_c_expression): Likewise.
3188 * c.opt (flag_enable_cilkplus): New flag.
3189 * array-notation-common.c: New file.
3191 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3194 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3196 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3198 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3201 2013-05-07 Han Shen <shenhan@google.com>
3203 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3205 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3207 * c-common.c (check_user_alignment): Emit error for negative values.
3209 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3211 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3213 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3215 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3216 __GXX_EXPERIMENTAL_CXX1Y__.
3218 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3219 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3221 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3222 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3223 to simply use OPT_Wpointer_arith.
3224 (c_sizeof_or_alignof_type): Likewise.
3226 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3228 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3230 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3232 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3233 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3236 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3238 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3240 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3242 * c-common.c (pointer_int_sum): Remove dead code.
3244 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3247 * c-common.c (handle_optimize_attribute): Don't call
3248 save_optabs_if_changed.
3250 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3253 * c-pch.c (pch_init): Free target_validity at the end.
3255 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3257 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3259 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3260 Jakub Jelinek <jakub@redhat.com>
3263 * c-common.c (handle_no_sanitize_address_attribute): New function.
3264 (c_common_attribute_table): Add no_sanitize_address attribute.
3265 (handle_no_address_safety_analysis_attribute): Add
3266 no_sanitize_address attribute, not no_address_safety_analysis
3269 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3272 * c-common.c (handle_optimize_attribute): Call
3273 save_optabs_if_changed.
3275 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3276 Steven Bosscher <steven@gcc.gnu.org>
3279 * c-opts.c (c_common_post_options): If debug info is enabled
3280 and non-dwarf*, refuse to load PCH files and when writing PCH
3283 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3286 * c-common.c (handle_error_attribute): Fix condition.
3288 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3291 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3293 2013-01-18 Jason Merrill <jason@redhat.com>
3296 * c.opt (-fextern-tls-init): New.
3297 * c-opts.c (c_common_post_options): Handle it.
3299 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3302 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3303 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3304 and is either negative or bigger or equal to type precision
3305 of the first operand.
3307 2012-12-03 Marek Polacek <polacek@redhat.com>
3310 * c-common.c (check_user_alignment): Swap order of tests,
3311 check TREE_CODE first.
3313 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3316 * c-common.h (overflow_type): New enum.
3317 (build_userdef_literal): Add overflow_type argument.
3318 (tree_userdef_literal): Add overflow_type.
3319 (USERDEF_LITERAL_OVERFLOW): New access macro.
3320 * c-common.c (build_userdef_literal): Add overflow_type
3322 * c-lex.c (c_lex_with_flags): Add overflow_type to
3323 build_userdef_literal calls.
3324 (interpret_integer, interpret_float): Add overflow_type argument.
3326 2012-11-28 Richard Biener <rguenther@suse.de>
3329 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3330 here and use a type with proper overflow behavior for types that would
3331 need to be promoted for the arithmetic.
3333 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3336 * c-common.c (handle_no_address_safety_analysis_attribute): New
3338 (c_common_attribute_table): Add no_address_safety_analysis.
3340 2012-11-16 Simon Baldwin <simonb@google.com>
3342 * c.opt: Add f[no-]canonical-system-headers.
3343 * c-opts.c (c_common_handle_option): Handle
3344 OPT_fcanonical_system_headers.
3346 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3349 * c-opts.c (c_common_handle_option): Set new flags.
3350 * c.opt: Describe new flags.
3352 2012-11-09 Jason Merrill <jason@redhat.com>
3354 * c.opt (Wabi-tag): New.
3356 2012-11-09 Andi Kleen <ak@linux.intel.com>
3359 * c-common.c (get_atomic_generic_size): Mask with
3362 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3365 * c.opt (Wformat): Make it Alias Wformat=1.
3366 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3367 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3369 (Wformat=): RejectNegative. Use LangEnabledBy.
3370 (Wnonnull): Use LangEnabledBy.
3371 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3372 * c-format.c (set_Wformat): Delete.
3373 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3374 (maybe_read_dollar_number): Likewise.
3375 (avoid_dollar_number): Likewise.
3376 (finish_dollar_format_checking): Likewise.
3377 (check_format_info): Likewise.
3378 (check_format_info_main): Likewise.
3379 (check_format_types): Likewise.
3380 (format_type_warning): Likewise.
3381 * c-common.c (int): Likewise.
3382 (check_function_sentinel): Likewise.
3383 * c-common.h (warn_format,set_Wformat): Do not declare here.
3385 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3388 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3389 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3391 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3393 (Wvariadic-macros): Init(1).
3394 * c-opts.c (c_common_handle_option): Do not handle them
3396 (c_common_post_options): Likewise.
3397 (sanitize_cpp_opts): warn_unused_macros is now
3398 cpp_warn_unused_macros.
3399 (push_command_line_include): Likewise.
3400 * c-common.c (warn_unknown_pragmas): Do not define.
3401 * c-common.h (warn_unknown_pragmas): Do not declare.
3403 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3406 * c-common.c (conversion_warning): Handle conditional expressions.
3408 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3411 * c.opt (Wreturn_local_addr): Define new option.
3413 2012-10-25 Jason Merrill <jason@redhat.com>
3415 * c.opt (Wvirtual-move-assign): New.
3417 * c.opt (Winherited-variadic-ctor): New.
3419 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3422 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3424 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3426 * c-common.h (pch_cpp_save_state): Declare.
3427 * c-target.def (c_preinclude): New hook.
3428 * c-opts.c (done_preinclude): New.
3429 (push_command_line_include): Handle default preincluded header.
3430 (cb_file_change): Call pch_cpp_save_state when calling
3431 push_command_line_include.
3432 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3433 (pch_cpp_save_state): New.
3434 (pch_init): Call pch_cpp_save_state conditionally, instead of
3435 calling cpp_save_state.
3437 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3441 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3442 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3443 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3444 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3445 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3446 * c-opts.c (c_common_handle_option): Remove explicit handling from
3448 (c_common_post_options): Likewise.
3450 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3452 * c-ada-spec.c (LOCATION_COL): Delete.
3453 (compare_location): New function.
3454 (compare_node): Use it.
3455 (compare_comment): Likewise.
3457 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3461 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3462 * c-opts.c (c_common_handle_option): Do not set them here. Add
3464 (c_common_post_options): Likewise.
3466 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3468 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3469 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3470 Remove POINTER_TYPE handling, add large unsigned handling and use
3471 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3473 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3476 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3477 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3478 locs and array of 3 trees instead of just single loc and single
3479 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3480 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3481 For *cmp* builtins that take two sources strings report warnings
3482 about first and second source, not about destination and source.
3484 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3487 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3489 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3491 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3492 declaring something coming from another file.
3494 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3497 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3499 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3502 * c-common.c (warn_about_parentheses): Add location_t parameter;
3503 use EXPR_LOC_OR_LOC.
3504 * c-common.h: Update declaration.
3506 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3509 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3510 more operations. Make error messages optional.
3511 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3512 (scalar_to_vector): Declare.
3514 2012-10-08 Jason Merrill <jason@redhat.com>
3516 * c-common.c (c_common_reswords): Add thread_local.
3518 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3520 PR c++/53528 C++11 attribute support
3521 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3523 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3525 (handle_aligned_attribute): In choose strictest alignment
3526 among many. Use new check_cxx_fundamental_alignment_constraints.
3527 (handle_transparent_union_attribute): In c++11 attribute syntax,
3528 don't look through typedefs.
3530 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3532 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3533 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3536 2012-09-25 Dehao Chen <dehao@google.com>
3539 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3540 map when read in the pch.
3542 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3544 * c-ada-spec.c: Style fixes.
3546 2012-09-18 Thomas Quinot <quinot@adacore.com>
3548 * c.opt (-fada-spec-parent): Define new command line switch.
3549 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3550 is specified, generate binding spec as a child of the specified unit.
3552 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3553 Manuel López-Ibáñez <manu@gcc.gnu.org>
3556 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3558 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3560 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3561 for pointers, and add missing Convention C pragma.
3562 (print_ada_struct_decl): Add missing aliased keyword.
3563 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3565 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3567 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3568 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3569 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3570 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3571 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3573 2012-08-10 Richard Guenther <rguenther@suse.de>
3575 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3577 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3579 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3580 instead of separate pp_newline and pp_flush.
3581 (print_c_tree): Likewise.
3583 2012-07-26 Richard Henderson <rth@redhat.com>
3585 * c-common.c (handle_hot_attribute): Allow labels.
3586 (handle_cold_attribute): Likewise.
3588 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3591 * c-common.c (check_function_nonnull): Handle multiple nonnull
3592 attributes properly.
3594 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3596 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3597 * c-ada-spec.c: Likewise.
3598 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3600 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3602 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3603 Remove code conditional on it.
3605 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3607 * c-gimplify.c: Do not include basic-block.h.
3608 * c-common.c: Do not include linfuncs.h.
3610 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3612 * c-common.h: Include tree.h.
3614 2012-07-02 Jason Merrill <jason@redhat.com>
3617 * c-common.c (get_priority): Call default_conversion.
3619 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3621 * c-pch.c (c_common_write_pch): Remove unused variables.
3623 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3625 * cppspec.c: Moved from gcc/ to here.
3627 2012-06-27 Kai Tietz <ktietz@redhat.com>
3629 PR preprocessor/37215
3630 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3632 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3634 * c-common.h (c_common_print_pch_checksum): Remove.
3635 * c-pch.c: Do not include output.h.
3636 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3637 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3638 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3639 (struct c_pch_header): Remove.
3640 (get_ident): Update gpch version.
3641 (pch_init): Do not print executable_checksum to asm_out_file.
3642 Do not fail if there is no asm_out_file to read back from. Set
3643 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3644 (c_common_write_pch): Verify that nothing was written to asm_out_file
3645 since pch_init was called. Do not write a c_pch_header, and do not
3646 copy from asm_out_file to the PCH.
3647 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3648 the content of asm_out_file from the PCH.
3649 (c_common_print_pch_checksum): Remove.
3650 * c-opts.c (c_common_init): Print out executable_checksum directly.
3652 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3654 * c-target.def (objc_declare_unresolved_class_reference,
3655 objc_declare_class_definition): Add new hooks.
3657 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3659 * c-lex.c: Do not include output.h.
3660 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3661 Remove uses of ASM_OUTPUT_IDENT.
3663 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3666 * c-common.h (c_build_vec_perm_expr): Move decl here.
3667 * c-common.c (c_build_vec_perm_expr): Move definition
3670 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3672 * c.opt (fconserve-space): Turn into a no-op.
3674 2012-06-04 Sterling Augustine <saugustine@google.com>
3676 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3677 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3678 both the start and end of the function.
3680 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3682 * c-common.c: Do not include output.h.
3683 * c-pragma.c: Likewise.
3685 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3687 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3688 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3689 (lang_decl_name): Handle namespace decls.
3691 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3693 * c-ada-spec.c: Do not include output.h.
3694 * c-semantics.c: Likewise.
3696 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3698 * c-common.c: Fix typo.
3700 2012-05-29 Michael Matz <matz@suse.de>
3702 * c-common.h (c_expand_decl): Remove prototype.
3704 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3706 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3707 * c-opts.c (c_common_handle_option): Remove code handling
3708 warn_missing_braces.
3710 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3713 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3716 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3719 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3721 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3723 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3724 * c-opts.c (c_common_handle_option): Do not handle explicitly
3725 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3727 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3729 PR preprocessor/7263
3730 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3731 to cpp_classify_number. For diagnostics, use the precise location
3732 instead of the global input_location.
3734 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3737 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3739 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3741 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3743 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3746 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3747 Wreorder): Use LangEnabledBy.
3748 * c-opts.c (c_common_handle_option): Do not enable them
3749 explicitly. Call lang-specific generated functions.
3750 (c_common_post_options): Do not set them here.
3752 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3754 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3755 Wmissing-field-initializers,Wmissing-parameter-type,
3756 Wold-style-declaration,Woverride-init): Use EnabledBy.
3757 * c-opts.c (c_common_post_options): Do not set here explicitly.
3759 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3762 * c-opts.c (c_common_handle_option): Use handle_generated_option
3763 to enable sub-options.
3765 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3768 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3770 2012-05-10 Richard Guenther <rguenther@suse.de>
3772 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3773 adjust commentary about TYPE_IS_SIZETYPE types.
3775 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3778 * c-common.c (warn_logical_operator): Check that argument of
3779 integer_zerop is not NULL.
3781 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3784 * c-common.c (warn_logical_operator): Do not warn if either side
3785 is already true or false.
3787 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3790 * c-common.c (expr_original_type): New.
3791 (shorten_compare): Do not warn for enumeration types.
3793 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3795 * c.opt (fpermissive): Add Var(flag_permissive).
3797 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3800 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3801 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3803 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3805 Add -Wvarargs option
3806 * c.opt (Wvarargs): Define new option.
3808 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3810 * c-common.c (check_function_arguments): Replace
3811 Wmissing-format-attribute with Wsuggest-attribute=format.
3813 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3815 * c.opt (Wsuggest-attribute=format): New. Alias of
3816 Wmissing-format-attribute.
3817 * c-format.c (decode_format_type): Replace
3818 Wmissing-format-attribute with Wsuggest-attribute=format.
3819 (check_function_format): Likewise.
3821 2012-04-27 Ollie Wild <aaw@google.com>
3823 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3824 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3825 * c.opt: Add Wliteral-suffix.
3827 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3830 * c.opt (Wpedantic): New.
3831 (pedantic): Alias Wpedantic.
3832 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3833 (c_common_post_options): Likewise.
3834 (sanitize_cpp_opts): Likewise.
3835 * c-lex.c (interpret_float): Likewise.
3836 * c-format.c (check_format_types): Likewise.
3837 * c-common.c (pointer_int_sum): Likewise.
3838 (c_sizeof_or_alignof_type): Likewise.
3839 (c_add_case_label): Likewise.
3840 (c_do_switch_warnings): Likewise.
3841 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3843 2012-04-15 Jason Merrill <jason@redhat.com>
3846 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3847 (C_STD_NAME): Distinguish between C++98 and C++11.
3849 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3852 * c-common.h (uint16_type_node): Rename into...
3853 (c_uint16_type_node): ...this.
3854 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3855 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3857 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3859 * c-common.c (warn_if_unused_value): Move definition to here.
3860 * c-common.h (warn_if_unused_value): Move declaration to here.
3862 2012-03-23 William Bader <williambader@hotmail.com>
3864 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3866 2012-03-20 Jason Merrill <jason@redhat.com>
3868 * c-common.h (enum cxx_dialect): Add cxx1y.
3869 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3871 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3872 * c-opts.c (c_common_post_options): Likewise.
3873 (set_std_cxx1y): New.
3874 (c_common_handle_option): Call it.
3875 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3877 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3880 * c.opt ([Wuseless-cast]): Add.
3882 2012-03-16 Richard Guenther <rguenther@suse.de>
3884 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3886 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3889 * c.opt (ftemplate-backtrace-limit) Add.
3891 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3893 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3895 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3896 (init_pragma): Don't register extern_prefix.
3898 2012-03-12 Richard Guenther <rguenther@suse.de>
3900 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3901 (builtin_type_for_size): Likewise.
3903 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3906 * c-common.c (sync_resolve_params): Don't decide whether to convert
3907 or not based on TYPE_SIZE comparison, convert whenever arg_type
3908 is unsigned INTEGER_TYPE.
3910 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3913 * c.opt ([Wunused-local-typedefs]): Fix description.
3915 2012-01-24 Mike Stump <mikestump@comcast.net>
3917 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3920 2012-01-18 Richard Guenther <rguenther@suse.de>
3922 * c-opts.c (c_common_post_options): Reset LTO flags if
3923 we are about to generate a PCH.
3925 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3928 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3929 use pp_unsigned_wide_integer.
3931 2012-01-10 Richard Guenther <rguenther@suse.de>
3934 * c-opts.c (c_common_handle_option): Move -Werror handling
3935 to language independent code.
3937 2012-01-05 Richard Guenther <rguenther@suse.de>
3940 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3943 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3946 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3947 of array types with an unknown bound.
3949 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3951 * c-common.c (flag_isoc99): Update comment to refer to C11.
3952 (flag_isoc1x): Change to flag_isoc11.
3953 * c-common.h (flag_isoc99): Update comment to refer to C11.
3954 (flag_isoc1x): Change to flag_isoc11.
3955 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3957 * c-opts.c (set_std_c1x): Change to set_std_c11.
3958 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3960 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3961 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3962 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3964 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3965 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3966 (std=gnu1x): Make alias of std=gnu11.
3968 2011-12-19 Jason Merrill <jason@redhat.com>
3971 * c-common.c (handle_transparent_union_attribute): Check the first
3972 field if the type is complete.
3974 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3977 * c-common.c (RID_IS_FINAL): Add.
3978 * c-common.h (RID_IS_FINAL): Add.
3980 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3982 * c.opt (fgnu-runtime): Provide full description.
3983 (fnext-runtime): Likewise.
3984 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3986 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3988 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3989 predefines in one place. Add LOCK_FREE predefines.
3990 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3993 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3996 * c-common.c (get_atomic_generic_size): Check for various error
3998 (resolve_overloaded_atomic_exchange,
3999 resolve_overloaded_atomic_compare_exchange,
4000 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4001 error_mark_node for error conditions.
4003 2011-11-08 Richard Guenther <rguenther@suse.de>
4008 2011-11-07 Richard Henderson <rth@redhat.com>
4009 Aldy Hernandez <aldyh@redhat.com>
4010 Torvald Riegel <triegel@redhat.com>
4012 Merged from transactional-memory.
4014 * c-common.c (handle_tm_wrap_attribute,
4015 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4016 (struct c_common_reswords): Added __transaction* keywords.
4017 (struct c_common_attribute_table): Added transaction* and tm_regparm
4019 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4021 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4022 find_tm_attribute): Declare.
4024 2011-11-07 Jason Merrill <jason@redhat.com>
4027 * c-common.c, c-common.h: Revert yesterday's changes.
4029 2011-11-06 Jason Merrill <jason@redhat.com>
4032 * c-common.c (decl_has_visibility_attr): Split out from...
4033 (c_determine_visibility): ...here.
4034 * c-common.h: Declare it.
4036 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4038 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4039 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4041 (check_user_alignment): New. Split out of
4042 handle_aligned_attribute. Disallow integer constants with
4043 noninteger types. Conditionally allow zero.
4044 (handle_aligned_attribute): Use check_user_alignment.
4045 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4047 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4048 Richard Henderson <rth@redhat.com>
4050 Merged from cxx-mem-model.
4052 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4053 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4054 parameters that are the same type size.
4055 (get_atomic_generic_size): New. Find size of generic
4056 atomic function parameters and do typechecking.
4057 (add_atomic_size_parameter): New. Insert size into parameter list.
4058 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4059 either __atomic_exchange_n or external library call.
4060 (resolve_overloaded_atomic_compare_exchange): Restructure
4061 __atomic_compare_exchange to either _n variant or external library call.
4062 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4063 __atomic_load_n or an external library call.
4064 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4065 __atomic_store_n or an external library call.
4066 (resolve_overloaded_builtin): Handle new __atomic builtins.
4068 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4071 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4072 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4073 <INDIRECT_REF>: Return the argument.
4074 <ARRAY_REF>: Remove special code for negative offset.
4075 Call fold_build_pointer_plus instead of size_binop.
4076 (fold_offsetof): Remove STOP_REF argument and adjust.
4077 * c-common.h (fold_offsetof_1): Declare.
4078 (fold_offsetof): Remove STOP_REF argument.
4080 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4083 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4084 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4085 Wnarrowing for C++0x and C++98.
4086 * c.opt ([Wnarrowing]): Update.
4088 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4091 * c.opt: Add Wzero-as-null-pointer-constant.
4093 2011-10-31 Jason Merrill <jason@redhat.com>
4095 * c.opt (-fdeduce-init-list): Off by default.
4098 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4099 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4101 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4103 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4106 * c.opt (fvisibility-inlines-hidden): Description change.
4108 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4110 Implement C++11 user-defined literals.
4111 * c-common.c (build_userdef_literal): New.
4112 * c-common.def: New tree code.
4113 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4114 * c-lex.c (interpret_float): Add suffix parm.
4115 (c_lex_with_flags): Build literal tokens.
4117 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4121 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4124 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4125 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4126 Wnarrowing for C++0x and C++98.
4127 * c.opt ([Wnarrowing]): Update.
4129 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4132 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4133 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4134 Wnarrowing for C++0x and C++98.
4135 * c.opt ([Wnarrowing]): Update.
4137 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4140 * c-common.c (conversion_warning): Remove code looking for
4141 artificial operands.
4143 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4146 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4147 !NO_IMPLICIT_EXTERN_C.
4149 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4151 * c-common.c (c_common_reswords): Add __bases,
4153 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4155 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4158 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4160 2011-10-15 Tom Tromey <tromey@redhat.com>
4161 Dodji Seketeli <dodji@redhat.com>
4163 * c.opt (fdebug-cpp): New option.
4164 * c-opts.c (c_common_handle_option): Handle the option.
4165 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4166 output stream in parameter. Factorized from ...
4167 (maybe_print_line): ... this. Dump location debug information when
4168 -fdebug-cpp is in effect.
4169 (print_line_1): New static function. Takes an output stream in
4170 parameter. Factorized from ...
4171 (print_line): ... here. Dump location information when -fdebug-cpp
4173 (scan_translation_unit): Dump location information when
4174 -fdebug-cpp is in effect.
4176 2011-10-15 Tom Tromey <tromey@redhat.com>
4177 Dodji Seketeli <dodji@redhat.com>
4179 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4181 * c-opts.c (c_common_handle_option)<case
4182 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4183 cases. Handle -ftrack-macro-expansion with and without argument.
4185 2011-10-15 Tom Tromey <tromey@redhat.com>
4186 Dodji Seketeli <dodji@redhat.com>
4188 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4189 (print_line, cb_define, do_line_change): Adjust to avoid touching
4190 the internals of struct line_map. Use the public API instead.
4191 * c-pch.c (c_common_read_pch): Likewise.
4192 * c-lex.c (fe_file_change): Likewise.
4194 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4197 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4199 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4202 * c-pretty-print.c (pp_c_floating_constant): Output
4203 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4205 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4207 * c-common.c (def_builtin_1): Delete old interface with two
4208 parallel arrays to hold standard builtin declarations, and replace
4209 it with a function based interface that can support creating
4210 builtins on the fly in the future. Change all uses, and poison
4211 the old names. Make sure 0 is not a legitimate builtin index.
4212 * c-omp.c (c_finish_omp_barrier): Ditto.
4213 (c_finish_omp_taskwait): Ditto.
4214 (c_finish_omp_flush): Ditto.
4216 2011-10-11 Tristan Gingold <gingold@adacore.com>
4218 * c.opt: (fallow-parameterless-variadic-functions): New.
4220 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4222 PR c++/33255 - Support -Wunused-local-typedefs warning
4223 * c-common.h (struct c_language_function::local_typedefs): New
4225 (record_locally_defined_typedef, maybe_record_typedef_use)
4226 (maybe_warn_unused_local_typedefs): Declare new functions.
4227 * c-common.c (record_locally_defined_typedef)
4228 (maybe_record_typedef_use)
4229 (maybe_warn_unused_local_typedefs): Define new functions.
4230 * c.opt: Declare new -Wunused-local-typedefs flag.
4232 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4235 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4238 2011-09-05 Richard Guenther <rguenther@suse.de>
4240 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4241 of integer_minus_one_node for empty array upper bounds.
4243 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4245 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4246 it's the first time it's being called on this main TU.
4248 2011-08-24 Richard Guenther <rguenther@suse.de>
4251 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4253 2011-08-22 Gabriel Charette <gchare@google.com>
4255 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4256 defined in cpp_init_builtins and c_cpp_builtins.
4258 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4260 * c-common.c (c_common_reswords): Add __builtin_complex.
4261 * c-common.h (RID_BUILTIN_COMPLEX): New.
4263 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4265 * c-common.c (c_common_reswords): Add _Noreturn.
4266 (keyword_is_function_specifier): Handle RID_NORETURN.
4267 * c-common.h (RID_NORETURN): New.
4269 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4271 * c-common.c (unsafe_conversion_p): New function. Check if it is
4272 unsafe to convert an expression to the type.
4273 (conversion_warning): Adjust, use unsafe_conversion_p.
4274 * c-common.h (unsafe_conversion_p): New function declaration.
4276 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4278 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4279 (c_finish_omp_taskyield): New prototype.
4280 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4281 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4282 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4283 or RHS1 have side-effects, evaluate those too in the right spot,
4284 if it is a decl and LHS is also a decl, error out if they
4286 (c_finish_omp_taskyield): New function.
4287 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4288 * c-pragma.c (omp_pragmas): Add taskyield.
4289 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4290 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4291 PRAGMA_OMP_CLAUSE_MERGEABLE.
4293 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4295 * c-common.h (set_underlying_type): Remove parm name from
4298 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4300 * c-pretty-print.h: Search c-common.h in c-family.
4302 2011-07-22 Jason Merrill <jason@redhat.com>
4305 * c.opt (Wnarrowing): New.
4308 * c-common.h: Declare c_linkage_bindings.
4309 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4312 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4313 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4314 as flag_isoc99 for 'restrict'.
4315 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4317 2011-07-21 Ian Lance Taylor <iant@google.com>
4320 * c-common.c (c_disable_warnings): New static function.
4321 (c_enable_warnings): New static function.
4322 (c_fully_fold_internal): Change local unused_p to bool. Call
4323 c_disable_warnings and c_enable_warnings rather than change
4324 c_inhibit_evaluation_warnings.
4326 2011-07-20 Jason Merrill <jason@redhat.com>
4328 PR c++/6709 (DR 743)
4329 PR c++/42603 (DR 950)
4330 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4331 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4332 (CPP_DECLTYPE): New.
4333 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4335 2011-07-19 Richard Guenther <rguenther@suse.de>
4337 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4338 * c-omp.c (c_finish_omp_for): Likewise.
4340 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4342 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4343 body on the next line.
4345 2011-07-08 Jason Merrill <jason@redhat.com>
4348 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4351 * c-common.c (c_apply_type_quals_to_decl): Don't check
4352 TYPE_NEEDS_CONSTRUCTING.
4354 2011-07-06 Richard Guenther <rguenther@suse.de>
4356 * c-common.c (c_common_nodes_and_builtins):
4357 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4359 2011-07-05 Richard Guenther <rguenther@suse.de>
4361 * c-common.c (c_common_nodes_and_builtins): Build all common
4364 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4366 * c-common.h (c_tree_chain_next): New static inline function.
4368 * c-common.c (check_builtin_function_arguments): Handle
4369 BUILT_IN_ASSUME_ALIGNED.
4371 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4373 * c-common.c: Add sync_ or SYNC__ to builtin names.
4374 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4376 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4378 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4380 (gen_pragma_handler): New union.
4381 (internal_pragma_handler): New type.
4382 (c_register_pragma_with_data)
4383 (c_register_pragma_with_expansion_and_data): New functions.
4385 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4386 (c_register_pragma, c_register_pragma_with_expansion)
4387 (c_invoke_pragma_handler): Changed to work with
4388 internal_pragma_handler.
4389 (c_register_pragma_with_data)
4390 (c_register_pragma_with_expansion_and_data): New functions.
4392 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4394 * c-common.c: Include common/common-target.h.
4395 (handle_section_attribute): Use
4396 targetm_common.have_named_sections.
4397 * c-cppbuiltin.c: Include common/common-target.h.
4398 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4400 2011-06-10 Richard Guenther <rguenther@suse.de>
4402 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4403 to print a IDENTIFIER_NODE.
4405 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4406 Joseph Myers <joseph@codesourcery.com>
4408 * c.opt (fbuilding-libgcc): New option.
4409 * c-cppbuiltin.c (c_cpp_builtins): Define
4410 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4412 2011-06-07 Jason Merrill <jason@redhat.com>
4414 * c-common.c (max_tinst_depth): Lower default to 900.
4416 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4418 2011-06-07 Richard Guenther <rguenther@suse.de>
4420 * c-common.c (c_common_nodes_and_builtins): Do not set
4421 size_type_node or call set_sizetype.
4423 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4426 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4427 type when using pointer comparison to compare types.
4429 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4431 * c.opt: Add -Wdelete-non-virtual-dtor.
4432 * c-opts.c (c_common_handle_option): Include it in -Wall.
4434 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4439 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4441 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4444 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4447 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4448 C++ don't call c_common_truthvalue_conversion on void type arms.
4450 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4452 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4453 (stmt_list_stack): Define.
4454 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4455 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4457 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4459 * c-common.c (warning_candidate_p): Check for BLOCKs.
4461 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4463 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4466 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4468 * c-common.c (def_fn_type): Remove extra va_end.
4470 2011-05-23 Jason Merrill <jason@redhat.com>
4473 * c-common.c (c_common_get_narrower): New.
4474 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4476 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4478 * c-common.h (check_function_arguments): Tweak prototype of
4479 check_function_arguments.
4480 * c-common.c (check_function_arguments): Likewise. Adjust
4481 calls to check_function_nonnull, check_function_format, and
4482 check_function_sentinel.
4483 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4484 separate attributes and typelist arguments. Use
4485 FOREACH_FUNCTION_ARGS to iterate over argument types.
4487 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4489 * c-common.c (c_common_reswords): Reorder.
4490 * c-common.h (rid): Likewise.
4492 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4494 * c-common.c (def_fn_type): Don't call build_function_type, call
4495 build_function_type_array or build_varargs_function_type_array
4497 (c_common_nodes_and_builtins): Likewise.
4499 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4501 * c-common.c (c_add_case_label): Omit the loc argument to
4503 * c-common.h (build_case_label): Remove.
4504 * c-semantics.c (build_case_label): Remove.
4506 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4508 * c-objc.h (objc_start_method_definition): Update prototype.
4509 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4511 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4513 * c-common.c (check_main_parameter_types): Reindent. Don't use
4514 TYPE_ARG_TYPES directly.
4515 (handle_nonnull_attribute): Likewise.
4516 (sync_resolve_params): Likewise.
4517 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4518 to check_format_string.
4519 (handle_format_attribute): Likewise.
4520 (check_format_string): Take a function type to examine instead of
4521 a type list. Use a function_arg_iterator to step through argument
4524 2011-05-04 Richard Guenther <rguenther@suse.de>
4526 * c-common.c (fix_string_type): Use size_int for index type bounds.
4527 (start_fname_decls): Do not pass NULL to build_int_cst.
4528 (c_init_attributes): Likewise.
4529 * c-lex.c (c_lex_with_flags): Likewise.
4531 2011-04-27 Jason Merrill <jason@redhat.com>
4533 * c-common.c (make_tree_vector_from_list): New.
4534 * c-common.h: Declare it.
4536 2011-04-26 Richard Guenther <rguenther@suse.de>
4538 PR preprocessor/48248
4539 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4540 for output size with -P.
4542 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4544 * c-common.c (struct c_common_resword): Add __underlying_type.
4545 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4547 2011-04-20 Jim Meyering <meyering@redhat.com>
4549 * c-format.c (init_dollar_format_checking): Remove useless
4552 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4554 * c-objc.h (objc_get_interface_ivars): Removed.
4555 (objc_detect_field_duplicates): New.
4556 * stub-objc.c: Likewise.
4558 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4560 * stub-objc.c (objc_declare_protocols): Renamed to
4561 objc_declare_protocol.
4562 * c-objc.h: Likewise.
4564 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4566 * stub-objc.c (objc_declare_class): Updated argument name.
4568 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4570 * c-common.h (c_common_init_ts): Declare.
4571 * c-common.c (c_common_init_ts): Define.
4573 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4575 * c-objc.h (objc_build_message_expr): Updated prototype.
4576 * stub-objc.c (objc_build_message_expr): Likewise.
4578 2011-04-12 Martin Jambor <mjambor@suse.cz>
4580 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4583 2011-04-11 Richard Guenther <rguenther@suse.de>
4585 * c-common.c (complete_array_type): Build a range type of
4588 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4590 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4591 (handle_type_generic_attribute): Likewise.
4593 2011-04-07 Jason Merrill <jason@redhat.com>
4596 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4597 conversion from C++0x scoped enum.
4599 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4601 * c-target-def.h: New file.
4602 * c-target.def: New file.
4603 * c-target.h: New file.
4604 * c-common.c (targetcm): Don't define here.
4605 * c-common.h (default_handle_c_option): Declare.
4606 * c-format.c: Include c-target.h instead of target.h.
4607 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4609 (default_handle_c_option): Move from targhooks.c.
4611 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4613 PR preprocessor/48248
4614 * c-ppoutput.c (print): Add src_file field.
4615 (init_pp_output): Initialize it.
4616 (maybe_print_line): Don't optimize by adding up to 8 newlines
4617 if map->to_file and print.src_file are different file.
4618 (print_line): Update print.src_file.
4620 2011-03-25 Kai Tietz <ktietz@redhat.com>
4622 * c-ada-spec.c (compare_comment): Use filename_cmp
4623 instead of strcmp for filename.
4625 2011-03-25 Jeff Law <law@redhat.com>
4627 * c-common.c (def_fn_type): Add missing va_end.
4629 2011-03-25 Jason Merrill <jason@redhat.com>
4631 * c.opt: Add -std=c++03.
4633 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4635 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4637 2011-03-17 Kai Tietz
4640 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4641 Display allowed attributes for function pointer types.
4642 (pp_c_attributes_display): New function to display
4643 attributes having affects_type_identity flag set to true.
4644 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4646 * c-common.c (c_common_attribute_table):
4648 (c_common_format_attribute_table): Likewise.
4650 2011-03-18 Jason Merrill <jason@redhat.com>
4652 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4653 * c-common.h: Don't declare it here.
4654 * c-common.c: Or define it here.
4655 * c-opts.c (c_common_handle_option): Or set it here.
4658 * c-common.c (handle_transparent_union_attribute): Don't
4659 make a duplicate type in C++.
4661 2011-03-15 Jason Merrill <jason@redhat.com>
4663 * c-common.c (max_constexpr_depth): New.
4664 * c-common.h: Declare it.
4665 * c-opts.c (c_common_handle_option): Set it.
4666 * c.opt (fconstexpr-depth): New option.
4668 2011-03-11 Jason Merrill <jason@redhat.com>
4670 * c-common.c (attribute_takes_identifier_p): Add missing const.
4673 * c-common.c (attribute_takes_identifier_p): Assume that an
4674 unknown attribute takes an identifier.
4676 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4679 * c-common.c (c_type_hash): Call list_length instead of iterating
4680 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4682 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4685 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4687 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4689 * c.opt (fobjc-abi-version=) New.
4690 (fobjc-nilcheck): New.
4692 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4695 * c-common.h (keyword_is_decl_specifier): Declare.
4696 * c-common.c (keyword_is_decl_specifier): Define.
4697 (keyword_is_function_specifier): New function.
4699 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4702 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4703 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4706 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4708 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4710 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4713 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4714 after init_c_lex if pch_file is set.
4716 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4719 * c.opt (-fkeep-inline-dllexport): New switch.
4721 2011-01-12 Richard Guenther <rguenther@suse.de>
4724 * c-common.c (handle_weak_attribute): Warn instead of error
4725 on declaring an inline function weak.
4727 2011-01-05 Tom Tromey <tromey@redhat.com>
4729 * c-common.h (lvalue_error): Update.
4730 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4733 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4736 * c-objc.h (objc_finish_message_expr): Added argument to
4739 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4741 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4744 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4746 * c-objc.h (objc_maybe_warn_exceptions): New.
4747 * stub-objc.c (objc_maybe_warn_exceptions): New.
4749 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4751 * c-common.h (readonly_error): Declare.
4752 * c-common.c (readonly_error): Define.
4754 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4756 * c-common.h (invalid_indirection_error): Declare.
4757 * c-common.c (invalid_indirection_error): Define.
4759 2010-12-03 Richard Guenther <rguenther@suse.de>
4762 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4763 (pp_c_unary_expression): Likewise.
4764 (pp_c_expression): Likewise.
4766 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4768 * c-common.h (objc_finish_function): New.
4769 (objc_non_volatilized_type): Removed.
4770 (objc_type_quals_match): Removed.
4771 * stub-objc.c (objc_finish_function): New.
4772 (objc_non_volatilized_type): Removed.
4773 (objc_type_quals_match): Removed.
4775 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4777 * c-common.h (parse_optimize_options): Declare.
4778 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4779 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4781 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4783 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4785 * c-pch.c (O_BINARY): Don't define here.
4786 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4788 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4790 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4791 targetm.except_unwind_info.
4793 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4795 * c-opts.c (c_common_handle_option): Pass location to
4796 set_struct_debug_option.
4798 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4800 * c-common.c (visibility_options): Move from ../opts.c.
4801 * c-common.h (struct visibility_flags, visibility_options):
4803 * c-opts.c (finish_options): Rename to c_finish_options.
4804 (c_common_init): Update call to finish_options.
4806 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4809 * c-lex.c (lex_string): Check that each string in an Objective-C
4810 string concat sequence starts with either one or zero '@', and
4811 that there are no spurious '@' signs at the end.
4813 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4815 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4816 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4817 HANDLE_PRAGMA_VISIBILITY.
4818 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4819 HANDLE_PRAGMA_VISIBILITY): Don't define.
4820 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4822 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4827 * c-common.h (keyword_begins_type_specifier): Declare.
4828 (keyword_is_storage_class_specifier): Declare.
4829 (keyword_is_type_qualifier): Declare.
4830 * c-common.c (keyword_begins_type_specifier): New function.
4831 (keyword_is_storage_class_specifier): New function.
4832 (keyword_is_type_qualifier): Declare.
4834 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4837 * c-common.c (in_late_binary_op): Define.
4838 (c_common_truthvalue_conversion): Check in_late_binary_op before
4839 calling c_save_expr.
4840 * c-common.h (in_late_binary_op): Declare.
4842 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4844 * c-opts.c (c_common_handle_option): Update calls to
4845 set_struct_debug_option.
4847 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4849 * c-common.h (objc_declare_protocols): Added additional argument.
4850 * stub-objc.c (objc_declare_protocol): Same change.
4852 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4855 * c-common.h (build_real_imag_expr): Declare.
4856 * c-semantics.c (build_real_imag_expr): Define.
4858 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4860 * c-opts.c (c_common_parse_file): Take no arguments.
4861 * c-common.h (c_common_parse_file): Update prototype.
4863 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4866 * c-common.c (warning_candidate_p): Don't track non-const calls
4869 2010-11-15 Ian Lance Taylor <iant@google.com>
4871 * c-lex.c (init_c_lex): Set macro debug callbacks if
4872 flag_dump_go_spec is set.
4874 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4876 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4877 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4879 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4881 PR preprocessor/45038
4882 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4885 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4887 * c-common.h (c_family_lang_mask): Declare.
4888 * c-opts.c (c_family_lang_mask): Make extern.
4889 * c-pragma.c (handle_pragma_diagnostic): Use
4890 control_warning_option.
4892 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4894 * c-common.c (parse_optimize_options): Update call to
4896 * c-common.h (c_common_handle_option): Update prototype.
4897 * c-opts.c (c_common_handle_option): Take location_t parameter and
4898 pass it to other functions.
4900 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4902 * c-opts.c (warning_as_error_callback): Remove.
4903 (c_common_initialize_diagnostics): Don't call
4904 register_warning_as_error_callback.
4905 (c_common_handle_option): Handle -Werror=normalized= here.
4907 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4909 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4911 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4913 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4914 Remove trailing '.' from diagnostics.
4915 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4917 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4919 * c-common.c (parse_optimize_options): Pass global_dc to
4921 * c-opts.c (c_common_handle_option): Pass &global_options to
4922 set_Wstrict_aliasing.
4923 * c.opt (v): Don't mark Common or document here.
4925 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4928 * c-format.c (format_type): New type gcc_objc_string_format_type.
4929 (valid_stringptr_type_p): New.
4930 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4931 (check_format_string): Pass expected type, use
4932 valid_stringptr_type_p (), check that the format string types are
4933 consistent with the format specification.
4934 (decode_format_attr): Warn if NSString is used outside objective-c.
4935 (format_types_orig): Add NSString.
4937 (format_flags): New.
4938 (check_format_arg): Handle format strings requiring an external parser.
4939 first_target_format_type: New variable.
4940 (handle_format_attribute): Set up first_target_format_type, pass the
4941 expected format arg string type to check_format_string().
4942 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4943 * stub-objc.c (objc_string_ref_type_p): New.
4944 (objc_check_format_arg): New.
4946 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4948 Fixed using the Objective-C 2.0 dot-syntax with class names.
4949 * c-common.h (objc_build_class_component_ref): New.
4950 * stub-objc.c (objc_build_class_component_ref): New.
4952 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4954 * c.opt (Wproperty-assign-default): New option.
4956 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4958 Implemented -fobjc-std=objc1 flag.
4959 * c.opt (fobjc-std=objc1): New option.
4961 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4963 Implemented format and noreturn attributes for Objective-C methods.
4964 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4965 attribute for Objective-C methods.
4967 2010-10-31 Jason Merrill <jason@redhat.com>
4969 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4972 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4974 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4975 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4976 (objc_add_property_declaration): Removed arguments for copies and
4978 (objc_build_getter_call): Renamed to
4979 objc_maybe_build_component_ref.
4980 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4981 (objc_is_property_ref): New.
4982 * c-common.c (c_common_reswords): Removed copies and ivar.
4983 * stub-objc.c (objc_add_property_declaration): Removed arguments
4984 for copies and ivar.
4985 (objc_build_getter_call): Renamed to
4986 objc_maybe_build_component_ref.
4987 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4988 (objc_is_property_ref): New.
4990 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4991 Matthew Gingell <gingell@adacore.com>
4993 * c-ada-spec.c (separate_class_package): New function.
4994 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4995 name of their enclosing package.
4996 (print_ada_declaration): Use separate_class_package.
4998 2010-10-27 Jason Merrill <jason@redhat.com>
5000 * c-common.c (c_common_reswords): Add __is_literal_type.
5001 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5003 * c-common.c (check_case_value): Remove special C++ code.
5005 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5007 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5008 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5010 (objc_add_property_declaration): Added additional arguments.
5011 (objc_property_attribute_kind): Removed.
5012 (objc_set_property_attr): Removed.
5013 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5015 * stub-objc.c (objc_add_property_declaration): Added additional
5017 (objc_set_property_attr): Removed.
5019 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5021 * c-common.h (objc_add_property_variable): Renamed to
5022 objc_add_property_declaration. Added location argument.
5023 * stub-objc.c (objc_add_property_variable): Same change.
5025 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5027 * c-common.h (objc_maybe_printable_name): New.
5028 * stub-objc.c (objc_maybe_printable_name): New.
5030 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5031 Andrew Pinski <pinskia@gmail.com>
5033 * c-common.h (c_common_mark_addressable_vec): Declare.
5034 * c-common.c (c_common_mark_addressable_vec): New function.
5036 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5038 * c-common.h (objc_set_method_type): Removed.
5039 (objc_add_method_declaration): Added boolean argument.
5040 (objc_start_method_definition): Same change.
5041 (objc_build_method_signature): Same change.
5042 * stub-objc.c (objc_set_method_type): Removed.
5043 (objc_add_method_declaration): Added boolean argument.
5044 (objc_start_method_definition): Same change.
5045 (objc_build_method_signature): Same change.
5047 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5049 * c-common.h (finish_file): Removed.
5050 (objc_write_global_declarations): New.
5051 * c-opts.c (c_common_parse_file): Do not call finish_file.
5052 * stub-objc.c (objc_write_global_declarations): New.
5054 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5056 Implemented parsing @synthesize and @dynamic for
5057 Objective-C/Objective-C++.
5058 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5059 (objc_add_synthesize_declaration): New.
5060 (objc_add_dynamic_declaration): New.
5061 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5062 * stub-objc.c (objc_add_synthesize_declaration): New.
5063 (objc_add_dynamic_declaration): New.
5065 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5068 * c-cppbuiltin.c (mode_has_fma): Move function here from
5069 builtins.c. Don't use the fma optab, instead just use the
5070 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5073 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5075 Merge from 'apple/trunk' branch on FSF servers.
5077 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5080 * c-common.h (objc_non_volatilized_type): New declaration
5081 * stub-objc.c (objc_non_volatilized_type): New stub.
5083 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5085 Merge from 'apple/trunk' branch on FSF servers.
5087 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5090 * c-common.h (objc_diagnose_private_ivar): New decl.
5091 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5093 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5095 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5096 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5097 (objc_ivar_visibility_kind): New enum.
5098 (objc_set_visibility): Adjust prototype to use visibility enum.
5099 * stub-objc.c (objc_set_visibility): Adjust stub to use
5102 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5104 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5105 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5106 has the appropriate fma builtins.
5107 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5109 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5111 merge from FSF apple 'trunk' branch.
5112 2006 Fariborz Jahanian <fjahanian@apple.com>
5114 Radars 4436866, 4505126, 4506903, 4517826
5115 * c-common.c (c_common_resword): Define @property and its attributes.
5116 * c-common.h: Define property attribute enum entries.
5117 (OBJC_IS_PATTR_KEYWORD): New.
5118 (objc_property_attribute_kind): New enum.
5119 Declare objc_set_property_attr (), objc_add_property_variable (),
5120 objc_build_getter_call () and objc_build_setter_call ().
5121 * stub-objc.c (objc_set_property_attr): New stub.
5122 (objc_add_property_variable): Likewise.
5123 (objc_build_getter_call): Likewise.
5124 (objc_build_setter_call) Likewise.
5126 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5128 merge from FSF apple 'trunk' branch.
5129 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5131 Radar 3803157 (method attributes)
5132 * c-common.c (handle_deprecated_attribute): Recognize
5133 objc methods as valid declarations.
5134 * c-common.h: Declare objc_method_decl ().
5135 * stub-objc.c (objc_method_decl): New stub.
5137 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5139 * c-common.c (parse_optimize_options): Call
5140 decode_cmdline_options_to_array_default_mask before
5141 decode_options. Update arguments to decode_options.
5142 * c-common.h (c_common_init_options_struct): Declare.
5143 * c-opts.c (c_common_init_options_struct): New. Split out from
5144 c_common_init_options.
5146 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5148 Implemented fast enumeration for Objective-C.
5149 * c-common.h (objc_finish_foreach_loop): New.
5150 * stub-objc.c (objc_finish_foreach_loop): New.
5152 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5154 * c-common.h (struct diagnostic_context): Don't declare here.
5155 (c_common_initialize_diagnostics): Declare using
5156 diagnostic_context typedef.
5157 * c-opts.c (c_common_handle_option): Pass global_dc to
5158 handle_generated_option.
5160 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5162 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5163 handle_generated_option.
5165 2010-10-03 Ian Lance Taylor <iant@google.com>
5167 * c.opt (-fplan9-extensions): New option.
5169 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5171 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5173 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5174 of duplicating code.
5176 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5178 * c-common.c: Add two new entries for @optional
5179 and @required keywords.
5181 merge from FSF 'apple/trunk' branch.
5182 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5185 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5186 objective-c keywords.
5187 (objc_set_method_opt): New declaration.
5188 * stub-objc.c (objc_set_method_opt): New stub.
5190 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5192 * c-common.c (handle_optimize_attribute): Pass &global_options to
5193 cl_optimization_save and cl_optimization_restore.
5194 * c-opts.c (c_common_handle_option): Pass &global_options to
5195 handle_generated_option.
5196 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5197 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5198 &global_options to cl_optimization_restore.
5200 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5202 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5203 Objective-C/Objective-C++ keywords.
5205 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5207 Merge from 'apple/trunk' branch on FSF servers.
5209 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5212 * c-common.h (objc_check_global_decl): New declaration.
5213 * stub-objc.c (objc_check_global_decl): New stub.
5215 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5217 * c.opt: Don't use VarExists.
5219 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5221 * c-common.c (c_cpp_error): Update names of diagnostic_context
5223 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5224 cl_optimization members.
5225 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5226 sanitize_cpp_opts, finish_options): Update names of cpp_options
5229 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5231 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5232 (objc_is_reserved_word): Removed.
5233 * c-common.c: Updated comments.
5234 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5235 objc_is_reserved_word.
5236 * stub-objc.c (objc_is_reserved_word): Removed.
5238 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5240 * c-common.h (objc_add_method_declaration): Adjust prototype to
5242 (objc_start_method_definition): Likewise.
5243 (objc_build_keyword_decl): Likewise.
5244 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5245 (objc_start_method_definition): Likewise.
5246 (objc_build_keyword_decl): Likewise.
5248 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5250 * c-common.h (objc_start_class_interface): Adjust prototype.
5251 (objc_start_category_interface): Likewise.
5252 (objc_start_protocol): Likewise.
5253 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5254 (objc_start_class_interface): Likewise.
5255 (objc_start_category_interface): Likewise.
5257 2010-09-27 Ian Lance Taylor <iant@google.com>
5259 * c-common.c (c_common_attribute_table): Add no_split_stack.
5260 (handle_no_split_stack_attribute): New static function.
5262 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5264 Merge from 'apple/trunk' branch on FSF servers.
5266 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5269 * c-common.h (objc_have_common_type): New declaration.
5270 * stub-objc.c (objc_have_common_type): New stub.
5272 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5275 * c-common.h (objc_common_type): New prototype.
5276 * stub-objc.c (objc_common_type): New stub.
5278 2010-09-24 Jan Hubicka <jh@suse.cz>
5280 * c-common.c (handle_leaf_attribute): New function.
5281 (struct attribute_spec c_common_att): Add leaf.
5283 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5285 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5286 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5287 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5288 -include-barrier, -include-directory, -include-directory=,
5289 -include-directory-after, -include-directory-after=,
5290 -include-prefix, -include-prefix=, -include-with-prefix,
5291 -include-with-prefix=, -include-with-prefix-after,
5292 -include-with-prefix-after=, -include-with-prefix-before,
5293 -include-with-prefix-before=, -no-integrated-cpp,
5294 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5295 -output=, -pedantic, -pedantic-errors, -preprocess,
5296 -print-missing-file-dependencies, -trace-includes, -traditional,
5297 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5298 -user-dependencies, -verbose, -write-dependencies,
5299 -write-user-dependencies, no-integrated-cpp, traditional): New.
5301 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5304 * c-common.h (objc_start_method_definition): Return bool instead
5306 * stub-objc.c (objc_start_method_definition): Return bool instead
5309 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5312 * c-common.h (objc_get_interface_ivars): New declaration.
5313 * stub-objc.c (objc_get_interface_ivars): New stub.
5315 2010-09-15 Ian Lance Taylor <iant@google.com>
5317 * c-common.c (parse_optimize_options): Do not capitalize warning
5318 messages. Remove period at end of warning message.
5320 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5322 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5323 (handle_alias_attribute): ... here.
5324 (handle_ifunc_attribute): New.
5326 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5328 * c-common.h (do_warn_double_promotion): Declare.
5329 * c-common.c (do_warn_double_promotion): Define.
5331 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5333 * c.opt (Wdouble-promotion): New.
5335 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5337 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5338 fvtable-thunks, fxref): Mark no longer supported in help text.
5340 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5342 * c.opt (Wimport, fall-virtual, falt-external-templates,
5343 fdefault-inline, fenum-int-equiv, fexternal-templates,
5344 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5345 fname-mangling-version-, fnew-abi, fnonnull-objects,
5346 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5347 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5349 (fhandle-exceptions): Mark with Alias and Warn.
5350 * c-opts.c (c_common_handle_option): Don't handle options marked
5353 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5355 * c.opt (Wcomments, Werror-implicit-function-declaration,
5356 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5357 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5359 * c-common.c (option_codes): Use OPT_Wcomment instead of
5361 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5362 Don't handle options marked as aliases.
5364 2010-08-25 Richard Guenther <rguenther@suse.de>
5366 * c-common.c (c_common_get_alias_set): Remove special
5367 handling for pointers.
5369 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5371 * c-common.c: Use FOR_EACH_VEC_ELT.
5372 * c-gimplify.c: Likewise.
5373 * c-pragma.c: Likewise.
5375 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5377 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5379 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5381 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5382 instead of OPT_MDX and OPT_MMDX.
5384 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5386 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5388 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5390 * c.opt (MD, MMD): Change to MDX and MMDX.
5391 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5393 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5395 * c-opts.c (c_common_handle_option): Call handle_generated_option
5396 instead of handle_option.
5398 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5400 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5401 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5403 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5405 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5406 (pending_redefine_extname): Change type to a VEC.
5407 (add_to_renaming_pragma_list): Update for new type of
5408 pending_redefine_extname.
5409 (maybe_apply_renaming_pragma): Likewise.
5411 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5413 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5415 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5416 decide whether a type has already been declared/seen.
5417 Do not go to the original type.
5418 (dump_nested_types): New parameter forward.
5419 Generate forward declaration if needed and mark type as visited.
5420 (print_ada_declaration): Call dump_nested_types if not already done.
5421 Mark types as visited.
5423 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5425 * c.opt (-print-pch-checksum): Remove option.
5426 * c-opts.c (c_common_handle_option): Don't handle
5427 OPT_print_pch_checksum.
5429 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5431 * c-common.h (c_common_handle_option): Update prototype and return
5433 * c-opts.c (c_common_handle_option): Update prototype and return
5434 value type. Update calls to handle_option and
5435 enable_warning_as_error.
5437 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5440 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5442 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5444 * c-common.h (c_common_missing_argument): Remove.
5445 * c-opts.c (c_common_missing_argument): Remove.
5446 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5447 idirafter, imacros, include, isysroot, isystem, iquote): Add
5449 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5451 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5453 * c-common.h (c_common_option_lang_mask,
5454 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5456 (c_common_init_options): Update prototype.
5457 * c-opts.c (c_common_option_lang_mask): New.
5458 (c_common_initialize_diagnostics): Split out of
5459 c_common_init_options.
5460 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5462 (c_common_init_options): Update prototype. Use decoded options in
5463 search for -lang-asm.
5465 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5467 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5468 * c-format.c: Likewise.
5470 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5472 * c-common.h: Include diagnostic-core.h. Error if already
5474 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5476 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5478 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5479 Do not include expr.h
5480 (vector_mode_valid_p): Move here.
5482 2010-06-21 DJ Delorie <dj@redhat.com>
5484 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5485 allow these pragmas anywhere.
5487 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5490 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5491 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5492 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5493 ggc_strdup instead of xstrdup.
5495 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5497 * c-cppbuiltin.c: Include cpp-id-data.h.
5498 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5499 (lazy_hex_fp_value): New function.
5500 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5502 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5504 * c-gimplify.c: Do not include tree-flow.h
5506 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5509 * c-common.c: Rename targetm member:
5510 targetm.enum_va_list -> targetm.enum_va_list_p
5512 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5514 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5516 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5518 * c-cppbuiltin.c: Do not include except.h.
5520 2010-06-24 Andi Kleen <ak@linux.intel.com>
5522 * c-common.c (warn_for_omitted_condop): New.
5523 * c-common.h (warn_for_omitted_condop): Add prototype.
5525 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5527 * c.opt (lang-objc): Remove.
5528 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5530 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5532 * c-opts.c: Include "tm_p.h".
5534 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5536 * c-common.c (parse_optimize_options): Update call to
5539 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5541 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5542 new type of types_used_by_cur_var_decl.
5544 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5547 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5548 for C++ standard compliance.
5550 2010-06-16 Jason Merrill <jason@redhat.com>
5552 * c.opt: Add -Wnoexcept.
5554 2010-06-16 Richard Guenther <rguenther@suse.de>
5557 * c-common.c (c_common_truthvalue_conversion): Remove
5558 premature and wrong optimization concering ADDR_EXPRs.
5560 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5562 * c-ada-spec.c (dump_sloc): Remove column info.
5563 (is_simple_enum): New function.
5564 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5565 enum types when relevant.
5567 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5569 * c-common.c (conversion_warning): Warn at expression
5572 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5574 * c-opts.c (c_common_handle_option): Don't handle
5577 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5579 * c-pragma.c (push_alignment): Use typed GC allocation.
5580 (handle_pragma_push_options): Likewise.
5582 * c-common.c (parse_optimize_options): Likewise.
5584 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5587 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5589 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5590 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5591 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5592 flag_signed_bitfields, warn_strict_null_sentinel,
5593 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5594 flag_gen_declaration, flag_no_gnu_keywords,
5595 flag_implement_inlines, flag_implicit_templates,
5596 flag_implicit_inline_templates, flag_optional_diags,
5597 flag_elide_constructors, flag_default_inline, flag_rtti,
5598 flag_conserve_space, flag_access_control, flag_check_new,
5599 flag_new_for_scope, flag_weak, flag_working_directory,
5600 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5601 flag_enforce_eh_specs, flag_threadsafe_statics,
5602 flag_pretty_templates): Remove.
5603 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5604 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5605 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5606 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5607 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5608 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5609 flag_no_gnu_keywords, flag_implement_inlines,
5610 flag_implicit_templates, flag_implicit_inline_templates,
5611 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5612 flag_rtti, flag_conserve_space, flag_access_control,
5613 flag_check_new, flag_new_for_scope, flag_weak,
5614 flag_working_directory, flag_use_cxa_atexit,
5615 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5616 flag_threadsafe_statics, flag_pretty_templates,
5617 warn_strict_null_sentinel): Remove.
5618 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5619 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5620 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5621 fimplicit-inline-templates, fimplicit-templates,
5622 flax-vector-conversions, fms-extensions, fnil-receivers,
5623 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5624 frtti, fshort-double, fshort-enums, fshort-wchar,
5625 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5626 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5627 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5628 gen-decls, undef): Use Var.
5629 (fdefault-inline, foptional-diags): Document as doing nothing.
5630 * c-opts.c (c_common_handle_option): Remove cases for options now
5631 using Var. Mark ignored options as such.
5633 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5635 * c-common.c: Moved to here from parent directory.
5636 * c-common.def: Likewise.
5637 * c-common.h: Likewise.
5638 * c-cppbuiltin.c: Likewise.
5639 * c-dump.c: Likewise.
5640 * c-format.c: Likewise.
5641 * c-format.h : Likewise.
5642 * c-gimplify.c: Likewise.
5643 * c-lex.c: Likewise.
5644 * c-omp.c: Likewise.
5646 * c-opts.c: Likewise.
5647 * c-pch.c: Likewise.
5648 * c-ppoutput.c: Likewise.
5649 * c-pragma.c: Likewise.
5650 * c-pragma.h: Likewise.
5651 * c-pretty-print.c: Likewise.
5652 * c-pretty-print.h: Likewise.
5653 * c-semantics.c: Likewise.
5654 * stub-objc.c: Likewise.
5656 * c-common.c: Include gt-c-family-c-common.h.
5657 * c-pragma.c: Include gt-c-family-c-pragma.h.
5659 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5661 Copying and distribution of this file, with or without modification,
5662 are permitted in any medium without royalty provided the copyright
5663 notice and this notice are preserved.