aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-04-01 18:06:16 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2020-04-01 18:09:07 +0100
commitdd5da57173141290632a9f924c44662aac62c312 (patch)
tree38d5ab024a503be97d7a4a3461205be99b0bed2f /gcc
parent032f2366a4cd57f781f2093d977b9cf9600c83b8 (diff)
downloadgcc-dd5da57173141290632a9f924c44662aac62c312.zip
gcc-dd5da57173141290632a9f924c44662aac62c312.tar.gz
gcc-dd5da57173141290632a9f924c44662aac62c312.tar.bz2
doc: Fix a typo in the documentation of the copy attribute
2020-04-01 Zackery Spytz <zspytz@gmail.com> gcc/ * doc/extend.texi: Fix a typo in the documentation of the copy function attribute.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 654356c..6313be4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-01 Zackery Spytz <zspytz@gmail.com>
+
+ * doc/extend.texi: Fix a typo in the documentation of the
+ copy function attribute.
+
2020-04-01 Jakub Jelinek <jakub@redhat.com>
PR middle-end/94423
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index e0e7f54..f1f2064 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)));