summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 19:55:29 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 19:55:29 +0000
commit5b90de76509696c04edd0e0e2a5f6e7bbdbe2b4b (patch)
tree3fc7d3314decabfa9b7720c4f3e147202aa0e6c7 /gcc/tree-inline.c
parent0fdc84d765d4b0acd7756f5e75dd8efedb9a3c13 (diff)
downloadgcc-5b90de76509696c04edd0e0e2a5f6e7bbdbe2b4b.tar.gz
PR c++/10888
* tree-inline.c (expand_call_inline): Do not warn about failing to inline functions declared in system headers. * doc/invoke.texi (-Winline): Expand on documentation. PR c++/10888 * g++.dg/warn/Winline-3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68281 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index c0d36106cf1..88bf4d9bc02 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1201,7 +1201,8 @@ expand_call_inline (tp, walk_subtrees, data)
|| !cgraph_global_info (fn)->inline_once)
&& !inlinable_function_p (fn, id, 0))
{
- if (warn_inline && DECL_INLINE (fn) && !DID_INLINE_FUNC (fn))
+ if (warn_inline && DECL_INLINE (fn) && !DID_INLINE_FUNC (fn)
+ && !DECL_IN_SYSTEM_HEADER (fn))
{
warning_with_decl (fn, "inlining failed in call to `%s'");
warning ("called from here");