Commit a43ea319 by Richard Kenner

(c_expand_asm_operands): Check for read-only output operand where the

variable is read-only but the type is not.

From-SVN: r10232
parent 5fad6898
......@@ -6432,7 +6432,8 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
else
{
tree type = TREE_TYPE (o[i]);
if (TYPE_READONLY (type)
if (TREE_READONLY (o[i])
|| TYPE_READONLY (type)
|| ((TREE_CODE (type) == RECORD_TYPE
|| TREE_CODE (type) == UNION_TYPE)
&& C_TYPE_FIELDS_READONLY (type)))
......
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