1 2014-04-23 Marek Polacek <polacek@redhat.com>
3 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5 2014-04-22 Jakub Jelinek <jakub@redhat.com>
8 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
9 if flag_sanitize_undefined_trap_on_error.
10 (ubsan_instrument_division, ubsan_instrument_shift,
11 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
12 if !flag_sanitize_recover.
14 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
17 * c-common.c (registered_builtin_types): Make non-static.
18 * c-common.h (registered_builtin_types): Declare.
20 2014-04-14 Richard Biener <rguenther@suse.de>
21 Marc Glisse <marc.glisse@inria.fr>
24 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
25 apply may-alias the scalar pointer type when applicable.
27 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
30 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
31 as possible argument for Cilk_spawn.
33 2014-04-11 Tobias Burnus <burnus@net-b.de>
36 * c.opt (Wformat-signedness): Add
37 * c-format.c(check_format_types): Use it.
39 2014-04-11 Jason Merrill <jason@redhat.com>
42 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
43 default_conversion for an array argument.
45 2014-04-08 Marek Polacek <polacek@redhat.com>
48 * c-ubsan.c: Include asan.h.
49 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
51 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
53 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
55 2014-04-02 Marek Polacek <polacek@redhat.com>
57 * c-common.h (c_expand_expr): Remove declaration.
59 2014-03-28 Jakub Jelinek <jakub@redhat.com>
62 * c-common.c (add_atomic_size_parameter): When creating new
63 params vector, push the size argument first.
65 2014-03-26 Jakub Jelinek <jakub@redhat.com>
67 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
68 ubsan_instrument_vla, ubsan_instrument_return): Adjust
69 ubsan_create_data callers.
71 2014-03-22 Jakub Jelinek <jakub@redhat.com>
74 * c-opts.c (c_finish_options): Restore cb_file_change call to
77 2014-03-13 Jakub Jelinek <jakub@redhat.com>
80 * c-pragma.c (apply_pragma_weak): Only look at
81 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
82 DECL_ASSEMBLER_NAME_SET_P (decl).
83 (maybe_apply_pending_pragma_weaks): Exit early if
84 vec_safe_is_empty (pending_weaks) rather than only when
86 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
87 set assembler name back to NULL afterwards.
89 2014-03-11 Jason Merrill <jason@redhat.com>
91 * c.opt: Add -std=gnu++14.
93 2014-03-11 Ian Bolton <ian.bolton@arm.com>
95 * c-opts.c (c_common_post_options): Don't override
96 -ffp-contract=fast if unsafe-math-optimizations is on.
98 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
100 * c.opt: Enable LTO FE for fshort-double.
102 2014-03-07 Jason Merrill <jason@redhat.com>
104 * c.opt: Add -std=c++14.
106 2014-03-06 Marek Polacek <polacek@redhat.com>
109 * cilk.c (contains_cilk_spawn_stmt): New function.
110 (contains_cilk_spawn_stmt_walker): Likewise.
111 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
112 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
114 2014-03-03 Jakub Jelinek <jakub@redhat.com>
116 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
117 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
118 even when flag_preprocess_only.
120 2014-02-26 Jason Merrill <jason@redhat.com>
124 * c-common.c (shorten_compare): Don't check
125 c_inhibit_evaluation_warnings.
127 2014-02-19 Jakub Jelinek <jakub@redhat.com>
130 * c-common.c (c_common_nodes_and_builtins): When initializing
131 c_uint{16,32,64}_type_node, also set corresponding
132 uint{16,32,64}_type_node to the same value.
135 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
136 for PRAGMA_IVDEP if flag_preprocess_only.
138 2014-02-12 Jakub Jelinek <jakub@redhat.com>
141 * c-common.c (merge_tlist): If copy is true, call new_tlist,
142 if false, add ADD itself, rather than vice versa.
143 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
144 copy. For SAVE_EXPR, only call merge_tlist once.
146 2014-02-08 Jakub Jelinek <jakub@redhat.com>
149 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
151 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
153 (c_common_attribute_table): Add alloc_align and assume_aligned
156 2014-02-06 Marek Polacek <polacek@redhat.com>
159 * c-common.c (warn_for_sign_compare): Call warning_at with location
162 2014-02-05 Marek Polacek <polacek@redhat.com>
165 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
168 2014-02-04 Marek Polacek <polacek@redhat.com>
171 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
174 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
178 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
179 handle_vector_size_attribute, handle_nonnull_attribute): Call
180 default_conversion on the attribute argument.
181 (handle_nonnull_attribute): Increment the argument number.
183 2014-01-31 Marek Polacek <polacek@redhat.com>
186 * c-common.c (add_atomic_size_parameter): Pass vNULL to
187 build_function_call_vec.
188 (resolve_overloaded_builtin): Likewise.
189 * c-common.h (build_function_call_vec): Adjust declaration.
191 2014-01-30 Marek Polacek <polacek@redhat.com>
194 * c-common.h (unsafe_conversion_p): Adjust declaration.
195 (warnings_for_convert_and_check): Likewise.
196 (convert_and_check): Likewise.
197 * c-common.c (unsafe_conversion_p): Add location parameter. Call
198 expansion_point_location_if_in_system_header on it.
199 (warnings_for_convert_and_check): Add location parameter. Call
200 expansion_point_location_if_in_system_header on it. Use it.
201 (convert_and_check): Add location parameter. Use it.
202 (conversion_warning): Likewise.
203 (c_add_case_label): Adjust convert_and_check calls.
204 (scalar_to_vector): Adjust unsafe_conversion_p calls.
206 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
208 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
210 * c-pragma.c (init_pragma): Likewise.
213 2014-01-23 Marek Polacek <polacek@redhat.com>
216 * c-common.c (shorten_compare): Add location_t parameter.
217 * c-common.h (shorten_binary_op): Adjust declaration.
219 2014-01-23 Marek Polacek <polacek@redhat.com>
222 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
223 * c-common.h: Declare it.
225 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
227 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
228 * c-ada-spec.c (dump_ads): Likewise.
229 (cpp_check): Likewise.
230 (dump_ada_specs): Likewise.
232 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
235 * c-common.c (handle_no_instrument_function_attribute): Allow
236 no_instrument_function attribute in class member
237 definition/declaration.
239 2014-01-15 Jakub Jelinek <jakub@redhat.com>
242 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
243 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
245 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
246 operand a SAVE_EXPR and second MODIFY_EXPR.
248 2014-01-09 Jakub Jelinek <jakub@redhat.com>
251 * c-pch.c (c_common_write_pch): Call
252 prepare_target_option_nodes_for_pch.
254 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
256 Update copyright years
258 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
260 * array-notation-common.c, c-cilkplus.c: Use the standard form for
261 the copyright notice.
263 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
265 * c-ada-spec.c (print_constructor): New function.
266 (print_destructor): Retrieve the origin of the destructor.
267 (print_ada_declaration): Revamp handling of constructors/destructors.
269 2013-12-23 Stuart Hastings <stuart@apple.com>
270 Bill Maddox <maddox@google.com>
271 Jason Merrill <jason@redhat.com>
273 * c.opt: Add -fdeclone-ctor-dtor.
274 * c-opts.c (c_common_post_options): Default to on iff -Os.
276 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
278 * c-common.c (c_common_attribute_table): Added "cilk simd function"
280 * c-pragma.h (enum pragma_cilk_clause): Remove.
281 (enum pragma_omp_clause): Added the following fields:
282 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
283 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
284 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
285 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
286 PRAGMA_CILK_CLAUSE_UNIFORM.
289 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
291 * cilk.c (cilk_outline): Made this function non-static.
292 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
293 (create_cilk_wrapper): Added a new parameter: a function pointer.
294 (c_install_body_w_frame_cleanup): Remove
295 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
296 * c-common.h (cilk_outline): New prototype.
297 (gimplify_cilk_spawn): Removed two parameters.
298 (cilk_install_body_with_frame_cleanup): New prototype.
299 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
300 CILK_SPAWN_STMT case.
302 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
304 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
306 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
307 (int_array_type_node): Remove.
308 * c-common.c (c_common_nodes_and_builtins): Don't build it.
310 2013-12-05 Marek Polacek <polacek@redhat.com>
313 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
314 [ADJUST_FIELD_ALIGN].
316 2013-12-04 Joseph Myers <joseph@codesourcery.com>
319 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
320 and check field alignment if set.
321 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
322 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
324 2013-12-04 Jakub Jelinek <jakub@redhat.com>
325 Marek Polacek <polacek@redhat.com>
327 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
328 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
330 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
333 * cilk.c (gimplify_cilk_spawn): Properly handle function without
336 2013-11-29 Jakub Jelinek <jakub@redhat.com>
339 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
340 goto invalid. If it is error_mark_node, don't issue further
343 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
345 * c.opt (Wopenmp-simd): New.
347 2013-11-22 Jakub Jelinek <jakub@redhat.com>
349 * c-ubsan.h (ubsan_instrument_return): New prototype.
350 * c-ubsan.c (ubsan_instrument_return): New function.
352 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
354 * c-common.c: Add required include files from gimple.h.
355 * c-gimplify.c: Likewise
358 2013-11-22 David Malcolm <dmalcolm@redhat.com>
360 * c-common.c (unsafe_conversion_p): Remove use of
361 EXPR_LOC_OR_HERE macro.
362 (conversion_warning): Likewise.
363 (warnings_for_convert_and_check): Likewise.
364 (warn_for_collisions_1): Likewise.
365 (shorten_compare): Likewise, and remove use of in_system_header
366 macro, using the location from the former.
367 * c-lex.c (dump_one_header): Remove use of input_filename macro.
368 (cb_def_pragma): Remove use of in_system_header macro.
369 (lex_string): Likewise.
370 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
372 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
373 Mike Stump <mikestump@comcast.net>
374 Richard Sandiford <rdsandiford@googlemail.com>
376 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
377 instead of TREE_INT_CST_LOW, in cases where there is a protecting
378 tree_fits_shwi_p or tree_fits_uhwi_p.
379 (dump_generic_ada_node): Likewise.
380 * c-format.c (check_format_arg): Likewise.
381 * c-pretty-print.c (pp_c_integer_constant): Likewise.
383 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
385 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
387 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
390 * c-common.c (unsafe_conversion_p): Make this function
391 return an enumeration with more detail.
392 (conversion_warning): Use the new return type of
393 unsafe_conversion_p to separately warn either about conversions
394 that lower floating point number precision or about the other
395 kinds of conversions.
396 * c-common.h (enum conversion_safety): New enumeration.
397 (unsafe_conversion_p): switching return type to
398 conversion_safety enumeration.
399 * c.opt: Adding new warning -Wfloat-conversion and
400 enabling it with -Wconversion.
402 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
404 * c-opts.c: Include plugin.h.
405 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
407 2013-11-19 Marek Polacek <polacek@redhat.com>
409 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
411 (ubsan_instrument_shift): Likewise.
412 (ubsan_instrument_vla): Likewise.
414 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
416 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
417 cast to unsigned type.
419 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
421 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
423 (complete_array_type): Update comment to refer to tree_to_[su]hwi
424 rather than tree_low_cst.
426 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
428 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
429 tree_to_uhwi throughout.
431 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
433 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
434 tree_low_cst (..., 0) with tree_to_shwi throughout.
436 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
438 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
439 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
441 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
443 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
444 host_integerp (..., 0) with tree_fits_shwi_p throughout.
446 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
448 * c-cilkplus.c: New file.
449 * c-common.c (readonly_error): Add location argument.
450 * c-common.h (readonly_error): Same.
451 (c_finish_cilk_clauses): Protoize.
452 (c_check_cilk_loop): Same.
453 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
454 Do not fail on error_mark_node.
455 Abstract increment canonicalization to here...
456 (c_omp_for_incr_canonicalize_ptr): New.
457 c-pragma.c (init_pragma): Register "simd" pragma.
458 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
459 (enum pragma_cilk_clause): New.
461 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
463 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
464 wchar_type and host_integerp checks.
466 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
468 * c-common.c: Likewise.
469 * c-gimplify.c: Likewise.
472 2013-11-14 Diego Novillo <dnovillo@google.com>
474 * c-common.c: Include fold-const.h.
475 Include stor-layout.h.
477 Include stringpool.h.
481 * c-cppbuiltin.c: Include stor-layout.h.
482 Include stringpool.h.
483 * c-format.c: Include stringpool.h.
484 * c-lex.c: Include stringpool.h.
485 Include stor-layout.h.
486 * c-pragma.c: Include stringpool.h.
489 Include gcc-symtab.h.
490 * c-pretty-print.c: Include stor-layout.h.
492 * cilk.c: Include stringpool.h.
495 2013-11-13 Joseph Myers <joseph@codesourcery.com>
497 * c-common.h (enum rid): Add RID_AUTO_TYPE.
498 * c-common.c (c_common_reswords): Add __auto_type.
499 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
501 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
503 * c-common.c: Include gimplify.h.
504 * c-gimplify.c: Likewise.
506 * c-omp.c: Include gimple-expr.h instead of gimple.h.
507 * c-ubsan.c: Don't include gimple.h.
509 2013-11-12 Joseph Myers <joseph@codesourcery.com>
511 * c-common.c (c_common_reswords): Add _Thread_local.
513 2013-11-09 Joseph Myers <joseph@codesourcery.com>
515 * c-common.c (atomic_size_supported_p): New function.
516 (resolve_overloaded_atomic_exchange)
517 (resolve_overloaded_atomic_compare_exchange)
518 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
519 Use it instead of comparing size with a local list of sizes.
521 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
522 Joseph Myers <joseph@codesourcery.com>
524 * c-common.h (enum rid): Add RID_ATOMIC.
525 * c-common.c (c_common_reswords): Add _Atomic.
526 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
527 (keyword_is_type_qualifier): Accept RID_ATOMIC.
528 * c-format.c (check_format_types): Check for extra _Atomic
529 qualifiers in format argument.
530 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
531 (pp_c_type_qualifier_list): Mention _Atomic in comment.
533 2013-11-06 Tobias Burnus <burnus@net-b.de>
535 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
537 2013-11-06 Joseph Myers <joseph@codesourcery.com>
539 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
541 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
542 to mean lack of IEEE 754 support.
544 2013-11-05 Tobias Burnus <burnus@net-b.de>
546 * c.opt (-Wdate-time): New option
547 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
549 2013-11-05 Joseph Myers <joseph@codesourcery.com>
551 * c-cppbuiltin.c (cpp_iec_559_value): Test
552 flag_excess_precision_cmdline not flag_excess_precision.
554 2013-11-05 Tobias Burnus <burnus@net-b.de>
556 * c.opt (fopenmp-simd): New option.
557 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
558 (omp_pragmas): ... this new struct.
559 (c_pp_lookup_pragma): Also walk omp_pragmas.
560 (init_pragma): Init pragmas for -fopenmp-simd.
562 2013-11-04 Marek Polacek <polacek@redhat.com>
565 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
567 2013-11-04 Joseph Myers <joseph@codesourcery.com>
569 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
571 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
573 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
575 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
576 (dump_ada_specs): Adjust prototype of second callback.
577 * c-ada-spec.c (cpp_check): New global variable.
578 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
579 (print_generic_ada_decl): Likewise.
580 (has_static_fields): Change return type to bool and add guard.
581 (has_nontrivial_methods): New predicate.
582 (is_tagged_type): Change return type to bool.
583 (separate_class_package): Call has_nontrivial_methods.
584 (pp_ada_tree_identifier): Minor tweaks.
585 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
586 (dump_ada_array_domains): Likewise.
587 (dump_ada_array_type): Likewise.
588 (dump_template_types): Remove cpp_check parameter and do not pass it to
589 dump_generic_ada_node.
590 (dump_ada_template): Likewise.
591 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
593 (print_ada_methods): Change return type to integer. Remove cpp_check
594 parameter and do not pass it down.
595 (dump_nested_types): Remove cpp_check parameter and do not pass it to
596 dump_generic_ada_node.
597 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
599 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
600 down. Use has_nontrivial_methods to recognize C++ classes. Use return
601 value of print_ada_methods.
602 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
603 Set cpp_check to it before invoking dump_ada_nodes.
604 (dump_ada_specs): Likewise.
606 2013-11-03 Marek Polacek <polacek@redhat.com>
608 * c-ubsan.c: Don't include hash-table.h.
609 (ubsan_instrument_vla): New function.
610 * c-ubsan.h: Declare it.
612 2013-10-31 David Malcolm <dmalcolm@redhat.com>
614 Automated part of renaming of symtab_node_base to symtab_node.
616 Patch autogenerated by rename_symtab.py from
617 https://github.com/davidmalcolm/gcc-refactoring-scripts
618 revision 58bb219cc090b2f4516a9297d868c245495ee622
620 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
621 symtab_node_base to symtab_node.
623 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
625 Implement C++14 digit separators.
626 * c-lex.c (interpret_float): Remove digit separators from scratch string
627 before building real literal.
629 2013-10-30 Jakub Jelinek <jakub@redhat.com>
631 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
633 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
635 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
637 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
639 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
640 (insert_cilk_frame): New prototype.
641 (cilk_init_builtins): Likewise.
642 (gimplify_cilk_spawn): Likewise.
643 (c_cilk_install_body_w_frame_cleanup): Likewise.
644 (cilk_detect_spawn_and_unwrap): Likewise.
645 (cilk_set_spawn_marker): Likewise.
646 (build_cilk_sync): Likewise.
647 (build_cilk_spawn): Likewise.
650 2013-10-29 David Malcolm <dmalcolm@redhat.com>
652 Patch autogenerated by refactor_symtab.py from
653 https://github.com/davidmalcolm/gcc-refactoring-scripts
654 revision 58bb219cc090b2f4516a9297d868c245495ee622
656 * c-gimplify.c (c_genericize): Update for conversion of symtab types
657 to a true class hierarchy.
658 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
660 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
662 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
664 2013-10-26 Jeff Law <law@redhat.com>
666 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
667 * c-family/c.opt: Ignore and warn for mudflap options.
669 2013-10-24 Tobias Burnus <burnus@net-b.de>
672 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
673 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
675 2013-10-23 Jason Merrill <jason@redhat.com>
677 * c-format.c (gcc_cxxdiag_char_table): Add %X.
679 2013-10-11 Jakub Jelinek <jakub@redhat.com>
681 * c-common.h (omp_clause_mask::operator !=): New method.
682 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
683 instead of if (mask & something) tests everywhere.
685 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
686 201307 instead of 201107.
687 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
688 (c_common_attribute_table): Add "omp declare target" and
689 "omp declare simd" attributes.
690 (handle_omp_declare_target_attribute,
691 handle_omp_declare_simd_attribute): New functions.
692 * c-omp.c: Include c-pragma.h.
693 (c_finish_omp_taskgroup): New function.
694 (c_finish_omp_atomic): Add swapped argument, if true,
695 build the operation first with rhs, lhs arguments and use NOP_EXPR
697 (c_finish_omp_for): Add code argument, pass it down to make_code.
698 (c_omp_split_clauses): New function.
699 (c_split_parallel_clauses): Removed.
700 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
701 c_omp_declare_simd_clauses_to_decls): New functions.
702 * c-common.h (omp_clause_mask): New type.
703 (OMP_CLAUSE_MASK_1): Define.
704 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
705 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
706 omp_clause_mask::operator |, omp_clause_mask::operator &,
707 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
708 omp_clause_mask::operator ==): New methods.
709 (enum c_omp_clause_split): New.
710 (c_finish_omp_taskgroup): New prototype.
711 (c_finish_omp_atomic): Add swapped argument.
712 (c_finish_omp_for): Add code argument.
713 (c_omp_split_clauses): New prototype.
714 (c_split_parallel_clauses): Removed.
715 (c_omp_declare_simd_clauses_to_numbers,
716 c_omp_declare_simd_clauses_to_decls): New prototypes.
717 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
718 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
719 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
720 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
721 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
722 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
723 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
724 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
725 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
726 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
727 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
728 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
729 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
730 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
731 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
732 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
733 PRAGMA_OMP_CLAUSE_UNIFORM.
735 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
737 PR tree-optimization/20318
738 * c-common.c (handle_returns_nonnull_attribute): New function.
739 (c_common_attribute_table): Add returns_nonnull.
741 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
744 * c.opt (fcheck-new): Move to common.opt.
746 2013-09-25 Marek Polacek <polacek@redhat.com>
747 Jakub Jelinek <jakub@redhat.com>
750 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
751 an expression if we can prove it is correct.
752 (ubsan_instrument_division): Likewise. Remove unnecessary
755 2013-09-18 Marek Polacek <polacek@redhat.com>
758 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
760 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
762 2013-09-14 Iain Sandoe <iain@codesourcery.com>
765 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
766 fobjc-gc, freplace-objc-classes): Accept for LTO.
768 2013-09-13 Jacek Caban <jacek@codeweavers.com>
770 * c-target.def: New hook
772 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
775 * c.opt (Wdelete-incomplete): Add.
777 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
779 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
780 (vector_types_compatible_elements_p): New function.
781 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
783 (vector_types_compatible_elements_p): Declare.
785 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
787 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
788 a virtual member function.
789 (pp_simple_type_specifier): Remove.
790 (pp_c_type_specifier): Likewise.
791 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
792 Rename from pp_c_type_specifier. Adjust.
793 (c_pretty_printer::c_pretty_printer): Do not assign to
794 simple_type_specifier.
796 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
798 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
800 (c_pretty_printer::storage_class_specifier): Likewise.
801 (c_pretty_printer::initializer): Likewise.
802 (pp_declaration): Remove.
803 (pp_declaration_specifiers): Likewise.
804 (pp_abstract_declarator): Likewise.
805 (pp_declarator): Likewise.
806 (pp_type_id): Likewise.
807 (pp_statement): Likewise.
808 (pp_constant): Likewise.
809 (pp_id_expression): Likewise.
810 (pp_primary_expression): Likewise.
811 (pp_unary_expression): Likewise.
812 (pp_multiplicative_expression): Likewise.
813 (pp_conditional_expression): Likewise.
814 (pp_assignment_expression): Likewise.
815 (pp_expression): Likewise.
816 (pp_c_type_id): Likewise.
817 (pp_c_storage_class_specifier): Likewise.
818 * c-pretty-print.c (pp_c_type_cast): Tidy.
819 (pp_c_pointer): Likewise.
820 (pp_c_type_specifier): Likewise.
821 (pp_c_parameter_type_list): Likewise.
822 (pp_c_function_definition): Likewise.
823 (pp_c_init_declarator): Likewise.
824 (pp_c_initializer_list): Likewise.
825 (pp_c_constructor_elts): Likewise.
826 (c_pretty_printer::direct_abstract_declarator): Likewise.
827 (c_pretty_printer::declaration_specifiers): Likewise.
828 (c_pretty_printer::primary_expression): Likewise.
829 (c_pretty_printer::postfix_expression): Likewise.
830 (c_pretty_printer::type_id): Rename from pp_c_type_id.
831 (c_pretty_printer::storage_class_specifier): Rename from
832 pp_c_storage_class_specifier.
833 (c_pretty_printer::initializer): Rename from pp_c_initializer.
834 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
835 storage_class_specifier, initializer, offset_list, flags.
837 2013-08-30 Marek Polacek <polacek@redhat.com>
839 * c-ubsan.c: New file.
840 * c-ubsan.h: New file.
842 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
844 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
846 (c_pretty_printer::declaration_specifiers): Likewise.
847 (c_pretty_printer::declarator): Likewise.
848 (c_pretty_printer::abstract_declarator): Likewise.
849 (c_pretty_printer::direct_abstract_declarator): Likewise.
850 (c_pretty_printer::direct_declarator): Likewise.
851 (c_pretty_printer::function_specifier): Likewise.
852 (pp_declaration): Adjust.
853 (pp_declaration_specifiers): Likewise.
854 (pp_abstract_declarator): Likewise.
855 (pp_direct_declarator): Likewise.
856 (pp_function_specifier): Likewise.
857 (pp_direct_abstract_declarator): Remove as unused.
858 (pp_c_declaration): Remove.
859 (pp_c_declaration_specifiers): Likewise.
860 (pp_c_declarator): Likewise.
861 (pp_c_direct_declarator): Likewise.
862 (pp_c_function_specifier): Likewise.
863 (pp_c_direct_abstract_declarator): Likewise.
864 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
865 from pp_c_abstract_declarator. Adjust.
866 (c_pretty_printer::direct_abstract_declarator): Rename from
867 pp_c_direct_abstract_declarator. Adjust.
868 (c_pretty_printer::function_specifier): Rename from
869 pp_c_function_specifier. Adjust.
870 (c_pretty_printer::declaration_specifiers): Rename from
871 pp_c_declaration_specifiers. Adjust.
872 (c_pretty_printer::direct_declarator): Rename from
873 pp_c_direct_declarator. Adjust.
874 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
875 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
876 (c_pretty_printer::c_pretty_printer): Do not assign to
877 declaration, declaration_specifiers, declarator,
878 direct_declarator, direct_abstract_declarator, function_specifier.
880 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
882 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
883 virtual member function.
884 (c_pretty_printer::multiplicative_expression): Likewise.
885 (c_pretty_printer::conditional_expression): Likewise.
886 (c_pretty_printer::assignment_expression): Likewise.
887 (c_pretty_printer::expression): Likewise.
888 (pp_unary_expression): Adjust.
889 (pp_multiplicative_expression): Likewise.
890 (pp_assignment_expression): Likewise.
891 (pp_conditional_expression): Likewise.
892 (pp_expression): Likewise.
893 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
894 from pp_c_unary_expression. Adjust.
895 (c_pretty_printer::multiplicative_expression): Rename from
896 pp_c_multiplicative_expression. Adjust.
897 (c_pretty_printer::conditional_expression): Rename from
898 pp_c_conditional_expression. Adjust.
899 (c_pretty_printer::assignment_expression): Rename from
900 pp_c_assignment_expression. Adjust.
901 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
902 (c_pretty_printer::c_pretty_printer): Do not assign to
903 unary_expression, multiplicative_expression,
904 conditional_expression, expression.
906 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
908 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
909 virtual member function.
910 (pp_postfix_expression): Adjust.
911 (pp_c_postfix_expression): Remove.
912 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
913 from pp_c_postfix_expression. Adjust.
914 (c_pretty_printer::c_pretty_printer): Do not assign to
917 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
919 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
920 virtua member function.
921 (pp_primary_expression): Adjust.
922 (pp_c_primary_expression): Remove.
923 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
924 from pp_c_primary_expression. Adjust.
925 (pp_c_initializer_list): Use pp_primary_expression.
926 (c_pretty_printer::c_pretty_printer): Do not assign to
929 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
931 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
932 * c-pretty-print.c (M_): Remove.
933 (c_pretty_printer::translate_string): Define.
934 (pp_c_type_specifier): Use it.
935 (pp_c_primary_expression): Likewise.
936 (pp_c_expression): Likewise.
938 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
940 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
942 (pp_c_id_expression): Remove.
943 (pp_id_expression): Adjust.
944 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
945 pp_c_id_expression. Adjust.
946 (pp_c_postfix_expression): Use pp_id_expression.
947 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
949 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
951 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
953 (pp_constant): Adjust.
954 (pp_c_constant): Remove.
955 * c-pretty-print.c (c_pretty_printer::constant): Rename from
956 pp_c_constant. Adjust.
958 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
959 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
961 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
963 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
964 (c_pretty_printer::c_pretty_printer): Declare.
965 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
966 c_pretty_printer_init. Adjust.
967 (print_c_tree): Do not call c_pretty_printer_init.
968 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
970 2013-08-09 Arnaud Charlet <charlet@adacore.com>
972 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
974 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
977 * c-common.c (pointer_int_sum): Add bool parameter.
978 * c-common.h (pointer_int_sum): Adjust declaration.
980 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
982 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
983 c_pretty_printer variable.
985 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
987 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
989 (pp_c_base): Likewise. Adjust users.
990 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
991 (pp_c_whitespace): Do not call pp_base.
992 (pp_c_left_paren): Likewise.
993 (pp_c_right_paren): Likewise.
994 (pp_c_left_brace): Likewise.
995 (pp_c_right_brace): Likewise.
996 (pp_c_left_bracket): Likewise.
997 (pp_c_right_bracket): Likewise.
998 (pp_c_dot): Likewise.
999 (pp_c_ampersand): Likewise.
1000 (pp_c_star): Likewise.
1001 (pp_c_arrow): Likewise.
1002 (pp_c_semicolon): Likewise.
1003 (pp_c_complement): Likewise.
1004 (pp_c_exclamation): Likewise.
1005 (pp_c_direct_declarator): Likewise.
1006 (pp_c_ws_string): Likewise.
1007 (pp_c_identifier): Likewise.
1008 (pp_c_statement): Likewise.
1009 (print_c_tree): Likewise.
1011 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1014 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1015 provide useful error strings.
1017 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1019 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1020 printer functions instead of pp_string or operators and punctuators.
1021 (dump_generic_ada_node): Likewise.
1022 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1023 (pp_c_relational_expression): Likewise.
1024 (pp_c_logical_or_expression): Likewise.
1026 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1028 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1029 functions instead of pp_character.
1030 (pp_ada_tree_identifier): Likewise.
1031 (dump_ada_double_name): Likewise.
1032 (dump_ada_function_declaration): Likewise.
1033 (dump_ada_array_domains): Likewise.
1034 (dump_template_types): Likewise.
1035 (dump_generic_ada_node): Likewise.
1036 (print_ada_declaration): Likewise.
1037 (print_ada_struct_decl): Likewise.
1038 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1040 2013-07-23 Tom Tromey <tromey@redhat.com>
1042 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1043 * c-common.c (c_common_reswords): Add _Generic.
1045 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
1047 * c-common.c: Fix typos.
1048 * c-common.h: Likewise.
1050 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1053 * c-common.c (c_common_attribute_table): Add warn_unused.
1054 (handle_warn_unused_attribute): New.
1056 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1058 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1059 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1061 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1064 * c.opt: Add Wconditionally-supported.
1066 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1068 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1069 unused variables l_length and l_node.
1071 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1074 * c-common.c (complete_array_type): Delay folding first index
1075 like other indices. When folding, check for index overflow.
1077 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1080 * c-common.h (c_build_vec_perm_expr): New complain argument.
1081 * c-common.c (c_build_vec_perm_expr): Likewise.
1082 Use save_expr also in C++.
1084 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1086 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1087 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1088 * c-opts.c (c_common_post_options): Likewise.
1090 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1092 * array-notation-common.c (length_mismatch_in_expr): Changed the
1093 parameter type's from a dynamic array to a vec_tree. Also removed
1094 the size parameters.
1095 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1098 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1100 * c-common.h (struct cilkplus_an_parts): New structure.
1101 (struct cilkplus_an_loop_parts): Likewise.
1102 (cilkplus_extract_an_triplets): New prototype.
1103 (fix_sec_implicit_args): Likewise.
1104 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1105 (fix_sec_implicit_args): Likewise.
1107 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1109 * array-notation-common.c (find_inv_trees): Removed an unwanted
1111 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1112 enum rid to enum tree_code.
1114 2013-06-11 Jan Hubicka <jh@suse.cz>
1116 * c-common.c (handle_alias_ifunc_attribute): Do not set
1117 DECL_EXTERNAL for weakref variables.
1118 * c-pragma.c (handle_pragma_weak): Make sure aliases
1119 are not declared as external.
1121 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1123 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1124 function from c/c-array-notation.c.
1125 (is_cilkplus_reduce_builtin): Likewise.
1126 (find_rank): Likewise.
1127 (extract_array_notation_exprs): Likewise.
1128 (replace_array_notations): Likewise.
1129 (find_inv_trees): Likewise.
1130 (replace_inv_trees): Likewise.
1131 (contains_array_notation_expr): Likewise.
1132 (find_correct_array_notation_type): Likewise.
1133 * c-common.h (struct inv_list): Moved this struct from the file
1134 c/c-array-notation.c and added a new field called additional tcodes.
1135 (length_mismatch_in_expr_p): New prototype.
1136 (is_cilkplus_reduce_builtin): Likewise.
1137 (find_rank): Likewise.
1138 (extract_array_notation_exprs): Likewise.
1139 (replace_array_notation): Likewise.
1140 (find_inv_trees): Likewise.
1141 (replace_inv_trees): Likewise.
1142 (find_correct_array_notation_type): Likewise.
1144 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1146 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1147 function array_notation_init_builtins is called.
1148 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1149 * c-common.def (ARRAY_NOTATION_REF): New tree.
1150 * c-common.h (build_array_notation_expr): New function declaration.
1151 (build_array_notation_ref): Likewise.
1152 (extract_sec_implicit_index_arg): New extern declaration.
1153 (is_sec_implicit_index_fn): Likewise.
1154 (ARRAY_NOTATION_CHECK): New define.
1155 (ARRAY_NOTATION_ARRAY): Likewise.
1156 (ARRAY_NOTATION_START): Likewise.
1157 (ARRAY_NOTATION_LENGTH): Likewise.
1158 (ARRAY_NOTATION_STRIDE): Likewise.
1159 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1161 (pp_c_expression): Likewise.
1162 * c.opt (flag_enable_cilkplus): New flag.
1163 * array-notation-common.c: New file.
1165 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1168 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1170 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1172 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1175 2013-05-07 Han Shen <shenhan@google.com>
1177 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1179 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1181 * c-common.c (check_user_alignment): Emit error for negative values.
1183 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1185 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1187 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1189 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1190 __GXX_EXPERIMENTAL_CXX1Y__.
1192 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1193 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1195 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1196 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1197 to simply use OPT_Wpointer_arith.
1198 (c_sizeof_or_alignof_type): Likewise.
1200 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1202 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1204 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1206 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1207 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1210 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1212 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1214 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1216 * c-common.c (pointer_int_sum): Remove dead code.
1218 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1221 * c-common.c (handle_optimize_attribute): Don't call
1222 save_optabs_if_changed.
1224 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1227 * c-pch.c (pch_init): Free target_validity at the end.
1229 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1231 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1233 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1234 Jakub Jelinek <jakub@redhat.com>
1237 * c-common.c (handle_no_sanitize_address_attribute): New function.
1238 (c_common_attribute_table): Add no_sanitize_address attribute.
1239 (handle_no_address_safety_analysis_attribute): Add
1240 no_sanitize_address attribute, not no_address_safety_analysis
1243 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1246 * c-common.c (handle_optimize_attribute): Call
1247 save_optabs_if_changed.
1249 2013-02-18 Jakub Jelinek <jakub@redhat.com>
1250 Steven Bosscher <steven@gcc.gnu.org>
1253 * c-opts.c (c_common_post_options): If debug info is enabled
1254 and non-dwarf*, refuse to load PCH files and when writing PCH
1257 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1260 * c-common.c (handle_error_attribute): Fix condition.
1262 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1265 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1267 2013-01-18 Jason Merrill <jason@redhat.com>
1270 * c.opt (-fextern-tls-init): New.
1271 * c-opts.c (c_common_post_options): Handle it.
1273 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1276 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1277 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1278 and is either negative or bigger or equal to type precision
1279 of the first operand.
1281 2012-12-03 Marek Polacek <polacek@redhat.com>
1284 * c-common.c (check_user_alignment): Swap order of tests,
1285 check TREE_CODE first.
1287 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1290 * c-common.h (overflow_type): New enum.
1291 (build_userdef_literal): Add overflow_type argument.
1292 (tree_userdef_literal): Add overflow_type.
1293 (USERDEF_LITERAL_OVERFLOW): New access macro.
1294 * c-common.c (build_userdef_literal): Add overflow_type
1296 * c-lex.c (c_lex_with_flags): Add overflow_type to
1297 build_userdef_literal calls.
1298 (interpret_integer, interpret_float): Add overflow_type argument.
1300 2012-11-28 Richard Biener <rguenther@suse.de>
1303 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1304 here and use a type with proper overflow behavior for types that would
1305 need to be promoted for the arithmetic.
1307 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1310 * c-common.c (handle_no_address_safety_analysis_attribute): New
1312 (c_common_attribute_table): Add no_address_safety_analysis.
1314 2012-11-16 Simon Baldwin <simonb@google.com>
1316 * c.opt: Add f[no-]canonical-system-headers.
1317 * c-opts.c (c_common_handle_option): Handle
1318 OPT_fcanonical_system_headers.
1320 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1323 * c-opts.c (c_common_handle_option): Set new flags.
1324 * c.opt: Describe new flags.
1326 2012-11-09 Jason Merrill <jason@redhat.com>
1328 * c.opt (Wabi-tag): New.
1330 2012-11-09 Andi Kleen <ak@linux.intel.com>
1333 * c-common.c (get_atomic_generic_size): Mask with
1336 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1339 * c.opt (Wformat): Make it Alias Wformat=1.
1340 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1341 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1343 (Wformat=): RejectNegative. Use LangEnabledBy.
1344 (Wnonnull): Use LangEnabledBy.
1345 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1346 * c-format.c (set_Wformat): Delete.
1347 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1348 (maybe_read_dollar_number): Likewise.
1349 (avoid_dollar_number): Likewise.
1350 (finish_dollar_format_checking): Likewise.
1351 (check_format_info): Likewise.
1352 (check_format_info_main): Likewise.
1353 (check_format_types): Likewise.
1354 (format_type_warning): Likewise.
1355 * c-common.c (int): Likewise.
1356 (check_function_sentinel): Likewise.
1357 * c-common.h (warn_format,set_Wformat): Do not declare here.
1359 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1362 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1363 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1365 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1367 (Wvariadic-macros): Init(1).
1368 * c-opts.c (c_common_handle_option): Do not handle them
1370 (c_common_post_options): Likewise.
1371 (sanitize_cpp_opts): warn_unused_macros is now
1372 cpp_warn_unused_macros.
1373 (push_command_line_include): Likewise.
1374 * c-common.c (warn_unknown_pragmas): Do not define.
1375 * c-common.h (warn_unknown_pragmas): Do not declare.
1377 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1380 * c-common.c (conversion_warning): Handle conditional expressions.
1382 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1385 * c.opt (Wreturn_local_addr): Define new option.
1387 2012-10-25 Jason Merrill <jason@redhat.com>
1389 * c.opt (Wvirtual-move-assign): New.
1391 * c.opt (Winherited-variadic-ctor): New.
1393 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1396 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1398 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1400 * c-common.h (pch_cpp_save_state): Declare.
1401 * c-target.def (c_preinclude): New hook.
1402 * c-opts.c (done_preinclude): New.
1403 (push_command_line_include): Handle default preincluded header.
1404 (cb_file_change): Call pch_cpp_save_state when calling
1405 push_command_line_include.
1406 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1407 (pch_cpp_save_state): New.
1408 (pch_init): Call pch_cpp_save_state conditionally, instead of
1409 calling cpp_save_state.
1411 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1415 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1416 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1417 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1418 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1419 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1420 * c-opts.c (c_common_handle_option): Remove explicit handling from
1422 (c_common_post_options): Likewise.
1424 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1426 * c-ada-spec.c (LOCATION_COL): Delete.
1427 (compare_location): New function.
1428 (compare_node): Use it.
1429 (compare_comment): Likewise.
1431 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1435 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1436 * c-opts.c (c_common_handle_option): Do not set them here. Add
1438 (c_common_post_options): Likewise.
1440 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1442 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1443 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1444 Remove POINTER_TYPE handling, add large unsigned handling and use
1445 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1447 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1450 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1451 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1452 locs and array of 3 trees instead of just single loc and single
1453 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1454 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1455 For *cmp* builtins that take two sources strings report warnings
1456 about first and second source, not about destination and source.
1458 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1461 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1463 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1465 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1466 declaring something coming from another file.
1468 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1471 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1473 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1476 * c-common.c (warn_about_parentheses): Add location_t parameter;
1477 use EXPR_LOC_OR_LOC.
1478 * c-common.h: Update declaration.
1480 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1483 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1484 more operations. Make error messages optional.
1485 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1486 (scalar_to_vector): Declare.
1488 2012-10-08 Jason Merrill <jason@redhat.com>
1490 * c-common.c (c_common_reswords): Add thread_local.
1492 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1494 PR c++/53528 C++11 attribute support
1495 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1497 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1499 (handle_aligned_attribute): In choose strictest alignment
1500 among many. Use new check_cxx_fundamental_alignment_constraints.
1501 (handle_transparent_union_attribute): In c++11 attribute syntax,
1502 don't look through typedefs.
1504 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1506 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1507 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1510 2012-09-25 Dehao Chen <dehao@google.com>
1513 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1514 map when read in the pch.
1516 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1518 * c-ada-spec.c: Style fixes.
1520 2012-09-18 Thomas Quinot <quinot@adacore.com>
1522 * c.opt (-fada-spec-parent): Define new command line switch.
1523 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1524 is specified, generate binding spec as a child of the specified unit.
1526 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1527 Manuel López-Ibáñez <manu@gcc.gnu.org>
1530 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1532 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1534 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1535 for pointers, and add missing Convention C pragma.
1536 (print_ada_struct_decl): Add missing aliased keyword.
1537 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1539 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1541 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1542 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1543 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1544 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1545 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1547 2012-08-10 Richard Guenther <rguenther@suse.de>
1549 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1551 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1553 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1554 instead of separate pp_newline and pp_flush.
1555 (print_c_tree): Likewise.
1557 2012-07-26 Richard Henderson <rth@redhat.com>
1559 * c-common.c (handle_hot_attribute): Allow labels.
1560 (handle_cold_attribute): Likewise.
1562 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1565 * c-common.c (check_function_nonnull): Handle multiple nonnull
1566 attributes properly.
1568 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1570 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1571 * c-ada-spec.c: Likewise.
1572 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1574 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1576 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1577 Remove code conditional on it.
1579 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1581 * c-gimplify.c: Do not include basic-block.h.
1582 * c-common.c: Do not include linfuncs.h.
1584 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1586 * c-common.h: Include tree.h.
1588 2012-07-02 Jason Merrill <jason@redhat.com>
1591 * c-common.c (get_priority): Call default_conversion.
1593 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1595 * c-pch.c (c_common_write_pch): Remove unused variables.
1597 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1599 * cppspec.c: Moved from gcc/ to here.
1601 2012-06-27 Kai Tietz <ktietz@redhat.com>
1603 PR preprocessor/37215
1604 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1606 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1608 * c-common.h (c_common_print_pch_checksum): Remove.
1609 * c-pch.c: Do not include output.h.
1610 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1611 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1612 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1613 (struct c_pch_header): Remove.
1614 (get_ident): Update gpch version.
1615 (pch_init): Do not print executable_checksum to asm_out_file.
1616 Do not fail if there is no asm_out_file to read back from. Set
1617 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1618 (c_common_write_pch): Verify that nothing was written to asm_out_file
1619 since pch_init was called. Do not write a c_pch_header, and do not
1620 copy from asm_out_file to the PCH.
1621 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1622 the content of asm_out_file from the PCH.
1623 (c_common_print_pch_checksum): Remove.
1624 * c-opts.c (c_common_init): Print out executable_checksum directly.
1626 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1628 * c-target.def (objc_declare_unresolved_class_reference,
1629 objc_declare_class_definition): Add new hooks.
1631 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1633 * c-lex.c: Do not include output.h.
1634 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1635 Remove uses of ASM_OUTPUT_IDENT.
1637 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1640 * c-common.h (c_build_vec_perm_expr): Move decl here.
1641 * c-common.c (c_build_vec_perm_expr): Move definition
1644 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1646 * c.opt (fconserve-space): Turn into a no-op.
1648 2012-06-04 Sterling Augustine <saugustine@google.com>
1650 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1651 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1652 both the start and end of the function.
1654 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1656 * c-common.c: Do not include output.h.
1657 * c-pragma.c: Likewise.
1659 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1661 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1662 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1663 (lang_decl_name): Handle namespace decls.
1665 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1667 * c-ada-spec.c: Do not include output.h.
1668 * c-semantics.c: Likewise.
1670 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1672 * c-common.c: Fix typo.
1674 2012-05-29 Michael Matz <matz@suse.de>
1676 * c-common.h (c_expand_decl): Remove prototype.
1678 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1680 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1681 * c-opts.c (c_common_handle_option): Remove code handling
1682 warn_missing_braces.
1684 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1687 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1690 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1693 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1695 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1697 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1698 * c-opts.c (c_common_handle_option): Do not handle explicitly
1699 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1701 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1703 PR preprocessor/7263
1704 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1705 to cpp_classify_number. For diagnostics, use the precise location
1706 instead of the global input_location.
1708 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1711 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1713 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1715 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1717 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1720 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1721 Wreorder): Use LangEnabledBy.
1722 * c-opts.c (c_common_handle_option): Do not enable them
1723 explicitly. Call lang-specific generated functions.
1724 (c_common_post_options): Do not set them here.
1726 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1728 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1729 Wmissing-field-initializers,Wmissing-parameter-type,
1730 Wold-style-declaration,Woverride-init): Use EnabledBy.
1731 * c-opts.c (c_common_post_options): Do not set here explicitly.
1733 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1736 * c-opts.c (c_common_handle_option): Use handle_generated_option
1737 to enable sub-options.
1739 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1742 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1744 2012-05-10 Richard Guenther <rguenther@suse.de>
1746 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1747 adjust commentary about TYPE_IS_SIZETYPE types.
1749 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1752 * c-common.c (warn_logical_operator): Check that argument of
1753 integer_zerop is not NULL.
1755 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1758 * c-common.c (warn_logical_operator): Do not warn if either side
1759 is already true or false.
1761 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1764 * c-common.c (expr_original_type): New.
1765 (shorten_compare): Do not warn for enumeration types.
1767 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1769 * c.opt (fpermissive): Add Var(flag_permissive).
1771 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1774 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1775 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1777 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1779 Add -Wvarargs option
1780 * c.opt (Wvarargs): Define new option.
1782 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1784 * c-common.c (check_function_arguments): Replace
1785 Wmissing-format-attribute with Wsuggest-attribute=format.
1787 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1789 * c.opt (Wsuggest-attribute=format): New. Alias of
1790 Wmissing-format-attribute.
1791 * c-format.c (decode_format_type): Replace
1792 Wmissing-format-attribute with Wsuggest-attribute=format.
1793 (check_function_format): Likewise.
1795 2012-04-27 Ollie Wild <aaw@google.com>
1797 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1798 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1799 * c.opt: Add Wliteral-suffix.
1801 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1804 * c.opt (Wpedantic): New.
1805 (pedantic): Alias Wpedantic.
1806 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1807 (c_common_post_options): Likewise.
1808 (sanitize_cpp_opts): Likewise.
1809 * c-lex.c (interpret_float): Likewise.
1810 * c-format.c (check_format_types): Likewise.
1811 * c-common.c (pointer_int_sum): Likewise.
1812 (c_sizeof_or_alignof_type): Likewise.
1813 (c_add_case_label): Likewise.
1814 (c_do_switch_warnings): Likewise.
1815 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1817 2012-04-15 Jason Merrill <jason@redhat.com>
1820 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1821 (C_STD_NAME): Distinguish between C++98 and C++11.
1823 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1826 * c-common.h (uint16_type_node): Rename into...
1827 (c_uint16_type_node): ...this.
1828 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1829 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1831 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1833 * c-common.c (warn_if_unused_value): Move definition to here.
1834 * c-common.h (warn_if_unused_value): Move declaration to here.
1836 2012-03-23 William Bader <williambader@hotmail.com>
1838 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1840 2012-03-20 Jason Merrill <jason@redhat.com>
1842 * c-common.h (enum cxx_dialect): Add cxx1y.
1843 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1845 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1846 * c-opts.c (c_common_post_options): Likewise.
1847 (set_std_cxx1y): New.
1848 (c_common_handle_option): Call it.
1849 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1851 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1854 * c.opt ([Wuseless-cast]): Add.
1856 2012-03-16 Richard Guenther <rguenther@suse.de>
1858 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1860 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1863 * c.opt (ftemplate-backtrace-limit) Add.
1865 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1867 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1869 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1870 (init_pragma): Don't register extern_prefix.
1872 2012-03-12 Richard Guenther <rguenther@suse.de>
1874 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1875 (builtin_type_for_size): Likewise.
1877 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1880 * c-common.c (sync_resolve_params): Don't decide whether to convert
1881 or not based on TYPE_SIZE comparison, convert whenever arg_type
1882 is unsigned INTEGER_TYPE.
1884 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1887 * c.opt ([Wunused-local-typedefs]): Fix description.
1889 2012-01-24 Mike Stump <mikestump@comcast.net>
1891 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1894 2012-01-18 Richard Guenther <rguenther@suse.de>
1896 * c-opts.c (c_common_post_options): Reset LTO flags if
1897 we are about to generate a PCH.
1899 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1902 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1903 use pp_unsigned_wide_integer.
1905 2012-01-10 Richard Guenther <rguenther@suse.de>
1908 * c-opts.c (c_common_handle_option): Move -Werror handling
1909 to language independent code.
1911 2012-01-05 Richard Guenther <rguenther@suse.de>
1914 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1917 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1920 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1921 of array types with an unknown bound.
1923 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1925 * c-common.c (flag_isoc99): Update comment to refer to C11.
1926 (flag_isoc1x): Change to flag_isoc11.
1927 * c-common.h (flag_isoc99): Update comment to refer to C11.
1928 (flag_isoc1x): Change to flag_isoc11.
1929 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1931 * c-opts.c (set_std_c1x): Change to set_std_c11.
1932 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1934 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1935 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1936 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1938 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1939 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1940 (std=gnu1x): Make alias of std=gnu11.
1942 2011-12-19 Jason Merrill <jason@redhat.com>
1945 * c-common.c (handle_transparent_union_attribute): Check the first
1946 field if the type is complete.
1948 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1951 * c-common.c (RID_IS_FINAL): Add.
1952 * c-common.h (RID_IS_FINAL): Add.
1954 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1956 * c.opt (fgnu-runtime): Provide full description.
1957 (fnext-runtime): Likewise.
1958 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1960 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1962 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1963 predefines in one place. Add LOCK_FREE predefines.
1964 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1967 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1970 * c-common.c (get_atomic_generic_size): Check for various error
1972 (resolve_overloaded_atomic_exchange,
1973 resolve_overloaded_atomic_compare_exchange,
1974 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1975 error_mark_node for error conditions.
1977 2011-11-08 Richard Guenther <rguenther@suse.de>
1982 2011-11-07 Richard Henderson <rth@redhat.com>
1983 Aldy Hernandez <aldyh@redhat.com>
1984 Torvald Riegel <triegel@redhat.com>
1986 Merged from transactional-memory.
1988 * c-common.c (handle_tm_wrap_attribute,
1989 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1990 (struct c_common_reswords): Added __transaction* keywords.
1991 (struct c_common_attribute_table): Added transaction* and tm_regparm
1993 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1995 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1996 find_tm_attribute): Declare.
1998 2011-11-07 Jason Merrill <jason@redhat.com>
2001 * c-common.c, c-common.h: Revert yesterday's changes.
2003 2011-11-06 Jason Merrill <jason@redhat.com>
2006 * c-common.c (decl_has_visibility_attr): Split out from...
2007 (c_determine_visibility): ...here.
2008 * c-common.h: Declare it.
2010 2011-11-06 Joseph Myers <joseph@codesourcery.com>
2012 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2013 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2015 (check_user_alignment): New. Split out of
2016 handle_aligned_attribute. Disallow integer constants with
2017 noninteger types. Conditionally allow zero.
2018 (handle_aligned_attribute): Use check_user_alignment.
2019 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2021 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
2022 Richard Henderson <rth@redhat.com>
2024 Merged from cxx-mem-model.
2026 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2027 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2028 parameters that are the same type size.
2029 (get_atomic_generic_size): New. Find size of generic
2030 atomic function parameters and do typechecking.
2031 (add_atomic_size_parameter): New. Insert size into parameter list.
2032 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2033 either __atomic_exchange_n or external library call.
2034 (resolve_overloaded_atomic_compare_exchange): Restructure
2035 __atomic_compare_exchange to either _n variant or external library call.
2036 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2037 __atomic_load_n or an external library call.
2038 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2039 __atomic_store_n or an external library call.
2040 (resolve_overloaded_builtin): Handle new __atomic builtins.
2042 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2045 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2046 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2047 <INDIRECT_REF>: Return the argument.
2048 <ARRAY_REF>: Remove special code for negative offset.
2049 Call fold_build_pointer_plus instead of size_binop.
2050 (fold_offsetof): Remove STOP_REF argument and adjust.
2051 * c-common.h (fold_offsetof_1): Declare.
2052 (fold_offsetof): Remove STOP_REF argument.
2054 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2057 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2058 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2059 Wnarrowing for C++0x and C++98.
2060 * c.opt ([Wnarrowing]): Update.
2062 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2065 * c.opt: Add Wzero-as-null-pointer-constant.
2067 2011-10-31 Jason Merrill <jason@redhat.com>
2069 * c.opt (-fdeduce-init-list): Off by default.
2072 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2073 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2075 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2077 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2080 * c.opt (fvisibility-inlines-hidden): Description change.
2082 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2084 Implement C++11 user-defined literals.
2085 * c-common.c (build_userdef_literal): New.
2086 * c-common.def: New tree code.
2087 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2088 * c-lex.c (interpret_float): Add suffix parm.
2089 (c_lex_with_flags): Build literal tokens.
2091 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2095 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2098 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2099 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2100 Wnarrowing for C++0x and C++98.
2101 * c.opt ([Wnarrowing]): Update.
2103 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2106 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2107 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2108 Wnarrowing for C++0x and C++98.
2109 * c.opt ([Wnarrowing]): Update.
2111 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2114 * c-common.c (conversion_warning): Remove code looking for
2115 artificial operands.
2117 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2120 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2121 !NO_IMPLICIT_EXTERN_C.
2123 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2125 * c-common.c (c_common_reswords): Add __bases,
2127 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2129 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2132 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2134 2011-10-15 Tom Tromey <tromey@redhat.com>
2135 Dodji Seketeli <dodji@redhat.com>
2137 * c.opt (fdebug-cpp): New option.
2138 * c-opts.c (c_common_handle_option): Handle the option.
2139 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2140 output stream in parameter. Factorized from ...
2141 (maybe_print_line): ... this. Dump location debug information when
2142 -fdebug-cpp is in effect.
2143 (print_line_1): New static function. Takes an output stream in
2144 parameter. Factorized from ...
2145 (print_line): ... here. Dump location information when -fdebug-cpp
2147 (scan_translation_unit): Dump location information when
2148 -fdebug-cpp is in effect.
2150 2011-10-15 Tom Tromey <tromey@redhat.com>
2151 Dodji Seketeli <dodji@redhat.com>
2153 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2155 * c-opts.c (c_common_handle_option)<case
2156 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2157 cases. Handle -ftrack-macro-expansion with and without argument.
2159 2011-10-15 Tom Tromey <tromey@redhat.com>
2160 Dodji Seketeli <dodji@redhat.com>
2162 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2163 (print_line, cb_define, do_line_change): Adjust to avoid touching
2164 the internals of struct line_map. Use the public API instead.
2165 * c-pch.c (c_common_read_pch): Likewise.
2166 * c-lex.c (fe_file_change): Likewise.
2168 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2171 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2173 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2176 * c-pretty-print.c (pp_c_floating_constant): Output
2177 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2179 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2181 * c-common.c (def_builtin_1): Delete old interface with two
2182 parallel arrays to hold standard builtin declarations, and replace
2183 it with a function based interface that can support creating
2184 builtins on the fly in the future. Change all uses, and poison
2185 the old names. Make sure 0 is not a legitimate builtin index.
2186 * c-omp.c (c_finish_omp_barrier): Ditto.
2187 (c_finish_omp_taskwait): Ditto.
2188 (c_finish_omp_flush): Ditto.
2190 2011-10-11 Tristan Gingold <gingold@adacore.com>
2192 * c.opt: (fallow-parameterless-variadic-functions): New.
2194 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2196 PR c++/33255 - Support -Wunused-local-typedefs warning
2197 * c-common.h (struct c_language_function::local_typedefs): New
2199 (record_locally_defined_typedef, maybe_record_typedef_use)
2200 (maybe_warn_unused_local_typedefs): Declare new functions.
2201 * c-common.c (record_locally_defined_typedef)
2202 (maybe_record_typedef_use)
2203 (maybe_warn_unused_local_typedefs): Define new functions.
2204 * c.opt: Declare new -Wunused-local-typedefs flag.
2206 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2209 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2212 2011-09-05 Richard Guenther <rguenther@suse.de>
2214 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2215 of integer_minus_one_node for empty array upper bounds.
2217 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2219 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2220 it's the first time it's being called on this main TU.
2222 2011-08-24 Richard Guenther <rguenther@suse.de>
2225 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2227 2011-08-22 Gabriel Charette <gchare@google.com>
2229 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2230 defined in cpp_init_builtins and c_cpp_builtins.
2232 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2234 * c-common.c (c_common_reswords): Add __builtin_complex.
2235 * c-common.h (RID_BUILTIN_COMPLEX): New.
2237 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2239 * c-common.c (c_common_reswords): Add _Noreturn.
2240 (keyword_is_function_specifier): Handle RID_NORETURN.
2241 * c-common.h (RID_NORETURN): New.
2243 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2245 * c-common.c (unsafe_conversion_p): New function. Check if it is
2246 unsafe to convert an expression to the type.
2247 (conversion_warning): Adjust, use unsafe_conversion_p.
2248 * c-common.h (unsafe_conversion_p): New function declaration.
2250 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2252 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2253 (c_finish_omp_taskyield): New prototype.
2254 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2255 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2256 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2257 or RHS1 have side-effects, evaluate those too in the right spot,
2258 if it is a decl and LHS is also a decl, error out if they
2260 (c_finish_omp_taskyield): New function.
2261 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2262 * c-pragma.c (omp_pragmas): Add taskyield.
2263 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2264 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2265 PRAGMA_OMP_CLAUSE_MERGEABLE.
2267 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2269 * c-common.h (set_underlying_type): Remove parm name from
2272 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2274 * c-pretty-print.h: Search c-common.h in c-family.
2276 2011-07-22 Jason Merrill <jason@redhat.com>
2279 * c.opt (Wnarrowing): New.
2282 * c-common.h: Declare c_linkage_bindings.
2283 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2286 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2287 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2288 as flag_isoc99 for 'restrict'.
2289 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2291 2011-07-21 Ian Lance Taylor <iant@google.com>
2294 * c-common.c (c_disable_warnings): New static function.
2295 (c_enable_warnings): New static function.
2296 (c_fully_fold_internal): Change local unused_p to bool. Call
2297 c_disable_warnings and c_enable_warnings rather than change
2298 c_inhibit_evaluation_warnings.
2300 2011-07-20 Jason Merrill <jason@redhat.com>
2302 PR c++/6709 (DR 743)
2303 PR c++/42603 (DR 950)
2304 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2305 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2306 (CPP_DECLTYPE): New.
2307 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2309 2011-07-19 Richard Guenther <rguenther@suse.de>
2311 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2312 * c-omp.c (c_finish_omp_for): Likewise.
2314 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2316 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2317 body on the next line.
2319 2011-07-08 Jason Merrill <jason@redhat.com>
2322 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2325 * c-common.c (c_apply_type_quals_to_decl): Don't check
2326 TYPE_NEEDS_CONSTRUCTING.
2328 2011-07-06 Richard Guenther <rguenther@suse.de>
2330 * c-common.c (c_common_nodes_and_builtins):
2331 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2333 2011-07-05 Richard Guenther <rguenther@suse.de>
2335 * c-common.c (c_common_nodes_and_builtins): Build all common
2338 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2340 * c-common.h (c_tree_chain_next): New static inline function.
2342 * c-common.c (check_builtin_function_arguments): Handle
2343 BUILT_IN_ASSUME_ALIGNED.
2345 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2347 * c-common.c: Add sync_ or SYNC__ to builtin names.
2348 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2350 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2352 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2354 (gen_pragma_handler): New union.
2355 (internal_pragma_handler): New type.
2356 (c_register_pragma_with_data)
2357 (c_register_pragma_with_expansion_and_data): New functions.
2359 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2360 (c_register_pragma, c_register_pragma_with_expansion)
2361 (c_invoke_pragma_handler): Changed to work with
2362 internal_pragma_handler.
2363 (c_register_pragma_with_data)
2364 (c_register_pragma_with_expansion_and_data): New functions.
2366 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2368 * c-common.c: Include common/common-target.h.
2369 (handle_section_attribute): Use
2370 targetm_common.have_named_sections.
2371 * c-cppbuiltin.c: Include common/common-target.h.
2372 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2374 2011-06-10 Richard Guenther <rguenther@suse.de>
2376 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2377 to print a IDENTIFIER_NODE.
2379 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2380 Joseph Myers <joseph@codesourcery.com>
2382 * c.opt (fbuilding-libgcc): New option.
2383 * c-cppbuiltin.c (c_cpp_builtins): Define
2384 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2386 2011-06-07 Jason Merrill <jason@redhat.com>
2388 * c-common.c (max_tinst_depth): Lower default to 900.
2390 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2392 2011-06-07 Richard Guenther <rguenther@suse.de>
2394 * c-common.c (c_common_nodes_and_builtins): Do not set
2395 size_type_node or call set_sizetype.
2397 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2400 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2401 type when using pointer comparison to compare types.
2403 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2405 * c.opt: Add -Wdelete-non-virtual-dtor.
2406 * c-opts.c (c_common_handle_option): Include it in -Wall.
2408 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2413 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2415 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2418 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2421 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2422 C++ don't call c_common_truthvalue_conversion on void type arms.
2424 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2426 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2427 (stmt_list_stack): Define.
2428 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2429 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2431 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2433 * c-common.c (warning_candidate_p): Check for BLOCKs.
2435 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2437 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2440 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2442 * c-common.c (def_fn_type): Remove extra va_end.
2444 2011-05-23 Jason Merrill <jason@redhat.com>
2447 * c-common.c (c_common_get_narrower): New.
2448 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2450 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2452 * c-common.h (check_function_arguments): Tweak prototype of
2453 check_function_arguments.
2454 * c-common.c (check_function_arguments): Likewise. Adjust
2455 calls to check_function_nonnull, check_function_format, and
2456 check_function_sentinel.
2457 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2458 separate attributes and typelist arguments. Use
2459 FOREACH_FUNCTION_ARGS to iterate over argument types.
2461 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2463 * c-common.c (c_common_reswords): Reorder.
2464 * c-common.h (rid): Likewise.
2466 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2468 * c-common.c (def_fn_type): Don't call build_function_type, call
2469 build_function_type_array or build_varargs_function_type_array
2471 (c_common_nodes_and_builtins): Likewise.
2473 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2475 * c-common.c (c_add_case_label): Omit the loc argument to
2477 * c-common.h (build_case_label): Remove.
2478 * c-semantics.c (build_case_label): Remove.
2480 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2482 * c-objc.h (objc_start_method_definition): Update prototype.
2483 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2485 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2487 * c-common.c (check_main_parameter_types): Reindent. Don't use
2488 TYPE_ARG_TYPES directly.
2489 (handle_nonnull_attribute): Likewise.
2490 (sync_resolve_params): Likewise.
2491 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2492 to check_format_string.
2493 (handle_format_attribute): Likewise.
2494 (check_format_string): Take a function type to examine instead of
2495 a type list. Use a function_arg_iterator to step through argument
2498 2011-05-04 Richard Guenther <rguenther@suse.de>
2500 * c-common.c (fix_string_type): Use size_int for index type bounds.
2501 (start_fname_decls): Do not pass NULL to build_int_cst.
2502 (c_init_attributes): Likewise.
2503 * c-lex.c (c_lex_with_flags): Likewise.
2505 2011-04-27 Jason Merrill <jason@redhat.com>
2507 * c-common.c (make_tree_vector_from_list): New.
2508 * c-common.h: Declare it.
2510 2011-04-26 Richard Guenther <rguenther@suse.de>
2512 PR preprocessor/48248
2513 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2514 for output size with -P.
2516 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2518 * c-common.c (struct c_common_resword): Add __underlying_type.
2519 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2521 2011-04-20 Jim Meyering <meyering@redhat.com>
2523 * c-format.c (init_dollar_format_checking): Remove useless
2526 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2528 * c-objc.h (objc_get_interface_ivars): Removed.
2529 (objc_detect_field_duplicates): New.
2530 * stub-objc.c: Likewise.
2532 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2534 * stub-objc.c (objc_declare_protocols): Renamed to
2535 objc_declare_protocol.
2536 * c-objc.h: Likewise.
2538 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2540 * stub-objc.c (objc_declare_class): Updated argument name.
2542 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2544 * c-common.h (c_common_init_ts): Declare.
2545 * c-common.c (c_common_init_ts): Define.
2547 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2549 * c-objc.h (objc_build_message_expr): Updated prototype.
2550 * stub-objc.c (objc_build_message_expr): Likewise.
2552 2011-04-12 Martin Jambor <mjambor@suse.cz>
2554 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2557 2011-04-11 Richard Guenther <rguenther@suse.de>
2559 * c-common.c (complete_array_type): Build a range type of
2562 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2564 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2565 (handle_type_generic_attribute): Likewise.
2567 2011-04-07 Jason Merrill <jason@redhat.com>
2570 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2571 conversion from C++0x scoped enum.
2573 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2575 * c-target-def.h: New file.
2576 * c-target.def: New file.
2577 * c-target.h: New file.
2578 * c-common.c (targetcm): Don't define here.
2579 * c-common.h (default_handle_c_option): Declare.
2580 * c-format.c: Include c-target.h instead of target.h.
2581 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2583 (default_handle_c_option): Move from targhooks.c.
2585 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2587 PR preprocessor/48248
2588 * c-ppoutput.c (print): Add src_file field.
2589 (init_pp_output): Initialize it.
2590 (maybe_print_line): Don't optimize by adding up to 8 newlines
2591 if map->to_file and print.src_file are different file.
2592 (print_line): Update print.src_file.
2594 2011-03-25 Kai Tietz <ktietz@redhat.com>
2596 * c-ada-spec.c (compare_comment): Use filename_cmp
2597 instead of strcmp for filename.
2599 2011-03-25 Jeff Law <law@redhat.com>
2601 * c-family/c-common.c (def_fn_type): Add missing va_end.
2603 2011-03-25 Jason Merrill <jason@redhat.com>
2605 * c.opt: Add -std=c++03.
2607 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2609 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2611 2011-03-17 Kai Tietz
2614 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2615 Display allowed attributes for function pointer types.
2616 (pp_c_attributes_display): New function to display
2617 attributes having affects_type_identity flag set to true.
2618 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2620 * c-common.c (c_common_attribute_table):
2622 (c_common_format_attribute_table): Likewise.
2624 2011-03-18 Jason Merrill <jason@redhat.com>
2626 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2627 * c-common.h: Don't declare it here.
2628 * c-common.c: Or define it here.
2629 * c-opts.c (c_common_handle_option): Or set it here.
2632 * c-common.c (handle_transparent_union_attribute): Don't
2633 make a duplicate type in C++.
2635 2011-03-15 Jason Merrill <jason@redhat.com>
2637 * c-common.c (max_constexpr_depth): New.
2638 * c-common.h: Declare it.
2639 * c-opts.c (c_common_handle_option): Set it.
2640 * c.opt (fconstexpr-depth): New option.
2642 2011-03-11 Jason Merrill <jason@redhat.com>
2644 * c-common.c (attribute_takes_identifier_p): Add missing const.
2647 * c-common.c (attribute_takes_identifier_p): Assume that an
2648 unknown attribute takes an identifier.
2650 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2653 * c-common.c (c_type_hash): Call list_length instead of iterating
2654 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2656 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2659 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2661 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2663 * c.opt (fobjc-abi-version=) New.
2664 (fobjc-nilcheck): New.
2666 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2669 * c-common.h (keyword_is_decl_specifier): Declare.
2670 * c-common.c (keyword_is_decl_specifier): Define.
2671 (keyword_is_function_specifier): New function.
2673 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2676 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2677 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2680 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2682 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2684 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2687 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2688 after init_c_lex if pch_file is set.
2690 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2693 * c.opt (-fkeep-inline-dllexport): New switch.
2695 2011-01-12 Richard Guenther <rguenther@suse.de>
2698 * c-common.c (handle_weak_attribute): Warn instead of error
2699 on declaring an inline function weak.
2701 2011-01-05 Tom Tromey <tromey@redhat.com>
2703 * c-common.h (lvalue_error): Update.
2704 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2707 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2710 * c-objc.h (objc_finish_message_expr): Added argument to
2713 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2715 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2718 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2720 * c-objc.h (objc_maybe_warn_exceptions): New.
2721 * stub-objc.c (objc_maybe_warn_exceptions): New.
2723 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2725 * c-common.h (readonly_error): Declare.
2726 * c-common.c (readonly_error): Define.
2728 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2730 * c-common.h (invalid_indirection_error): Declare.
2731 * c-common.c (invalid_indirection_error): Define.
2733 2010-12-03 Richard Guenther <rguenther@suse.de>
2736 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2737 (pp_c_unary_expression): Likewise.
2738 (pp_c_expression): Likewise.
2740 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2742 * c-common.h (objc_finish_function): New.
2743 (objc_non_volatilized_type): Removed.
2744 (objc_type_quals_match): Removed.
2745 * stub-objc.c (objc_finish_function): New.
2746 (objc_non_volatilized_type): Removed.
2747 (objc_type_quals_match): Removed.
2749 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2751 * c-common.h (parse_optimize_options): Declare.
2752 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2753 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2755 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2757 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2759 * c-pch.c (O_BINARY): Don't define here.
2760 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2762 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2764 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2765 targetm.except_unwind_info.
2767 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2769 * c-opts.c (c_common_handle_option): Pass location to
2770 set_struct_debug_option.
2772 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2774 * c-common.c (visibility_options): Move from ../opts.c.
2775 * c-common.h (struct visibility_flags, visibility_options):
2777 * c-opts.c (finish_options): Rename to c_finish_options.
2778 (c_common_init): Update call to finish_options.
2780 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2783 * c-lex.c (lex_string): Check that each string in an Objective-C
2784 string concat sequence starts with either one or zero '@', and
2785 that there are no spurious '@' signs at the end.
2787 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2789 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2790 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2791 HANDLE_PRAGMA_VISIBILITY.
2792 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2793 HANDLE_PRAGMA_VISIBILITY): Don't define.
2794 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2796 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2801 * c-common.h (keyword_begins_type_specifier): Declare.
2802 (keyword_is_storage_class_specifier): Declare.
2803 (keyword_is_type_qualifier): Declare.
2804 * c-common.c (keyword_begins_type_specifier): New function.
2805 (keyword_is_storage_class_specifier): New function.
2806 (keyword_is_type_qualifier): Declare.
2808 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2811 * c-common.c (in_late_binary_op): Define.
2812 (c_common_truthvalue_conversion): Check in_late_binary_op before
2813 calling c_save_expr.
2814 * c-common.h (in_late_binary_op): Declare.
2816 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2818 * c-opts.c (c_common_handle_option): Update calls to
2819 set_struct_debug_option.
2821 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2823 * c-common.h (objc_declare_protocols): Added additional argument.
2824 * stub-objc.c (objc_declare_protocol): Same change.
2826 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2829 * c-common.h (build_real_imag_expr): Declare.
2830 * c-semantics.c (build_real_imag_expr): Define.
2832 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2834 * c-opts.c (c_common_parse_file): Take no arguments.
2835 * c-common.h (c_common_parse_file): Update prototype.
2837 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2840 * c-common.c (warning_candidate_p): Don't track non-const calls
2843 2010-11-15 Ian Lance Taylor <iant@google.com>
2845 * c-lex.c (init_c_lex): Set macro debug callbacks if
2846 flag_dump_go_spec is set.
2848 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2850 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2851 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2853 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2855 PR preprocessor/45038
2856 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2859 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2861 * c-common.h (c_family_lang_mask): Declare.
2862 * c-opts.c (c_family_lang_mask): Make extern.
2863 * c-pragma.c (handle_pragma_diagnostic): Use
2864 control_warning_option.
2866 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2868 * c-common.c (parse_optimize_options): Update call to
2870 * c-common.h (c_common_handle_option): Update prototype.
2871 * c-opts.c (c_common_handle_option): Take location_t parameter and
2872 pass it to other functions.
2874 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2876 * c-opts.c (warning_as_error_callback): Remove.
2877 (c_common_initialize_diagnostics): Don't call
2878 register_warning_as_error_callback.
2879 (c_common_handle_option): Handle -Werror=normalized= here.
2881 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2883 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2885 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2887 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2888 Remove trailing '.' from diagnostics.
2889 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2891 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2893 * c-common.c (parse_optimize_options): Pass global_dc to
2895 * c-opts.c (c_common_handle_option): Pass &global_options to
2896 set_Wstrict_aliasing.
2897 * c.opt (v): Don't mark Common or document here.
2899 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2902 * c-format.c (format_type): New type gcc_objc_string_format_type.
2903 (valid_stringptr_type_p): New.
2904 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2905 (check_format_string): Pass expected type, use
2906 valid_stringptr_type_p (), check that the format string types are
2907 consistent with the format specification.
2908 (decode_format_attr): Warn if NSString is used outside objective-c.
2909 (format_types_orig): Add NSString.
2911 (format_flags): New.
2912 (check_format_arg): Handle format strings requiring an external parser.
2913 first_target_format_type: New variable.
2914 (handle_format_attribute): Set up first_target_format_type, pass the
2915 expected format arg string type to check_format_string().
2916 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2917 * stub-objc.c (objc_string_ref_type_p): New.
2918 (objc_check_format_arg): New.
2920 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2922 Fixed using the Objective-C 2.0 dot-syntax with class names.
2923 * c-common.h (objc_build_class_component_ref): New.
2924 * stub-objc.c (objc_build_class_component_ref): New.
2926 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2928 * c.opt (Wproperty-assign-default): New option.
2930 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2932 Implemented -fobjc-std=objc1 flag.
2933 * c.opt (fobjc-std=objc1): New option.
2935 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2937 Implemented format and noreturn attributes for Objective-C methods.
2938 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2939 attribute for Objective-C methods.
2941 2010-10-31 Jason Merrill <jason@redhat.com>
2943 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2946 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2948 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2949 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2950 (objc_add_property_declaration): Removed arguments for copies and
2952 (objc_build_getter_call): Renamed to
2953 objc_maybe_build_component_ref.
2954 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2955 (objc_is_property_ref): New.
2956 * c-common.c (c_common_reswords): Removed copies and ivar.
2957 * stub-objc.c (objc_add_property_declaration): Removed arguments
2958 for copies and ivar.
2959 (objc_build_getter_call): Renamed to
2960 objc_maybe_build_component_ref.
2961 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2962 (objc_is_property_ref): New.
2964 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2965 Matthew Gingell <gingell@adacore.com>
2967 * c-ada-spec.c (separate_class_package): New function.
2968 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2969 name of their enclosing package.
2970 (print_ada_declaration): Use separate_class_package.
2972 2010-10-27 Jason Merrill <jason@redhat.com>
2974 * c-common.c (c_common_reswords): Add __is_literal_type.
2975 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2977 * c-common.c (check_case_value): Remove special C++ code.
2979 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2981 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2982 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2984 (objc_add_property_declaration): Added additional arguments.
2985 (objc_property_attribute_kind): Removed.
2986 (objc_set_property_attr): Removed.
2987 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2989 * stub-objc.c (objc_add_property_declaration): Added additional
2991 (objc_set_property_attr): Removed.
2993 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2995 * c-common.h (objc_add_property_variable): Renamed to
2996 objc_add_property_declaration. Added location argument.
2997 * stub-objc.c (objc_add_property_variable): Same change.
2999 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3001 * c-common.h (objc_maybe_printable_name): New.
3002 * stub-objc.c (objc_maybe_printable_name): New.
3004 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3005 Andrew Pinski <pinskia@gmail.com>
3007 * c-common.h (c_common_mark_addressable_vec): Declare.
3008 * c-common.c (c_common_mark_addressable_vec): New function.
3010 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3012 * c-common.h (objc_set_method_type): Removed.
3013 (objc_add_method_declaration): Added boolean argument.
3014 (objc_start_method_definition): Same change.
3015 (objc_build_method_signature): Same change.
3016 * stub-objc.c (objc_set_method_type): Removed.
3017 (objc_add_method_declaration): Added boolean argument.
3018 (objc_start_method_definition): Same change.
3019 (objc_build_method_signature): Same change.
3021 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3023 * c-common.h (finish_file): Removed.
3024 (objc_write_global_declarations): New.
3025 * c-opts.c (c_common_parse_file): Do not call finish_file.
3026 * stub-objc.c (objc_write_global_declarations): New.
3028 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3030 Implemented parsing @synthesize and @dynamic for
3031 Objective-C/Objective-C++.
3032 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3033 (objc_add_synthesize_declaration): New.
3034 (objc_add_dynamic_declaration): New.
3035 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3036 * stub-objc.c (objc_add_synthesize_declaration): New.
3037 (objc_add_dynamic_declaration): New.
3039 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3042 * c-cppbuiltin.c (mode_has_fma): Move function here from
3043 builtins.c. Don't use the fma optab, instead just use the
3044 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3047 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3049 Merge from 'apple/trunk' branch on FSF servers.
3051 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3054 * c-common.h (objc_non_volatilized_type): New declaration
3055 * stub-objc.c (objc_non_volatilized_type): New stub.
3057 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3059 Merge from 'apple/trunk' branch on FSF servers.
3061 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3064 * c-common.h (objc_diagnose_private_ivar): New decl.
3065 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3067 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3069 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3070 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3071 (objc_ivar_visibility_kind): New enum.
3072 (objc_set_visibility): Adjust prototype to use visibility enum.
3073 * stub-objc.c (objc_set_visibility): Adjust stub to use
3076 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3078 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3079 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3080 has the appropriate fma builtins.
3081 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3083 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3085 merge from FSF apple 'trunk' branch.
3086 2006 Fariborz Jahanian <fjahanian@apple.com>
3088 Radars 4436866, 4505126, 4506903, 4517826
3089 * c-common.c (c_common_resword): Define @property and its attributes.
3090 * c-common.h: Define property attribute enum entries.
3091 (OBJC_IS_PATTR_KEYWORD): New.
3092 (objc_property_attribute_kind): New enum.
3093 Declare objc_set_property_attr (), objc_add_property_variable (),
3094 objc_build_getter_call () and objc_build_setter_call ().
3095 * stub-objc.c (objc_set_property_attr): New stub.
3096 (objc_add_property_variable): Likewise.
3097 (objc_build_getter_call): Likewise.
3098 (objc_build_setter_call) Likewise.
3100 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3102 merge from FSF apple 'trunk' branch.
3103 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3105 Radar 3803157 (method attributes)
3106 * c-common.c (handle_deprecated_attribute): Recognize
3107 objc methods as valid declarations.
3108 * c-common.h: Declare objc_method_decl ().
3109 * stub-objc.c (objc_method_decl): New stub.
3111 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3113 * c-common.c (parse_optimize_options): Call
3114 decode_cmdline_options_to_array_default_mask before
3115 decode_options. Update arguments to decode_options.
3116 * c-common.h (c_common_init_options_struct): Declare.
3117 * c-opts.c (c_common_init_options_struct): New. Split out from
3118 c_common_init_options.
3120 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3122 Implemented fast enumeration for Objective-C.
3123 * c-common.h (objc_finish_foreach_loop): New.
3124 * stub-objc.c (objc_finish_foreach_loop): New.
3126 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3128 * c-common.h (struct diagnostic_context): Don't declare here.
3129 (c_common_initialize_diagnostics): Declare using
3130 diagnostic_context typedef.
3131 * c-opts.c (c_common_handle_option): Pass global_dc to
3132 handle_generated_option.
3134 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3136 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3137 handle_generated_option.
3139 2010-10-03 Ian Lance Taylor <iant@google.com>
3141 * c.opt (-fplan9-extensions): New option.
3143 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3145 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3147 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3148 of duplicating code.
3150 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3152 * c-common.c: Add two new entries for @optional
3153 and @required keywords.
3155 merge from FSF 'apple/trunk' branch.
3156 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3159 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3160 objective-c keywords.
3161 (objc_set_method_opt): New declaration.
3162 * stub-objc.c (objc_set_method_opt): New stub.
3164 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3166 * c-common.c (handle_optimize_attribute): Pass &global_options to
3167 cl_optimization_save and cl_optimization_restore.
3168 * c-opts.c (c_common_handle_option): Pass &global_options to
3169 handle_generated_option.
3170 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3171 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3172 &global_options to cl_optimization_restore.
3174 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3176 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3177 Objective-C/Objective-C++ keywords.
3179 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3181 Merge from 'apple/trunk' branch on FSF servers.
3183 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3186 * c-common.h (objc_check_global_decl): New declaration.
3187 * stub-objc.c (objc_check_global_decl): New stub.
3189 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3191 * c.opt: Don't use VarExists.
3193 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3195 * c-common.c (c_cpp_error): Update names of diagnostic_context
3197 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3198 cl_optimization members.
3199 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3200 sanitize_cpp_opts, finish_options): Update names of cpp_options
3203 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3205 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3206 (objc_is_reserved_word): Removed.
3207 * c-common.c: Updated comments.
3208 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3209 objc_is_reserved_word.
3210 * stub-objc.c (objc_is_reserved_word): Removed.
3212 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3214 * c-common.h (objc_add_method_declaration): Adjust prototype to
3216 (objc_start_method_definition): Likewise.
3217 (objc_build_keyword_decl): Likewise.
3218 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3219 (objc_start_method_definition): Likewise.
3220 (objc_build_keyword_decl): Likewise.
3222 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3224 * c-common.h (objc_start_class_interface): Adjust prototype.
3225 (objc_start_category_interface): Likewise.
3226 (objc_start_protocol): Likewise.
3227 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3228 (objc_start_class_interface): Likewise.
3229 (objc_start_category_interface): Likewise.
3231 2010-09-27 Ian Lance Taylor <iant@google.com>
3233 * c-common.c (c_common_attribute_table): Add no_split_stack.
3234 (handle_no_split_stack_attribute): New static function.
3236 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3238 Merge from 'apple/trunk' branch on FSF servers.
3240 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3243 * c-common.h (objc_have_common_type): New declaration.
3244 * stub-objc.c (objc_have_common_type): New stub.
3246 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3249 * c-common.h (objc_common_type): New prototype.
3250 * stub-objc.c (objc_common_type): New stub.
3252 2010-09-24 Jan Hubicka <jh@suse.cz>
3254 * c-common.c (handle_leaf_attribute): New function.
3255 (struct attribute_spec c_common_att): Add leaf.
3257 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3259 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3260 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3261 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3262 -include-barrier, -include-directory, -include-directory=,
3263 -include-directory-after, -include-directory-after=,
3264 -include-prefix, -include-prefix=, -include-with-prefix,
3265 -include-with-prefix=, -include-with-prefix-after,
3266 -include-with-prefix-after=, -include-with-prefix-before,
3267 -include-with-prefix-before=, -no-integrated-cpp,
3268 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3269 -output=, -pedantic, -pedantic-errors, -preprocess,
3270 -print-missing-file-dependencies, -trace-includes, -traditional,
3271 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3272 -user-dependencies, -verbose, -write-dependencies,
3273 -write-user-dependencies, no-integrated-cpp, traditional): New.
3275 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3278 * c-common.h (objc_start_method_definition): Return bool instead
3280 * stub-objc.c (objc_start_method_definition): Return bool instead
3283 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3286 * c-common.h (objc_get_interface_ivars): New declaration.
3287 * stub-objc.c (objc_get_interface_ivars): New stub.
3289 2010-09-15 Ian Lance Taylor <iant@google.com>
3291 * c-common.c (parse_optimize_options): Do not capitalize warning
3292 messages. Remove period at end of warning message.
3294 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3296 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3297 (handle_alias_attribute): ... here.
3298 (handle_ifunc_attribute): New.
3300 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3302 * c-common.h (do_warn_double_promotion): Declare.
3303 * c-common.c (do_warn_double_promotion): Define.
3305 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3307 * c.opt (Wdouble-promotion): New.
3309 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3311 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3312 fvtable-thunks, fxref): Mark no longer supported in help text.
3314 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3316 * c.opt (Wimport, fall-virtual, falt-external-templates,
3317 fdefault-inline, fenum-int-equiv, fexternal-templates,
3318 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3319 fname-mangling-version-, fnew-abi, fnonnull-objects,
3320 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3321 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3323 (fhandle-exceptions): Mark with Alias and Warn.
3324 * c-opts.c (c_common_handle_option): Don't handle options marked
3327 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3329 * c.opt (Wcomments, Werror-implicit-function-declaration,
3330 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3331 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3333 * c-common.c (option_codes): Use OPT_Wcomment instead of
3335 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3336 Don't handle options marked as aliases.
3338 2010-08-25 Richard Guenther <rguenther@suse.de>
3340 * c-common.c (c_common_get_alias_set): Remove special
3341 handling for pointers.
3343 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3345 * c-common.c: Use FOR_EACH_VEC_ELT.
3346 * c-gimplify.c: Likewise.
3347 * c-pragma.c: Likewise.
3349 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3351 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3353 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3355 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3356 instead of OPT_MDX and OPT_MMDX.
3358 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3360 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3362 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3364 * c.opt (MD, MMD): Change to MDX and MMDX.
3365 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3367 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3369 * c-opts.c (c_common_handle_option): Call handle_generated_option
3370 instead of handle_option.
3372 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3374 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3375 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3377 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3379 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3380 (pending_redefine_extname): Change type to a VEC.
3381 (add_to_renaming_pragma_list): Update for new type of
3382 pending_redefine_extname.
3383 (maybe_apply_renaming_pragma): Likewise.
3385 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3387 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3389 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3390 decide whether a type has already been declared/seen.
3391 Do not go to the original type.
3392 (dump_nested_types): New parameter forward.
3393 Generate forward declaration if needed and mark type as visited.
3394 (print_ada_declaration): Call dump_nested_types if not already done.
3395 Mark types as visited.
3397 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3399 * c.opt (-print-pch-checksum): Remove option.
3400 * c-opts.c (c_common_handle_option): Don't handle
3401 OPT_print_pch_checksum.
3403 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3405 * c-common.h (c_common_handle_option): Update prototype and return
3407 * c-opts.c (c_common_handle_option): Update prototype and return
3408 value type. Update calls to handle_option and
3409 enable_warning_as_error.
3411 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3414 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3416 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3418 * c-common.h (c_common_missing_argument): Remove.
3419 * c-opts.c (c_common_missing_argument): Remove.
3420 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3421 idirafter, imacros, include, isysroot, isystem, iquote): Add
3423 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3425 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3427 * c-common.h (c_common_option_lang_mask,
3428 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3430 (c_common_init_options): Update prototype.
3431 * c-opts.c (c_common_option_lang_mask): New.
3432 (c_common_initialize_diagnostics): Split out of
3433 c_common_init_options.
3434 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3436 (c_common_init_options): Update prototype. Use decoded options in
3437 search for -lang-asm.
3439 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3441 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3442 * c-format.c: Likewise.
3444 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3446 * c-common.h: Include diagnostic-core.h. Error if already
3448 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3450 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3452 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3453 Do not include expr.h
3454 (vector_mode_valid_p): Move here.
3456 2010-06-21 DJ Delorie <dj@redhat.com>
3458 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3459 allow these pragmas anywhere.
3461 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3464 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3465 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3466 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3467 ggc_strdup instead of xstrdup.
3469 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3471 * c-cppbuiltin.c: Include cpp-id-data.h.
3472 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3473 (lazy_hex_fp_value): New function.
3474 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3476 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3478 * c-gimplify.c: Do not include tree-flow.h
3480 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3483 * c-common.c: Rename targetm member:
3484 targetm.enum_va_list -> targetm.enum_va_list_p
3486 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3488 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3490 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3492 * c-cppbuiltin.c: Do not include except.h.
3494 2010-06-24 Andi Kleen <ak@linux.intel.com>
3496 * c-common.c (warn_for_omitted_condop): New.
3497 * c-common.h (warn_for_omitted_condop): Add prototype.
3499 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3501 * c.opt (lang-objc): Remove.
3502 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3504 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3506 * c-opts.c: Include "tm_p.h".
3508 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3510 * c-common.c (parse_optimize_options): Update call to
3513 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3515 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3516 new type of types_used_by_cur_var_decl.
3518 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3521 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3522 for C++ standard compliance.
3524 2010-06-16 Jason Merrill <jason@redhat.com>
3526 * c.opt: Add -Wnoexcept.
3528 2010-06-16 Richard Guenther <rguenther@suse.de>
3531 * c-common.c (c_common_truthvalue_conversion): Remove
3532 premature and wrong optimization concering ADDR_EXPRs.
3534 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3536 * c-ada-spec.c (dump_sloc): Remove column info.
3537 (is_simple_enum): New function.
3538 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3539 enum types when relevant.
3541 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3543 * c-common.c (conversion_warning): Warn at expression
3546 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3548 * c-opts.c (c_common_handle_option): Don't handle
3551 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3553 * c-pragma.c (push_alignment): Use typed GC allocation.
3554 (handle_pragma_push_options): Likewise.
3556 * c-common.c (parse_optimize_options): Likewise.
3558 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3561 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3563 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3564 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3565 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3566 flag_signed_bitfields, warn_strict_null_sentinel,
3567 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3568 flag_gen_declaration, flag_no_gnu_keywords,
3569 flag_implement_inlines, flag_implicit_templates,
3570 flag_implicit_inline_templates, flag_optional_diags,
3571 flag_elide_constructors, flag_default_inline, flag_rtti,
3572 flag_conserve_space, flag_access_control, flag_check_new,
3573 flag_new_for_scope, flag_weak, flag_working_directory,
3574 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3575 flag_enforce_eh_specs, flag_threadsafe_statics,
3576 flag_pretty_templates): Remove.
3577 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3578 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3579 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3580 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3581 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3582 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3583 flag_no_gnu_keywords, flag_implement_inlines,
3584 flag_implicit_templates, flag_implicit_inline_templates,
3585 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3586 flag_rtti, flag_conserve_space, flag_access_control,
3587 flag_check_new, flag_new_for_scope, flag_weak,
3588 flag_working_directory, flag_use_cxa_atexit,
3589 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3590 flag_threadsafe_statics, flag_pretty_templates,
3591 warn_strict_null_sentinel): Remove.
3592 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3593 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3594 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3595 fimplicit-inline-templates, fimplicit-templates,
3596 flax-vector-conversions, fms-extensions, fnil-receivers,
3597 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3598 frtti, fshort-double, fshort-enums, fshort-wchar,
3599 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3600 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3601 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3602 gen-decls, undef): Use Var.
3603 (fdefault-inline, foptional-diags): Document as doing nothing.
3604 * c-opts.c (c_common_handle_option): Remove cases for options now
3605 using Var. Mark ignored options as such.
3607 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3609 * c-common.c: Moved to here from parent directory.
3610 * c-common.def: Likewise.
3611 * c-common.h: Likewise.
3612 * c-cppbuiltin.c: Likewise.
3613 * c-dump.c: Likewise.
3614 * c-format.c: Likewise.
3615 * c-format.h : Likewise.
3616 * c-gimplify.c: Likewise.
3617 * c-lex.c: Likewise.
3618 * c-omp.c: Likewise.
3620 * c-opts.c: Likewise.
3621 * c-pch.c: Likewise.
3622 * c-ppoutput.c: Likewise.
3623 * c-pragma.c: Likewise.
3624 * c-pragma.h: Likewise.
3625 * c-pretty-print.c: Likewise.
3626 * c-pretty-print.h: Likewise.
3627 * c-semantics.c: Likewise.
3628 * stub-objc.c: Likewise.
3630 * c-common.c: Include gt-c-family-c-common.h.
3631 * c-pragma.c: Include gt-c-family-c-pragma.h.
3633 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3635 Copying and distribution of this file, with or without modification,
3636 are permitted in any medium without royalty provided the copyright
3637 notice and this notice are preserved.