toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for functions declared as inline.

* 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
This commit is contained in:
Jeff Law 1993-08-04 23:45:32 -06:00
parent b31a1e3f17
commit caa0eccd7b
1 changed files with 3 additions and 1 deletions

View 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);