diff --git a/gcc/toplev.c b/gcc/toplev.c index 339f0edb845..1df2cff12b5 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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);