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

variable is read-only but the type is not.

From-SVN: r10232
This commit is contained in:
Richard Kenner 1995-08-13 21:42:59 -04:00
parent 5fad689870
commit a43ea3192f
1 changed files with 2 additions and 1 deletions

View File

@ -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)))