aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2014-12-05 15:19:26 -0700
committerJeff Law <law@gcc.gnu.org>2014-12-05 15:19:26 -0700
commit40da08e0dd91017678b20cb1db2cb529f64d33df (patch)
tree673e584210a9a8bbf3173baa1a15f58525ccf2f3
parent4b97b9f771161b0096bb5f120ccd64b084148d6b (diff)
downloadgcc-40da08e0dd91017678b20cb1db2cb529f64d33df.zip
gcc-40da08e0dd91017678b20cb1db2cb529f64d33df.tar.gz
gcc-40da08e0dd91017678b20cb1db2cb529f64d33df.tar.bz2
md.texi: Note problems using function calls to determine insn lengths and point readers...
* doc/md.texi: Note problems using function calls to determine insn lengths and point readers to a potential workaround. From-SVN: r218439
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/md.texi6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9538737..0dcf649 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-05 Jeff Law <law@redhat.com>
+
+ * doc/md.texi: Note problems using function calls to determine
+ insn lengths and point readers to a potential workaround.
+
2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
* combine.c (is_parallel_of_n_reg_sets)
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index b8e5ac5..1c70a77 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -8345,6 +8345,12 @@ the number of vectors multiplied by the size of each vector.
Lengths are measured in addressable storage units (bytes).
+Note that it is possible to call functions via the @code{symbol_ref}
+mechanism to compute the length of an insn. However, if you use this
+mechanism you must provide dummy clauses to express the maximum length
+without using the function call. You can an example of this in the
+@code{pa} machine description for the @code{call_symref} pattern.
+
The following macros can be used to refine the length computation:
@table @code