diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-12-15 15:46:40 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-15 08:46:40 -0700 |
commit | 296f8acc114ca58d70b6cd2dc0cd9c3ad264cdd1 (patch) | |
tree | 5dca54b381d5e8620be70698deef7ea241bf5511 /gcc | |
parent | acda6d8beb3491c53d1a66eca74ce45b4e1621c1 (diff) | |
download | gcc-296f8acc114ca58d70b6cd2dc0cd9c3ad264cdd1.zip gcc-296f8acc114ca58d70b6cd2dc0cd9c3ad264cdd1.tar.gz gcc-296f8acc114ca58d70b6cd2dc0cd9c3ad264cdd1.tar.bz2 |
stmt.c (expand_asm_operands): If an ASM has no outputs, then treat it as volatile.
* stmt.c (expand_asm_operands): If an ASM has no outputs, then treat
it as volatile.
From-SVN: r17100
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stmt.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76a30f9..c9ea3e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 15 08:48:24 1997 Jeffrey A Law (law@cygnus.com) + + * stmt.c (expand_asm_operands): If an ASM has no outputs, then treat + it as volatile. + Mon Dec 15 00:04:48 1997 Jeffrey A Law (law@cygnus.com) * haifa-sched.c (remove_dependencies): Set RTX_INTEGRATED_P on @@ -1421,6 +1421,10 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) /* The insn we have emitted. */ rtx insn; + /* An ASM with no outputs needs to be treated as volatile. */ + if (noutputs == 0) + vol = 1; + if (output_bytecode) { error ("`asm' is invalid when generating bytecode"); |