aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-04-01 11:04:12 +0200
committerJakub Jelinek <jakub@redhat.com>2021-04-01 11:04:12 +0200
commit7b478ede2a37b1586846abd355bd902ea4cae117 (patch)
tree14a309c4019430df828a128ca6fa3604e94502c2 /gcc
parent5b9a65ecbeb22ef6dd3344baae97f85b645522e3 (diff)
downloadgcc-7b478ede2a37b1586846abd355bd902ea4cae117.zip
gcc-7b478ede2a37b1586846abd355bd902ea4cae117.tar.gz
gcc-7b478ede2a37b1586846abd355bd902ea4cae117.tar.bz2
doc: Fix up symver attribute documentation
When looking at the symver documentation, I've noticed a couple of syntax errors in it. 2021-04-01 Jakub Jelinek <jakub@redhat.com> * doc/extend.texi (symver attribute): Fix up syntax errors in the examples.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/extend.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 0debf84..29ef0d6 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3851,13 +3851,13 @@ output.
One can also define multiple version for a given symbol.
@smallexample
-__attribute__ ((__symver__ ("foo@@VERS_2"), ("foo@@VERS_3")))
+__attribute__ ((__symver__ ("foo@@VERS_2"), __symver__ ("foo@@VERS_3")))
int symver_foo_v1 (void)
@{
@}
-__attribute__ ((__symver__ ("bar@@VERS_2"))))
-__attribute__ ((__symver__ ("bar@@VERS_3"))))
+__attribute__ ((__symver__ ("bar@@VERS_2")))
+__attribute__ ((__symver__ ("bar@@VERS_3")))
int symver_bar_v1 (void)
@{
@}