From 73b5e7223d01874c89858452ad7a0edf6ee20ee2 Mon Sep 17 00:00:00 2001 From: hubicka Date: Wed, 17 Sep 2008 15:00:59 +0000 Subject: PR c++/18071 * tree.h (DECL_INLINE): remove. (DECL_DECLARED_INLINE_P): Update docs. (DECL_NO_INLINE_WARNING_P): new. (tree_function_decl): Replace inline_flag by no_inline_warning_flag. * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P. Java: * class.c (add_method_1): Do not initialize DECL_INLINE. (make_local_function_alias): Likewise. * expr.c (rewrite_arglist_getcaller): Set DECL_UNINLINABLE. * lang.c (java_decl_ok_for_sibcall): Use DECL_UNINLINABLE. Objc: * objc/objc-act.c (objc_finish_method_definition): Do not set DECL_INLINE. C++: * cp/decl.c (start_method): Set DECL_NO_INLINE_WARNING_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140418 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/objc/ChangeLog | 6 ++++++ gcc/objc/objc-act.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/objc') diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index e4f952d8475..1457f7f49ab 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2008-09-17 Jan Hubicka + + PR c++/18071 + * objc/objc-act.c (objc_finish_method_definition): Do not set + DECL_INLINE. + 2008-09-01 Aldy Hernandez * objc-act.c (build_typed_selector_reference): Pass input_location to diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 8f9571942c2..1fd52f06435 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -8800,7 +8800,6 @@ objc_finish_method_definition (tree fndecl) /* We cannot validly inline ObjC methods, at least not without a language extension to declare that a method need not be dynamically dispatched, so suppress all thoughts of doing so. */ - DECL_INLINE (fndecl) = 0; DECL_UNINLINABLE (fndecl) = 1; #ifndef OBJCPLUS -- cgit v1.2.1