* semantics.c (finish_asm_stmt): Always permit volatile asms.
authorAnthony Green <green@cygnus.com>
Mon, 28 Sep 1998 20:23:27 +0000 (20:23 +0000)
committerAnthony Green <green@gcc.gnu.org>
Mon, 28 Sep 1998 20:23:27 +0000 (20:23 +0000)
From-SVN: r22632

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 2bc04c9dab64ad5334d5b92819b5bd9fb1ef6189..c095d307f7edfc4285a49d004b0d191b9be65b71 100644 (file)
@@ -1,3 +1,7 @@
+1998-09-28  Anthony Green  <green@cygnus.com>
+
+       * semantics.c (finish_asm_stmt): Always permit volatile asms.
+
 1998-09-28  Mark Mitchell  <mark@markmitchell.com>
 
        * decl.c (grokdeclarator): Tighten checks for invalid
index eee6616698e05dcaec977b0f70440094ec4c2373..6f69d64594bc0f778f77e0b370e02d1d81440ae1 100644 (file)
@@ -730,28 +730,18 @@ finish_asm_stmt (cv_qualifier, string, output_operands,
   else
     {
       emit_line_note (input_filename, lineno);
-      if (output_operands != NULL_TREE || input_operands != NULL_TREE
-         || clobbers != NULL_TREE)
-       {
-         if (cv_qualifier != NULL_TREE
-             && cv_qualifier != ridpointers[(int) RID_VOLATILE])
-           cp_warning ("%s qualifier ignored on asm",
-                       IDENTIFIER_POINTER (cv_qualifier));
-           
-         c_expand_asm_operands (string, output_operands,
-                                input_operands, 
-                                clobbers,
-                                cv_qualifier 
-                                == ridpointers[(int) RID_VOLATILE],
-                                input_filename, lineno);
-       }
-      else
-       {
-         if (cv_qualifier != NULL_TREE)
-           cp_warning ("%s qualifier ignored on asm",
-                       IDENTIFIER_POINTER (cv_qualifier));
-         expand_asm (string);
-       }
+
+      if (cv_qualifier != NULL_TREE
+         && cv_qualifier != ridpointers[(int) RID_VOLATILE])
+       cp_warning ("%s qualifier ignored on asm",
+                   IDENTIFIER_POINTER (cv_qualifier));
+      
+      c_expand_asm_operands (string, output_operands,
+                            input_operands, 
+                            clobbers,
+                            cv_qualifier 
+                            == ridpointers[(int) RID_VOLATILE],
+                            input_filename, lineno);
 
       finish_stmt ();
     }