This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add explicit description for -finline
- From: Xiong Hu Luo <luoxhu at linux dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: segher at kernel dot crashing dot org, wschmidt at linux dot ibm dot com, luoxhu at linux dot ibm dot com, rguenther at suse dot de
- Date: Thu, 31 Oct 2019 22:22:00 -0500
- Subject: [PATCH] Add explicit description for -finline
-finline is not a explicit option, search word "-finline" in page
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
will miss the explicit option "-fno-inline".
gcc/ChangeLog:
2019-11-01 Xiong Hu Luo <luoxhu@linux.ibm.com>
doc/invoke.texi (inline): Add description for -finline.
---
gcc/doc/invoke.texi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 1407d019d14..08fc02e1cd3 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -8576,6 +8576,9 @@ optimizing.
Single functions can be exempted from inlining by marking them
with the @code{noinline} attribute.
+@code{-finline} enables inlining of function declared \"inline\".
+@code{-finline} is enabled at levels -O1, -O2, -O3 and -Os, but not -Og.
+
@item -finline-small-functions
@opindex finline-small-functions
Integrate functions into their callers when their body is smaller than expected
--
2.21.0.777.g83232e3864