Commit a64c757e by Anthony Green Committed by Anthony Green

* semantics.c (finish_asm_stmt): Always permit volatile asms.

From-SVN: r22632
parent 630962bf
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> 1998-09-28 Mark Mitchell <mark@markmitchell.com>
* decl.c (grokdeclarator): Tighten checks for invalid * decl.c (grokdeclarator): Tighten checks for invalid
......
...@@ -730,28 +730,18 @@ finish_asm_stmt (cv_qualifier, string, output_operands, ...@@ -730,28 +730,18 @@ finish_asm_stmt (cv_qualifier, string, output_operands,
else else
{ {
emit_line_note (input_filename, lineno); 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])
if (cv_qualifier != NULL_TREE cp_warning ("%s qualifier ignored on asm",
&& cv_qualifier != ridpointers[(int) RID_VOLATILE]) IDENTIFIER_POINTER (cv_qualifier));
cp_warning ("%s qualifier ignored on asm",
IDENTIFIER_POINTER (cv_qualifier)); c_expand_asm_operands (string, output_operands,
input_operands,
c_expand_asm_operands (string, output_operands, clobbers,
input_operands, cv_qualifier
clobbers, == ridpointers[(int) RID_VOLATILE],
cv_qualifier input_filename, lineno);
== 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);
}
finish_stmt (); finish_stmt ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment