]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(expand_call): Improve -Winline warnings.
authorJason Merrill <merrill@gnu.org>
Mon, 8 May 1995 00:51:46 +0000 (00:51 +0000)
committerJason Merrill <merrill@gnu.org>
Mon, 8 May 1995 00:51:46 +0000 (00:51 +0000)
From-SVN: r9589

gcc/calls.c

index 63125a3e1fc5f64ddd901b3d20d7b059b91b0b6c..24721f0f69641d374c0033390a1d35ad2b745dd9 100644 (file)
@@ -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);
     }