OSDN Git Service

(c_expand_asm_operands): Check for read-only output operand where the
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Aug 1995 01:42:59 +0000 (01:42 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Aug 1995 01:42:59 +0000 (01:42 +0000)
variable is read-only but the type is not.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10232 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-typeck.c

index b16a7bf..527b6eb 100644 (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)))