aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-10-18 01:22:27 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-10-18 01:22:27 +0100
commit7dcb044217de829680851c86142b9976baf97a0b (patch)
tree78d5b7357feb4f7c31568132c8e30c8c8bd21b55 /gcc/doc
parenteedfbe08e38aa2b033cdb337be974c45914df33e (diff)
downloadgcc-7dcb044217de829680851c86142b9976baf97a0b.zip
gcc-7dcb044217de829680851c86142b9976baf97a0b.tar.gz
gcc-7dcb044217de829680851c86142b9976baf97a0b.tar.bz2
extend.texi (Attribute Syntax): Clarify details of attributes on parameters.
* doc/extend.texi (Attribute Syntax): Clarify details of attributes on parameters. From-SVN: r89190
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index d523615..eef64f1 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2424,6 +2424,15 @@ declaration as a whole. In the obsolescent usage where a type of
specifiers and qualifiers may be an attribute specifier list with no
other specifiers or qualifiers.
+At present, the first parameter in a function prototype must have some
+type specifier which is not an attribute specifier; this resolves an
+ambiguity in the interpretation of @code{void f(int
+(__attribute__((foo)) x))}, but is subject to change. At present, if
+the parentheses of a function declarator contain only attributes then
+those attributes are ignored, rather than yielding an error or warning
+or implying a single parameter of type int, but this is subject to
+change.
+
An attribute specifier list may appear immediately before a declarator
(other than the first) in a comma-separated list of declarators in a
declaration of more than one identifier using a single list of