summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-05 16:26:12 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-05 16:26:12 +0000
commit356ed71f209eb1d44d8a6c974a97bbada0385bcb (patch)
tree5fe80c58dd5bab8c2cfb9dee1394c6051d85bbfa
parente1ffb3c8bc58abd1e5dfce27900c0bdb403d1a29 (diff)
downloadgcc-356ed71f209eb1d44d8a6c974a97bbada0385bcb.tar.gz
* extend.texi (Extended Asm): Document inability to give asm
statements access to condition codes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33709 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/extend.texi4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c1ab0418e0e..9c50cb320c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-05 Geoff Berry <geoffb@bops.com>
+
+ * extend.texi (Extended Asm): Document inability to give asm
+ statements access to condition codes.
+
2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
* varasm.c (asm_emit_uninitialised): Use 0, not NULL
diff --git a/gcc/extend.texi b/gcc/extend.texi
index c3e26484a80..65b0ec916ac 100644
--- a/gcc/extend.texi
+++ b/gcc/extend.texi
@@ -2678,6 +2678,10 @@ instructions would alter the condition code before there was time to
test it. This problem doesn't arise for ordinary ``test'' and
``compare'' instructions because they don't have any output operands.
+For reasons similar to those described above, it is not possible to give
+an assembler instruction access to the condition code left by previous
+instructions.
+
If you are writing a header file that should be includable in ANSI C
programs, write @code{__asm__} instead of @code{asm}. @xref{Alternate
Keywords}.