stmt.c (expand_asm_operands): Correctly identify asm statements no operands.
authorJeffrey A Law <law@cygnus.com>
Thu, 5 Feb 1998 20:59:44 +0000 (20:59 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 5 Feb 1998 20:59:44 +0000 (13:59 -0700)
        * stmt.c (expand_asm_operands): Correctly identify asm statements
        no operands.

From-SVN: r17673

gcc/ChangeLog
gcc/stmt.c

index 6c4cff004e9bfeb940a7cabe8c5527cf55cbba31..c16abab9d040677e78c1f4bfe1188347188549c4 100644 (file)
@@ -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
index a1fa965fe9b9c9b700f9c655c8ed4226d79f12fe..30c39ce84e55ee50d5860e7c4da213499516e224 100644 (file)
@@ -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.  */