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:
parent
b31a1e3f17
commit
caa0eccd7b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user