From 096f22f42494fad3990d6a2d74a9844dd6af977b Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 15 Jun 2004 12:46:07 +0000 Subject: function.h (struct function): Remove cannot_inline field. gcc/ChangeLog: 2004-06-15 Paolo Bonzini * function.h (struct function): Remove cannot_inline field. (current_function_cannot_inline): Remove. * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT. Simplify conditionals to ignore warn_return_type. * tree-optimize.c (tree_rest_of_compilation): Do not reset DECL_DEFER_OUTPUT. * objc/objc-act.c (build_module_descriptor, finish_method_def): Do not set current_function_cannot_inline. gcc/java/ChangeLog: 2004-06-15 Paolo Bonzini * class.c (emit_register_classes): Make the function uninlinable, do not set current_function_cannot_inline. * resource.c (write_resource_constructor): Do not reset flag_inline_functions around rest_of_compilation. gcc/cp/ChangeLog: 2004-06-15 Paolo Bonzini * cp-tree.h (struct language_function): Remove cannot_inline. * decl.c (save_function_data): cannot_inline is no more. (cxx_push_function_context): Likewise. * decl2.c (start_objects, start_static_storage_duration_function): Reset DECL_INLINE, set DECL_UNINLINABLE. From-SVN: r83181 --- gcc/objc/objc-act.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/objc') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 96e29b1..97a36a0 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1910,8 +1910,6 @@ build_module_descriptor (void) /* Don't let this one be deferred. */ DECL_INLINE (init_function_decl) = 0; DECL_UNINLINABLE (init_function_decl) = 1; - current_function_cannot_inline - = "static constructors and destructors cannot be inlined"; parms = build_tree_list (NULL_TREE, @@ -7981,7 +7979,6 @@ finish_method_def (void) dispatched, so suppress all thoughts of doing so. */ DECL_INLINE (current_function_decl) = 0; DECL_UNINLINABLE (current_function_decl) = 1; - current_function_cannot_inline = "methods cannot be inlined"; finish_function (); lang_expand_function_end = NULL; -- cgit v1.1