https://gcc.gnu.org/g:f25035d6a0b942c0ae6f8e3ccf56bd948ce4469c

commit r17-5266-gf25035d6a0b942c0ae6f8e3ccf56bd948ce4469c
Author: Rasmus Villemoes <[email protected]>
Date:   Fri Oct 16 13:23:04 2026 +0200

    doc/extend.texi: fix fclose -> pclose typo in malloc attribute example
    
    This was correct initially, but got accidentally changed to fclose by
    commit cf6a4fbbaf9 ("doc: Switch some attribute examples to using
    standard syntax [PR102397]").
    
    gcc/ChangeLog:
    
            * doc/extend.texi (Common Attributes): Fix typo in example.

Diff:
---
 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 a35b95cc74f1..684af9cdbb3b 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3459,7 +3459,7 @@ int pclose (FILE*);
   FILE* fopen (const char*, const char*);
 [[gnu::malloc, gnu::malloc (fclose, 1)]]
   FILE* fmemopen(void *, size_t, const char *);
-[[gnu::malloc, gnu::malloc (fclose, 1)]]
+[[gnu::malloc, gnu::malloc (pclose, 1)]]
   FILE* popen (const char*, const char*);
 [[gnu::malloc, gnu::malloc (fclose, 1)]]
   FILE* tmpfile (void);

Reply via email to