Hi Sandra!

Thanks for the detailed reply and the nice suggestions.
The patch below applies them.

I also can confirm that the tm.texi file was (and had been)
properly generated instead of edited.

It also seem that when answering e-mails, my mail client
changes tabs to spaces. Thanks for pointing it out.

Tested with 'make pdf'.


See the patch wherein these variables were removed here:
https://gcc.gnu.org/pipermail/gcc-patches/2012-June/342562.html
And the direct link to the commit mentioned below is here:
https://gcc.gnu.org/cgit/gcc/commit/?id=416ff32ef8f4f2f1b1615c25aa884da9aadd8b4d

Let me also take this opportunity to ping this prevous patch as well:
https://gcc.gnu.org/pipermail/gcc-patches/2026-May/717179.html


Thanks again for your time,
Léo

---
doc: Replace deleted variable names in tm.texi

The variables 'current_function_is_leaf' and
'current_function_uses_only_leaf_args' were removed
on commit 416ff32e, and now are part of the rtl_data struct.

This commit is to clean up the documentation that
mentions these variables.

gcc/ChangeLog:

        * doc/tm.texi.in: (Stack Registers) update references
        to current_function_is_leaf and
        current_function_uses_only_leaf_args, which were
        refactored into crtl.
        * doc/tm.texi: Regenerated.

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

diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 6178db74d2f..2d4a9782162 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -2387,18 +2387,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 uses_only_leaf_regs
+@findex crtl->is_leaf
+@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
-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
-functions which only use leaf registers.
-@code{current_function_uses_only_leaf_regs} is valid after all passes
-that modify the instructions have been run and is only useful if
+specially.  They can test the @code{crtl->is_leaf} flag, 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 @code{crtl->uses_only_leaf_regs}
+flag, which is nonzero for leaf functions that only use leaf registers.
+@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
 @c of the next paragraph?!  --mew 2feb93
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 0a97b0fa2e4..36df09fe9dc 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -1972,18 +1972,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 uses_only_leaf_regs
+@findex crtl->is_leaf
+@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
-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
-functions which only use leaf registers.
-@code{current_function_uses_only_leaf_regs} is valid after all passes
-that modify the instructions have been run and is only useful if
+specially.  They can test the @code{crtl->is_leaf} flag, 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 @code{crtl->uses_only_leaf_regs}
+flag, which is nonzero for leaf functions that only use leaf registers.
+@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
 @c of the next paragraph?!  --mew 2feb93
--
2.39.5




Reply via email to