https://gcc.gnu.org/g:070bbc5842f64b36299c264c137e4ee414da1ddc
commit r15-8680-g070bbc5842f64b36299c264c137e4ee414da1ddc Author: Georg-Johann Lay <a...@gjlay.de> Date: Sun Mar 23 12:58:54 2025 +0100 AVR: Clarify some optimization options. gcc/ * doc/invoke.texi (AVR Optimization Options) <-maccumulate-args>: Refer to -fdefer-pop. <-muse-nonzero-bits>: Re-formulate what the option does. Diff: --- gcc/doc/invoke.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 81bfacfc35d4..36b252be387f 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -24555,6 +24555,8 @@ Accumulate outgoing function arguments and acquire/release the needed stack space for outgoing function arguments once in function prologue/epilogue. Without this option, outgoing arguments are pushed before calling a function and popped afterwards. +See also the @option{-fdefer-pop} +@ref{Optimize Options,,optimization option}. Popping the arguments after the function call can be expensive on AVR so that accumulating the stack space might lead to smaller @@ -24632,7 +24634,8 @@ This optimization is turned on per default for @option{-O2} and higher. @opindex muse-nonzero-bits @item -muse-nonzero-bits -Enable some patterns for bit optimizations that depend on specific values. +Enable optimizations that are only possible when some bits in a +register are always zero. This optimization is turned on per default for @option{-O2} and higher. @end table