Hi,

Just a ping on this small patch re-review.
Perhaps also good to mention I don't have write access.

As a recap, I added two @findex entries for each variable
(one with the `crtl->` and the other without it), just as
it's done for other `crtl->` member variables.

Thanks for your time,
Léo

On 2026-06-08 22:07, Léo Hardt wrote:
Hi Richard,

For the sake of time, I will already leave here the patch
with two 'findex' entries for each mentioned variable ready
for review.

As for testing, I checked with both do-html and do-pdf.
The formatting is identical to the one used for the other
"crtl->*" variables.

Thanks for your time,
Léo

---
[PATCH] doc: Update references to deleted global variables.

The variables 'current_function_is_leaf' and
'current_function_uses_only_leaf_regs' were removed
on commit 416ff32ef8, and now are inside of rtl_data.

This commit updates their mentions in the internals
documentation.

gcc/ChangeLog:

* doc/tm.texi: Update refs to previous global vars that no longer exist.
* doc/tm.texi.in: Likewise.

Signed-off-by: Léo Hardt <[email protected]>
---
 gcc/doc/tm.texi    | 14 ++++++++------
 gcc/doc/tm.texi.in | 14 ++++++++------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index ba037b880..77946c524 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -2378,17 +2378,19 @@ treatment of leaf functions, and registers need to be
renumbered to do
 this.
 @end defmac

-@findex current_function_is_leaf
-@findex current_function_uses_only_leaf_regs
+@findex is_leaf
+@findex crtl->is_leaf
+@findex uses_only_leaf_regs
+@findex crtl->uses_only_leaf_regs
 @code{TARGET_ASM_FUNCTION_PROLOGUE} and
 @code{TARGET_ASM_FUNCTION_EPILOGUE} must usually treat leaf functions
-specially.  They can test the C variable @code{current_function_is_leaf}
-which is nonzero for leaf functions.  @code{current_function_is_leaf} is
+specially.  They can test the C variable @code{crtl->is_leaf}
+which is nonzero for leaf functions.  @code{crtl->is_leaf} is
 set prior to local register allocation and is valid for the remaining
 compiler passes.  They can also test the C variable
-@code{current_function_uses_only_leaf_regs} which is nonzero for leaf
+@code{crtl->uses_only_leaf_regs} which is nonzero for leaf
 functions which only use leaf registers.
-@code{current_function_uses_only_leaf_regs} is valid after all passes
+@code{crtl->uses_only_leaf_regs} is valid after all passes
 that modify the instructions have been run and is only useful if
 @code{LEAF_REGISTERS} is defined.
 @c changed this to fix overfull.  ALSO:  why the "it" at the beginning
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 0944563c9..621d3f11d 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -1963,17 +1963,19 @@ treatment of leaf functions, and registers need to be
renumbered to do
 this.
 @end defmac

-@findex current_function_is_leaf
-@findex current_function_uses_only_leaf_regs
+@findex is_leaf
+@findex crtl->is_leaf
+@findex uses_only_leaf_regs
+@findex crtl->uses_only_leaf_regs
 @code{TARGET_ASM_FUNCTION_PROLOGUE} and
 @code{TARGET_ASM_FUNCTION_EPILOGUE} must usually treat leaf functions
-specially.  They can test the C variable @code{current_function_is_leaf}
-which is nonzero for leaf functions.  @code{current_function_is_leaf} is
+specially.  They can test the C variable @code{crtl->is_leaf}
+which is nonzero for leaf functions.  @code{crtl->is_leaf} is
 set prior to local register allocation and is valid for the remaining
 compiler passes.  They can also test the C variable
-@code{current_function_uses_only_leaf_regs} which is nonzero for leaf
+@code{crtl->uses_only_leaf_regs} which is nonzero for leaf
 functions which only use leaf registers.
-@code{current_function_uses_only_leaf_regs} is valid after all passes
+@code{crtl->uses_only_leaf_regs} is valid after all passes
 that modify the instructions have been run and is only useful if
 @code{LEAF_REGISTERS} is defined.
 @c changed this to fix overfull.  ALSO:  why the "it" at the beginning
--
2.39.5

Reply via email to