OSDN Git Service

Fixed my email address in a ChangeLog entry of a few months ago
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
index d742912..6c50ab5 100644 (file)
@@ -1,3 +1,444 @@
+2011-04-12  Martin Jambor  <mjambor@suse.cz>
+
+       * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
+       of cgraph_node.
+
+2011-04-11  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (complete_array_type): Build a range type of
+       proper type.
+
+2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
+       (handle_type_generic_attribute): Likewise.
+
+2011-04-07  Jason Merrill  <jason@redhat.com>
+
+       PR c++/48450
+       * c-common.c (c_common_truthvalue_conversion): Don't ignore
+       conversion from C++0x scoped enum.
+
+2011-04-06  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-target-def.h: New file.
+       * c-target.def: New file.
+       * c-target.h: New file.
+       * c-common.c (targetcm): Don't define here.
+       * c-common.h (default_handle_c_option): Declare.
+       * c-format.c: Include c-target.h instead of target.h.
+       * c-opts.c: Include c-target.h instead of target.h.  Explicitly
+       include tm.h.
+       (default_handle_c_option): Move from targhooks.c.
+
+2011-03-29  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/48248
+       * c-ppoutput.c (print): Add src_file field.
+       (init_pp_output): Initialize it.
+       (maybe_print_line): Don't optimize by adding up to 8 newlines
+       if map->to_file and print.src_file are different file.
+       (print_line): Update print.src_file.
+
+2011-03-25  Kai Tietz  <ktietz@redhat.com>
+
+       * c-ada-spec.c (compare_comment): Use filename_cmp
+       instead of strcmp for filename.
+
+2011-03-25  Jeff Law  <law@redhat.com>
+
+       * c-family/c-common.c (def_fn_type): Add missing va_end.
+
+2011-03-25  Jason Merrill  <jason@redhat.com>
+
+       * c.opt: Add -std=c++03.
+
+2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * c-ada-spec.c (dump_ada_template): Skip non-class instances.
+
+2011-03-17  Kai Tietz
+
+       PR target/12171
+       * c-pretty-print.c (pp_c_specifier_qualifier_list):
+       Display allowed attributes for function pointer types.
+       (pp_c_attributes_display): New function to display
+       attributes having affects_type_identity flag set to true.
+       * c-pretty-print.h (pp_c_attributes_display): New prototype.
+
+       * c-common.c (c_common_attribute_table):
+       Add new element.
+       (c_common_format_attribute_table): Likewise.
+
+2011-03-18  Jason Merrill  <jason@redhat.com>
+
+       * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
+       * c-common.h: Don't declare it here.
+       * c-common.c: Or define it here.
+       * c-opts.c (c_common_handle_option): Or set it here.
+
+       PR c++/35315
+       * c-common.c (handle_transparent_union_attribute): Don't
+       make a duplicate type in C++.
+
+2011-03-15  Jason Merrill  <jason@redhat.com>
+
+       * c-common.c (max_constexpr_depth): New.
+       * c-common.h: Declare it.
+       * c-opts.c (c_common_handle_option): Set it.
+       * c.opt (fconstexpr-depth): New option.
+
+2011-03-11  Jason Merrill  <jason@redhat.com>
+
+       * c-common.c (attribute_takes_identifier_p): Add missing const.
+
+       PR c++/46803
+       * c-common.c (attribute_takes_identifier_p): Assume that an
+       unknown attribute takes an identifier.
+
+2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR c/47786
+       * c-common.c (c_type_hash): Call list_length instead of iterating
+       through DECL_CHAIN.  Rename 'i' to 'n_elements'.
+
+2011-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/47809
+       * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
+
+2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * c.opt (fobjc-abi-version=) New.
+       (fobjc-nilcheck): New.
+
+2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR c++/46890
+       * c-common.h (keyword_is_decl_specifier): Declare.
+       * c-common.c (keyword_is_decl_specifier): Define.
+       (keyword_is_function_specifier): New function.
+
+2011-01-26  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/47473
+       * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
+       EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
+       REAL_TYPE.
+
+2011-01-26  Arnaud Charlet  <charlet@adacore.com>
+
+       * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
+
+2011-01-26  Jakub Jelinek  <jakub@redhat.com>
+
+       PR pch/47430
+       * c-opts.c (c_common_post_options): Call c_common_no_more_pch
+       after init_c_lex if pch_file is set.
+
+2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       PR c++/43601
+       * c.opt (-fkeep-inline-dllexport): New switch.
+
+2011-01-12  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/32511
+       * c-common.c (handle_weak_attribute): Warn instead of error
+       on declaring an inline function weak.
+
+2011-01-05  Tom Tromey  <tromey@redhat.com>
+
+       * c-common.h (lvalue_error): Update.
+       * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
+       not error.
+
+2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
+       
+       PR objc/47075
+       * c-objc.h (objc_finish_message_expr): Added argument to
+       prototype.
+
+2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
+       Use prototype_p.
+
+2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-objc.h (objc_maybe_warn_exceptions): New.
+       * stub-objc.c (objc_maybe_warn_exceptions): New.        
+
+2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.h (readonly_error): Declare.
+       * c-common.c (readonly_error): Define.
+
+2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-common.h (invalid_indirection_error): Declare.
+       * c-common.c (invalid_indirection_error): Define.
+
+2010-12-03  Richard Guenther  <rguenther@suse.de>
+
+       PR c/46745
+       * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
+       (pp_c_unary_expression): Likewise.
+       (pp_c_expression): Likewise.
+
+2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-common.h (objc_finish_function): New.
+       (objc_non_volatilized_type): Removed.
+       (objc_type_quals_match): Removed.
+       * stub-objc.c (objc_finish_function): New.
+       (objc_non_volatilized_type): Removed.
+       (objc_type_quals_match): Removed.
+       
+2010-11-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (parse_optimize_options): Declare.
+       * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
+       c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
+
+2010-11-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (check_deps_environment_vars): Use getenv instead of
+       GET_ENVIRONMENT.
+       * c-pch.c (O_BINARY): Don't define here.
+       * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
+
+2010-11-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
+       targetm.except_unwind_info.
+
+2010-11-23  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (c_common_handle_option): Pass location to
+       set_struct_debug_option.
+
+2010-11-23  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (visibility_options): Move from ../opts.c.
+       * c-common.h (struct visibility_flags, visibility_options):
+       Declare here.
+       * c-opts.c (finish_options): Rename to c_finish_options.
+       (c_common_init): Update call to finish_options.
+
+2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/34033
+       * c-lex.c (lex_string): Check that each string in an Objective-C
+       string concat sequence starts with either one or zero '@', and
+       that there are no spurious '@' signs at the end.
+
+2010-11-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
+       HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
+       HANDLE_PRAGMA_VISIBILITY.
+       * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
+       HANDLE_PRAGMA_VISIBILITY): Don't define.
+       (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
+
+2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR c++/16189
+       PR c++/36888
+       PR c++/45331
+       * c-common.h (keyword_begins_type_specifier): Declare.
+       (keyword_is_storage_class_specifier): Declare.
+       (keyword_is_type_qualifier): Declare.
+       * c-common.c (keyword_begins_type_specifier): New function.
+       (keyword_is_storage_class_specifier): New function.
+       (keyword_is_type_qualifier): Declare.
+
+2010-11-19  Joseph Myers  <joseph@codesourcery.com>
+
+       PR c/46547
+       * c-common.c (in_late_binary_op): Define.
+       (c_common_truthvalue_conversion): Check in_late_binary_op before
+       calling c_save_expr.
+       * c-common.h (in_late_binary_op): Declare.
+
+2010-11-19  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (c_common_handle_option): Update calls to
+       set_struct_debug_option.
+
+2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-common.h (objc_declare_protocols): Added additional argument.
+       * stub-objc.c (objc_declare_protocol): Same change.
+       
+2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR c/33193
+       * c-common.h (build_real_imag_expr): Declare.
+       * c-semantics.c (build_real_imag_expr): Define.
+
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (c_common_parse_file): Take no arguments.
+       * c-common.h (c_common_parse_file): Update prototype.
+
+2010-11-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/46401
+       * c-common.c (warning_candidate_p): Don't track non-const calls
+       or STRING_CSTs.
+
+2010-11-15  Ian Lance Taylor  <iant@google.com>
+
+       * c-lex.c (init_c_lex): Set macro debug callbacks if
+       flag_dump_go_spec is set.
+
+2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-common.h (objc_build_incr_expr_for_property_ref): New.
+       * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
+
+2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR preprocessor/45038
+       * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
+       dialects.
+
+2010-11-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.h (c_family_lang_mask): Declare.
+       * c-opts.c (c_family_lang_mask): Make extern.
+       * c-pragma.c (handle_pragma_diagnostic): Use
+       control_warning_option.
+
+2010-11-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (parse_optimize_options): Update call to
+       decode_options.
+       * c-common.h (c_common_handle_option): Update prototype.
+       * c-opts.c (c_common_handle_option): Take location_t parameter and
+       pass it to other functions.
+
+2010-11-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-opts.c (warning_as_error_callback): Remove.
+       (c_common_initialize_diagnostics): Don't call
+       register_warning_as_error_callback.
+       (c_common_handle_option): Handle -Werror=normalized= here.
+
+2010-11-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (handle_mode_attribute): Use %' and word "signedness"
+       in diagnostic.
+       * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
+       letter.
+       * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
+       Remove trailing '.' from diagnostics.
+       * c.opt (Wwrite-strings_: Avoid '`' in help text.
+
+2010-11-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (parse_optimize_options): Pass global_dc to
+       decode_options.
+       * c-opts.c (c_common_handle_option): Pass &global_options to
+       set_Wstrict_aliasing.
+       * c.opt (v): Don't mark Common or document here.
+
+2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR target/44981
+       * c-format.c (format_type): New type gcc_objc_string_format_type.
+       (valid_stringptr_type_p): New.
+       (handle_format_arg_attribute): Use valid_stringptr_type_p ().
+       (check_format_string): Pass expected type, use 
+       valid_stringptr_type_p (), check that the format string types are
+       consistent with the format specification.
+       (decode_format_attr): Warn if NSString is used outside objective-c.
+       (format_types_orig): Add NSString.
+       (format_name): New.
+       (format_flags): New.
+       (check_format_arg): Handle format strings requiring an external parser.
+       first_target_format_type: New variable.
+       (handle_format_attribute): Set up first_target_format_type, pass the
+       expected format arg string type to check_format_string().
+       * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
+       * stub-objc.c (objc_string_ref_type_p): New.
+       (objc_check_format_arg): New.
+
+2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Fixed using the Objective-C 2.0 dot-syntax with class names.    
+       * c-common.h (objc_build_class_component_ref): New.
+       * stub-objc.c (objc_build_class_component_ref): New.
+
+2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c.opt (Wproperty-assign-default): New option.
+
+2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Implemented -fobjc-std=objc1 flag.
+       * c.opt (fobjc-std=objc1): New option.
+
+2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Implemented format and noreturn attributes for Objective-C methods.
+       * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
+       attribute for Objective-C methods.
+
+2010-10-31  Jason Merrill  <jason@redhat.com>
+
+       * c-common.c (conversion_warning, warn_for_collisions_1): Use
+       EXPR_LOC_OR_HERE.
+
+2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
+       * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
+       (objc_add_property_declaration): Removed arguments for copies and
+       ivar.
+       (objc_build_getter_call): Renamed to
+       objc_maybe_build_component_ref.
+       (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
+       (objc_is_property_ref): New.
+       * c-common.c (c_common_reswords): Removed copies and ivar.
+       * stub-objc.c (objc_add_property_declaration): Removed arguments
+       for copies and ivar.
+       (objc_build_getter_call): Renamed to
+       objc_maybe_build_component_ref.
+       (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
+       (objc_is_property_ref): New.
+       
+2010-10-29  Arnaud Charlet  <charlet@adacore.com>
+           Matthew Gingell  <gingell@adacore.com>
+
+       * c-ada-spec.c (separate_class_package): New function.
+       (pp_ada_tree_identifier): Prefix references to C++ classes with the
+       name of their enclosing package.
+       (print_ada_declaration): Use separate_class_package.
+
+2010-10-27  Jason Merrill  <jason@redhat.com>
+
+       * c-common.c (c_common_reswords): Add __is_literal_type.
+       * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
+
+       * c-common.c (check_case_value): Remove special C++ code.
+
+2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
+       RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
+       and RID_LAST_PATTR.
+       (objc_add_property_declaration): Added additional arguments.
+       (objc_property_attribute_kind): Removed.
+       (objc_set_property_attr): Removed.
+       * c-common.c (c_common_reswords): Added readwrite, assign, retain,
+       copy and nonatomic.
+       * stub-objc.c (objc_add_property_declaration): Added additional
+       arguments.
+       (objc_set_property_attr): Removed.
+       
 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        * c-common.h (objc_add_property_variable): Renamed to