Good evening,
This is one of my first patches.
It only concerns minor doc updates.
My intent here is to push fixes for small inaccuracies while
I'm still learning about the code base as a whole.
If this is of interest to the GCC community, I also would like to
'ping' for two patches of similar nature and scope:
- https://gcc.gnu.org/pipermail/gcc-patches/2026-May/717821.html
- https://gcc.gnu.org/pipermail/gcc-patches/2026-June/719769.html
Let me know if that's not the case.
Best regards,
Léo
----
docs: Update function predicates documentation.
- DECL_LOCAL_FUNCTION_P was renamed to DECL_LOCAL_DECL_P in
f40866967. The new predicate also encompasses variables,
but since this list was citing function predicates, I made
no note of that.
See more at:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=f40866967d69079fdde293feb32d2eb52cb93cc8
https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553591.html
- DECL_ANTICIPATED was removed in 679dbc9d.
See more at:
https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555405.html
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=679dbc9dcec0d1240951442947199ba155f494b6
gcc/ChangeLog:
* doc/generic.texi: Updated function predicates list.
Signed-off-by: Léo Hardt <[email protected]>
---
gcc/doc/generic.texi | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/gcc/doc/generic.texi b/gcc/doc/generic.texi
index 42a04e34e..928e605fa 100644
--- a/gcc/doc/generic.texi
+++ b/gcc/doc/generic.texi
@@ -3389,14 +3389,10 @@ The following macros and functions can be used on a
@code{FUNCTION_DECL}:
This predicate holds for a function that is the program entry point
@code{::code}.
-@item DECL_LOCAL_FUNCTION_P
+@item DECL_LOCAL_DECL_P
This predicate holds if the function was declared at block scope, even
though it has a global scope.
-@item DECL_ANTICIPATED
-This predicate holds if the function is a built-in function but its
-prototype is not yet explicitly declared.
-
@item DECL_EXTERN_C_FUNCTION_P
This predicate holds if the function is declared as an
`@code{extern "C"}' function.
--
2.39.5