Commit caa0eccd by Jeff Law

toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for…

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
parent b31a1e3f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment