aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-09-17 17:00:59 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-09-17 15:00:59 +0000
commit0494626aae628174dd5d510d25a1fabac300387a (patch)
tree04fe9640a665ee7bf86c70b57f060c685b31ee95 /gcc/objc
parent1c1b0507d40b99ad6356f8feb2b43430b30568bb (diff)
downloadgcc-0494626aae628174dd5d510d25a1fabac300387a.zip
gcc-0494626aae628174dd5d510d25a1fabac300387a.tar.gz
gcc-0494626aae628174dd5d510d25a1fabac300387a.tar.bz2
re PR middle-end/18071 (-Winline does not respect -fno-default-inline)
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. From-SVN: r140418
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog6
-rw-r--r--gcc/objc/objc-act.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index e4f952d..1457f7f 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-17 Jan Hubicka <jh@suse.cz>
+
+ PR c++/18071
+ * objc/objc-act.c (objc_finish_method_definition): Do not set
+ DECL_INLINE.
+
2008-09-01 Aldy Hernandez <aldyh@redhat.com>
* 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 8f95719..1fd52f0 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