diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-20 19:55:29 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-20 19:55:29 +0000 |
commit | 5b90de76509696c04edd0e0e2a5f6e7bbdbe2b4b (patch) | |
tree | 3fc7d3314decabfa9b7720c4f3e147202aa0e6c7 /gcc/doc | |
parent | 0fdc84d765d4b0acd7756f5e75dd8efedb9a3c13 (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5256e66d8ff..33b16e86627 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2811,6 +2811,15 @@ code is to provide behavior which is selectable at compile-time. @item -Winline @opindex Winline Warn if a function can not be inlined and it was declared as inline. +Even with this option, the compiler will not warn about failures to +inline functions declared in system headers. + +The compiler uses a variety of heuristics to determine whether or not +to inline a function. For example, the compiler takes into account +the size of the function being inlined and the the amount of inlining +that has already been done in the current function. Therefore, +seemingly insignificant changes in the source program can cause the +warnings produced by @option{-Winline} to appear or disappear. @item -Wno-invalid-offsetof @r{(C++ only)} @opindex Wno-invalid-offsetof |