aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1995-05-08 00:51:46 +0000
committerJason Merrill <merrill@gnu.org>1995-05-08 00:51:46 +0000
commit1907795ecd90e87e56e57c73c293ee8d86cbdc6f (patch)
treeb078946cf26d9412507d8b6535093dc64df457a4 /gcc/calls.c
parentb377f1cdae22f549852fcdd2cde23143b5fcfce7 (diff)
downloadgcc-1907795ecd90e87e56e57c73c293ee8d86cbdc6f.zip
gcc-1907795ecd90e87e56e57c73c293ee8d86cbdc6f.tar.gz
gcc-1907795ecd90e87e56e57c73c293ee8d86cbdc6f.tar.bz2
(expand_call): Improve -Winline warnings.
From-SVN: r9589
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 63125a3..24721f0 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);
}