aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-06-20 19:55:29 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-06-20 19:55:29 +0000
commitae4a71552f798cb0ea8112de417ade58cb50e168 (patch)
tree3fc7d3314decabfa9b7720c4f3e147202aa0e6c7 /gcc/doc
parent4739b00e528da80052c920997ad8addaa392e545 (diff)
downloadgcc-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/doc')
-rw-r--r--gcc/doc/invoke.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 5256e66..33b16e8 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