]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/11131 (Unrelated declaration removes inline flag from function)
authorJan Hubicka <jh@suse.cz>
Tue, 29 Jul 2003 17:42:34 +0000 (19:42 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 29 Jul 2003 17:42:34 +0000 (17:42 +0000)
PR C++/11131
* tree-inline.c (expand_call_inline): Always call inlinable_function_p
in !unit-at-a-time mode.

From-SVN: r69929

gcc/ChangeLog
gcc/tree-inline.c

index dc9725702e4a8524f9c32df617eebe9d31769bc1..0e339ddffd48b8468cac2f8f74b64f1a6b675591 100644 (file)
@@ -1,3 +1,9 @@
+Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       PR C++/11131
+       * tree-inline.c (expand_call_inline): Always call inlinable_function_p
+       in !unit-at-a-time mode.
+
 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
 
        * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
index 759dc07473149cb8ae575bb01cce7b287d1cab00..bd45b15fe2bcaf6952308ac9da9d4a88546d2f05 100644 (file)
@@ -1164,8 +1164,8 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data)
 
   /* Don't try to inline functions that are not well-suited to
      inlining.  */
-  if (!DECL_SAVED_TREE (fn)
-      || (flag_unit_at_a_time && !cgraph_inline_p (id->current_decl, fn))
+  if ((flag_unit_at_a_time
+       && (!DECL_SAVED_TREE (fn) || !cgraph_inline_p (id->current_decl, fn)))
       || (!flag_unit_at_a_time && !inlinable_function_p (fn, id, 0)))
     {
       if (warn_inline && DECL_INLINE (fn) && !DID_INLINE_FUNC (fn)
This page took 0.080892 seconds and 5 git commands to generate.