https://gcc.gnu.org/g:7cc05a885199b9640f157150f06d083737daafb1
commit r16-4623-g7cc05a885199b9640f157150f06d083737daafb1 Author: Sam James <[email protected]> Date: Sat Oct 25 23:03:41 2025 +0100 doc: fix __attribute__((nocf_check)) documentation Fix two syntax errors (missing '(' and ')' and misplaced '{'). gcc/ChangeLog: * doc/extend.texi (nocf_check): Fix syntax errors in example. Diff: --- gcc/doc/extend.texi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index fb117f59665b..882c0820a6e6 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -6896,15 +6896,14 @@ compiler checks for @code{nocf_check} attribute mismatch and reports a warning in case of mismatch. @smallexample -@{ -int foo (void) __attribute__(nocf_check); -void (*foo1)(void) __attribute__(nocf_check); +int foo (void) __attribute__((nocf_check)); +void (*foo1)(void) __attribute__((nocf_check)); void (*foo2)(void); /* foo's address is assumed to be valid. */ int foo (void) - +@{ /* This call site is not checked for control-flow validity. */ (*foo1)();
