aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-02 13:01:46 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-09-02 13:01:46 -0700
commit57bcb97aac8ba7f801c3ce18ef287ae9a4ac6ae9 (patch)
treedc5ca7fbf22568057834f64696baefb89b6503d6 /gcc/stmt.c
parent773c6f00765f091ee6a69929a19cfd46d7a30c03 (diff)
downloadgcc-57bcb97aac8ba7f801c3ce18ef287ae9a4ac6ae9.zip
gcc-57bcb97aac8ba7f801c3ce18ef287ae9a4ac6ae9.tar.gz
gcc-57bcb97aac8ba7f801c3ce18ef287ae9a4ac6ae9.tar.bz2
stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
* stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present. * tm.texi (MD_ASM_CLOBBERS): Document it. From-SVN: r29064
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 97afc4e..f0548b4 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1153,6 +1153,14 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
return;
}
+#ifdef MD_ASM_CLOBBERS
+ /* Sometimes we wish to automatically clobber registers across an asm.
+ Case in point is when the i386 backend moved from cc0 to a hard reg --
+ maintaining source-level compatability means automatically clobbering
+ the flags register. */
+ MD_ASM_CLOBBERS (clobbers);
+#endif
+
/* Count the number of meaningful clobbered registers, ignoring what
we would ignore later. */
nclobbers = 0;