From 070bbc5842f64b36299c264c137e4ee414da1ddc Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Sun, 23 Mar 2025 12:58:54 +0100 Subject: [PATCH] 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. --- 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 81bfacfc35d..36b252be387 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 -- 2.47.2