diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-06-20 19:55:29 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-06-20 19:55:29 +0000 |
commit | ae4a71552f798cb0ea8112de417ade58cb50e168 (patch) | |
tree | 3fc7d3314decabfa9b7720c4f3e147202aa0e6c7 /gcc/tree-inline.c | |
parent | 4739b00e528da80052c920997ad8addaa392e545 (diff) | |
download | gcc-ae4a71552f798cb0ea8112de417ade58cb50e168.zip gcc-ae4a71552f798cb0ea8112de417ade58cb50e168.tar.gz gcc-ae4a71552f798cb0ea8112de417ade58cb50e168.tar.bz2 |
re PR c++/10888 (inlining failure for allocate in ~vector())
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.
From-SVN: r68281
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index c0d3610..88bf4d9 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"); |