OSDN Git Service

(expand_call): Improve -Winline warnings.
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 May 1995 00:51:46 +0000 (00:51 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 May 1995 00:51:46 +0000 (00:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9589 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/calls.c

index 63125a3..24721f0 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);
     }