diff options
author | Martin Sebor <msebor@gcc.gnu.org> | 2019-04-12 13:11:59 -0600 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-04-12 13:11:59 -0600 |
commit | 41fe51dd063c2d860f12311fc65c7ad8ed8e6df5 (patch) | |
tree | 7ec63844cf71c30e56b7b50cededa48b584410bf | |
parent | 3fb82380dcbbc768e2a5bdb5ab4079259ee0e683 (diff) | |
download | gcc-41fe51dd063c2d860f12311fc65c7ad8ed8e6df5.zip gcc-41fe51dd063c2d860f12311fc65c7ad8ed8e6df5.tar.gz gcc-41fe51dd063c2d860f12311fc65c7ad8ed8e6df5.tar.bz2 |
extend.texi (__builtin_has_attribute): Add a clarifying note.
gcc/ChangeLog:
* doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
From-SVN: r270327
-rw-r--r-- | gcc/doc/extend.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index cad7ad4..0bb1fd2 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -12623,8 +12623,11 @@ check its compatibility with @var{size}. The @code{__builtin_has_attribute} function evaluates to an integer constant expression equal to @code{true} if the symbol or type referenced by the @var{type-or-expression} argument has been declared with -the @var{attribute} referenced by the second argument. Neither argument -is evaluated. The @var{type-or-expression} argument is subject to the same +the @var{attribute} referenced by the second argument. For +an @var{type-or-expression} argument that does not reference a symbol, +since attributes do not apply to expressions the built-in consider +the type of the argument. Neither argument is evaluated. +The @var{type-or-expression} argument is subject to the same restrictions as the argument to @code{typeof} (@pxref{Typeof}). The @var{attribute} argument is an attribute name optionally followed by a comma-separated list of arguments enclosed in parentheses. Both forms |