Hello There's a typo in the common function attribute docs, "nonnul" which this patch corrects.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes gcc/ChangeLog 2023-03-16 Jonny Grant <j...@jguk.org> * doc/extend.texi: correct function attribute typo --- gcc/doc/extend.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index e0c5357291b..91dfdef4461 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3657,7 +3657,7 @@ marked with nonnull is compared with null, and @option{-Wnonnull-compare} option is enabled, a warning is issued. @xref{Warning Options}. @item The compiler may also perform optimizations based on the -knowledge that @code{nonnul} parameters cannot be null. This can +knowledge that @code{nonnull} parameters cannot be null. This can currently not be disabled other than by removing the nonnull attribute. @end itemize