From: Jason Merrill Date: Mon, 8 May 1995 00:51:46 +0000 (+0000) Subject: (expand_call): Improve -Winline warnings. X-Git-Tag: misc/cutover-egcs-0~4369 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1907795ecd90e87e56e57c73c293ee8d86cbdc6f;p=thirdparty%2Fgcc.git (expand_call): Improve -Winline warnings. From-SVN: r9589 --- diff --git a/gcc/calls.c b/gcc/calls.c index 63125a3e1fc5..24721f0f6964 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -617,7 +617,10 @@ expand_call (exp, target, ignore) Use abstraction instead of setting TREE_ADDRESSABLE directly. */ if (DECL_INLINE (fndecl) && warn_inline && !flag_no_inline) - warning_with_decl (fndecl, "can't inline call to `%s'"); + { + warning_with_decl (fndecl, "can't inline call to `%s'"); + warning ("called from here"); + } mark_addressable (fndecl); } @@ -794,7 +797,10 @@ expand_call (exp, target, ignore) give a warning. */ if (DECL_INLINE (fndecl) && warn_inline && !flag_no_inline && ! TREE_ADDRESSABLE (fndecl)) - warning_with_decl (fndecl, "can't inline call to `%s'"); + { + warning_with_decl (fndecl, "inlining failed in call to `%s'"); + warning ("called from here"); + } mark_addressable (fndecl); }