aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>1999-02-21 10:39:33 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-02-21 10:39:33 -0800
commit00bc45c1392b6925f8bfde8df8d7d38f827a320a (patch)
treea5d5409fe8dbf60dd67476c51f7c00c766b4edbf /gcc
parent7ee37ba40c711500d040d253a0cf49c635100d5a (diff)
downloadgcc-00bc45c1392b6925f8bfde8df8d7d38f827a320a.zip
gcc-00bc45c1392b6925f8bfde8df8d7d38f827a320a.tar.gz
gcc-00bc45c1392b6925f8bfde8df8d7d38f827a320a.tar.bz2
Update attribute value documentation.
From-SVN: r25349
Diffstat (limited to 'gcc')
-rw-r--r--gcc/md.texi13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/md.texi b/gcc/md.texi
index 6177ac2..890030d 100644
--- a/gcc/md.texi
+++ b/gcc/md.texi
@@ -3555,9 +3555,10 @@ The integer @var{i} specifies the value of a numeric attribute. @var{i}
must be non-negative.
The value of a numeric attribute can be specified either with a
-@code{const_int} or as an integer represented as a string in
-@code{const_string}, @code{eq_attr} (see below), and @code{set_attr}
-(@pxref{Tagging Insns}) expressions.
+@code{const_int}, or as an integer represented as a string in
+@code{const_string}, @code{eq_attr} (see below), @code{attr},
+@code{symbol_ref}, simple arithmetic expressions, and @code{set_attr}
+overrides on specific instructions (@pxref{Tagging Insns}).
@cindex @code{const_string} and attributes
@item (const_string @var{value})
@@ -3740,6 +3741,12 @@ The @code{very_unlikely} and @code{unlikely} flags are false if the
@code{attr_flag} is only used during delay slot scheduling and has no
meaning to other passes of the compiler.
+
+@findex attr
+@item (attr @var{name})
+The value of another attribute is returned. This is most useful
+for numeric attributes, as @code{eq_attr} and @code{attr_flag}
+produce more efficient code for non-numeric attributes.
@end table
@node Tagging Insns