aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-02-05 20:59:44 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-05 13:59:44 -0700
commit78418280ddc10b0701ca2d319ab5c3a5ca6e8375 (patch)
tree685813c180a0475b6975bff38e46630b463b351d /gcc
parent6d819282d0193c2bc67fdc3ac8613d32931257bf (diff)
downloadgcc-78418280ddc10b0701ca2d319ab5c3a5ca6e8375.zip
gcc-78418280ddc10b0701ca2d319ab5c3a5ca6e8375.tar.gz
gcc-78418280ddc10b0701ca2d319ab5c3a5ca6e8375.tar.bz2
stmt.c (expand_asm_operands): Correctly identify asm statements no operands.
* stmt.c (expand_asm_operands): Correctly identify asm statements no operands. From-SVN: r17673
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/stmt.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c4cff0..c16abab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 5 21:59:49 1998 Jeffrey A Law (law@cygnus.com)
+
+ * stmt.c (expand_asm_operands): Correctly identify asm statements
+ no operands.
+
Thu Feb 5 21:56:06 1998 Mumit Khan <khan@xraylith.wisc.edu>
* c-common.c (decl_attributes): Flag unrecognized attribute
diff --git a/gcc/stmt.c b/gcc/stmt.c
index a1fa965..30c39ce 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1305,9 +1305,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
TREE_STRING_POINTER (string), "", 0, argvec,
constraints, filename, line);
- /* The only use of BODY is if no outputs are specified, so set
- it volatile, at least for now. */
- MEM_VOLATILE_P (body) = 1;
+ MEM_VOLATILE_P (body) = vol;
/* Eval the inputs and put them into ARGVEC.
Put their constraints into ASM_INPUTs and store in CONSTRAINTS. */