toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for functions...
authorJeff Law <law@gcc.gnu.org>
Thu, 5 Aug 1993 05:45:32 +0000 (23:45 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 5 Aug 1993 05:45:32 +0000 (23:45 -0600)
* toplev.c (rest_of_compilation): If not optimizing, turn off
DECL_INLINE for functions declared as inline.  Avoid turning on
DECL_INLINE when -finline-functions is used without -O.

From-SVN: r5074

gcc/toplev.c

index 339f0ed..1df2cff 100644 (file)
@@ -2250,7 +2250,9 @@ rest_of_compilation (decl)
        TIMEVAR (integration_time,
                 {
                   lose = function_cannot_inline_p (decl);
-                  if (lose)
+                  /* If not optimzing, then make sure the DECL_INLINE
+                     bit is off.  */
+                  if (lose || ! optimize)
                     {
                       if (warn_inline && specd)
                         warning_with_decl (decl, lose);