Fix an error in extend.texi

Message ID CAFCr9MsLeXH74MGB72-bpdXrO_MZSaT2rUj68P49MDBkgG_EmQ@mail.gmail.com
State New
Headers show
Series
  • Fix an error in extend.texi
Related show

Commit Message

Iain Buclaw via Gcc-patches March 31, 2020, 8:32 p.m.

Comments

Richard Sandiford April 1, 2020, 5:12 p.m. | #1
Zackery Spytz via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi

> index e0e7f540c219..f1f2064df459 100644

> --- a/gcc/doc/extend.texi

> +++ b/gcc/doc/extend.texi

> @@ -2817,7 +2817,7 @@ the same type as the target function.  As a result of

> the @code{copy}

>  attribute the alias also shares the same attributes as the target.

>

>  @smallexample

> -#define StrongAlias(TagetFunc, AliasDecl)   \

> +#define StrongAlias(TargetFunc, AliasDecl)  \

>    extern __typeof__ (TargetFunc) AliasDecl  \

>      __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));


Thanks for the patch.  Pushed to master and gcc-9 branch.

Richard

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index e0e7f540c219..f1f2064df459 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2817,7 +2817,7 @@  the same type as the target function.  As a result of
the @code{copy}
 attribute the alias also shares the same attributes as the target.

 @smallexample
-#define StrongAlias(TagetFunc, AliasDecl)   \
+#define StrongAlias(TargetFunc, AliasDecl)  \
   extern __typeof__ (TargetFunc) AliasDecl  \
     __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));