(rest_of_compilation): Defer output of static inlines
authorDoug Evans <dje@gnu.org>
Tue, 28 Feb 1995 19:46:31 +0000 (19:46 +0000)
committerDoug Evans <dje@gnu.org>
Tue, 28 Feb 1995 19:46:31 +0000 (19:46 +0000)
even if not optimizing, they may never be referenced.

From-SVN: r9092

gcc/toplev.c

index 16b351cdb326a86c20898e60c7f3c9d57a5e2698..532ac4ef5236bfd80d5f1c1016db67d0ee3abe82 100644 (file)
@@ -2854,7 +2854,7 @@ rest_of_compilation (decl)
         functions that we are supposed to defer.  */
 
       if (DECL_DEFER_OUTPUT (decl)
-         || (DECL_INLINE (decl)
+         || ((specd || DECL_INLINE (decl))
              && ((! TREE_PUBLIC (decl) && ! TREE_ADDRESSABLE (decl)
                   && ! flag_keep_inline_functions)
                  || DECL_EXTERNAL (decl))))